Re: [Puppet Users] Re: Setting savedefult options with augeas/puppet

2011-10-16 Thread James A. Peltier
- Original Message - | | You piqued my interest with the savedefault option though so I | | looked | | it up. Are you sure you don't want it on every kernel boot option so | | if you change into different Linux kernels it remembers them as | | well? BTW: No, this is not what this is intend

Re: [Puppet Users] Re: Setting savedefult options with augeas/puppet (SOLVED)

2011-10-16 Thread James A. Peltier
The following class seems to do exactly what I needed it to do. It sets the default context to saved and creates a savedefault parameter for the Windows entry that exists. This method also does not require a onlyif if statement which is much better than the ins after option that was proposed b

Re: [Puppet Users] Re: Setting savedefult options with augeas/puppet

2011-10-16 Thread James A. Peltier
- Original Message - | Cheers, I'll walk you through how I came up with the augeas commands. | | Opening augtool and printing /files/boot/grup/menu.lst shows how the | lense has constructed the augeas tree (edited for brevity): | | augtool> print /files/boot/grub/menu.lst/ | /files/boot/g

[Puppet Users] Re: Setting savedefult options with augeas/puppet

2011-10-14 Thread Luke Bigum
Cheers, I'll walk you through how I came up with the augeas commands. Opening augtool and printing /files/boot/grup/menu.lst shows how the lense has constructed the augeas tree (edited for brevity): augtool> print /files/boot/grub/menu.lst/ /files/boot/grub/menu.lst /files/boot/grub/menu.lst/#com

Re: [Puppet Users] Re: Setting savedefult options with augeas/puppet

2011-10-13 Thread James A. Peltier
- Original Message - | On Thu, Oct 13, 2011 at 1:24 AM, Luke Bigum | wrote: | | > Can you give me an example of a grub.conf file that you want to | > achieve? I don't have a dual boot windows system so not exactly sure | > what option you mean. | | | | | > # grub.conf generated by ana

Re: [Puppet Users] Re: Setting savedefult options with augeas/puppet

2011-10-13 Thread James Peltier
On Thu, Oct 13, 2011 at 1:24 AM, Luke Bigum wrote: > Can you give me an example of a grub.conf file that you want to > achieve? I don't have a dual boot windows system so not exactly sure > what option you mean. > # grub.conf generated by anaconda > # > # Note that you do not have to rerun gr

[Puppet Users] Re: Setting savedefult options with augeas/puppet

2011-10-13 Thread Luke Bigum
Can you give me an example of a grub.conf file that you want to achieve? I don't have a dual boot windows system so not exactly sure what option you mean. On Oct 12, 9:15 pm, "James A. Peltier" wrote: > Hi All, > > I'm trying to create a puppet manifest that sets the grub default= value to > sav