Class apache::base
In: /home/david/repos/complete/modules/apache/manifests/init.pp
Parent:

Resources

Resources

Apache::Module[info]
   ensure => 'present'
Apache::Port[apache::munin]
   port => 'real_munin_stats_port'
Apache::Port[apache_class]
   port => 'apache_port_real'
Apache::Site[munin-stats]
   ensure => 'present'
   content => '#'
Exec[force-reload-apache]
   refreshonly => '#'
   before => '#'
Exec[reload-apache]
   refreshonly => '#'
   before => ['#', '#']
   subscribe => ['#', '#', '#']

Notify this when apache needs a reload. This is only needed when sites are added or removed, since a full restart then would be a waste of time. When the module-config changes, a force-reload is needed.

File[/etc/apache2/conf.d/charset]
   content => '# This really breaks many apps and pages otherwise\n# Disabled: AddDefaultCharset UTF-8\n'
   mode => '644'
   owner => 'root'
   group => 'root'
   require => '#'
   notify => '#'
File[/etc/apache2/conf.d]
   ensure => 'directory'
   checksum => 'mtime'
   mode => '644'
   owner => 'root'
   group => 'root'
   require => '#'
   notify => '#'
File[/etc/apache2/ports.conf]
   content => ''
   mode => '644'
   owner => 'root'
   group => 'root'
   require => '#'
   notify => '#'

TODO: This has to be replaced by OS-specific configuration redirection into $module_dir_path/apache

Module_dir[['apache, apache/mods, apache/conf, apache/sites']]
Munin::Plugin[['apache_accesses, apache_processes, apache_volume']]
   ensure => 'present'
   config => 'env.url http://${hostname}:${real_munin_stats_port}/server-status?auto'
Nagios::Service[http_${apache_port_real}]
   check_command => 'http_port!${apache_port_real}'
Package[apache]
   ensure => 'installed'
Package[libwww-perl]
   ensure => 'installed'
Service[apache]
   ensure => 'running'
   require => '#'

[Validate]