From 749e088034c45383ac723241ca6e4f82aff4f5ac Mon Sep 17 00:00:00 2001 From: Tim Meusel Date: Mon, 7 Mar 2022 13:16:25 +0100 Subject: [PATCH] Arch Linux: also manage chrony-wait.service https://archlinux.org/packages/community/x86_64/chrony/ proofes that the package contains usr/lib/systemd/system/chrony-wait.service. --- data/Archlinux.yaml | 1 + spec/classes/chrony_spec.rb | 6 +++--- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/data/Archlinux.yaml b/data/Archlinux.yaml index 11ed31a..b8692a7 100644 --- a/data/Archlinux.yaml +++ b/data/Archlinux.yaml @@ -7,3 +7,4 @@ chrony::config_keys: /etc/chrony.keys chrony::config: /etc/chrony.conf chrony::dumpdir: /var/lib/chrony chrony::rtconutc: true +chrony::wait_manage: true diff --git a/spec/classes/chrony_spec.rb b/spec/classes/chrony_spec.rb index bb8201b..8c1cc7f 100644 --- a/spec/classes/chrony_spec.rb +++ b/spec/classes/chrony_spec.rb @@ -468,7 +468,7 @@ end case facts[:os]['family'] - when 'RedHat', 'Suse' + when 'RedHat', 'Suse', 'Archlinux' context 'using defaults' do it do is_expected.to contain_service('chrony-wait.service').with( @@ -511,7 +511,7 @@ end case facts[:os]['family'] - when 'RedHat', 'Suse' + when 'RedHat', 'Suse', 'Archlinux' it do is_expected.to contain_service('chrony-wait.service').with( ensure: 'stopped', @@ -531,7 +531,7 @@ end case facts[:os]['family'] - when 'RedHat', 'Suse' + when 'RedHat', 'Suse', 'Archlinux' it do is_expected.to contain_service('chrony-wait.service').with( ensure: 'running',