apache

Support for Apache

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

saltext.apache.modules.deb_apache.__virtual__()[source]

Only load the module if apache is installed

saltext.apache.modules.deb_apache.check_site_enabled(site)[source]

Checks to see if the specific site symlink is in /etc/apache2/sites-enabled.

This will only be functional on Debian-based operating systems (Ubuntu, Mint, etc).

CLI Examples:

salt '*' apache.check_site_enabled example.com
salt '*' apache.check_site_enabled example.com.conf
saltext.apache.modules.deb_apache.a2ensite(site)[source]

Runs a2ensite for the given site.

This will only be functional on Debian-based operating systems (Ubuntu, Mint, etc).

CLI Examples:

salt '*' apache.a2ensite example.com
saltext.apache.modules.deb_apache.a2dissite(site)[source]

Runs a2dissite for the given site.

This will only be functional on Debian-based operating systems (Ubuntu, Mint, etc).

CLI Examples:

salt '*' apache.a2dissite example.com
saltext.apache.modules.deb_apache.check_mod_enabled(mod)[source]

Checks to see if the specific mod symlink is in /etc/apache2/mods-enabled.

This will only be functional on Debian-based operating systems (Ubuntu, Mint, etc).

CLI Examples:

salt '*' apache.check_mod_enabled status
salt '*' apache.check_mod_enabled status.load
salt '*' apache.check_mod_enabled status.conf
saltext.apache.modules.deb_apache.a2enmod(mod)[source]

Runs a2enmod for the given mod.

This will only be functional on Debian-based operating systems (Ubuntu, Mint, etc).

CLI Examples:

salt '*' apache.a2enmod vhost_alias
saltext.apache.modules.deb_apache.a2dismod(mod)[source]

Runs a2dismod for the given mod.

This will only be functional on Debian-based operating systems (Ubuntu, Mint, etc).

CLI Examples:

salt '*' apache.a2dismod vhost_alias
saltext.apache.modules.deb_apache.check_conf_enabled(conf)[source]

Added in version 2016.3.0.

Checks to see if the specific conf symlink is in /etc/apache2/conf-enabled.

This will only be functional on Debian-based operating systems (Ubuntu, Mint, etc).

CLI Examples:

salt '*' apache.check_conf_enabled security
salt '*' apache.check_conf_enabled security.conf
saltext.apache.modules.deb_apache.a2enconf(conf)

Added in version 2016.3.0.

Runs a2enconf for the given conf.

This will only be functional on Debian-based operating systems (Ubuntu, Mint, etc).

CLI Examples:

salt '*' apache.a2enconf security
saltext.apache.modules.deb_apache.a2disconf(conf)

Added in version 2016.3.0.

Runs a2disconf for the given conf.

This will only be functional on Debian-based operating systems (Ubuntu, Mint, etc).

CLI Examples:

salt '*' apache.a2disconf security