On 04/19/2011 11:34 PM, rowan holmes wrote: > hi everybody, > > In the server side we define a template for a configuration file. Our > client pulls configuration file from the server without knowing any > template is used or not, it just takes the catalog and puts the > changes to the file. However, if a client wants to add an extra value > to its configuration file that does not exist in the template, does > puppet allow that? > > In other words, puppet forces a configuration file to a bunch of nodes > but a node in this bunch wants to add an extra value by itself, it > wont take that value from the server.
The canonical way would be to extend the template such that the extra value will be added at the manifest's discretion. The best way to integrate this really depends on the structure of you manifest. If this is 2.6, you may be able to add a parameter to the class declaring your file that controls wether the option is present. If you want an extra-versatile solution (or in fact need the client to control the contents), you can use a custom fact for use in your template. HTH, Felix -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to puppet-users@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.