Skip to content

Commit 95e12f3

Browse files
committed
Check for pool or server in chrony.conf
The chrony cookbook uses `pool` https://github.com/chef-cookbooks/chrony/blob/master/templates/chrony_client.conf.erb#L8 `pool` is also referenced in https://chrony.tuxfamily.org/faq.html#_what_is_the_minimum_recommended_configuration_for_an_ntp_client Signed-off-by: joe.nuspl <joe.nuspl@workday.com>
1 parent e9b52ba commit 95e12f3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

controls/2_2_special_purpose_services.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@
108108
describe.one do
109109
%w(/etc/chrony/chrony.conf /etc/chrony.conf).each do |f|
110110
describe file(f) do
111-
its(:content) { should match(/^server\s+\S+/) }
111+
its('content') { should match(/^(pool|server)\s+\S+/) }
112112
end
113113
end
114114
end

0 commit comments

Comments
 (0)