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.
- Centos 6.5
- Ubuntu 12.04
- Ubuntu 14.04
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
The rack_user
resource creates a rack
user with a list of authorized keys.
location
- Where do get the authorized key file, default to https://raw.github.com/rackops/authorized_keys/master/authorized_keys'
:create
- Create therack
user:remove
- remove therack
user
rack_user 'default' do
location 'https://gist.githubusercontent.com/dummy_user/af613872c3d029a94c88/raw/1d57582215ac6316f55b956691db1dba8339fcdd/test'
end
rack_user 'default' do
action :remove
end
- 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
Author:: Julien Berard (jujugrrr@gmail.com)