I hope my title makes sense. I'm still new to puppet but have made a lot o progress in a matter of 2-3 days and have a good grasp on the fundamentals... Now I'm trying to determine how to do a little more then basic things.
My hosts all have standard hosts files that are almost identical, what's not identical is 3 lines, 2 lines I can generate with ip address information and hostname, the third line I can pull from an outside db or from the existing file. i.e.: custom host entries: 192.168.1.20 host1.domain.com 192.168.1.30 host2.domain.com 192.168.1.250 unique_host.domain.com Is there a way to manage this with puppet? What I would like to do is be able to check that those 3 entries exist... if not replace the file and generate the custom content that needs to be in the file? Not sure how to do this in puppet.. or if it is even possible. My thought's are a custom script that verifies the file, if that script fails... replace the file, then run another script to populate the custom information. Or can this all be done from within puppet? Also the hosts file is just an example... I have probably a dozen other files I need to be able to do this with. -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to puppet-us...@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.