Puppet Class: simp_apache::install

Defined in:
manifests/install.pp

Summary

Apache package management

Overview

Parameters:

  • httpd_ensure (String) (defaults to: simplib::lookup('simp_options::package_ensure', { 'default_value' => 'installed' }))

    The ensure status the httpd package

  • mod_ldap_ensure (String) (defaults to: simplib::lookup('simp_options::package_ensure', { 'default_value' => 'installed' }))

    The ensure status the mod_ldap package

  • mod_ssl_ensure (String) (defaults to: simplib::lookup('simp_options::package_ensure', { 'default_value' => 'installed' }))

    The ensure status the mod_ssl package



12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
# File 'manifests/install.pp', line 12

class simp_apache::install (
  String $httpd_ensure    = simplib::lookup('simp_options::package_ensure', { 'default_value' => 'installed' }),
  String $mod_ldap_ensure = simplib::lookup('simp_options::package_ensure', { 'default_value' => 'installed' }),
  String $mod_ssl_ensure  = simplib::lookup('simp_options::package_ensure', { 'default_value' => 'installed' }),
) {
  assert_private()

  package { 'httpd':
    ensure => $httpd_ensure
  }

  if $simp_apache::ssl {
    package { 'mod_ssl':
      ensure => $mod_ssl_ensure
    }
  }
}