diff options
author | Tim Smith <tsmith84@gmail.com> | 2020-08-18 11:19:33 -0700 |
---|---|---|
committer | Tim Smith <tsmith84@gmail.com> | 2020-08-18 12:22:55 -0700 |
commit | 5e1ce8ccb4805bcad69e2d9c7a5fed3f6ef15671 (patch) | |
tree | 29719963f7de8a957b6eebb346565a4ee402841f /kitchen-tests | |
parent | fc953cefe6119d659973b9c635543bc06f3f1285 (diff) | |
download | chef-5e1ce8ccb4805bcad69e2d9c7a5fed3f6ef15671.tar.gz |
Refactor the timezone resource to properly load the current timezone
This way we get a proper state change instead of just showing a converge. This also removes awk/grep in not_if statements and overall improves logging.
Signed-off-by: Tim Smith <tsmith@chef.io>
Diffstat (limited to 'kitchen-tests')
-rw-r--r-- | kitchen-tests/cookbooks/end_to_end/recipes/linux.rb | 2 | ||||
-rw-r--r-- | kitchen-tests/cookbooks/end_to_end/recipes/macos.rb | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/kitchen-tests/cookbooks/end_to_end/recipes/linux.rb b/kitchen-tests/cookbooks/end_to_end/recipes/linux.rb index 051a7c9b52..012a9a7507 100644 --- a/kitchen-tests/cookbooks/end_to_end/recipes/linux.rb +++ b/kitchen-tests/cookbooks/end_to_end/recipes/linux.rb @@ -23,7 +23,7 @@ execute "sensitive sleep" do sensitive true end -timezone "UTC" +timezone "America/Los_Angeles" include_recipe "::_yum" if platform_family?("rhel") diff --git a/kitchen-tests/cookbooks/end_to_end/recipes/macos.rb b/kitchen-tests/cookbooks/end_to_end/recipes/macos.rb index 1fbc1f0aca..6ac2607caa 100644 --- a/kitchen-tests/cookbooks/end_to_end/recipes/macos.rb +++ b/kitchen-tests/cookbooks/end_to_end/recipes/macos.rb @@ -19,7 +19,7 @@ execute "sensitive sleep" do sensitive true end -timezone "GMT" +timezone "America/Los_Angeles" include_recipe "ntp" |