On Oct 6, 12:22 pm, Rob McBroom <mailingli...@skurfer.com> wrote: > On Oct 6, 2010, at 2:31 PM, Andrew Pollock wrote: > > > I hear there's some user-contributed Augeas examples in a Puppet wiki > > somewhere, but I haven't been able to find them. Any pointers appreciated. > > There is (and even I have a hard time finding it). > > http://projects.puppetlabs.com/projects/puppet/wiki/Puppet_Augeas > > You can usually avoid the ugly mess of using last() and onlyif, as shown in > the wiki.
Fabulous, thank you! For the record, I'm using augeas { "bond1": context => "/files/etc/network/interfaces", changes => [ "set iface[. = 'bond1'] bond1", "set iface[. = 'bond1']/family inet", "set iface[. = 'bond1']/method dhcp", "set iface[. = 'bond1']/slaves eth2", ], } which appears to be working as desired. -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to puppet-us...@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.