Hi again,

I am trying to add the following to my /etc/passwd and /etc/group
files

+:::::
and
+:::

this is for ldap search on the servers.

I am note quite sure on howto do this, I tryed with the following code

        augeas{
                "groups ldap":
                        context => "/files/etc/group",
                        changes => [
                                "ins group after group[last()]",
                                "set group[last()] '+'",
                                "set group[. = '+']/id :",
                                ],
        }

well this did not quite work out :)

puppet-agent[8348]: (/Stage[main]/Ldappam/Augeas[groups ldap]) Could
not evaluate: Error sending command 'ins' with params ["group",
"after", "/files/etc/group/group[last()]"]/Error sending command 'ins'
with params ["group", "after", "/files/etc/group/group[last()]"]

also I am missing the onlyif statement, but I could not figure out on
howto do this...

so if anyone has a working example I would be quite happy.
I also tryed with the group / user type reference, but this did not
work either for me.

thnx for the help
stefanero

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