コード例 #1
0
ファイル: astara_hooks.py プロジェクト: akanda/astara-juju
def image_service_relation_changed():
    # If the API is ready we publish the astara appliance(s) into Glance
    # and advertise those to the orchestrator.
    if not is_glance_api_ready():
        return
    publish_astara_appliance_image()
    for rid in relation_ids('astara-orchestrator'):
        astara_orchestrator_relation_joined(rid)
コード例 #2
0
def image_service_relation_changed():
    # If the API is ready we publish the astara appliance(s) into Glance
    # and advertise those to the orchestrator.
    if not is_glance_api_ready():
        return
    publish_astara_appliance_image()
    for rid in relation_ids('astara-orchestrator'):
        astara_orchestrator_relation_joined(rid)
コード例 #3
0
ファイル: astara_hooks.py プロジェクト: akanda/astara-juju
def keystone_changed():
    # once we have sufficent keystone creds and the neutron ap is ready, we
    # can create networks in neutron and images in glance, then advertise
    # those to the orchestrator.
    if is_neutron_api_ready():
        create_networks()
    if is_glance_api_ready():
        publish_astara_appliance_image()
    for rid in relation_ids('astara-orchestrator'):
        astara_orchestrator_relation_joined(rid)
コード例 #4
0
def keystone_changed():
    # once we have sufficent keystone creds and the neutron ap is ready, we
    # can create networks in neutron and images in glance, then advertise
    # those to the orchestrator.
    if is_neutron_api_ready():
        create_networks()
    if is_glance_api_ready():
        publish_astara_appliance_image()
    for rid in relation_ids('astara-orchestrator'):
        astara_orchestrator_relation_joined(rid)