On Tue, 2009-08-04 at 19:56 -0400, Chad Huneycutt wrote: > On Tue, Aug 4, 2009 at 7:12 PM, David Lutterkort<[email protected]> wrote: > > > > On Mon, 2009-08-03 at 16:03 -0400, Chad Huneycutt wrote: > >> augeas { "/etc/exports-$vmname": > >> context => "/files/etc/exports", > >> changes => [ > >> "set dir[.='/boots/$vmname'] /boots/$vmname", > >> "set dir[.='/boots/$vmname']/client $vmname", > >> "set dir[.='/boots/$vmname']/client/option[1] rw", > >> "set dir[.='/boots/$vmname']/client/option[2] > >> sync", > >> "set dir[.='/boots/$vmname']/client/option[3] > >> no_root_squash", > >> ], > >> } > >> > >> Those commands work find in augtool, and the problem withe resource > >> type seems to be the single quotes around '/boots/$vmname'. I tried > >> removing the quotes, and that doesn't work in augtool or puppet > >> (augtool doesn't error out, but the match doesn't occur properly, and > >> the puppet type fails with a pretty useless error). > > > > What happens ? Anything ? > > In augtool without quotes, the sets all create new dir entries (kind > of like if I had used set .../dir[0]). In puppet, the error I get if > I remove the quotes is "...Augeas[...]/returns: change from > need_to_run to 0 failed: Save failed with return code false". Here is > the whole bit, if it helps:
Ok .. yes, that helped a lot. And you are in fact being bitten by #2141 - need to have the single quotes where you have them above. Your best bet might be to try the 0.25 release candidate. David --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
