Skip to content

Commit 9c622c1

Browse files
committed
Merge pull request #1054 from butlern/ticket/1829-ensure_resources_notify_apache_service_class
Ensure resources notify Apache::Service class
2 parents 87b134c + 3f94e6b commit 9c622c1

5 files changed

Lines changed: 7 additions & 7 deletions

File tree

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2509,7 +2509,7 @@ Something along the lines of:
25092509
exec { 'restorecon_apache':
25102510
command => 'restorecon -Rv /apache_spec',
25112511
path => '/bin:/usr/bin/:/sbin:/usr/sbin',
2512-
before => Service['httpd'],
2512+
before => Class['Apache::Service'],
25132513
require => Class['apache'],
25142514
}
25152515
class { 'apache': }

manifests/balancer.pp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@
5050
owner => '0',
5151
group => '0',
5252
mode => '0644',
53-
notify => Service['httpd'],
53+
notify => Class['Apache::Service'],
5454
}
5555

5656
concat::fragment { "00-${name}-header":

manifests/custom_config.pp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434
$filename = "${priority_prefix}${filename_middle}.conf"
3535

3636
if ! $verify_config or $ensure == 'absent' {
37-
$notifies = Service['httpd']
37+
$notifies = Class['Apache::Service']
3838
} else {
3939
$notifies = undef
4040
}
@@ -53,7 +53,7 @@
5353
command => $verify_command,
5454
subscribe => File["apache_${name}"],
5555
refreshonly => true,
56-
notify => Service['httpd'],
56+
notify => Class['Apache::Service'],
5757
before => Exec["remove ${name} if invalid"],
5858
}
5959

manifests/mod/auth_cas.pp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@
4242
content => template('apache/mod/auth_cas.conf.erb'),
4343
require => [ Exec["mkdir ${::apache::mod_dir}"], ],
4444
before => File[$::apache::mod_dir],
45-
notify => Service['httpd'],
45+
notify => Class['Apache::Service'],
4646
}
4747

4848
}

spec/defines/custom_config_spec.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
'refreshonly' => 'true',
3131
'subscribe' => 'File[apache_rspec]',
3232
'command' => '/usr/sbin/apachectl -t',
33-
'notify' => 'Service[httpd]',
33+
'notify' => 'Class[Apache::Service]',
3434
'before' => 'Exec[remove rspec if invalid]',
3535
})
3636
}
@@ -83,7 +83,7 @@
8383
it { is_expected.to_not contain_exec('service notify for rspec') }
8484
it { is_expected.to_not contain_exec('remove rspec if invalid') }
8585
it { is_expected.to contain_file('apache_rspec').with({
86-
'notify' => 'Service[httpd]'
86+
'notify' => 'Class[Apache::Service]'
8787
})
8888
}
8989
end

0 commit comments

Comments
 (0)