We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b70c525 commit ca4dd31Copy full SHA for ca4dd31
manifests/mod/watchdog.pp
@@ -10,7 +10,11 @@
10
) {
11
include apache
12
13
- apache::mod { 'watchdog':
+ $module_builtin = $facts['os']['family'] in ['Debian']
14
+
15
+ unless $module_builtin {
16
+ apache::mod { 'watchdog':
17
+ }
18
}
19
20
if $watchdog_interval {
spec/classes/mod/watchdog_spec.rb
@@ -9,7 +9,11 @@
9
os_facts
end
- it { is_expected.to contain_apache__mod('watchdog') }
+ if os_facts[:os]['family'] == 'Debian'
+ it { is_expected.not_to contain_apache__mod('watchdog') }
+ else
+ it { is_expected.to contain_apache__mod('watchdog') }
+ end
context 'with default configuration' do
it { is_expected.not_to contain_file('watchdog.conf') }
0 commit comments