search for: master_info

Displaying 1 result from an estimated 1 matches for "master_info".

2013 Aug 28
3
passing hiera data to custom fact
...cmd = sprintf(''/usr/bin/dig +short HERE_GOES_THE PARAMETRIC_HOSTNAME'') result = `#{cmd}` Facter.add("master_ip") do setcode { result } end end Any Idea on how to refer to a data present in the module like $master_hostname or a hiera hash like $master_info[''hostname''] Thanks -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-users+unsubscribe@googlegroups.com. To post to this group, s...