https://github.com/smartlogic/github_keys-cookbook
Chef Cookbook for loading public keys into a .ssh/authorized_keys file as defined in GitHub
https://github.com/smartlogic/github_keys-cookbook
Last synced: 2 months ago
JSON representation
Chef Cookbook for loading public keys into a .ssh/authorized_keys file as defined in GitHub
- Host: GitHub
- URL: https://github.com/smartlogic/github_keys-cookbook
- Owner: smartlogic
- Created: 2014-10-08T22:07:41.000Z (over 11 years ago)
- Default Branch: master
- Last Pushed: 2015-03-17T16:54:46.000Z (over 11 years ago)
- Last Synced: 2026-01-19T16:46:30.654Z (5 months ago)
- Language: Ruby
- Size: 141 KB
- Stars: 0
- Watchers: 9
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
Description
===========
Installs/Configures a server user with keys based on members of a github
organization
Requirements
============
None
Attributes
==========
None
Usage
=====
To be used inside your custom cookbooks. Does nothing as a standard included
recipe.
Example to set the smartlogic github orgs member keys, another user's keys, and
a deployer key to `/home/user_name/.ssh/authorized_keys`, and force the reload
of the keys every time.
```ruby
include_recipe 'github_keys' # run the default recipe to ensure the json gem is available to chef
github_keys_update 'user_name' do
github_org 'smartlogic'
github_users ( ['smarterlogic'] )
additional_keys ( { "deploy-key" => ["CAFEBEEF"] } )
force_key_load true
end
```