Restart on change

changes/57/350257/1
Liam Young 7 years ago
parent 9e0e7229da
commit 2086f318a8

@ -22,6 +22,7 @@ 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
from charmhelpers.core.host import restart_on_change
API_PORTS = {
'barbican-api': 9311,
@ -112,6 +113,9 @@ def setup_endpoint(keystone):
@when('shared-db.available')
@when('identity-service.available')
@when('amqp.available')
@restart_on_change({
'/etc/barbican/barbican*': [ 'barbican-api', 'barbican-worker' ]
})
def render_stuff(*args):
adapters = BarbicanAdapters(args)
#release = os_release('barbican-common')

Loading…
Cancel
Save