Skip to content

Instantly share code, notes, and snippets.

@suzuki
Created November 19, 2014 13:00
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save suzuki/37c0ff0a0e065ef4f835 to your computer and use it in GitHub Desktop.
Save suzuki/37c0ff0a0e065ef4f835 to your computer and use it in GitHub Desktop.
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