This module will be removed from Salt in version 3009 in favor of the apache Salt Extension.

Support for Apache

Please note: The functions in here are SUSE-specific. Placing them in this separate file will allow them to load only on SUSE systems, while still loading under the apache namespace.


Runs a2dismod for the given mod.

CLI Example:

salt '*' apache.a2dismod vhost_alias

Runs a2enmod for the given mod.

CLI Example:

salt '*' apache.a2enmod vhost_alias

Checks to see if the specific apache mod is enabled.

This will only be functional on operating systems that support a2enmod -l to list the enabled mods.

CLI Example:

salt '*' apache.check_mod_enabled status