On 06/06/11 10:01, Kris Buytaert wrote:
> To actual errors  "change from need_to_run to 0 failed: Save failed with
> return code false" when trying to experiment with a syntax like below.
> ...
> augeas{"sipxprofile" :
>         lens    => "Xml",
>         incl    =>
> "/etc/sipxpbx/freeswitch/conf/sip_profiles/sipX_profile.xml",
>         context =>
> "/files/etc/sipxpbx/freeswitch/conf/sip_profiles/sipX_profile.xml",
>         changes => [
>           "set profile/settings/param[16]/#attribute/value 10.0.0.2",
>           "set profile/settings/param[17]/#attribute/value 10.0.0.2",
>         ],
> }
> 
> 
> Is there some way to implement the "load" function in augeas in puppet ?
> Or any documentation around regarding the correct use of lens, incl
> etc ?

Rather than setting lens to "Xml", set it to "Xml.lns", as documented here:
http://docs.puppetlabs.com/references/stable/type.html#augeas

The rest looks OK to me (though I'd suggest using XPath type expressions
rather than hard-coding the numbers 16 and 17).

-- 
Dominic Cleal
Red Hat Consulting
m: +44 (0)7818 512168

-- 
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