search for: parametric_hostnam

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

Did you mean: parametric_hostname
2013 Aug 28
3
passing hiera data to custom fact
...a fixed known information the IP will be variable since I''m installing it in a cloud environment The custom facter code is: # master_ip.rb: # require ''facter'' if FileTest.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...