summaryrefslogtreecommitdiffstats
path: root/roles/openstack-stack/templates
diff options
context:
space:
mode:
authorTomas Sedovic <tomas@sedovic.cz>2017-06-26 16:35:44 +0200
committerGitHub <noreply@github.com>2017-06-26 16:35:44 +0200
commit6cf54ba9e0d3b499a39f334d689a0f62e2e6dad4 (patch)
tree57147019c94e76d2100fe58a8ab793fe0e915e30 /roles/openstack-stack/templates
parentfd219cab05c810dea2422d14bfebede4419f515d (diff)
parent2fa7c112561eca54e0980902bda6920506c96f92 (diff)
downloadopenshift-6cf54ba9e0d3b499a39f334d689a0f62e2e6dad4.tar.gz
openshift-6cf54ba9e0d3b499a39f334d689a0f62e2e6dad4.tar.bz2
openshift-6cf54ba9e0d3b499a39f334d689a0f62e2e6dad4.tar.xz
openshift-6cf54ba9e0d3b499a39f334d689a0f62e2e6dad4.zip
Merge pull request #491 from tzumainn/openstack-heat-stack-update
Add node_removal_policies variable to openstack provisioning to allow for scaling down
Diffstat (limited to 'roles/openstack-stack/templates')
-rw-r--r--roles/openstack-stack/templates/heat_stack.yaml.j22
1 files changed, 2 insertions, 0 deletions
diff --git a/roles/openstack-stack/templates/heat_stack.yaml.j2 b/roles/openstack-stack/templates/heat_stack.yaml.j2
index cba03e2ca..7fa7133ea 100644
--- a/roles/openstack-stack/templates/heat_stack.yaml.j2
+++ b/roles/openstack-stack/templates/heat_stack.yaml.j2
@@ -602,6 +602,8 @@ resources:
type: OS::Heat::ResourceGroup
properties:
count: {{ num_nodes }}
+ removal_policies:
+ - resource_list: {{ nodes_to_remove }}
resource_def:
type: server.yaml
properties: