コード例 #1
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)
コード例 #2
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)
コード例 #3
0
ファイル: astara_hooks.py プロジェクト: akanda/astara-juju
def neutron_api_changed(rid=None):
    if not is_neutron_api_ready():
        return
    create_networks()
    for rid in relation_ids('astara-orchestrator'):
        astara_orchestrator_relation_joined(rid)
コード例 #4
0
def neutron_api_changed(rid=None):
    if not is_neutron_api_ready():
        return
    create_networks()
    for rid in relation_ids('astara-orchestrator'):
        astara_orchestrator_relation_joined(rid)