LoginSignup
3
4

More than 5 years have passed since last update.

EC2(AmazonLinux)のタイムゾーンを変更するItamae・Chefのレシピ

Last updated at Posted at 2015-01-18

ItamaeでもChefでも同じレシピでいけます。

要件

レシピ

execute "change localtime to JST" do
  user "root"
  command <<-EOC
  cp -p /usr/share/zoneinfo/Japan /etc/localtime
  echo 'ZONE="Asia/Tokyo"' > /etc/sysconfig/clock
  echo 'UTC=false' >> /etc/sysconfig/clock
  EOC
end
3
4
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
3
4