Sparrowdo module to manage chef users.
WARNING! --- This soft is far from being ideal, but at least some functions work for me.
$ panda install Sparrowdo::Chef::Manager
NOTE! An assumption is made that chef server runs at the same host where sparrow client runs,
as under the hood this module uses
Chef::Manager module exposes two commands to create/remove chef users.
module_run 'Chef::Manager', %( action => 'delete-user', user-id => 'alexey', );
module_run 'Chef::Manager', %( action => 'create-user', user-id => 'alexey', email => 'email@example.com', name => 'Alexey', last-name => 'Melezhik', password => '123456', org => 'devops' );
Add user to organization
module_run 'Chef::Manager', %( action => 'add-to-org', user-id => 'alexey', org => 'IT' );
One of two -
A chef user ID.
A chef user password.
Chef server organization. This one is optional, no default value.
org parameter is set, then
create-user action will add a new user to chef organization.
A user name, this one is obligatory.
A user last-name, this one is obligatory.
A user email, this one is obligatory.