
Replace usage of httpd_mod with the httpd::mod wrapper to allow classes to be applied as well on RedHat systems and have the httpd service ordering fixed. Change-Id: If790efd7b465e77c2eca7710f79e563d69ee3783 Co-Authored-By: Danilo Ramalho <dramalho@thoughtworks.com>
35 lines
678 B
Puppet
35 lines
678 B
Puppet
# Class: httpd::ssl
|
|
#
|
|
# This class installs Apache SSL capabilities
|
|
#
|
|
# Parameters:
|
|
# - The $ssl_package name from the apache::params class
|
|
#
|
|
# Actions:
|
|
# - Install Apache SSL capabilities
|
|
#
|
|
# Requires:
|
|
#
|
|
# Sample Usage:
|
|
#
|
|
class httpd::ssl {
|
|
|
|
include ::httpd
|
|
|
|
case $::operatingsystem {
|
|
'centos', 'fedora', 'redhat', 'scientific': {
|
|
package { 'apache_ssl_package':
|
|
ensure => installed,
|
|
name => $httpd::params::ssl_package,
|
|
require => Package['httpd'],
|
|
}
|
|
}
|
|
'ubuntu', 'debian': {
|
|
httpd::mod { 'ssl': ensure => present, }
|
|
}
|
|
default: {
|
|
fail( "${::operatingsystem} not defined in httpd::ssl.")
|
|
}
|
|
}
|
|
}
|