Use the correct name for apache
The name of the apache package and service are different on different operating systems. Fortunately, the apache module populates a variable with the correct name for us. This is also true of the apache ssl package. Change-Id: I7d93e56281f828cba9262c135b0beb43dce9748a
This commit is contained in:
parent
29f3962220
commit
4feb6c16c5
|
@ -21,7 +21,7 @@ define lodgeit::site(
|
|||
ensure => present,
|
||||
content => template('lodgeit/upstart.erb'),
|
||||
replace => true,
|
||||
require => Package['apache2'],
|
||||
require => Package[$::apache::params::apache_name],
|
||||
notify => Service["${name}-paste"],
|
||||
}
|
||||
|
||||
|
@ -66,6 +66,6 @@ define lodgeit::site(
|
|||
service { "${name}-paste":
|
||||
ensure => running,
|
||||
provider => upstart,
|
||||
require => Service['apache2'],
|
||||
require => Service[$::apache::params::apache_name],
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue