Skip to content

Commit b9860c7

Browse files
Merge pull request #146 from m0dular/SUP-2682-timer-template
(SUP-2682) Remove Requires= property from timers
2 parents 24dc134 + 2a45aed commit b9860c7

File tree

3 files changed

+0
-14
lines changed

3 files changed

+0
-14
lines changed

spec/acceptance/pe_system_spec.rb

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -46,12 +46,6 @@
4646
expect(apply_manifest(pp).exit_code).not_to eq(1)
4747
end
4848

49-
it 'system puppet_* metric services should be active or inactive' do
50-
run_shell('systemctl list-units --type=service | grep "puppet_system.*metrics"') do |r|
51-
expect(r.stdout).to match(%r{activ})
52-
end
53-
end
54-
5549
context 'system timers are running' do
5650
it { expect(service('puppet_system_cpu-metrics.timer')).to be_running }
5751
it { expect(service('puppet_system_cpu-tidy.timer')).to be_running }
@@ -82,12 +76,6 @@ class { 'puppet_metrics_collector::system':
8276
expect(package('sysstat')).to be_installed
8377
end
8478

85-
it 'system puppet_* metric services should be active or inactive' do
86-
run_shell('systemctl list-units --type=service | grep "puppet_system.*metrics"') do |r|
87-
expect(r.stdout).to match(%r{activ})
88-
end
89-
end
90-
9179
context 'system timers are running' do
9280
it { expect(service('puppet_system_cpu-metrics.timer')).to be_running }
9381
it { expect(service('puppet_system_cpu-tidy.timer')).to be_running }

templates/tidy_timer.epp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
<%- | String $service | -%>
22
[Unit]
33
Description=Timer to tidy Puppet metrics
4-
Requires=<%= $service %>-tidy.service
54

65
[Timer]
76
OnCalendar=*-*-* 00:00:00

templates/timer.epp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
<%- | String $service, String $minute | -%>
22
[Unit]
33
Description=Timer to collect Puppet metrics
4-
Requires=<%= $service %>-metrics.service
54

65
[Timer]
76
OnCalendar=*-*-* *:<%= $minute %>

0 commit comments

Comments
 (0)