Exemplo n.º 1
0
def module_enabled(module):
    """
    Ensure link to /etc/apache2/mods-available/module exists and reload apache2
    configuration if needed.
    """
    enable_module(module)
    reload_service('apache2')
Exemplo n.º 2
0
def module_enabled(module):
    """
    Require an Apache module to be enabled.

    This will cause Apache to reload its configuration.

    ::

        from fabtools import require

        require.apache.module_enabled('rewrite')

    """
    enable_module(module)
    reload_service('apache2')