diff options
author | Jenkins <jenkins@review.openstack.org> | 2017-06-19 21:22:45 +0000 |
---|---|---|
committer | Gerrit Code Review <review@openstack.org> | 2017-06-19 21:22:45 +0000 |
commit | 27a92d279e623b96550310354f3b83fea82fef87 (patch) | |
tree | 8be40a6b91832f101e7657f8bd4493f756029eab /extraconfig/pre_network/config_then_reboot.yaml | |
parent | 11a97ec7430118bbf4a11c87eceb3adec40ea4ac (diff) | |
parent | d6c0979eb3de79b8c3a79ea5798498f0241eb32d (diff) |
Merge "Blacklist support for ExtraConfig"
Diffstat (limited to 'extraconfig/pre_network/config_then_reboot.yaml')
-rw-r--r-- | extraconfig/pre_network/config_then_reboot.yaml | 24 |
1 files changed, 23 insertions, 1 deletions
diff --git a/extraconfig/pre_network/config_then_reboot.yaml b/extraconfig/pre_network/config_then_reboot.yaml index 48ba5263..79cb7cbc 100644 --- a/extraconfig/pre_network/config_then_reboot.yaml +++ b/extraconfig/pre_network/config_then_reboot.yaml @@ -7,6 +7,19 @@ description: > parameters: server: type: string + deployment_actions: + default: ['CREATE', 'UPDATE'] + type: comma_delimited_list + description: > + List of stack actions that will trigger any deployments in this + templates. The actions will be an empty list of the server is in the + toplevel DeploymentServerBlacklist parameter's value. + +conditions: + deployment_actions_empty: + equals: + - {get_param: deployment_actions} + - [] resources: @@ -24,6 +37,11 @@ resources: name: SomeDeployment server: {get_param: server} config: {get_resource: SomeConfig} + actions: + if: + - deployment_actions_empty + - [] + - ['CREATE'] # Only do this on CREATE actions: ['CREATE'] # Only do this on CREATE RebootConfig: @@ -44,5 +62,9 @@ resources: name: RebootDeployment server: {get_param: server} config: {get_resource: RebootConfig} - actions: ['CREATE'] # Only do this on CREATE + actions: + if: + - deployment_actions_empty + - [] + - ['CREATE'] # Only do this on CREATE signal_transport: NO_SIGNAL |