summaryrefslogtreecommitdiffstats
path: root/roles/openstack-stack
diff options
context:
space:
mode:
authorTzu-Mainn Chen <tzumainn@redhat.com>2017-06-21 18:01:48 -0400
committerTzu-Mainn Chen <tzumainn@redhat.com>2017-06-21 18:01:48 -0400
commit8219f17503e16620b4881faefc78023c696ed2e5 (patch)
treef78024c437a662bb083da277bd3b6db062e6a017 /roles/openstack-stack
parent6457152be04098c7f765b322447006bdb052509f (diff)
downloadopenshift-8219f17503e16620b4881faefc78023c696ed2e5.tar.gz
openshift-8219f17503e16620b4881faefc78023c696ed2e5.tar.bz2
openshift-8219f17503e16620b4881faefc78023c696ed2e5.tar.xz
openshift-8219f17503e16620b4881faefc78023c696ed2e5.zip
Add node_removal_policies variable to allow for scaling down
Diffstat (limited to 'roles/openstack-stack')
-rw-r--r--roles/openstack-stack/defaults/main.yml1
-rw-r--r--roles/openstack-stack/templates/heat_stack.yaml.j22
2 files changed, 3 insertions, 0 deletions
diff --git a/roles/openstack-stack/defaults/main.yml b/roles/openstack-stack/defaults/main.yml
index 2a4ef3a45..4f859585f 100644
--- a/roles/openstack-stack/defaults/main.yml
+++ b/roles/openstack-stack/defaults/main.yml
@@ -9,4 +9,5 @@ num_masters: 1
num_nodes: 1
num_dns: 1
num_infra: 1
+node_removal_policies: []
etcd_volume_size: 2
diff --git a/roles/openstack-stack/templates/heat_stack.yaml.j2 b/roles/openstack-stack/templates/heat_stack.yaml.j2
index c750865a5..3916eec02 100644
--- a/roles/openstack-stack/templates/heat_stack.yaml.j2
+++ b/roles/openstack-stack/templates/heat_stack.yaml.j2
@@ -620,6 +620,8 @@ resources:
type: OS::Heat::ResourceGroup
properties:
count: {{ num_nodes }}
+ removal_policies:
+ - resource_list: {{ node_removal_policies }}
resource_def:
type: server.yaml
properties: