summaryrefslogtreecommitdiffstats
path: root/extraconfig/pre_deploy/rhel-registration/rhel-registration.yaml
diff options
context:
space:
mode:
authorJenkins <jenkins@review.openstack.org>2017-06-19 21:22:45 +0000
committerGerrit Code Review <review@openstack.org>2017-06-19 21:22:45 +0000
commit27a92d279e623b96550310354f3b83fea82fef87 (patch)
tree8be40a6b91832f101e7657f8bd4493f756029eab /extraconfig/pre_deploy/rhel-registration/rhel-registration.yaml
parent11a97ec7430118bbf4a11c87eceb3adec40ea4ac (diff)
parentd6c0979eb3de79b8c3a79ea5798498f0241eb32d (diff)
Merge "Blacklist support for ExtraConfig"
Diffstat (limited to 'extraconfig/pre_deploy/rhel-registration/rhel-registration.yaml')
-rw-r--r--extraconfig/pre_deploy/rhel-registration/rhel-registration.yaml25
1 files changed, 23 insertions, 2 deletions
diff --git a/extraconfig/pre_deploy/rhel-registration/rhel-registration.yaml b/extraconfig/pre_deploy/rhel-registration/rhel-registration.yaml
index 96632bc2..fb0d1699 100644
--- a/extraconfig/pre_deploy/rhel-registration/rhel-registration.yaml
+++ b/extraconfig/pre_deploy/rhel-registration/rhel-registration.yaml
@@ -59,6 +59,19 @@ parameters:
description: |
When enabled, the system will perform a yum update after performing the
RHEL Registration process.
+ 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:
@@ -136,7 +149,11 @@ resources:
name: RHELUnregistrationDeployment
server: {get_param: server}
config: {get_resource: RHELUnregistration}
- actions: ['DELETE'] # Only do this on DELETE
+ actions:
+ if:
+ - deployment_actions_empty
+ - []
+ - ['DELETE'] # Only do this on DELETE
input_values:
REG_METHOD: {get_param: rhel_reg_method}
@@ -169,7 +186,11 @@ resources:
name: UpdateDeploymentAfterRHELRegistration
config: {get_resource: YumUpdateConfigurationAfterRHELRegistration}
server: {get_param: server}
- actions: ['CREATE'] # Only do this on CREATE
+ actions:
+ if:
+ - deployment_actions_empty
+ - []
+ - ['CREATE'] # Only do this on CREATE
outputs:
deploy_stdout: