I have the same problem. The goal is to append "umask 027" without the "=" to the end of the /etc/sysconfig/init file according to NIST rules. However the augeas lens is not made to handle this, only shell vars syntax is allowed. If you want to workaround this via a erb template and you have other augeas resources defined, they will fail as augeas will fail to parse the new /etc/sysconfig/init set by the template.
How to best resolve this? Thanks On Tuesday, June 25, 2013 4:36:22 PM UTC+2, Dominic Cleal wrote: > > On 24/06/13 12:22, David Sandilands wrote: > > We are working on a replacing our current build set by ksh scripts with > > puppet manifests and I'm having some difficulty setting umask in > > /etc/sysconfig/init for RHEL 6 > > > > Ideally I would like to just do > > > > augeas { 'augsysconfiginitumask': > > context => '/files/etc/sysconfig/init', > > changes => "set umask 027"; > > } > > > > but that just sets a line to umask=027, we use augeas to update this > > file from other places so ideally wouldn't like to use templates. > > > > Any ideas or thoughts? > > I don't follow your question. What did you expect or want it to do? > > -- > Dominic Cleal > Red Hat Engineering > -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-users+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/ef50aa6a-9549-4582-9bb9-d4f5048a3d6f%40googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.