Create users from a Github organization or list of users.
This will allow members of your organization to SSH into servers using their own keys.
node[github_users][organization]
- Github organization to search for public membersnode[github_users][users]
- List of Github users, if you don't want to use theorganization
attributenode[github_users][group_name]
- Group name users will belong to (default'github'
)node[github_users][group_id]
- Group id users will belong to (default2157
)node[github_users][allow_sudo]
- Allow passwordless sudo for the users (defaulttrue
)
Include this cookbook in your role or wrapper cookbook.
recipe[github_users]
Set one of these attributes as you need:
[github_users][organization]
[github_users][users]
-
Clone this repository
git clone git@github.com:dustinmm80/github_users_cookbook.git
-
Install dependencies
gem install bundler; bundle install
-
Write tests for your changes. We're using test-kitchen and serverspec.
-
Run the tests
We're using docker to run our integration tests.
You need to have the environment variable
DOCKER_HOST
set to point to your docker daemon.kitchen converge; kitchen verify