Last active
August 29, 2015 14:19
-
-
Save johntips/ca6e77e22f82a18346dd to your computer and use it in GitHub Desktop.
chef_sumple.rb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
p "ユーザー作成" | |
%w{teiyu guchi soya shota}.each do |username| | |
user username do | |
shell "/bin/bash" | |
password node['passwd'] | |
home "/home/#{username}" | |
action :create | |
end | |
end | |
p "パッケージインストール" | |
apt_package "tmpreaper" do | |
action :install | |
end | |
p "テンプレートによる更新" | |
template "/etc/tmpreaper.conf" do | |
owner "root" | |
group "root" | |
mode "0644" | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment