File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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': }
Original file line number Diff line number Diff line change 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" :
Original file line number Diff line number Diff line change 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 }
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
Original file line number Diff line number Diff line change 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}
Original file line number Diff line number Diff line change 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 }
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
You can’t perform that action at this time.
0 commit comments