added service control
This commit is contained in:
@@ -24,15 +24,12 @@
|
||||
class cd_apache::params (
|
||||
|
||||
$pkg_ensure = 'latest',
|
||||
$reqpackages = ['httpd24','httpd24-mod_ssl'],
|
||||
$ae_service = 'httpd24-httpd',
|
||||
|
||||
) {
|
||||
|
||||
# installation section
|
||||
$reqpackages = $::operatingsystem ? {
|
||||
/(?i-mx:centos|fedora|redhat)/ => ['httpd24','httpd24-mod_ssl'],
|
||||
}
|
||||
|
||||
$ae_service = 'httpd'
|
||||
|
||||
# includes must be last
|
||||
|
||||
|
||||
@@ -27,11 +27,10 @@ class cd_apache::server::service (
|
||||
|
||||
require cd_apache::server::files
|
||||
|
||||
# service { $ae_service:
|
||||
# ensure => running,
|
||||
# hasstatus => true,
|
||||
# hasrestart => true,
|
||||
# enable => true,
|
||||
# }
|
||||
|
||||
service { $ae_service:
|
||||
ensure => running,
|
||||
hasstatus => true,
|
||||
hasrestart => true,
|
||||
enable => true,
|
||||
}
|
||||
}
|
||||
|
||||
@@ -27,4 +27,6 @@ class cd_apache::server::user (
|
||||
|
||||
require cd_apache::server::install
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user