Note this version of the cookbook will be replaced with an entirely new version as a major version bump. It is here for legacy reasons.
This cookbook will create a deploy user if there is the appropriate
data bag item for a user e.g. data_bags/users/deploy.json
. Note since the
private key is sensitive, it should be an encrypted data bag.
{
"id": "deploy",
"groups": ["deploy"],
"ssh_private_key": "-----BEGIN RSA PRIVATE KEY----- ...",
"ssh_public_key": "ssh-rsa AAAA... comment"
}
It will also load the appropriate known SSH host keys to the global
/etc/sshd/ssh_known_hosts
so that these SSH hosts will already be trusted at
deployment time to avoid interactivity problems. The default will add
github.com's host key, but can be configured via
node['capistrano']['known_hosts']
This attribute will take either an array of SSH host domains (which ssh_known_hosts
cookbook will look up the SSH host key for, or a Hash of {host=>host key}
.
- Fork the repository on Github
- Create a named feature branch (like
add_component_x
) - Write you change
- Write tests for your change (if applicable)
- Run the tests, ensuring they all pass
- Submit a Pull Request using Github
stove is used to create git tags and publish the cookbook on supermarket.chef.io.
To tag/publish you need to be a contributor to the cookbook on Supermarket and run:
$ stove login --username <your username> --key ~/.chef/<your username>.pem
$ rake publish
It will take the version defined in metadata.rb, create a tag, and push the cookbook to http://supermarket.chef.io/cookbooks/deploy-user
- Author:: Andy Thompson
Copyright:: 2014-2016 The Inviqa Group Ltd
See LICENSE file