Hi all,
I wonder how to edit the same (group) file in once..
If I do this:
----------
bundle agent my_main {
vars:
"groups" slist => {
"group1",
"group2"
};
"group_lines" slist => {
"user1,user2,user3",
"user4,user5"
};
files:
"/tmp/group"
comment => "Add users to group",
edit_line => set_user_field("$(groups)", 4, "$(group_lines)");
}
----------
I get this:
root@cftest:~# tail -2 /tmp/group
backoffice:x:1002:user4,user5
exploration:x:1003:user4,user5
This is not what I need. How can I do this right? I already tried to
change $ into @ (@ never worked for me for an slist).
Kind regards,
Dennis
_______________________________________________
Help-cfengine mailing list
[email protected]
https://cfengine.org/mailman/listinfo/help-cfengine