Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Latest commit

 

History

History
 
 

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
Puppet module: apache

# Written by Lab42 #
# http://www.example42.com

Licence: GPLv3


DESCRIPTION:
This module installs and manages apache.
Standard and extended classes are available.
Decide and customize how you want to define configuration files: static files, templates, infile modifications...


USAGE:
# Standard Classes 
include apache              # Install and run apache with standard configurations.
include apache::disable     # Disable apache service.
include apache::disableboot # Disable apache service at boot time, but don't stop if it's running.
include apache::absent      # Remove apache package.

# Extended Classes (require storeconfings)
include apache::monitor     # Monitor apache  Automatically included if $monitor=yes
include apache::backup      # Backup apache data - Automatically included if $backup=yes
include apache::firewall    # Manages firewall rule for apache service - Automatically included if $firewall=yes

# Extra Classes
include apache::modsecurity # Install modsecurity with default settings

# Generic main configuration infile modification Define
apache::conf { "ParameterName": value="YourValue"} 

# Extra Defines
# apache::dotconf manages single independent configuration files for Apache.
apache::dotconf { "sarg": source => 'puppet://$servername/sarg/sarg.conf' } # Adds a .conf Apache file based on static file
apache::dotconf { "trac": content => 'template("trac/apache.conf.erb")' }   # Adds a .conf Apache file based on a template

# apache::virtualhost creates single independend configuration files per VirtualHost based on a standard or custom template 
apache::virtualhost { "www.example42.com": }  # Adds a .conf with VirtualHost container based on a standard template
apache::virtualhost { "webmail.example42.com": templatefile => "webmail.conf.erb" } # Adds a .conf with VirtualHost based on custom template
apache::virtualhost { "webmail.example42.com": templatefile => "webmail.conf.erb" , enable => false } # Disables a Virtual host previously enabled

# Related to this module, check the php module:
php::module { mysql: }     # Installs mysql module for php
php::pear { Crypt-CHAP: }  # Installs pear component


DEPENDENCIES:
Standard classes generally don't need external modules.
Extended classes need the relevant external modules (import monitor ; import backup ... ) and the "common" module (import common)
apache::conf generic infile configuration define needs the "common" module
Check on individual Extra classes and defines if there are specific requirements (generally only the common module).