hooks/hooks.py
def configure_https():
    '''Enables SSL API Apache config if appropriate and kicks
    identity-service and image-service with any required
    updates
    '''
    CONFIGS.write_all()
    if 'https' in CONFIGS.complete_contexts():
        cmd = ['a2ensite', 'openstack_https_frontend']
        subprocess.check_call(cmd)
    else:
        cmd = ['a2dissite', 'openstack_https_frontend']
        try:
            subprocess.check_call(cmd)
        except subprocess.CalledProcessError:
            # The site is not yet enabled or
            # https is not configured
            pass

    # TODO: improve this by checking if local CN certs are available
    # first then checking reload status (see LP #1433114).
    if not is_unit_paused_set():
        service_reload('apache2', restart_on_failure=True)
Enables SSL API Apache config if appropriate and kicks
    identity-service and image-service with any required
    updates
    
Enables SSL API Apache config if appropriate and kicks
identity-service and image-service with any required
updates
Enables SSL API Apache config if appropriate and kicks identity - service and image - service with any required updates
def configure_https():
    CONFIGS.write_all()
    if 'https' in CONFIGS.complete_contexts():
        cmd = ['a2ensite', 'openstack_https_frontend']
        subprocess.check_call(cmd)
    else:
        cmd = ['a2dissite', 'openstack_https_frontend']
        try:
            subprocess.check_call(cmd)
        except subprocess.CalledProcessError:
            pass
    if not is_unit_paused_set():
        service_reload('apache2', restart_on_failure=True)
def configure_https ( ) : CONFIGS . write_all ( ) if 'https' in CONFIGS . complete_contexts ( ) : cmd = [ 'a2ensite' , 'openstack_https_frontend' ] subprocess . check_call ( cmd ) else : cmd = [ 'a2dissite' , 'openstack_https_frontend' ] try : subprocess . check_call ( cmd ) except subprocess . CalledProcessError : pass if not is_unit_paused_set ( ) : service_reload ( 'apache2' , restart_on_failure = True )
Enables SSL API Apache config if appropriate and kicks
identity-service and image-service with any required
updates
Enables SSL API Apache config if appropriate and kicks identity - service and image - service with any required updates
'''Enables SSL API Apache config if appropriate and kicks
    identity-service and image-service with any required
    updates
    ''' # The site is not yet enabled or # https is not configured # TODO: improve this by checking if local CN certs are available # first then checking reload status (see LP #1433114).