Project

General

Profile

« Previous | Next » 

Revision 24b477a1

Added by Justin Sherrill over 10 years ago

Update puppet modules

View differences:

Puppetfile.lock
puppetlabs/stdlib (>= 2.2.1)
puppetlabs/concat (1.1.0-rc1)
puppetlabs/stdlib (>= 3.0.0)
puppetlabs/firewall (1.0.0)
puppetlabs/mysql (2.2.1)
puppetlabs/stdlib (>= 3.2.0)
puppetlabs/postgresql (3.3.0)
puppetlabs/apt (< 2.0.0, >= 1.1.0)
puppetlabs/concat (< 2.0.0, >= 1.0.0)
......
GIT
remote: https://github.com/Katello/puppet-katello
ref: master
sha: 186581ac0ac4a17d6a5848c2cb7d036032c61797
sha: b72e9f39e19998eba8eb3d30d4f15f04eaf05aff
specs:
katello/katello (0.0.1)
......
GIT
remote: https://github.com/puppetlabs/puppetlabs-apache
ref: master
sha: c2f6fcb6d64ec94853dd4080652e2eb644d62574
sha: b499aa2b28b6ee33fe6ce1a7b1701351413f8c5c
specs:
puppetlabs/apache (0.11.0)
puppetlabs/concat (>= 1.0.0)
puppetlabs/stdlib (>= 2.4.0)
GIT
remote: https://github.com/puppetlabs/puppetlabs-firewall
ref: 1.0.0
sha: 97897badae934f9510709a95c94e23b691d005eb
specs:
puppetlabs/firewall (1.0.0)
GIT
remote: https://github.com/puppetlabs/puppetlabs-mongodb
ref: master
sha: e3cc9a0ea895f6e01801e4620799c66c2337b7ed
sha: 7371ec8988a4abc0c70780fd119ad94e9d015348
specs:
puppetlabs/mongodb (0.7.0)
puppetlabs/apt (>= 1.0.0)
puppetlabs/stdlib (>= 2.2.0)
GIT
remote: https://github.com/puppetlabs/puppetlabs-mysql
ref: 2.2.0
sha: 1bc459d05bb43c5937fae6e65b7c77659432c76b
specs:
puppetlabs/mysql (2.2.0)
puppetlabs/stdlib (>= 3.2.0)
GIT
remote: https://github.com/puppetlabs/puppetlabs-xinetd
ref: master
......
GIT
remote: https://github.com/theforeman/puppet-foreman
ref: master
sha: 7c62faa7edb3a22a1e32326884302f3a9cae9776
sha: a72a1bb4cfaa5dd6cbee0ca23eaa674e70b6dc2d
specs:
theforeman/foreman (2.0.1)
puppetlabs/apache (~> 0.10)
......
GIT
remote: https://github.com/theforeman/puppet-foreman_proxy
ref: master
sha: dc210ac8decf4effada057002672ead76b387216
sha: ca93dfd3e51128cfe6dcce9c30a7d937b26592e1
specs:
theforeman/foreman_proxy (1.4.0)
puppetlabs/stdlib (>= 2.0.0)
theforeman/dhcp (>= 1.3.0)
theforeman/dns (>= 1.3.0)
theforeman/foreman (>= 1.3.0)
theforeman/puppet (>= 1.3.0)
theforeman/tftp (>= 1.3.0)
......
katello/qpid (>= 0)
katello/service_wait (>= 0)
puppetlabs/apache (>= 0)
puppetlabs/firewall (>= 0)
puppetlabs/mongodb (>= 0)
puppetlabs/mysql (>= 0)
puppetlabs/xinetd (>= 0)
modules/apache/manifests/balancer.pp
$collect_exported = true,
) {
include concat::setup
include apache::mod::proxy_balancer
include ::apache::mod::proxy_balancer
$target = "${::apache::params::confd_dir}/balancer_${name}.conf"
modules/apache/manifests/confd/no_accf.pp
# Template uses no variables
file { 'no-accf.conf':
ensure => 'file',
path => "${apache::confd_dir}/no-accf.conf",
path => "${::apache::confd_dir}/no-accf.conf",
content => template('apache/confd/no-accf.conf.erb'),
require => Exec["mkdir ${apache::confd_dir}"],
before => File[$apache::confd_dir],
require => Exec["mkdir ${::apache::confd_dir}"],
before => File[$::apache::confd_dir],
}
}
modules/apache/manifests/default_confd_files.pp
if $all {
case $::osfamily {
'freebsd': {
include apache::confd::no_accf
include ::apache::confd::no_accf
}
default: {
# do nothing
modules/apache/manifests/default_mods.pp
class apache::default_mods (
$all = true,
$mods = undef,
$apache_version = $apache::apache_version
$apache_version = $::apache::apache_version
) {
# These are modules required to run the default configuration.
# They are not configurable at this time, so we just include
# them to make sure it works.
case $::osfamily {
'redhat', 'freebsd': {
apache::mod { 'log_config': }
::apache::mod { 'log_config': }
}
default: {}
}
apache::mod { 'authz_host': }
::apache::mod { 'authz_host': }
# The rest of the modules only get loaded if we want all modules enabled
if $all {
case $::osfamily {
'debian': {
include apache::mod::reqtimeout
include ::apache::mod::reqtimeout
}
'redhat': {
include apache::mod::cache
include apache::mod::mime
include apache::mod::mime_magic
include apache::mod::vhost_alias
include apache::mod::rewrite
apache::mod { 'actions': }
apache::mod { 'auth_digest': }
apache::mod { 'authn_anon': }
apache::mod { 'authn_dbm': }
apache::mod { 'authz_dbm': }
apache::mod { 'authz_owner': }
apache::mod { 'expires': }
apache::mod { 'ext_filter': }
apache::mod { 'include': }
apache::mod { 'logio': }
apache::mod { 'speling': }
apache::mod { 'substitute': }
apache::mod { 'suexec': }
apache::mod { 'usertrack': }
apache::mod { 'version': }
include ::apache::mod::cache
include ::apache::mod::mime
include ::apache::mod::mime_magic
include ::apache::mod::vhost_alias
include ::apache::mod::rewrite
::apache::mod { 'actions': }
::apache::mod { 'auth_digest': }
::apache::mod { 'authn_anon': }
::apache::mod { 'authn_dbm': }
::apache::mod { 'authz_dbm': }
::apache::mod { 'authz_owner': }
::apache::mod { 'expires': }
::apache::mod { 'ext_filter': }
::apache::mod { 'include': }
::apache::mod { 'logio': }
::apache::mod { 'speling': }
::apache::mod { 'substitute': }
::apache::mod { 'suexec': }
::apache::mod { 'usertrack': }
::apache::mod { 'version': }
if $apache_version >= 2.4 {
# Lets fork it
apache::mod { 'systemd': }
::apache::mod { 'systemd': }
apache::mod { 'unixd': }
apache::mod { 'authn_core': }
::apache::mod { 'unixd': }
::apache::mod { 'authn_core': }
}
else {
apache::mod { 'authn_alias': }
apache::mod { 'authn_default': }
::apache::mod { 'authn_alias': }
::apache::mod { 'authn_default': }
}
}
'freebsd': {
include apache::mod::cache
include apache::mod::disk_cache
include apache::mod::headers
include apache::mod::info
include apache::mod::mime_magic
include apache::mod::reqtimeout
include apache::mod::rewrite
include apache::mod::userdir
include apache::mod::vhost_alias
include ::apache::mod::cache
include ::apache::mod::disk_cache
include ::apache::mod::headers
include ::apache::mod::info
include ::apache::mod::mime_magic
include ::apache::mod::reqtimeout
include ::apache::mod::rewrite
include ::apache::mod::userdir
include ::apache::mod::vhost_alias
apache::mod { 'actions': }
apache::mod { 'asis': }
apache::mod { 'auth_digest': }
apache::mod { 'authn_alias': }
apache::mod { 'authn_anon': }
apache::mod { 'authn_dbm': }
apache::mod { 'authn_default': }
apache::mod { 'authz_dbm': }
apache::mod { 'authz_owner': }
apache::mod { 'cern_meta': }
apache::mod { 'charset_lite': }
apache::mod { 'dumpio': }
apache::mod { 'expires': }
apache::mod { 'file_cache': }
apache::mod { 'filter':}
apache::mod { 'imagemap':}
apache::mod { 'include': }
apache::mod { 'logio': }
apache::mod { 'speling': }
apache::mod { 'unique_id': }
apache::mod { 'usertrack': }
apache::mod { 'version': }
::apache::mod { 'actions': }
::apache::mod { 'asis': }
::apache::mod { 'auth_digest': }
::apache::mod { 'authn_alias': }
::apache::mod { 'authn_anon': }
::apache::mod { 'authn_dbm': }
::apache::mod { 'authn_default': }
::apache::mod { 'authz_dbm': }
::apache::mod { 'authz_owner': }
::apache::mod { 'cern_meta': }
::apache::mod { 'charset_lite': }
::apache::mod { 'dumpio': }
::apache::mod { 'expires': }
::apache::mod { 'file_cache': }
::apache::mod { 'filter':}
::apache::mod { 'imagemap':}
::apache::mod { 'include': }
::apache::mod { 'logio': }
::apache::mod { 'speling': }
::apache::mod { 'unique_id': }
::apache::mod { 'usertrack': }
::apache::mod { 'version': }
}
default: {}
}
case $apache::mpm_module {
case $::apache::mpm_module {
'prefork': {
include apache::mod::cgi
include ::apache::mod::cgi
}
'worker': {
include apache::mod::cgid
include ::apache::mod::cgid
}
default: {
# do nothing
}
}
include apache::mod::alias
include apache::mod::autoindex
include apache::mod::dav
include apache::mod::dav_fs
include apache::mod::deflate
include apache::mod::dir
include apache::mod::mime
include apache::mod::negotiation
include apache::mod::setenvif
apache::mod { 'auth_basic': }
apache::mod { 'authn_file': }
include ::apache::mod::alias
include ::apache::mod::autoindex
include ::apache::mod::dav
include ::apache::mod::dav_fs
include ::apache::mod::deflate
include ::apache::mod::dir
include ::apache::mod::mime
include ::apache::mod::negotiation
include ::apache::mod::setenvif
::apache::mod { 'auth_basic': }
::apache::mod { 'authn_file': }
if $apache_version >= 2.4 {
# authz_core is needed for 'Require' directive
apache::mod { 'authz_core':
::apache::mod { 'authz_core':
id => 'authz_core_module',
}
# filter is needed by mod_deflate
apache::mod { 'filter': }
::apache::mod { 'filter': }
} else {
apache::mod { 'authz_default': }
::apache::mod { 'authz_default': }
}
apache::mod { 'authz_groupfile': }
apache::mod { 'authz_user': }
apache::mod { 'env': }
::apache::mod { 'authz_groupfile': }
::apache::mod { 'authz_user': }
::apache::mod { 'env': }
} elsif $mods {
apache::default_mods::load { $mods: }
::apache::default_mods::load { $mods: }
if $apache_version >= 2.4 {
# authz_core is needed for 'Require' directive
apache::mod { 'authz_core':
::apache::mod { 'authz_core':
id => 'authz_core_module',
}
# filter is needed by mod_deflate
apache::mod { 'filter': }
::apache::mod { 'filter': }
}
} else {
if $apache_version >= 2.4 {
# authz_core is needed for 'Require' directive
apache::mod { 'authz_core':
::apache::mod { 'authz_core':
id => 'authz_core_module',
}
# filter is needed by mod_deflate
apache::mod { 'filter': }
::apache::mod { 'filter': }
}
}
}
modules/apache/manifests/default_mods/load.pp
# private define
define apache::default_mods::load ($module = $title) {
if defined("apache::mod::${module}") {
include "apache::mod::${module}"
include "::apache::mod::${module}"
} else {
apache::mod { $module: }
::apache::mod { $module: }
}
}
modules/apache/manifests/dev.pp
if $::osfamily == 'FreeBSD' and !defined(Class['apache::package']) {
fail('apache::dev requires apache::package; please include apache or apache::package class first')
}
include apache::params
$packages = $apache::params::dev_packages
include ::apache::params
$packages = $::apache::params::dev_packages
package { $packages:
ensure => present,
require => Package['httpd'],
modules/apache/manifests/init.pp
# Sample Usage:
#
class apache (
$service_name = $apache::params::service_name,
$service_name = $::apache::params::service_name,
$default_mods = true,
$default_vhost = true,
$default_confd_files = true,
$default_ssl_vhost = false,
$default_ssl_cert = $apache::params::default_ssl_cert,
$default_ssl_key = $apache::params::default_ssl_key,
$default_ssl_cert = $::apache::params::default_ssl_cert,
$default_ssl_key = $::apache::params::default_ssl_key,
$default_ssl_chain = undef,
$default_ssl_ca = undef,
$default_ssl_crl_path = undef,
......
$sendfile = 'On',
$error_documents = false,
$timeout = '120',
$httpd_dir = $apache::params::httpd_dir,
$server_root = $apache::params::server_root,
$confd_dir = $apache::params::confd_dir,
$vhost_dir = $apache::params::vhost_dir,
$vhost_enable_dir = $apache::params::vhost_enable_dir,
$mod_dir = $apache::params::mod_dir,
$mod_enable_dir = $apache::params::mod_enable_dir,
$mpm_module = $apache::params::mpm_module,
$conf_template = $apache::params::conf_template,
$servername = $apache::params::servername,
$httpd_dir = $::apache::params::httpd_dir,
$server_root = $::apache::params::server_root,
$confd_dir = $::apache::params::confd_dir,
$vhost_dir = $::apache::params::vhost_dir,
$vhost_enable_dir = $::apache::params::vhost_enable_dir,
$mod_dir = $::apache::params::mod_dir,
$mod_enable_dir = $::apache::params::mod_enable_dir,
$mpm_module = $::apache::params::mpm_module,
$conf_template = $::apache::params::conf_template,
$servername = $::apache::params::servername,
$manage_user = true,
$manage_group = true,
$user = $apache::params::user,
$group = $apache::params::group,
$keepalive = $apache::params::keepalive,
$keepalive_timeout = $apache::params::keepalive_timeout,
$logroot = $apache::params::logroot,
$log_level = $apache::params::log_level,
$ports_file = $apache::params::ports_file,
$apache_version = $apache::version::default,
$user = $::apache::params::user,
$group = $::apache::params::group,
$keepalive = $::apache::params::keepalive,
$keepalive_timeout = $::apache::params::keepalive_timeout,
$logroot = $::apache::params::logroot,
$log_level = $::apache::params::log_level,
$ports_file = $::apache::params::ports_file,
$apache_version = $::apache::version::default,
$server_tokens = 'OS',
$server_signature = 'On',
$trace_enable = 'On',
$package_ensure = 'installed',
) inherits apache::params {
) inherits ::apache::params {
validate_bool($default_vhost)
validate_bool($default_ssl_vhost)
validate_bool($default_confd_files)
......
if $::osfamily != 'FreeBSD' {
package { 'httpd':
ensure => $package_ensure,
name => $apache::params::apache_name,
name => $::apache::params::apache_name,
notify => Class['Apache::Service'],
}
}
......
validate_re($log_level, $valid_log_level_re,
"Log level '${log_level}' is not one of the supported Apache HTTP Server log levels.")
class { 'apache::service':
class { '::apache::service':
service_name => $service_name,
service_enable => $service_enable,
service_ensure => $service_ensure,
......
concat { $ports_file:
owner => 'root',
group => $apache::params::root_group,
group => $::apache::params::root_group,
mode => '0644',
notify => Class['Apache::Service'],
require => Package['httpd'],
......
content => template('apache/ports_header.erb')
}
if $apache::params::conf_dir and $apache::params::conf_file {
if $::apache::params::conf_dir and $::apache::params::conf_file {
case $::osfamily {
'debian': {
$docroot = '/var/www'
......
# - $server_tokens
# - $server_signature
# - $trace_enable
file { "${apache::params::conf_dir}/${apache::params::conf_file}":
file { "${::apache::params::conf_dir}/${::apache::params::conf_file}":
ensure => file,
content => template($conf_template),
notify => Class['Apache::Service'],
......
# preserve back-wards compatibility to the times when default_mods was
# only a boolean value. Now it can be an array (too)
if is_array($default_mods) {
class { 'apache::default_mods':
class { '::apache::default_mods':
all => false,
mods => $default_mods,
}
} else {
class { 'apache::default_mods':
class { '::apache::default_mods':
all => $default_mods,
}
}
class { 'apache::default_confd_files':
class { '::apache::default_confd_files':
all => $default_confd_files
}
if $mpm_module {
class { "apache::mod::${mpm_module}": }
class { "::apache::mod::${mpm_module}": }
}
$default_vhost_ensure = $default_vhost ? {
......
false => 'absent'
}
apache::vhost { 'default':
::apache::vhost { 'default':
ensure => $default_vhost_ensure,
port => 80,
docroot => $docroot,
......
'freebsd' => $access_log_file,
default => "ssl_${access_log_file}",
}
apache::vhost { 'default-ssl':
::apache::vhost { 'default-ssl':
ensure => $default_ssl_vhost_ensure,
port => 443,
ssl => true,
modules/apache/manifests/listen.pp
# Template uses: $listen_addr_port
concat::fragment { "Listen ${listen_addr_port}":
target => $apache::ports_file,
target => $::apache::ports_file,
content => template('apache/listen.erb'),
}
}
modules/apache/manifests/mod.pp
$package = undef,
$package_ensure = 'present',
$lib = undef,
$lib_path = $apache::params::lib_path,
$lib_path = $::apache::params::lib_path,
$id = undef,
$path = undef,
) {
......
$mod = $name
#include apache #This creates duplicate resources in rspec-puppet
$mod_dir = $apache::mod_dir
$mod_dir = $::apache::mod_dir
# Determine if we have special lib
$mod_libs = $apache::params::mod_libs
$mod_libs = $::apache::params::mod_libs
$mod_lib = $mod_libs[$mod] # 2.6 compatibility hack
if $lib {
$_lib = $lib
......
}
# Determine if we have a package
$mod_packages = $apache::params::mod_packages
$mod_packages = $::apache::params::mod_packages
$mod_package = $mod_packages[$mod] # 2.6 compatibility hack
if $package {
$_package = $package
......
$package_before = $::osfamily ? {
'freebsd' => [
File["${mod_dir}/${mod}.load"],
File["${apache::params::conf_dir}/${apache::params::conf_file}"]
File["${::apache::params::conf_dir}/${::apache::params::conf_file}"]
],
default => File["${mod_dir}/${mod}.load"],
}
......
ensure => file,
path => "${mod_dir}/${mod}.load",
owner => 'root',
group => $apache::params::root_group,
group => $::apache::params::root_group,
mode => '0644',
content => "LoadModule ${_id} ${_path}\n",
require => [
......
}
if $::osfamily == 'Debian' {
$enable_dir = $apache::mod_enable_dir
$enable_dir = $::apache::mod_enable_dir
file{ "${mod}.load symlink":
ensure => link,
path => "${enable_dir}/${mod}.load",
target => "${mod_dir}/${mod}.load",
owner => 'root',
group => $apache::params::root_group,
group => $::apache::params::root_group,
mode => '0644',
require => [
File["${mod}.load"],
......
path => "${enable_dir}/${mod}.conf",
target => "${mod_dir}/${mod}.conf",
owner => 'root',
group => $apache::params::root_group,
group => $::apache::params::root_group,
mode => '0644',
require => [
File["${mod}.conf"],
modules/apache/manifests/mod/alias.pp
# Template uses $icons_path
file { 'alias.conf':
ensure => file,
path => "${apache::mod_dir}/alias.conf",
path => "${::apache::mod_dir}/alias.conf",
content => template('apache/mod/alias.conf.erb'),
require => Exec["mkdir ${apache::mod_dir}"],
before => File[$apache::mod_dir],
require => Exec["mkdir ${::apache::mod_dir}"],
before => File[$::apache::mod_dir],
notify => Service['httpd'],
}
}
modules/apache/manifests/mod/auth_basic.pp
class apache::mod::auth_basic {
apache::mod { 'auth_basic': }
::apache::mod { 'auth_basic': }
}
modules/apache/manifests/mod/auth_kerb.pp
class apache::mod::auth_kerb {
apache::mod { 'auth_kerb': }
::apache::mod { 'auth_kerb': }
}
modules/apache/manifests/mod/authnz_ldap.pp
class apache::mod::authnz_ldap (
$verifyServerCert = true,
) {
include 'apache::mod::ldap'
apache::mod { 'authnz_ldap': }
include '::apache::mod::ldap'
::apache::mod { 'authnz_ldap': }
validate_bool($verifyServerCert)
......
# - $verifyServerCert
file { 'authnz_ldap.conf':
ensure => file,
path => "${apache::mod_dir}/authnz_ldap.conf",
path => "${::apache::mod_dir}/authnz_ldap.conf",
content => template('apache/mod/authnz_ldap.conf.erb'),
require => Exec["mkdir ${apache::mod_dir}"],
before => File[$apache::mod_dir],
require => Exec["mkdir ${::apache::mod_dir}"],
before => File[$::apache::mod_dir],
notify => Service['httpd'],
}
}
modules/apache/manifests/mod/autoindex.pp
class apache::mod::autoindex {
apache::mod { 'autoindex': }
::apache::mod { 'autoindex': }
# Template uses no variables
file { 'autoindex.conf':
ensure => file,
path => "${apache::mod_dir}/autoindex.conf",
path => "${::apache::mod_dir}/autoindex.conf",
content => template('apache/mod/autoindex.conf.erb'),
require => Exec["mkdir ${apache::mod_dir}"],
before => File[$apache::mod_dir],
require => Exec["mkdir ${::apache::mod_dir}"],
before => File[$::apache::mod_dir],
notify => Service['httpd'],
}
}
modules/apache/manifests/mod/cache.pp
class apache::mod::cache {
apache::mod { 'cache': }
::apache::mod { 'cache': }
}
modules/apache/manifests/mod/cgi.pp
class apache::mod::cgi {
Class['apache::mod::prefork'] -> Class['apache::mod::cgi']
apache::mod { 'cgi': }
Class['::apache::mod::prefork'] -> Class['::apache::mod::cgi']
::apache::mod { 'cgi': }
}
modules/apache/manifests/mod/cgid.pp
class apache::mod::cgid {
Class['apache::mod::worker'] -> Class['apache::mod::cgid']
Class['::apache::mod::worker'] -> Class['::apache::mod::cgid']
# Debian specifies it's cgid sock path, but RedHat uses the default value
# with no config file
......
'freebsd' => 'cgisock',
default => undef,
}
apache::mod { 'cgid': }
::apache::mod { 'cgid': }
if $cgisock_path {
# Template uses $cgisock_path
file { 'cgid.conf':
ensure => file,
path => "${apache::mod_dir}/cgid.conf",
path => "${::apache::mod_dir}/cgid.conf",
content => template('apache/mod/cgid.conf.erb'),
require => Exec["mkdir ${apache::mod_dir}"],
before => File[$apache::mod_dir],
require => Exec["mkdir ${::apache::mod_dir}"],
before => File[$::apache::mod_dir],
notify => Service['httpd'],
}
}
modules/apache/manifests/mod/dav.pp
class apache::mod::dav {
apache::mod { 'dav': }
::apache::mod { 'dav': }
}
modules/apache/manifests/mod/dav_fs.pp
default => '/var/lib/dav/lockdb',
}
Class['apache::mod::dav'] -> Class['apache::mod::dav_fs']
apache::mod { 'dav_fs': }
Class['::apache::mod::dav'] -> Class['::apache::mod::dav_fs']
::apache::mod { 'dav_fs': }
# Template uses: $dav_lock
file { 'dav_fs.conf':
ensure => file,
path => "${apache::mod_dir}/dav_fs.conf",
path => "${::apache::mod_dir}/dav_fs.conf",
content => template('apache/mod/dav_fs.conf.erb'),
require => Exec["mkdir ${apache::mod_dir}"],
before => File[$apache::mod_dir],
require => Exec["mkdir ${::apache::mod_dir}"],
before => File[$::apache::mod_dir],
notify => Service['httpd'],
}
}
modules/apache/manifests/mod/dav_svn.pp
class apache::mod::dav_svn {
Class['apache::mod::dav'] -> Class['apache::mod::dav_svn']
include apache::mod::dav
apache::mod { 'dav_svn': }
Class['::apache::mod::dav'] -> Class['::apache::mod::dav_svn']
include ::apache::mod::dav
::apache::mod { 'dav_svn': }
}
modules/apache/manifests/mod/deflate.pp
class apache::mod::deflate {
apache::mod { 'deflate': }
::apache::mod { 'deflate': }
# Template uses no variables
file { 'deflate.conf':
ensure => file,
path => "${apache::mod_dir}/deflate.conf",
path => "${::apache::mod_dir}/deflate.conf",
content => template('apache/mod/deflate.conf.erb'),
require => Exec["mkdir ${apache::mod_dir}"],
before => File[$apache::mod_dir],
require => Exec["mkdir ${::apache::mod_dir}"],
before => File[$::apache::mod_dir],
notify => Service['httpd'],
}
}
modules/apache/manifests/mod/dev.pp
class apache::mod::dev {
# Development packages are not apache modules
warning('apache::mod::dev is deprecated; please use apache::dev')
include apache::dev
include ::apache::dev
}
modules/apache/manifests/mod/dir.pp
$indexes = ['index.html','index.html.var','index.cgi','index.pl','index.php','index.xhtml'],
) {
validate_array($indexes)
apache::mod { 'dir': }
::apache::mod { 'dir': }
# Template uses
# - $indexes
file { 'dir.conf':
ensure => file,
path => "${apache::mod_dir}/dir.conf",
path => "${::apache::mod_dir}/dir.conf",
content => template('apache/mod/dir.conf.erb'),
require => Exec["mkdir ${apache::mod_dir}"],
before => File[$apache::mod_dir],
require => Exec["mkdir ${::apache::mod_dir}"],
before => File[$::apache::mod_dir],
notify => Service['httpd'],
}
}
modules/apache/manifests/mod/disk_cache.pp
if $::osfamily != 'FreeBSD' {
# FIXME: investigate why disk_cache was dependent on proxy
# NOTE: on FreeBSD disk_cache is compiled by default but proxy is not
Class['apache::mod::proxy'] -> Class['apache::mod::disk_cache']
Class['::apache::mod::proxy'] -> Class['::apache::mod::disk_cache']
}
Class['apache::mod::cache'] -> Class['apache::mod::disk_cache']
Class['::apache::mod::cache'] -> Class['::apache::mod::disk_cache']
apache::mod { 'disk_cache': }
# Template uses $cache_proxy
file { 'disk_cache.conf':
ensure => file,
path => "${apache::mod_dir}/disk_cache.conf",
path => "${::apache::mod_dir}/disk_cache.conf",
content => template('apache/mod/disk_cache.conf.erb'),
require => Exec["mkdir ${apache::mod_dir}"],
before => File[$apache::mod_dir],
require => Exec["mkdir ${::apache::mod_dir}"],
before => File[$::apache::mod_dir],
notify => Service['httpd'],
}
}
modules/apache/manifests/mod/event.pp
$threadsperchild = '25',
$maxrequestsperchild = '0',
$serverlimit = '25',
$apache_version = $apache::apache_version,
$apache_version = $::apache::apache_version,
) {
if defined(Class['apache::mod::itk']) {
fail('May not include both apache::mod::event and apache::mod::itk on the same node')
......
}
File {
owner => 'root',
group => $apache::params::root_group,
group => $::apache::params::root_group,
mode => '0644',
}
......
# - $threadsperchild
# - $maxrequestsperchild
# - $serverlimit
file { "${apache::mod_dir}/event.conf":
file { "${::apache::mod_dir}/event.conf":
ensure => file,
content => template('apache/mod/event.conf.erb'),
require => Exec["mkdir ${apache::mod_dir}"],
before => File[$apache::mod_dir],
require => Exec["mkdir ${::apache::mod_dir}"],
before => File[$::apache::mod_dir],
notify => Service['httpd'],
}
modules/apache/manifests/mod/expires.pp
class apache::mod::expires {
apache::mod { 'expires': }
::apache::mod { 'expires': }
}
modules/apache/manifests/mod/fastcgi.pp
# Debian specifies it's fastcgi lib path, but RedHat uses the default value
# with no config file
$fastcgi_lib_path = $apache::params::fastcgi_lib_path
$fastcgi_lib_path = $::apache::params::fastcgi_lib_path
apache::mod { 'fastcgi': }
::apache::mod { 'fastcgi': }
if $fastcgi_lib_path {
# Template uses:
......
# - $fastcgi_dir
file { 'fastcgi.conf':
ensure => file,
path => "${apache::mod_dir}/fastcgi.conf",
path => "${::apache::mod_dir}/fastcgi.conf",
content => template('apache/mod/fastcgi.conf.erb'),
require => Exec["mkdir ${apache::mod_dir}"],
before => File[$apache::mod_dir],
require => Exec["mkdir ${::apache::mod_dir}"],
before => File[$::apache::mod_dir],
notify => Service['httpd'],
}
}
modules/apache/manifests/mod/fcgid.pp
class apache::mod::fcgid {
apache::mod { 'fcgid': }
::apache::mod { 'fcgid': }
}
modules/apache/manifests/mod/headers.pp
class apache::mod::headers {
apache::mod { 'headers': }
}
::apache::mod { 'headers': }
}
modules/apache/manifests/mod/include.pp
class apache::mod::include {
apache::mod { 'include': }
::apache::mod { 'include': }
}
modules/apache/manifests/mod/info.pp
class apache::mod::info (
$allow_from = ['127.0.0.1','::1'],
$apache_version = $apache::apache_version,
$apache_version = $::apache::apache_version,
){
apache::mod { 'info': }
# Template uses
......
# $apache_version
file { 'info.conf':
ensure => file,
path => "${apache::mod_dir}/info.conf",
path => "${::apache::mod_dir}/info.conf",
content => template('apache/mod/info.conf.erb'),
require => Exec["mkdir ${apache::mod_dir}"],
before => File[$apache::mod_dir],
require => Exec["mkdir ${::apache::mod_dir}"],
before => File[$::apache::mod_dir],
notify => Service['httpd'],
}
}
modules/apache/manifests/mod/itk.pp
$serverlimit = '256',
$maxclients = '256',
$maxrequestsperchild = '4000',
$apache_version = $apache::apache_version,
$apache_version = $::apache::apache_version,
) {
if defined(Class['apache::mod::event']) {
fail('May not include both apache::mod::itk and apache::mod::event on the same node')
......
}
File {
owner => 'root',
group => $apache::params::root_group,
group => $::apache::params::root_group,
mode => '0644',
}
......
# - $serverlimit
# - $maxclients
# - $maxrequestsperchild
file { "${apache::mod_dir}/itk.conf":
file { "${::apache::mod_dir}/itk.conf":
ensure => file,
content => template('apache/mod/itk.conf.erb'),
require => Exec["mkdir ${apache::mod_dir}"],
before => File[$apache::mod_dir],
require => Exec["mkdir ${::apache::mod_dir}"],
before => File[$::apache::mod_dir],
notify => Service['httpd'],
}
modules/apache/manifests/mod/ldap.pp
class apache::mod::ldap {
apache::mod { 'ldap': }
::apache::mod { 'ldap': }
# Template uses no variables
file { 'ldap.conf':
ensure => file,
path => "${apache::mod_dir}/ldap.conf",
path => "${::apache::mod_dir}/ldap.conf",
content => template('apache/mod/ldap.conf.erb'),
require => Exec["mkdir ${apache::mod_dir}"],
before => File[$apache::mod_dir],
require => Exec["mkdir ${::apache::mod_dir}"],
before => File[$::apache::mod_dir],
notify => Service['httpd'],
}
}
modules/apache/manifests/mod/mime.pp
class apache::mod::mime (
$mime_support_package = $apache::params::mime_support_package,
$mime_types_config = $apache::params::mime_types_config,
$mime_support_package = $::apache::params::mime_support_package,
$mime_types_config = $::apache::params::mime_types_config,
) {
apache::mod { 'mime': }
# Template uses $mime_types_config
file { 'mime.conf':
ensure => file,
path => "${apache::mod_dir}/mime.conf",
path => "${::apache::mod_dir}/mime.conf",
content => template('apache/mod/mime.conf.erb'),
require => Exec["mkdir ${apache::mod_dir}"],
before => File[$apache::mod_dir],
require => Exec["mkdir ${::apache::mod_dir}"],
before => File[$::apache::mod_dir],
notify => Service['httpd'],
}
if $mime_support_package {
package { $mime_support_package:
ensure => 'installed',
before => File["${apache::mod_dir}/mime.conf"],
before => File["${::apache::mod_dir}/mime.conf"],
}
}
}
modules/apache/manifests/mod/mime_magic.pp
class apache::mod::mime_magic (
$magic_file = "${apache::params::conf_dir}/magic"
$magic_file = "${::apache::params::conf_dir}/magic"
) {
apache::mod { 'mime_magic': }
# Template uses $magic_file
file { 'mime_magic.conf':
ensure => file,
path => "${apache::mod_dir}/mime_magic.conf",
path => "${::apache::mod_dir}/mime_magic.conf",
content => template('apache/mod/mime_magic.conf.erb'),
require => Exec["mkdir ${apache::mod_dir}"],
before => File[$apache::mod_dir],
require => Exec["mkdir ${::apache::mod_dir}"],
before => File[$::apache::mod_dir],
notify => Service['httpd'],
}
}
modules/apache/manifests/mod/negotiation.pp
class apache::mod::negotiation {
apache::mod { 'negotiation': }
::apache::mod { 'negotiation': }
# Template uses no variables
file { 'negotiation.conf':
ensure => file,
path => "${apache::mod_dir}/negotiation.conf",
path => "${::apache::mod_dir}/negotiation.conf",
content => template('apache/mod/negotiation.conf.erb'),
require => Exec["mkdir ${apache::mod_dir}"],
before => File[$apache::mod_dir],
require => Exec["mkdir ${::apache::mod_dir}"],
before => File[$::apache::mod_dir],
notify => Service['httpd'],
}
}
modules/apache/manifests/mod/nss.pp
class apache::mod::nss (
$transfer_log = "${::apache::params::logroot}/access.log",
$error_log = "${::apache::params::logroot}/error.log",
$passwd_file = undef
) {
include apache::mod::mime
$error_log = "${::apache::params::logroot}/error.log",
$passwd_file = undef
) {
include ::apache::mod::mime
apache::mod { 'nss': }
$httpd_dir = $apache::httpd_dir
$httpd_dir = $::apache::httpd_dir
# Template uses:
# $transfer_log
......
# passwd_file
file { 'nss.conf':
ensure => file,
path => "${apache::mod_dir}/nss.conf",
path => "${::apache::mod_dir}/nss.conf",
content => template('apache/mod/nss.conf.erb'),
require => Exec["mkdir ${apache::mod_dir}"],
before => File[$apache::mod_dir],
require => Exec["mkdir ${::apache::mod_dir}"],
before => File[$::apache::mod_dir],
notify => Service['httpd'],
}
}
modules/apache/manifests/mod/passenger.pp
class apache::mod::passenger (
$passenger_conf_file = $apache::params::passenger_conf_file,
$passenger_conf_package_file = $apache::params::passenger_conf_package_file,
$passenger_conf_file = $::apache::params::passenger_conf_file,
$passenger_conf_package_file = $::apache::params::passenger_conf_package_file,
$passenger_high_performance = undef,
$passenger_pool_idle_time = undef,
$passenger_max_requests = undef,
$passenger_stat_throttle_rate = undef,
$rack_autodetect = undef,
$rails_autodetect = undef,
$passenger_root = $apache::params::passenger_root,
$passenger_ruby = $apache::params::passenger_ruby,
$passenger_root = $::apache::params::passenger_root,
$passenger_ruby = $::apache::params::passenger_ruby,
$passenger_max_pool_size = undef,
$passenger_use_global_queue = undef,
) {
if $::osfamily == 'FreeBSD' {
apache::mod { 'passenger':
::apache::mod { 'passenger':
lib_path => "${passenger_root}/buildout/apache2"
}
} else {
apache::mod { 'passenger': }
::apache::mod { 'passenger': }
}
# Managed by the package, but declare it to avoid purging
if $passenger_conf_package_file {
file { 'passenger_package.conf':
path => "${apache::mod_dir}/${passenger_conf_package_file}",
path => "${::apache::mod_dir}/${passenger_conf_package_file}",
}
}
......
# - $rails_autodetect
file { 'passenger.conf':
ensure => file,
path => "${apache::mod_dir}/${passenger_conf_file}",
path => "${::apache::mod_dir}/${passenger_conf_file}",
content => template('apache/mod/passenger.conf.erb'),
require => Exec["mkdir ${apache::mod_dir}"],
before => File[$apache::mod_dir],
require => Exec["mkdir ${::apache::mod_dir}"],
before => File[$::apache::mod_dir],
notify => Service['httpd'],
}
}
modules/apache/manifests/mod/perl.pp
class apache::mod::perl {
apache::mod { 'perl': }
::apache::mod { 'perl': }
}
modules/apache/manifests/mod/peruser.pp
}
File {
owner => 'root',
group => $apache::params::root_group,
group => $::apache::params::root_group,
mode => '0644',
}
$mod_dir = $apache::mod_dir
$mod_dir = $::apache::mod_dir
# Template uses:
# - $minspareprocessors
......
# - $expiretimeout
# - $keepalive
# - $mod_dir
file { "${apache::mod_dir}/peruser.conf":
file { "${::apache::mod_dir}/peruser.conf":
ensure => file,
content => template('apache/mod/peruser.conf.erb'),
require => Exec["mkdir ${apache::mod_dir}"],
before => File[$apache::mod_dir],
require => Exec["mkdir ${::apache::mod_dir}"],
before => File[$::apache::mod_dir],
notify => Service['httpd'],
}
file { "${apache::mod_dir}/peruser":
file { "${::apache::mod_dir}/peruser":
ensure => directory,
require => File[$apache::mod_dir],
require => File[$::apache::mod_dir],
}
file { "${apache::mod_dir}/peruser/multiplexers":
file { "${::apache::mod_dir}/peruser/multiplexers":
ensure => directory,
require => File["${apache::mod_dir}/peruser"],
require => File["${::apache::mod_dir}/peruser"],
}
file { "${apache::mod_dir}/peruser/processors":
file { "${::apache::mod_dir}/peruser/processors":
ensure => directory,
require => File["${apache::mod_dir}/peruser"],
require => File["${::apache::mod_dir}/peruser"],
}
apache::peruser::multiplexer { '01-default': }
::apache::peruser::multiplexer { '01-default': }
case $::osfamily {
'freebsd' : {
class { 'apache::package':
class { '::apache::package':
mpm_module => 'peruser'
}
}
modules/apache/manifests/mod/php.pp
if ! defined(Class['apache::mod::prefork']) {
fail('apache::mod::php requires apache::mod::prefork; please enable mpm_module => \'prefork\' on Class[\'apache\']')
}
apache::mod { 'php5':
::apache::mod { 'php5':
package_ensure => $package_ensure,
}
include apache::mod::mime
include apache::mod::dir
Class['apache::mod::mime'] -> Class['apache::mod::dir'] -> Class['apache::mod::php']
include ::apache::mod::mime
include ::apache::mod::dir
Class['::apache::mod::mime'] -> Class['::apache::mod::dir'] -> Class['::apache::mod::php']
file { 'php5.conf':
ensure => file,
path => "${apache::mod_dir}/php5.conf",
path => "${::apache::mod_dir}/php5.conf",
content => template('apache/mod/php5.conf.erb'),
require => [
Class['apache::mod::prefork'],
Exec["mkdir ${apache::mod_dir}"],
Class['::apache::mod::prefork'],
Exec["mkdir ${::apache::mod_dir}"],
],
before => File[$apache::mod_dir],
before => File[$::apache::mod_dir],
notify => Service['httpd'],
}
}
modules/apache/manifests/mod/prefork.pp
$serverlimit = '256',
$maxclients = '256',
$maxrequestsperchild = '4000',
$apache_version = $apache::apache_version,
$apache_version = $::apache::apache_version,
) {
if defined(Class['apache::mod::event']) {
fail('May not include both apache::mod::prefork and apache::mod::event on the same node')
......
}
File {
owner => 'root',
group => $apache::params::root_group,
group => $::apache::params::root_group,
mode => '0644',
}
......
# - $serverlimit
# - $maxclients
# - $maxrequestsperchild
file { "${apache::mod_dir}/prefork.conf":
file { "${::apache::mod_dir}/prefork.conf":
ensure => file,
content => template('apache/mod/prefork.conf.erb'),
require => Exec["mkdir ${apache::mod_dir}"],
before => File[$apache::mod_dir],
require => Exec["mkdir ${::apache::mod_dir}"],
before => File[$::apache::mod_dir],
notify => Service['httpd'],
}
case $::osfamily {
'redhat': {
if $apache_version >= 2.4 {
apache::mpm{ 'prefork':
::apache::mpm{ 'prefork':
apache_version => $apache_version,
}
}
......
}
}
'debian', 'freebsd' : {
apache::mpm{ 'prefork':
::apache::mpm{ 'prefork':
apache_version => $apache_version,
}
}
modules/apache/manifests/mod/proxy.pp
$proxy_requests = 'Off',
$allow_from = undef,
) {
apache::mod { 'proxy': }
::apache::mod { 'proxy': }
# Template uses $proxy_requests
file { 'proxy.conf':
ensure => file,
path => "${apache::mod_dir}/proxy.conf",
path => "${::apache::mod_dir}/proxy.conf",
content => template('apache/mod/proxy.conf.erb'),
require => Exec["mkdir ${apache::mod_dir}"],
before => File[$apache::mod_dir],
require => Exec["mkdir ${::apache::mod_dir}"],
before => File[$::apache::mod_dir],
notify => Service['httpd'],
}
}
modules/apache/manifests/mod/proxy_ajp.pp
class apache::mod::proxy_ajp {
Class['apache::mod::proxy'] -> Class['apache::mod::proxy_ajp']
apache::mod { 'proxy_ajp': }
Class['::apache::mod::proxy'] -> Class['::apache::mod::proxy_ajp']
::apache::mod { 'proxy_ajp': }
}
modules/apache/manifests/mod/proxy_balancer.pp
class apache::mod::proxy_balancer {
include apache::mod::proxy
include apache::mod::proxy_http
include ::apache::mod::proxy
... This diff was truncated because it exceeds the maximum size that can be displayed.

Also available in: Unified diff