Divide host group into cluster and operation instances 39/117239/1
authorPawel Wieczorek <p.wieczorek2@samsung.com>
Fri, 29 Jan 2021 10:22:22 +0000 (11:22 +0100)
committerPawel Wieczorek <p.wieczorek2@samsung.com>
Fri, 29 Jan 2021 10:22:24 +0000 (11:22 +0100)
Issue-ID: INT-1601
Change-Id: I799f15077437bcd836c5a38a004d974eed64f707
Signed-off-by: Pawel Wieczorek <p.wieczorek2@samsung.com>
deployment/noheat/infra-openstack/ansible/create.yml
deployment/noheat/infra-openstack/ansible/destroy.yml
deployment/noheat/infra-openstack/ansible/group_vars/all.yml.sample
deployment/noheat/infra-openstack/ansible/group_vars/all.yml.sm-onap

index 2b7cf63..74d6d1f 100644 (file)
@@ -7,6 +7,8 @@
     - openstack/create_devstack_network
     - openstack/create_devstack_securitygroup
     - openstack/create_devstack_keypair
+    - role: openstack/create_devstack_hosts
+      hosts: "{{ operation.hosts }}"
     - role: openstack/create_devstack_hosts
       hosts: "{{ cluster.hosts }}"
 - name: Create cluster operator access keypair
index c85f17a..ca1455f 100644 (file)
@@ -6,6 +6,8 @@
   roles:
     - role: openstack/destroy_devstack_hosts
       hosts: "{{ cluster.hosts }}"
+    - role: openstack/destroy_devstack_hosts
+      hosts: "{{ operation.hosts }}"
     - openstack/destroy_devstack_keypair
     - openstack/destroy_devstack_network
     - openstack/destroy_devstack_securitygroup
index 7ca72de..72d37a3 100644 (file)
@@ -16,8 +16,8 @@ image:
   name: &image_name "Ubuntu_18.04"
   user: "ubuntu"
 
-cluster:
-  name: "cluster0"
+operation:
+  name: "operation0"
   hosts:
     - name: "operator0"
       image: *image_name
@@ -26,6 +26,10 @@ cluster:
       network: *network_name
       securitygroup: *securitygroup_name
       volume_size: 5
+
+cluster:
+  name: "cluster0"
+  hosts:
     - name: "worker0"
       image: *image_name
       flavor: "m1.tiny"
index e3ae6b3..744f918 100644 (file)
@@ -15,8 +15,8 @@ image:
   name: &image_name "Ubuntu_18.04"
   user: "ubuntu"
 
-cluster:
-  name: "cluster0"
+operation:
+  name: "operation0"
   hosts:
     - name: "operator0"
       image: *image_name
@@ -25,6 +25,10 @@ cluster:
       network: *network_name
       securitygroup: *securitygroup_name
       volume_size: 20
+
+cluster:
+  name: "cluster0"
+  hosts:
     - name: "control0"
       image: *image_name
       flavor: "m1.xlarge"