Skip to content

Commit

Permalink
(common) explicitly set leapsecmode to 'system'
Browse files Browse the repository at this point in the history
This is the default behavior and setting the kernel the TAI offset does
not work with any other leapsecmode.
  • Loading branch information
jhoblitt committed Nov 11, 2022
1 parent 0fb8f4c commit 0b75912
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
1 change: 1 addition & 0 deletions hieradata/common.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,7 @@ lookup_options:

hosts::purge_hosts: true
timezone::timezone: "UTC"
chrony::leapsecmode: "system"
chrony::leapsectz: "right/UTC"
ssh::storeconfigs_enabled: false
ssh::server_options:
Expand Down
7 changes: 7 additions & 0 deletions spec/spec_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -198,6 +198,13 @@ def node_files
},
)
end

it do
is_expected.to contain_class('chrony').with(
leapsecmode: 'system',
leapsectz: 'right/UTC',
)
end
end

shared_examples 'lhn sysctls', :lhn_node do
Expand Down

0 comments on commit 0b75912

Please sign in to comment.