Example #1
0
def missing_java():
    if layer.options('apache-bigtop-base').get('install_java'):
        set_state('install_java')
    elif any_states('java.joined', 'hadoop-plugin.joined'):
        hookenv.status_set('waiting', 'waiting on java')
    else:
        hookenv.status_set('blocked', 'waiting on relation to java')
Example #2
0
def not_ready_add():
    actions = [
        'vpe.add-corporation',
        'vpe.connect-domains',
        'vpe.delete-domain-connections',
        'vpe.remove-corporation',
    ]

    if helpers.any_states(*actions):
        action_fail('VPE is not configured')

    status_set('blocked', 'vpe is not configured')
Example #3
0
def not_ready_add():
    actions = [
        'vpe.add-corporation',
        'vpe.connect-domains',
        'vpe.delete-domain-connections',
        'vpe.remove-corporation',
        'vpe.configure-interface',
        'vpe.configure-ospf',
    ]

    if helpers.any_states(*actions):
        action_fail('VPE is not configured')

    status_set('blocked', 'vpe is not configured')
Example #4
0
def top_level():
    if any_states('top-level'):
        set_state('top-level-repeat')
    set_state('top-level')
Example #5
0
def not_ready_add():
    if helpers.any_states(*actions):
        action_fail('FORTIOS is not configured')
    status_set('blocked', 'fortios is not configured')