Sha256: 00ea9beff1e363607711c590c2e8a223c3bcd0cebafe33ce71fc4edd4b63bb90

Contents?: true

Size: 734 Bytes

Versions: 11

Compression:

Stored size: 734 Bytes

Contents

# Class: apache::service
#
# Manages the Apache daemon
#
# Parameters:
#
# Actions:
#   - Manage Apache service
#
# Requires:
#
# Sample Usage:
#
#    sometype { 'foo':
#      notify => Class['apache::service],
#    }
#
#
class apache::service (
  $service_name   = $apache::params::service_name,
  $service_enable = true,
  $service_ensure = 'running',
) {
  # The base class must be included first because parameter defaults depend on it
  if ! defined(Class['apache::params']) {
    fail('You must include the apache::params class before using any apache defined resources')
  }
  validate_bool($service_enable)

  service { 'httpd':
    ensure => $service_ensure,
    name   => $service_name,
    enable => $service_enable,
  }
}

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
freighthop-0.6.1 modules/apache/manifests/service.pp
freighthop-0.6.0 modules/apache/manifests/service.pp
freighthop-0.5.2 modules/apache/manifests/service.pp
freighthop-0.5.1 modules/apache/manifests/service.pp
freighthop-0.5.0 modules/apache/manifests/service.pp
freighthop-0.4.1 modules/apache/manifests/service.pp
freighthop-0.4.0 modules/apache/manifests/service.pp
freighthop-0.3.3 modules/apache/manifests/service.pp
freighthop-0.3.2 modules/apache/manifests/service.pp
freighthop-0.3.1 modules/apache/manifests/service.pp
freighthop-0.3.0 modules/apache/manifests/service.pp