Forum: CFEngine Help
Subject: User Management
Author: josephvj
Link to topic: https://cfengine.com/forum/read.php?3,24588,24588#msg-24588
Hi,
I'm new to this platform. I wonder if it's possible to write a script for
checking users and create them if not. A simple basic script is as below, no
idea in passing to the next step. It would be great if anyone could help to
solve it .
bundle agent checkuser
{
vars:
"users" slist => { "user1", "user2" };
classes:
"ok" expression => userexists( "$(users)" );
reports:
ok::
"$(users) exists";
!ok::
"$(users) does not exists";
}
_______________________________________________
Help-cfengine mailing list
[email protected]
https://cfengine.org/mailman/listinfo/help-cfengine