Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/melezhik/sparrowdo-chef-manager
Sparrowdo module to manage chef users
https://github.com/melezhik/sparrowdo-chef-manager
chef chef-server opscode sparrowdo
Last synced: 18 days ago
JSON representation
Sparrowdo module to manage chef users
- Host: GitHub
- URL: https://github.com/melezhik/sparrowdo-chef-manager
- Owner: melezhik
- Created: 2016-10-07T10:49:58.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2017-04-27T10:23:00.000Z (over 7 years ago)
- Last Synced: 2024-11-05T21:50:04.340Z (2 months ago)
- Topics: chef, chef-server, opscode, sparrowdo
- Language: Perl6
- Size: 7.81 KB
- Stars: 0
- Watchers: 3
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README
Awesome Lists containing this project
README
# SYNOPSIS
Sparrowdo module to manage chef users.
WARNING! --- This soft is far from being ideal, but at least some functions work for me.
# Install
$ panda install Sparrowdo::Chef::Manager
# Usage
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-server-ctl` command.Chef::Manager module exposes two commands to create/remove chef users.
## Delete user
module_run 'Chef::Manager', %(
action => 'delete-user',
user-id => 'alexey',
);## Create user
module_run 'Chef::Manager', %(
action => 'create-user',
user-id => 'alexey',
email => '[email protected]',
name => 'Alexey',
last-name => 'Melezhik',
password => '123456',
org => 'devops'
);
## Add user to organizationmodule_run 'Chef::Manager', %(
action => 'add-to-org',
user-id => 'alexey',
org => 'IT'
);# Parameters
## action
One of two - `create-user|delete-user|add-to-org`.
## user-id
A chef user ID.
## password
A chef user password.
## org
Chef server organization. This one is optional, no default value.
If `org` parameter is set, then `create-user` action will add a new user to chef organization.## name
A user name, this one is obligatory.
## last-name
A user last-name, this one is obligatory.
A user email, this one is obligatory.
# Author
[Alexey Melezhik](mailto:[email protected])
# See also
* [SparrowDo](https://github.com/melezhik/sparrowdo)
* [chef-server-ctl (executable)](https://docs.chef.io/ctl_chef_server.html)