Kelly Collier wrote: > 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. > > Any suggestions on how to do this more properly? For grub, check if your distro has "grubby", a command line tool for modifying the grub config file. Last I saw it was on RedHat/CentOS/Fedora; it's not on the Debian I have here to hand, nor my Ubuntu, so I don't know where it comes from. Other distros may have equivalents.
Craig Miskell --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en -~----------~----~----~----~------~----~------~--~---
