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

Add Debian hiera data to match package defaults #177

Open
wants to merge 1 commit 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
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
kenyon marked this conversation as resolved.
Show resolved Hide resolved
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
Loading