cookbook 'rack_user', '~> 0.2.0'
rack_user (5) Versions 0.2.0 Follow0
Installs/Configures rack_user
cookbook 'rack_user', '~> 0.2.0', :supermarket
knife supermarket install rack_user
knife supermarket download rack_user
rack_user-cookbook
The Rackspace rack_user cookbook provides resource primitives (LWRPs) for use in recipes.
The goal is to offer a resource to add a rack user with a list of authorized keys and sudo access.
Currently it only supports to get keys from a remote file, but it might be extended later.
Supported Platforms
- Centos 6.5
- Ubuntu 12.04
- Ubuntu 14.04
Usage
Place a dependency on the rack_user cookbook in your cookbook's metadata.rb
depends 'rack_user'
Then, in a recipe:
rack_user 'default' do
action :create
end
Resources
rack_user
The rack_user
resource creates a rack
user with a list of authorized keys.
Parameters
-
location
- Where do get the authorized key file, default to https://raw.github.com/rackops/authorized_keys/master/authorized_keys'
Actions
-
:create
- Create therack
user -
:remove
- remove therack
user
Examples
Create the user with an authorized key file from a gist
rack_user 'default' do
location 'https://gist.githubusercontent.com/dummy_user/af613872c3d029a94c88/raw/1d57582215ac6316f55b956691db1dba8339fcdd/test'
end
Remove the user
rack_user 'default' do
action :remove
end
Contributing
- Fork the repository on Github
- Create a named feature branch (i.e.
add-new-recipe
) - Write your change
- Write tests for your change (if applicable)
- Run the tests, ensuring they all pass
- Submit a Pull Request
License and Authors
Author:: Julien Berard (jujugrrr@gmail.com)
rack_user CHANGELOG
0.2.0
Adding support for external password creation.
Updating existing remove tests.
0.1.1
Allow ssh nopassword to not lock rack user. It allows to ssh as rack even when UsePAM no is set
http://arlimus.github.io/articles/usepam/
0.1.0
Do not call the default recipes for sudo (not needed for for LWRP call with rack user) or user (no-op anyway).
0.0.2
Allow for redirects on location
parameter to resource.
0.0.1
Initial release.
Collaborator Number Metric
0.2.0 failed this metric
Failure: Cookbook has 1 collaborators. A cookbook must have at least 2 collaborators to pass this metric.
Contributing File Metric
0.2.0 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.0 passed this metric
No Binaries Metric
0.2.0 passed this metric
Testing File Metric
0.2.0 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.0 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 include a tag that matches this cookbook version number
0.2.0 failed this metric
0.2.0 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.0 passed this metric
No Binaries Metric
0.2.0 passed this metric
Testing File Metric
0.2.0 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.0 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 include a tag that matches this cookbook version number
0.2.0 passed this metric
0.2.0 passed this metric
Testing File Metric
0.2.0 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.0 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 include a tag that matches this cookbook version number
0.2.0 failed this metric
0.2.0 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 include a tag that matches this cookbook version number