diff options
author | Jenkins <jenkins@review.openstack.org> | 2017-07-13 04:08:29 +0000 |
---|---|---|
committer | Gerrit Code Review <review@openstack.org> | 2017-07-13 04:08:30 +0000 |
commit | 7d07abf68281dad3edf5e23b66f0ed62f2f353d9 (patch) | |
tree | 869a658f49090eb05934a7456f8a65f58f03c106 /extraconfig/pre_network/config_then_reboot.yaml | |
parent | 3a20d3f0c22663a9bb6d6fc2795adc8cc1d3939b (diff) | |
parent | 11b3cb25a9884d8eaed0544a5ef2862e4a046652 (diff) |
Merge "Revert "Revert "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 |