search for: master_hostname

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

Did you mean: masters_hostname
2013 Aug 28
3
passing hiera data to custom fact
...Test.exists?("/usr/bin/dig") 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@googlegr...