-
Notifications
You must be signed in to change notification settings - Fork 52
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update timezone to 0b3e3f06c7c3c4e4ab571666cceb7f4779e69856
0b3e3f06c7c3c4e4ab571666cceb7f4779e69856 new release v3.2.0 ddc989773f4cc4c17d1e8d1fb6137ae611288061 Merge branch 'blake-freebsd-support' 1f9eb2611e278e9a5aec47561f6274442663e9eb Merge branch 'freebsd-support' of https://github.com/blake/puppet-timezone into blake-freebsd-support 29b74bf3a83571c699f0cf465034adf929bd85f4 Merge pull request #20 from apitalent/master 58c0696163440ab3dc01060bad684aa5b74e62a9 Merge pull request #18 from gerapeldoorn/master 5aae6a23c2339f1c7a325171f64f4b8efcc4c2a6 Merge pull request #17 from jlambert121/issue_14 10974344d1733e250fe0b11194f84b375e089418 Merge pull request #16 from jlambert121/rhel7 706cef09d854dd6f8a8fd01b97f8703efcb5a777 Merge pull request #1 from apitalent/lindsay-apitalent-patch-1 5e8053909c4308a15bab29390f08d111e024ce8b Update params.pp 36c0824219db044d71281eca0f58f1f6b248ca62 Add FreeBSD support 4e0154f1871b7ff63d24f5dd8be8a3cd27aee092 Update init.pp f93889526ec8ba0dcb38304cfeb007f161eee7f1 Update clock.erb 0d30bd557054366276b73edb6c76742be3ec59da Added hwutc option feeedb5f22cc09e617f73dd93070a54bcec99ca3 added docs 0d1393d47eaedfccba12655dd508c8f73bfefea8 Added parameter $hwutc to specify if the hardware clock is UTC 2e218cf468014519337671e75af3228a9d3f5ad4 add managed by puppet comment in templates 8e4152ced754cacc9619b11d8b32a650cf36293f RHEL7-based systems don't use /etc/sysconfig/clock
- Loading branch information
Showing
11 changed files
with
94 additions
and
17 deletions.
There are no files selected for viewing
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
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
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
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
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
shared_examples 'FreeBSD' do | ||
let(:facts) {{ :osfamily => "FreeBSD" }} | ||
|
||
describe "when using default class parameters" do | ||
let(:params) {{ }} | ||
|
||
it { should create_class('timezone') } | ||
it { should contain_class('timezone::params') } | ||
|
||
it do | ||
should contain_file('/etc/localtime').with({ | ||
:ensure => 'link', | ||
:target => '/usr/share/zoneinfo/UTC', | ||
}) | ||
end | ||
|
||
context 'when timezone => "Europe/Berlin"' do | ||
let(:params) {{ :timezone => "Europe/Berlin" }} | ||
|
||
it { should contain_file('/etc/localtime').with_target('/usr/share/zoneinfo/Europe/Berlin') } | ||
end | ||
|
||
context 'when autoupgrade => true' do | ||
let(:params) {{ :autoupgrade => true }} | ||
end | ||
|
||
context 'when ensure => absent' do | ||
let(:params) {{ :ensure => 'absent' }} | ||
it { should contain_file('/etc/localtime').with_ensure('absent') } | ||
end | ||
|
||
include_examples 'validate parameters' | ||
end | ||
end |
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,5 @@ | ||
# Managed by puppet - do not modify | ||
ZONE="<%= @timezone %>" | ||
<% if [email protected]? -%> | ||
UTC=<%= @hwutc %> | ||
<% end -%> |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,2 @@ | ||
# Managed by puppet - do not modify | ||
<%= @timezone %> |