mc_apache / apache states

If you alter this module and want to test it, do not forget to deploy it on minion using:

salt '*' saltutil.sync_states

If you use this state as a template for a new custom state do not forget to use to get this module included in salt modules.

To comment

apache-main-conf:
  makina-states.apache.deployed:
    - version: 2.2
    - log_level: debug

Or using the “names:” directive, you can put several names for the same IP. (Do not try one name with space-separated values).

server1:
  host.present:
    - ip: 192.168.0.42
    - names:
      - server1
      - florida
mc_states.states.mc_apache.deployed(name, *args, **kwargs)

DEPRECATED

mc_states.states.mc_apache.exclude_module(name, modules)

Soft disable one or mode apache modules

name
ignored
modules
list or comma separated list of modules
mc_states.states.mc_apache.include_module(name, modules)

Soft enable one or mode apache modules

name
ignored
modules
list or comma separated list of modules