fnichol/chef-user — pull request #22 by anthroprose (2012-10-29 14:46:10+00:00)
Title: Automated SSH Public Key Distribution within a Cluster

Added the ability to automatically distribute public keys within a cluster.

For every user that is created using the user_resource on a node that has attributes:
cluster { name : "ClusterName", role : "master" }

The public key will be distributed to every node that has attributes:
cluster { name : "ClusterName", role : "slave" }

Example:

user_account 'comaccount' do
comment 'Communications Account'
ssh_keygen true
ssh_store_key true
ssh_pull_key true
home '/home/comaccount'
manage_home true
end

By including this in your recipe and than setting appropriate cluster attributes will make it so the comaccount on master can always communicate via ssh using keys to all of its slaves.