Skip to content

Instantly share code, notes, and snippets.

@suzuki

suzuki/default.rb

Created Nov 19, 2014
Embed
What would you like to do?
group 'suzuki' do
group_name 'suzuki'
action [:create]
end
user 'suzuki' do
comment 'Norio Suzuki'
group 'suzuki'
home '/home/suzuki'
shell '/bin/zsh'
password nil
supports :manage_home => true
action [:create, :manage]
end
directory '/home/suzuki/.ssh' do
owner 'suzuki'
group 'suzuki'
mode '0700'
action :create
end
cookbook_file '/home/suzuki/.ssh/authorized_keys' do
source 'authorized_keys'
owner 'suzuki'
group 'suzuki'
mode '0600'
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment