2009/9/12 Kelly Collier <jkellycoll...@gmail.com>: > > Hi. > > I'd like to modify certain values in the config files on client machines. > > For example: > > in /boot/grub/menu.lst, change "timeout 10" to "timeout 3" > > I'd prefer not to create a template, since there's no guarantee that the > rest of menu.lst is the same (e.g., a kernel is updated on one client > machine but not another). > > The sloppy solution I'm using now is exec'ing a sed command if > /timeout\s+3/ is not found in the file. But it just seems tacky.
One option would be to use the augeas provider to do this: http://reductivelabs.com/trac/puppet/wiki/PuppetAugeas http://augeas.net/tour.html Paul --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---