changes/57/350257/1
Liam Young 7 years ago
parent 9989fd8cb3
commit 653329d5bb

@ -20,6 +20,9 @@ from charmhelpers.core.hookenv import config
from charmhelpers.core.hookenv import status_set
from charmhelpers.core.templating import render
from charmhelpers.core.hookenv import unit_private_ip
from charmhelpers.contrib.openstack.templating import get_loader
from charmhelpers.contrib.openstack.utils import os_release
API_PORTS = {
'barbican-api': 9311,
'barbican-public-api': 9311,
@ -80,14 +83,16 @@ def setup_endpoint(keystone):
keystone.register_endpoints('keystore', config('region'), public_url,
internal_url, admin_url)
@when('database.available')
@when('shared-db.available')
@when('identity-service.available')
@when('amqp.available')
def conf_amqp_req(*args):
def render_stuff(*args):
adapters = BarbicanAdapters(args)
#release = os_release('barbican-common')
release = os_release('python-keystonemiddleware')
for conf in [BARBICAN_ADMIN_PASTE_CONF, BARBICAN_API_CONF,
BARBICAN_API_PASTE_CONF]:
render(source=conf,
template_loader=get_loader('templates/', release),
target='{}/{}'.format(BARBICAN_DIR, conf),
context=adapters)

@ -1,9 +1,9 @@
[DEFAULT]
# Show more verbose log output (sets INFO log level output)
verbose = {{ verbose }}
verbose = {{ options.verbose }}
# Show debugging output in logs (sets DEBUG log level output)
debug = {{ debug }}
debug = {{ options.debug }}
# Address to bind the API server
bind_host = 0.0.0.0
@ -38,7 +38,6 @@ max_allowed_request_size_in_bytes = 1000000
#sql_connection = sqlite:///barbican.sqlite
# Note: For absolute addresses, use '////' slashes after 'sqlite:'
# Uncomment for a more global development environment
{% include "parts/database" %}
# Period in seconds after which SQLAlchemy should reestablish its connection
# to the database.
@ -113,9 +112,10 @@ policy_file=/etc/barbican/policy.json
policy_default_rule=default
{% include "parts/section-database" %}
# ================= Queue Options - oslo.messaging ==========================
{% include "parts/rabbitmq" %}
{% include "parts/section-rabbitmq-oslo" %}
# For HA, specify queue nodes in cluster as 'user@host:5672', comma delimited, ending with '/offset':
# For example: transport_url = rabbit://guest@192.168.50.8:5672,guest@192.168.50.9:5672/

Loading…
Cancel
Save