Formulas to set up and configure the Apache HTTP server.
Note
See the full Salt Formulas installation and usage instructions.
apache
apache.config
apache.mod_mpm
apache.modules
apache.mod_rewrite
apache.mod_proxy
apache.mod_proxy_http
apache.mod_wsgi
apache.mod_actions
apache.mod_headers
apache.mod_pagespeed
apache.mod_php5
apache.mod_fcgid
apache.mod_dav_svn
apache.mod_vhost_alias
apache.mod_remoteip
apache.own_default_vhost
apache.vhosts.standard
apache.manage_security
apache.debian_full
Installs the Apache package and starts the service.
Configures apache based on os_family
Configures the apache mpm modules on Debian mpm_prefork
, mpm_worker
or mpm_event
(Debian Only)
Enables and disables Apache modules.
Enabled the Apache module mod_rewrite (Debian only)
Enables the Apache module mod_proxy. (Debian only)
Enables the Apache module mod_proxy_http and requires the Apache module mod_proxy to be enabled. (Debian Only)
Installs the mod_wsgi package and enables the Apache module.
Enables the Apache module mod_actions. (Debian Only)
Enables the Apache module mod_headers. (Debian Only)
Installs and Enables the mod_pagespeed module. (Debian and RedHat Only)
Installs and enables the mod_php5 module
Installs and enables the mod_fcgid module
Installs and enables the mod_dav_svn module (Debian only)
Enables the Apache module vhost_alias (Debian Only)
Enables and configures the Apache module mod_remoteip using data from Pillar. (Debian Only)
Replace default vhost with own version. By default, it's 503 code. (Debian Only)
Configures Apache name-based virtual hosts and creates virtual host directories using data from Pillar.
Example Pillar:
apache:
sites:
example.com: # must be unique; used as an ID declaration in Salt; also passed to the template context as {{ id }}
template_file: salt://apache/vhosts/standard.tmpl
Configures Apache's security.conf options by reassinging them using data from Pillar.
Installs and configures Apache on Debian and Ubuntu systems.
These states are ordered using the order
declaration. Different stages
are divided into the following number ranges:
- apache will use 1-500 for ordering
- apache will reserve 1 -100 as unused
- apache will reserve 101-150 for pre pkg install
- apache will reserve 151-200 for pkg install
- apache will reserve 201-250 for pkg configure
- apache will reserve 251-300 for downloads, git stuff, load data
- apache will reserve 301-400 for unknown purposes
- apache will reserve 401-450 for service restart-reloads
- apache WILL reserve 451-460 for service.running
- apache will reserve 461-500 for cmd requiring operational services
Example Pillar:
apache:
register-site:
# any name as an array index, and you can duplicate this section
{{UNIQUE}}:
name: 'my name'
path: 'salt://path/to/sites-available/conf/file'
state: 'enabled'