cookbook 'github_users', '~> 0.2.1', :supermarket
github_users (3) Versions 0.2.1 Follow4
Creates users from a Github organization or list of users
cookbook 'github_users', '~> 0.2.1'
knife supermarket install github_users
knife supermarket download github_users
github_users
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.
Attributes
-
node[github_users][organization]
- Github organization to search for public members -
node[github_users][users]
- List of Github users, if you don't want to use theorganization
attribute -
node[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
)
Usage
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]
Development
-
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
Dependent cookbooks
ssh_known_hosts >= 0.0.0 |
sudo >= 0.0.0 |
Contingent cookbooks
There are no cookbooks that are contingent upon this one.
Collaborator Number Metric
0.2.1 failed this metric
Failure: Cookbook has 0 collaborators. A cookbook must have at least 2 collaborators to pass this metric.
Contributing File Metric
0.2.1 failed this metric
Failure: To pass this metric, your cookbook metadata must include a source url, the source url must be in the form of https://github.com/user/repo, and your repo must contain a CONTRIBUTING.md file
Foodcritic Metric
0.2.1 failed this metric
FC009: Resource attribute not recognised: github_users/recipes/default.rb:35
FC064: Ensure issues_url is set in metadata: github_users/metadata.rb:1
FC065: Ensure source_url is set in metadata: github_users/metadata.rb:1
FC066: Ensure chef_version is set in metadata: github_users/metadata.rb:1
FC069: Ensure standardized license defined in metadata: github_users/metadata.rb:1
Run with Foodcritic Version 14.3.0 with tags metadata,correctness ~FC031 ~FC045 and failure tags any
No Binaries Metric
0.2.1 passed this metric
Publish Metric
0.2.1 passed this metric
Supported Platforms Metric
0.2.1 passed this metric
Testing File Metric
0.2.1 failed this metric
Failure: To pass this metric, your cookbook metadata must include a source url, the source url must be in the form of https://github.com/user/repo, and your repo must contain a TESTING.md file
Version Tag Metric
0.2.1 passed this metric
0.2.1 failed this metric
0.2.1 failed this metric
Failure: To pass this metric, your cookbook metadata must include a source url, the source url must be in the form of https://github.com/user/repo, and your repo must contain a CONTRIBUTING.md file
Foodcritic Metric
0.2.1 failed this metric
FC009: Resource attribute not recognised: github_users/recipes/default.rb:35
FC064: Ensure issues_url is set in metadata: github_users/metadata.rb:1
FC065: Ensure source_url is set in metadata: github_users/metadata.rb:1
FC066: Ensure chef_version is set in metadata: github_users/metadata.rb:1
FC069: Ensure standardized license defined in metadata: github_users/metadata.rb:1
Run with Foodcritic Version 14.3.0 with tags metadata,correctness ~FC031 ~FC045 and failure tags any
No Binaries Metric
0.2.1 passed this metric
Publish Metric
0.2.1 passed this metric
Supported Platforms Metric
0.2.1 passed this metric
Testing File Metric
0.2.1 failed this metric
Failure: To pass this metric, your cookbook metadata must include a source url, the source url must be in the form of https://github.com/user/repo, and your repo must contain a TESTING.md file
Version Tag Metric
0.2.1 passed this metric
0.2.1 failed this metric
FC064: Ensure issues_url is set in metadata: github_users/metadata.rb:1
FC065: Ensure source_url is set in metadata: github_users/metadata.rb:1
FC066: Ensure chef_version is set in metadata: github_users/metadata.rb:1
FC069: Ensure standardized license defined in metadata: github_users/metadata.rb:1
Run with Foodcritic Version 14.3.0 with tags metadata,correctness ~FC031 ~FC045 and failure tags any
0.2.1 passed this metric
Publish Metric
0.2.1 passed this metric
Supported Platforms Metric
0.2.1 passed this metric
Testing File Metric
0.2.1 failed this metric
Failure: To pass this metric, your cookbook metadata must include a source url, the source url must be in the form of https://github.com/user/repo, and your repo must contain a TESTING.md file
Version Tag Metric
0.2.1 passed this metric
0.2.1 passed this metric
0.2.1 passed this metric
Testing File Metric
0.2.1 failed this metric
Failure: To pass this metric, your cookbook metadata must include a source url, the source url must be in the form of https://github.com/user/repo, and your repo must contain a TESTING.md file
Version Tag Metric
0.2.1 passed this metric
0.2.1 failed this metric
0.2.1 passed this metric