I am trying to add two new options to grub.conf using augeas.
The code is as follows:

    augeas { 'grub.conf/8250_LAR':
            tag => chris1,
            incl    => '/boot/grub/grub.conf',
            lens    => 'Grub.lns',
            changes => [
                'set /title[1]/kernel/8250.nr_uarts 8',
                'set /title[1]/kernel/8250_core.nr_uarts 8',
            ],
    }


However nothing is added to /etc/grub.conf at all, and the puppet run 
completes as follows with debug.

Debug: Augeas[grub.conf/8250_LAR](provider=augeas): Augeas version 1.0.0 is 
installed
Debug: Augeas[grub.conf/8250_LAR](provider=augeas): Will attempt to save and 
only run if files changed
Debug: Augeas[grub.conf/8250_LAR](provider=augeas): sending command 'set' 
with params ["/title[*]/kernel/8250.nr_uarts", "8"]
Debug: Augeas[grub.conf/8250_LAR](provider=augeas): sending command 'set' 
with params ["/title[*]/kernel/8250_core.nr_uarts", "8"]
Debug: Augeas[grub.conf/8250_LAR](provider=augeas): Skipping because no 
files were changed
Debug: Augeas[grub.conf/8250_LAR](provider=augeas): Closed the augeas 
connection

Manually, Augeas appears to work fine:

augtool> set /files/boot/grub/grub.conf/title[1]/kernel/8250_core.nr_uarts 8
augtool> save
Saved 1 file(s)

I'd appreciate any ideas?


Thanks
Chris

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to puppet-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/puppet-users/9f4a854d-e3b3-4be1-b7f2-5d495dba21d9%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to