
In anticipation of puppet 4, start trying to deal with puppet 4 things that can be helpfully predicted by puppet lint plugins. Also fix errors caught by the puppet-lint-unquoted_string-check and puppet-lint-absolute_classname-check gems. Change-Id: I9d74d25d2f2c95ec52a6db3bf070903240e1b933
35 lines
677 B
Puppet
35 lines
677 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.")
|
|
}
|
|
}
|
|
}
|