Skip to content

Commit

Permalink
Merge pull request #1054 from butlern/ticket/1829-ensure_resources_no…
Browse files Browse the repository at this point in the history
…tify_apache_service_class

Ensure resources notify Apache::Service class
  • Loading branch information
igalic committed Mar 9, 2015
2 parents 87b134c + 3f94e6b commit 9c622c1
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2509,7 +2509,7 @@ Something along the lines of:
exec { 'restorecon_apache':
command => 'restorecon -Rv /apache_spec',
path => '/bin:/usr/bin/:/sbin:/usr/sbin',
before => Service['httpd'],
before => Class['Apache::Service'],
require => Class['apache'],
}
class { 'apache': }
Expand Down
2 changes: 1 addition & 1 deletion manifests/balancer.pp
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@
owner => '0',
group => '0',
mode => '0644',
notify => Service['httpd'],
notify => Class['Apache::Service'],
}

concat::fragment { "00-${name}-header":
Expand Down
4 changes: 2 additions & 2 deletions manifests/custom_config.pp
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
$filename = "${priority_prefix}${filename_middle}.conf"

if ! $verify_config or $ensure == 'absent' {
$notifies = Service['httpd']
$notifies = Class['Apache::Service']
} else {
$notifies = undef
}
Expand All @@ -53,7 +53,7 @@
command => $verify_command,
subscribe => File["apache_${name}"],
refreshonly => true,
notify => Service['httpd'],
notify => Class['Apache::Service'],
before => Exec["remove ${name} if invalid"],
}

Expand Down
2 changes: 1 addition & 1 deletion manifests/mod/auth_cas.pp
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@
content => template('apache/mod/auth_cas.conf.erb'),
require => [ Exec["mkdir ${::apache::mod_dir}"], ],
before => File[$::apache::mod_dir],
notify => Service['httpd'],
notify => Class['Apache::Service'],
}

}
4 changes: 2 additions & 2 deletions spec/defines/custom_config_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
'refreshonly' => 'true',
'subscribe' => 'File[apache_rspec]',
'command' => '/usr/sbin/apachectl -t',
'notify' => 'Service[httpd]',
'notify' => 'Class[Apache::Service]',
'before' => 'Exec[remove rspec if invalid]',
})
}
Expand Down Expand Up @@ -83,7 +83,7 @@
it { is_expected.to_not contain_exec('service notify for rspec') }
it { is_expected.to_not contain_exec('remove rspec if invalid') }
it { is_expected.to contain_file('apache_rspec').with({
'notify' => 'Service[httpd]'
'notify' => 'Class[Apache::Service]'
})
}
end
Expand Down

0 comments on commit 9c622c1

Please sign in to comment.