Re: [Puppet Users] Re: manage /etc/passwd and /etc/group

2011-04-04 Thread John Warburton
On 4 April 2011 23:20, stefanero wrote: > Okey, > > thank you for this information, so augeas cannot handle this type of > requests. > I noted this a few years ago, and so did a simple line append. ( http://projects.puppetlabs.com/projects/1/wiki/Simple_Text_Patterns) You may want to file a fea

[Puppet Users] Re: manage /etc/passwd and /etc/group

2011-04-04 Thread stefanero
Okey, thank you for this information, so augeas cannot handle this type of requests. cu stefanero On 1 Apr., 17:26, Adam Heinz wrote: > Small copy/paste error: > > > augtool> print /files/etc/group/foo > > Saved 1 file(s) > > Was actually: > > augtool> save > Saved 1 file(s) -- You received t

Re: [Puppet Users] Re: manage /etc/passwd and /etc/group

2011-04-01 Thread Adam Heinz
Small copy/paste error: > augtool> print /files/etc/group/foo > Saved 1 file(s) Was actually: augtool> save Saved 1 file(s) -- 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

Re: [Puppet Users] Re: manage /etc/passwd and /etc/group

2011-04-01 Thread Adam Heinz
augtool> ins + after /files/etc/group/*[last()] augtool> set /files/etc/group/+/password : augtool> set /files/etc/group/+/gid : augtool> set /files/etc/group/+/user : augtool> save Saving failed augtool> print /augeas/files/etc/group/error /augeas/files/etc/group/error = "put_failed" /augeas/files

[Puppet Users] Re: manage /etc/passwd and /etc/group

2011-04-01 Thread stefanero
Hi, well another try I did was augeas{ "groups ldap": context => "/files/etc/group", changes => [ "ins + after *[last()]", "set +/password :",