Skip to content

Instantly share code, notes, and snippets.

@dodizzle
Created December 22, 2011 01:52
Show Gist options
  • Select an option

  • Save dodizzle/1508549 to your computer and use it in GitHub Desktop.

Select an option

Save dodizzle/1508549 to your computer and use it in GitHub Desktop.
##########################
# users private ssh keys #
##########################
case node[:fqdn]
when "chi-devops11a.posterprod.com","chi-devops11b.posterprod.com"
%w{david rm}.each do |user|
cookbook_file "/home/#{user}/.ssh/id_rsa" do
source "id_rsa.#{user}"
mode 0600
owner "#{user}"
group "#{user}"
end
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment