diff options
author | Tomas Sedovic <tomas@sedovic.cz> | 2017-06-26 16:35:44 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-06-26 16:35:44 +0200 |
commit | 6cf54ba9e0d3b499a39f334d689a0f62e2e6dad4 (patch) | |
tree | 57147019c94e76d2100fe58a8ab793fe0e915e30 /roles | |
parent | fd219cab05c810dea2422d14bfebede4419f515d (diff) | |
parent | 2fa7c112561eca54e0980902bda6920506c96f92 (diff) | |
download | openshift-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')
-rw-r--r-- | roles/openstack-stack/defaults/main.yml | 1 | ||||
-rw-r--r-- | roles/openstack-stack/templates/heat_stack.yaml.j2 | 2 |
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..4831d6bc4 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 +nodes_to_remove: [] 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 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: |