We'd like to control, among other files, /etc/sysctl.conf with Puppet. We have a baseline for this file on all our servers, but frequently some of our applications require additional tweaks. These tweaks are generally more than a single line.
I know that we could create a class in our module repository with the necessary additions, then define that class inside Dashboard and apply it to hosts as needed. That seems a little inflexible, as we'd need to create a class for each app, and define inside that class the changes that we need. I'd prefer a more extensible solution that abstracts this a bit. A "sysctl-additions" class, for example, that relies upon a Dashboard-defined variable that contains the additions to place into the file. But how can I (easily?) add multiple lines to the Dashboard variable? Or do I have to create multiple key/value pairs for each line I wish to add? When using Puppet Dashboard, how does one easily add multiple lines to a Puppet-controlled file? Or should we not be using Dashboard for that? -- 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.