Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sent Centos and RHEL to the RHEL recipe #22

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion metadata.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
maintainer_email "[email protected]"
license "Apache 2.0"
description "Configure the system timezone on Linux systems"
version "0.2.0"
version "0.2.1"

replaces "timezone"

Expand Down
7 changes: 4 additions & 3 deletions recipes/default.rb
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,11 @@
'default' => 'tzdata'
)

case node.platform_family
when 'debian', 'fedora', 'pld', 'rhel'
case node['platform_family']
when 'debian', 'fedora', 'pld'
include_recipe "timezone-ii::#{node.platform_family}"

when 'rhel', 'centos'
include_recipe "timezone-ii::rhel"
else
if node.os == "linux"
# Load the generic Linux recipe if there's no better known way to change the
Expand Down
1 change: 1 addition & 0 deletions templates/redhat/clock.erb
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
ZONE="<%= node[:tz] %>"