Hi, > I'm looking to see if there's a way that I can set up a class on my > puppetmaster node to loop through all of the defined nodes and add a > hosts entry for the internal IP. I think I'm good with the actual > adding of the entry, but I'm curious as to how to get access to all > defined hosts and loop through their facts.
Not really defined nodes, but it should be possible to use exported resources to export the ip address of each node and then collect them. http://docs.puppetlabs.com/guides/exported_resources.html Cheers, Paul -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To view this discussion on the web visit https://groups.google.com/d/msg/puppet-users/-/yfczszBhR40J. 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.
