Changed apache::sslserver to use systemd on Fedora.
This commit is contained in:
parent
2758fb1a35
commit
77decd746e
2 changed files with 36 additions and 7 deletions
|
@ -150,12 +150,27 @@ class apache::redhat::sslserver {
|
|||
notify => Service["httpsd"],
|
||||
}
|
||||
|
||||
file { "/etc/init.d/httpsd":
|
||||
ensure => present,
|
||||
source => "puppet:///modules/apache/httpsd",
|
||||
mode => "0755",
|
||||
owner => root,
|
||||
group => root,
|
||||
case $operatingsystem {
|
||||
"fedora": {
|
||||
file { "/lib/systemd/system/httpsd.service":
|
||||
ensure => present,
|
||||
source => "puppet:///modules/apache/httpsd.service",
|
||||
mode => "0644",
|
||||
owner => "root",
|
||||
group => "root",
|
||||
before => Service["httpsd"],
|
||||
}
|
||||
}
|
||||
default: {
|
||||
file { "/etc/init.d/httpsd":
|
||||
ensure => present,
|
||||
source => "puppet:///modules/apache/httpsd",
|
||||
mode => "0755",
|
||||
owner => "root",
|
||||
group => "root",
|
||||
before => Service["httpsd"],
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
file { "/usr/sbin/httpsd":
|
||||
|
@ -174,7 +189,6 @@ class apache::redhat::sslserver {
|
|||
require => [ Package["httpd"],
|
||||
Package["mod_ssl"],
|
||||
File["/etc/httpd/conf/httpsd.conf"],
|
||||
File["/etc/init.d/httpsd"],
|
||||
File["/usr/sbin/httpsd"], ],
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue