The command is:

    augeas{ "export foo" :
        context => "/files/etc/exports",
        changes => [
            "ins dir after dir[last()]",
            "set dir[last()] /foo",
            "set dir[last()]/client weeble",
            "set dir[last()]/client/option[1] ro",
            "set dir[last()]/client/option[2] all_squash",
        ],
    }

The error is:

    Error sending command 'ins' with params ["/files/etc/exports/dir",
    "after dir[last()]"]/wrong number of arguments (1 for 3)

I'm not sure what's going on, but at the very least dir[last()]
should be replaced with /files/etc/exports/dir[last()] at some
point.

-Robin

-- 
They say:  "The first AIs will be built by the military as weapons."
And I'm thinking:  "Does it even occur to you to try for something
other than the default outcome?" -- http://shorl.com/tydruhedufogre
http://www.digitalkingdom.org/~rlpowell/ *** http://www.lojban.org/

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Puppet Users" group.
To post to this group, send email to puppet-users@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
-~----------~----~----~----~------~----~------~--~---

Reply via email to