Skip to content

Commit

Permalink
Add Debian hiera data to match package defaults
Browse files Browse the repository at this point in the history
  • Loading branch information
kenyon committed Jul 12, 2023
1 parent 05baf05 commit 5ee0c28
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
5 changes: 5 additions & 0 deletions data/Debian.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
chrony::driftfile: /var/lib/chrony/chrony.drift
chrony::leapsectz: right/UTC
chrony::makestep_seconds: 1
chrony::maxupdateskew: 100.0
chrony::ntsdumpdir: /var/lib/chrony
6 changes: 5 additions & 1 deletion spec/classes/chrony_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -118,8 +118,12 @@
['0.pool.ntp.org', '1.pool.ntp.org', '2.pool.ntp.org', '3.pool.ntp.org'].each do |s|
it { is_expected.to contain_file(config_file).with_content(%r{^\s*server #{s} iburst$}) }
end
it { is_expected.to contain_file(config_file).with_content(%r{^\s*driftfile /var/lib/chrony/drift$}) }
it { is_expected.to contain_file(config_file).with_content(%r{^\s*driftfile /var/lib/chrony/chrony.drift$}) }
it { is_expected.to contain_file(config_file).with_content(%r{^\s*rtcsync$}) }
it { is_expected.to contain_file(config_file).with_content(%r{^\s*leapsectz right/UTC$}) }
it { is_expected.to contain_file(config_file).with_content(%r{^\s*makestep 1 3$}) }
it { is_expected.to contain_file(config_file).with_content(%r{^\s*maxupdateskew 100.0$}) }
it { is_expected.to contain_file(config_file).with_content(%r{^\s*ntsdumpdir /var/lib/chrony$}) }
it { is_expected.to contain_file(config_file).without_content(%r{^\s*dumpdir}) }
it { is_expected.to contain_file(config_file).without_content(%r{^\s*ntpsigndsocket}) }
it { is_expected.to contain_file(config_file).without_content(%r{^\s*\n\s*$}) }
Expand Down

0 comments on commit 5ee0c28

Please sign in to comment.