Skip to content

Instantly share code, notes, and snippets.

@andredumas
Created March 18, 2014 03:30
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 andredumas/9613071 to your computer and use it in GitHub Desktop.
Save andredumas/9613071 to your computer and use it in GitHub Desktop.
Chef port of datetime puppet manifest (https://gist.github.com/andredumas/9612907)
package "language-pack-en" do
action :install
end
package "tzdata" do
action :install
end
link "/etc/localtime" do
to "/usr/share/zoneinfo/Australia/Melbourne"
end
file "/etc/timezone" do
content "Australia/Melbourne\n"
end
execute "reconfigure-timezone" do
command "/usr/sbin/dpkg-reconfigure --frontend noninteractive tzdata"
action :nothing
end
execute "gen-locale" do
command "/usr/sbin/locale-gen en_AU.UTF-8"
action :nothing
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment