コード例 #1
0
ファイル: aodh_handlers.py プロジェクト: marosg42/charm-aodh
def setup_amqp_req(amqp):
    """Use the amqp interface to request access to the amqp broker using our
    local configuration.
    """
    amqp.request_access(username='******',
                        vhost='openstack')
    aodh.assess_status()
コード例 #2
0
ファイル: aodh_handlers.py プロジェクト: javacruft/charm-aodh
def setup_amqp_req(amqp):
    """Use the amqp interface to request access to the amqp broker using our
    local configuration.
    """
    amqp.request_access(username='******',
                        vhost='openstack')
    aodh.assess_status()
コード例 #3
0
ファイル: aodh_handlers.py プロジェクト: javacruft/charm-aodh
def run_db_migration():
    aodh.db_sync()
    aodh.restart_all()
    reactive.set_state('db.synced')
    aodh.assess_status()
コード例 #4
0
ファイル: aodh_handlers.py プロジェクト: javacruft/charm-aodh
def render(*args):
    aodh.render_configs(args)
    reactive.set_state('config.complete')
    aodh.assess_status()
コード例 #5
0
ファイル: aodh_handlers.py プロジェクト: javacruft/charm-aodh
def setup_endpoint(keystone):
    aodh.setup_endpoint(keystone)
    aodh.assess_status()
コード例 #6
0
ファイル: aodh_handlers.py プロジェクト: javacruft/charm-aodh
def setup_database(database):
    """On receiving database credentials, configure the database on the
    interface.
    """
    database.configure('aodh', 'aodh', hookenv.unit_private_ip())
    aodh.assess_status()
コード例 #7
0
def run_db_migration():
    aodh.db_sync()
    aodh.restart_all()
    reactive.set_state('db.synced')
    aodh.assess_status()
コード例 #8
0
def render(*args):
    aodh.render_configs(args)
    reactive.set_state('config.complete')
    aodh.assess_status()
コード例 #9
0
def setup_endpoint(keystone):
    aodh.setup_endpoint(keystone)
    aodh.assess_status()
コード例 #10
0
def setup_database(database):
    """On receiving database credentials, configure the database on the
    interface.
    """
    database.configure('aodh', 'aodh')
    aodh.assess_status()
コード例 #11
0
def setup_endpoint(keystone):
    aodh.setup_endpoint(keystone)
    aodh.configure_ssl()
    aodh.assess_status()
コード例 #12
0
ファイル: aodh_handlers.py プロジェクト: openstack/charm-aodh
def setup_endpoint(keystone):
    aodh.setup_endpoint(keystone)
    aodh.configure_ssl()
    aodh.assess_status()
コード例 #13
0
ファイル: aodh_handlers.py プロジェクト: openstack/charm-aodh
def setup_database(database):
    """On receiving database credentials, configure the database on the
    interface.
    """
    database.configure('aodh', 'aodh')
    aodh.assess_status()