> interfaces = Facter.value(:interfaces).split(',')
> nsd_gateway = nil
I like the idea of accessing this information through facter instead
of needlessly running ifconfig again.
> interfaces.each do |iface|
> next unless (address =
> Facter.value("ipaddress_#{iface}"))
> YAML::load(File.open('/usr/local/etc/config.yml'))
Is their any "standard" location to put a config.yml file like in
your above example? Or just where ever I happen to store config files
at my location? I think i'll extend your example for default gateway
lookups.
Thanks again for the additional ideas on how to approach this
problem!
Derek
--
You received this message because you are subscribed to the Google Groups
"Puppet Users" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/puppet-users?hl=en.