cookbook 'ssh-private-keys', '= 1.0.0'
ssh-private-keys (4) Versions 1.0.0 Follow0
Deploy OpenSSH private keys
cookbook 'ssh-private-keys', '= 1.0.0', :supermarket
knife supermarket install ssh-private-keys
knife supermarket download ssh-private-keys
ssh-private-keys-cookbook
Chef cookbook to deploy OpenSSH private keys on a system. Data is stored in the encrypted data bag which name is specified in the attribute node['ssh-private-keys']['data_bag_name']
(by default ssh-private-keys
). Data bag item name matches node.chef_environment
value.
Encrypted data bag format
{ "id": "development", "server1.acme.corp": { "admin1": { "id_rsa": "", } }, "server2.acme.corp": { "admin2": { "id_ed25519": "" } } }
Resources
ssh_private_key
Keys deployment is made by using ssh_private_key
resource. For example,
ssh_private_key 'admin1'
Server hostname will be automatically detected and the appropriate record will be retrieved from the encrypted data bag. All keys in the specified record (e.g. RSA, Ed25519) will be placed under user's SSH directory (/home/username/.ssh
).
License
MIT @ Alexander Pyatkin
Dependent cookbooks
This cookbook has no specified dependencies.
Contingent cookbooks
There are no cookbooks that are contingent upon this one.
Collaborator Number Metric
1.0.0 failed this metric
Failure: Cookbook has 0 collaborators. A cookbook must have at least 2 collaborators to pass this metric.
Foodcritic Metric
1.0.0 passed this metric
1.0.0 failed this metric
1.0.0 passed this metric