Grant Street
2014-May-19 07:39 UTC
[Puppet Users] Creating a config file dynamically based on the group membership of a node
Hi First time poster to this forum. I'm in the process of doing a pilot to convert a cfengine v2 install to puppet. I was wondering if any one had any ideas on the following. I have machines that can be in any combination(ie 0 or more) of 10 groups, that can change. I need to create an access.conf based on the group membership of the node. I would like the file to be dynamically created with any redundant lines removed. I have had a look at augeus but I can't see how to both add lines based on the group as well as remove unwanted and unknown lines. I have also had a look at templates but unsure how that would look like when the you have 0-10 insertion points Thanks for any tips Grant -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-users+unsubscribe@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/c505c1ee-1483-4141-b799-7262eb9493a7%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.