Ensure config changes are applied
Currently any config changes post-deployment are ignored once the domain name is set. This patch ensures that any changes are registered and applied. Change-Id: Id37db3c74d3712bc96c3f8ed6a04c907e4d18bc5 Closes-Bug: #1712972
This commit is contained in:
parent
a523eff044
commit
47bb457447
|
@ -41,6 +41,13 @@ def clear_domain_name_configured(*args):
|
|||
reactive.remove_state('domain-name-configured')
|
||||
|
||||
|
||||
@reactive.when('domain-backend.connected')
|
||||
@reactive.when('domain-name-configured')
|
||||
@reactive.when('config.complete')
|
||||
def config_changed(domain):
|
||||
keystone_ldap.render_config(domain.trigger_restart)
|
||||
|
||||
|
||||
@reactive.when_not('always.run')
|
||||
def check_configuration():
|
||||
'''Validate required configuration options at set state'''
|
||||
|
|
|
@ -33,6 +33,9 @@ class TestRegisteredHooks(test_utils.TestRegisteredHooks):
|
|||
'configure_domain_name': ('domain-backend.connected',
|
||||
'config.complete'),
|
||||
'clear_domain_name_configured': ('domain-name-configured', ),
|
||||
'config_changed': ('domain-backend.connected',
|
||||
'config.complete',
|
||||
'domain-name-configured'),
|
||||
},
|
||||
'when_not': {
|
||||
'check_configuration': ('always.run', ),
|
||||
|
|
Loading…
Reference in New Issue