From 7fb280374d17a2fae222e82aab0778604fec2ea2 Mon Sep 17 00:00:00 2001
From: Pawel Wieczorek
Date: Thu, 18 Jun 2020 15:44:38 +0200
Subject: Add hosts configuration for Service Mesh ONAP
Added configuration resembles set of instances already in use for
Service Mesh Proof-of-Concept purposes. Floating IPs were disabled on
Worker and NFS nodes to limit resource usage.
Issue-ID: INT-1601
Change-Id: Ie575c37344da21e71a8e0803e2e5bd2db18d9290
Signed-off-by: Pawel Wieczorek
---
.../ansible/group_vars/all.yml.sm-onap | 53 ++++++++++++++++++++++
.../create_devstack_hosts/tasks/create_host.yml | 1 +
2 files changed, 54 insertions(+)
create mode 100644 deployment/noheat/infra-openstack/ansible/group_vars/all.yml.sm-onap
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
new file mode 100644
index 000000000..6e95fdf33
--- /dev/null
+++ b/deployment/noheat/infra-openstack/ansible/group_vars/all.yml.sm-onap
@@ -0,0 +1,53 @@
+---
+network:
+ name: &network_name "onap_ci_lab"
+ cidr: "192.168.1.0/24"
+
+keypair:
+ name: &keypair_name "onap_ci_lab"
+
+securitygroup:
+ name: &securitygroup_name "onap_ci_lab"
+ remote_ip_prefix: "0.0.0.0/0"
+
+hosts:
+ - name: "operator0"
+ image: "Ubuntu_18.04"
+ flavor: "m1.xlarge"
+ keypair: *keypair_name
+ network: *network_name
+ securitygroup: *securitygroup_name
+ - name: "control0"
+ image: "Ubuntu_18.04"
+ flavor: "m1.xlarge"
+ keypair: *keypair_name
+ network: *network_name
+ securitygroup: *securitygroup_name
+ - name: "worker0a"
+ image: "Ubuntu_18.04"
+ flavor: "m1.2xlarge"
+ keypair: *keypair_name
+ network: *network_name
+ auto_ip: false
+ securitygroup: *securitygroup_name
+ - name: "worker0b"
+ image: "Ubuntu_18.04"
+ flavor: "m1.2xlarge"
+ keypair: *keypair_name
+ network: *network_name
+ auto_ip: false
+ securitygroup: *securitygroup_name
+ - name: "worker0c"
+ image: "Ubuntu_18.04"
+ flavor: "m1.2xlarge"
+ keypair: *keypair_name
+ network: *network_name
+ auto_ip: false
+ securitygroup: *securitygroup_name
+ - name: "nfs0"
+ image: "Ubuntu_18.04"
+ flavor: "m1.large"
+ keypair: *keypair_name
+ network: *network_name
+ auto_ip: false
+ securitygroup: *securitygroup_name
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 c164d7144..4c6759fd7 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
@@ -9,3 +9,4 @@
network: "{{ host.network }}"
security_groups:
- "{{ host.securitygroup }}"
+ auto_ip: "{{ host.auto_ip | default(true) }}"
--
cgit 1.2.3-korg