fnichol/chef-user — pull request #17 by anthroprose (2012-09-26 20:58:58+00:00)
Title: Automated SSH Public Key Distribution within a Cluster

...er.

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.