2015-01-28 19:51:43 -08:00
|
|
|
# Class: httpd::ssl
|
2010-09-01 18:01:04 -04:00
|
|
|
#
|
|
|
|
# This class installs Apache SSL capabilities
|
|
|
|
#
|
|
|
|
# Parameters:
|
|
|
|
# - The $ssl_package name from the apache::params class
|
|
|
|
#
|
|
|
|
# Actions:
|
|
|
|
# - Install Apache SSL capabilities
|
|
|
|
#
|
|
|
|
# Requires:
|
|
|
|
#
|
|
|
|
# Sample Usage:
|
|
|
|
#
|
2015-01-28 19:51:43 -08:00
|
|
|
class httpd::ssl {
|
2010-09-01 18:01:04 -04:00
|
|
|
|
2020-03-05 09:14:07 -08:00
|
|
|
include httpd
|
2012-02-29 23:51:46 -08:00
|
|
|
|
2012-04-16 15:20:00 +08:00
|
|
|
case $::operatingsystem {
|
2012-04-05 17:04:55 -04:00
|
|
|
'centos', 'fedora', 'redhat', 'scientific': {
|
|
|
|
package { 'apache_ssl_package':
|
|
|
|
ensure => installed,
|
2015-01-28 19:51:43 -08:00
|
|
|
name => $httpd::params::ssl_package,
|
2012-04-05 17:04:55 -04:00
|
|
|
require => Package['httpd'],
|
|
|
|
}
|
|
|
|
}
|
|
|
|
'ubuntu', 'debian': {
|
2015-09-15 10:08:02 -03:00
|
|
|
httpd::mod { 'ssl': ensure => present, }
|
2012-04-05 17:04:55 -04:00
|
|
|
}
|
|
|
|
default: {
|
2015-01-28 19:51:43 -08:00
|
|
|
fail( "${::operatingsystem} not defined in httpd::ssl.")
|
2012-04-05 17:04:55 -04:00
|
|
|
}
|
2010-09-01 18:01:04 -04:00
|
|
|
}
|
2015-10-19 19:51:14 +00:00
|
|
|
|
|
|
|
if $::lsbdistcodename == 'precise' {
|
|
|
|
# Unconditionally enable SNI on Ubuntu 12.04 (it's on by default in 14.04)
|
|
|
|
file { '/etc/apache2/conf.d/sni':
|
|
|
|
ensure => present,
|
|
|
|
source => 'puppet:///modules/httpd/sni',
|
|
|
|
notify => Service['httpd'],
|
|
|
|
require => Package['httpd'],
|
|
|
|
}
|
|
|
|
}
|
2010-09-01 18:01:04 -04:00
|
|
|
}
|