search for: here_goes_th

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

Did you mean: here_goes_the
2013 Aug 28
3
passing hiera data to custom fact
...hostname as 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 re...