aboutsummaryrefslogtreecommitdiffstats
path: root/deployment/noheat/infra-openstack/ansible
diff options
context:
space:
mode:
authorPawel Wieczorek <p.wieczorek2@samsung.com>2020-06-19 19:20:50 +0200
committerBartek Grzybowski <b.grzybowski@partner.samsung.com>2020-07-30 09:04:21 +0000
commite9c9aaa4870e29f215ee5f47a0de2149b6afe610 (patch)
tree148b481acc18579bee416a8a00aa7df52f417b73 /deployment/noheat/infra-openstack/ansible
parent7fb280374d17a2fae222e82aab0778604fec2ea2 (diff)
Use external volumes for OpenStack virtual machines
This allows easier storage quota changes (without the need to modify flavors). Issue-ID: INT-1601 Change-Id: I0fe7557ff6f23eb0e29314ee0d4819893583a294 Signed-off-by: Pawel Wieczorek <p.wieczorek2@samsung.com>
Diffstat (limited to 'deployment/noheat/infra-openstack/ansible')
-rw-r--r--deployment/noheat/infra-openstack/ansible/group_vars/all.yml.sample1
-rw-r--r--deployment/noheat/infra-openstack/ansible/group_vars/all.yml.sm-onap6
-rw-r--r--deployment/noheat/infra-openstack/ansible/roles/openstack/create_devstack_hosts/tasks/create_host.yml3
3 files changed, 10 insertions, 0 deletions
diff --git a/deployment/noheat/infra-openstack/ansible/group_vars/all.yml.sample b/deployment/noheat/infra-openstack/ansible/group_vars/all.yml.sample
index 40fdabf94..07488aa57 100644
--- a/deployment/noheat/infra-openstack/ansible/group_vars/all.yml.sample
+++ b/deployment/noheat/infra-openstack/ansible/group_vars/all.yml.sample
@@ -17,3 +17,4 @@ hosts:
keypair: *keypair_name
network: *network_name
securitygroup: *securitygroup_name
+ volume_size: 5
diff --git a/deployment/noheat/infra-openstack/ansible/group_vars/all.yml.sm-onap b/deployment/noheat/infra-openstack/ansible/group_vars/all.yml.sm-onap
index 6e95fdf33..fac94c58d 100644
--- a/deployment/noheat/infra-openstack/ansible/group_vars/all.yml.sm-onap
+++ b/deployment/noheat/infra-openstack/ansible/group_vars/all.yml.sm-onap
@@ -17,12 +17,14 @@ hosts:
keypair: *keypair_name
network: *network_name
securitygroup: *securitygroup_name
+ volume_size: 20
- name: "control0"
image: "Ubuntu_18.04"
flavor: "m1.xlarge"
keypair: *keypair_name
network: *network_name
securitygroup: *securitygroup_name
+ volume_size: 50
- name: "worker0a"
image: "Ubuntu_18.04"
flavor: "m1.2xlarge"
@@ -30,6 +32,7 @@ hosts:
network: *network_name
auto_ip: false
securitygroup: *securitygroup_name
+ volume_size: 80
- name: "worker0b"
image: "Ubuntu_18.04"
flavor: "m1.2xlarge"
@@ -37,6 +40,7 @@ hosts:
network: *network_name
auto_ip: false
securitygroup: *securitygroup_name
+ volume_size: 80
- name: "worker0c"
image: "Ubuntu_18.04"
flavor: "m1.2xlarge"
@@ -44,6 +48,7 @@ hosts:
network: *network_name
auto_ip: false
securitygroup: *securitygroup_name
+ volume_size: 80
- name: "nfs0"
image: "Ubuntu_18.04"
flavor: "m1.large"
@@ -51,3 +56,4 @@ hosts:
network: *network_name
auto_ip: false
securitygroup: *securitygroup_name
+ volume_size: 150
diff --git a/deployment/noheat/infra-openstack/ansible/roles/openstack/create_devstack_hosts/tasks/create_host.yml b/deployment/noheat/infra-openstack/ansible/roles/openstack/create_devstack_hosts/tasks/create_host.yml
index 4c6759fd7..2a78e82e3 100644
--- a/deployment/noheat/infra-openstack/ansible/roles/openstack/create_devstack_hosts/tasks/create_host.yml
+++ b/deployment/noheat/infra-openstack/ansible/roles/openstack/create_devstack_hosts/tasks/create_host.yml
@@ -10,3 +10,6 @@
security_groups:
- "{{ host.securitygroup }}"
auto_ip: "{{ host.auto_ip | default(true) }}"
+ boot_from_volume: true
+ terminate_volume: true
+ volume_size: "{{ host.volume_size | default(10) }}"