Manage multiple public keys in ~/.ssh/authorized_keys
Ruby Puppet
Switch branches/tags
Nothing to show
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
manifests
spec
Gemfile
Gemfile.lock
LICENSE
README.md

README.md

puppet-ssh_keys

Simple way of enabling multiple public keys in ~/.ssh/authorized_keys.

Setup

Although puppet has a built-in directive to manage public keys, it only allows specifying one public key per user. Using ssh_keys::authorized_keys, you can have multiple keys per user. Simply specify a path to an authorized_keys file you maintain on the puppet server.

ssh_keys::authorized_keys { 'bob':
  keys => 'puppet:///keys/hostname/bob',
}

This module assumes you have a user declaration for the username specified ('bob') and that their home directory is in /home.