Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Chef::Log.info("osops-utils/autoetchosts: checking (#{host})")
- begin
- ip = ::Chef::Recipe::IPManagement.get_ip_for_net("management",host)
- stra = String.new("#{ip} #{host["fqdn"]} #{host["hostname"]}\n")
- hostsfile << stra
- rescue
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement