I was never able to get this working properly for /etc/services, there is
support in augeas now to do the matches properly but I think the ruby
bindings are not up to date with the new changes which ended up making
puppet fail.



On Thu, Jun 17, 2010 at 9:06 AM, Rob McBroom <mailingli...@skurfer.com>wrote:

> On Jun 16, 2010, at 5:42 PM, Silviu Paragina wrote:
>
> >> set /files/etc/aliases/*[name = ‘ftp’]/name ftp
> >>
> > I've actually tried this in augtool and puppet and it didn't work. In
> puppet it fails silently and on first sight you would believe everything
> went ok. In augtool it simply fails.
>
> So it does. It works with “print”, so I thought it would work with “set” as
> well. That was my experience with `/etc/services` and `/etc/passwd`. At this
> point, I’d look at all the possible path expressions and play around a bit.
>
>  http://augeas.net/page/Path_expressions
>
> You may be stuck doing an “onlyif” after all.
>
> You might also try the native mail alias type, as someone else suggested.
>
> http://docs.puppetlabs.com/references/latest/type.html#mailalias
>
> --
> Rob McBroom
> <http://www.skurfer.com/>
>
> Don't try to tell me something is important to you if the whole of your
> “support” entails getting Congress to force *others* to spend time and money
> on it.
>
> --
> 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<puppet-users%2bunsubscr...@googlegroups.com>
> .
> For more options, visit this group at
> http://groups.google.com/group/puppet-users?hl=en.
>
>

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

Reply via email to