summaryrefslogtreecommitdiff
path: root/manifests/ssl.pp
blob: 124d376f65807afee3379b48c8ad1275e5a874f7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
# 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.")
    }
  }
}