An open API service indexing awesome lists of open source software.

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

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
```