salt.modules.suse_apache

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.

salt.modules.suse_apache.a2dismod(mod)

Runs a2dismod for the given mod.

CLI Example:

salt '*' apache.a2dismod vhost_alias

salt.modules.suse_apache.a2enmod(mod)

Runs a2enmod for the given mod.

CLI Example:

salt '*' apache.a2enmod vhost_alias

salt.modules.suse_apache.check_mod_enabled(mod)

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

© 2021 SaltStack.
Licensed under the Apache License, Version 2.0.
https://docs.saltproject.io/en/latest/ref/modules/all/salt.modules.suse_apache.html