summaryrefslogtreecommitdiffstats
path: root/tools/cicdansible/hosts.yml
diff options
context:
space:
mode:
authorMichal Zegan <m.zegan@samsung.com>2019-08-22 14:55:16 +0200
committerMichal Zegan <m.zegan@samsung.com>2019-09-04 11:24:52 +0200
commit3bf88a80668ce410b423e25a259bf4d59fd05417 (patch)
tree7f0212559009edbc53b55bd213a6c9c09403ac13 /tools/cicdansible/hosts.yml
parent07479cbc38ef4bf15ea0c4854c8af08e1201a53d (diff)
Add inventory for cicdansible playbook
This change adds the basic inventory file and group_vars used when running cicdansible playbook to deploy onap on openstack. This inventory contains only instances that must be present, other inventory entries are dynamically registered during install. Also, it delegates to group_vars for things like floating ip addresses. group_vars contains default settings for the playbook, and especially the all.yml must be modified for the environment to be deployed. Change-Id: Ia93e6b98841d7edc45699b44b2479af6daff6c4f Issue-ID: OOM-2042 Signed-off-by: Michal Zegan <m.zegan@samsung.com>
Diffstat (limited to 'tools/cicdansible/hosts.yml')
-rw-r--r--tools/cicdansible/hosts.yml28
1 files changed, 28 insertions, 0 deletions
diff --git a/tools/cicdansible/hosts.yml b/tools/cicdansible/hosts.yml
new file mode 100644
index 00000000..e4c416cf
--- /dev/null
+++ b/tools/cicdansible/hosts.yml
@@ -0,0 +1,28 @@
+#Default inventory.
+#This file should not be modified, instead modify group_vars.
+#NOTE
+#All kubernetes nodes including the first node are added to inventory dynamically.
+#Instances group with children.
+instances:
+ hosts:
+
+#Installer instance.
+ installer:
+ #Do not modify.
+ ansible_host: "{{ installer_ip }}"
+
+#Infra instance.
+ infra:
+ #Do not modify.
+ ansible_host: "{{ infra_ip }}"
+
+ children:
+ #Empty group for nodes, populated dynamically, do not modify please.
+ nodes:
+
+#The group for resource host, only first entry is considered.
+#This host contains onap installer packages including scripts.
+resources:
+ hosts:
+ resource_host:
+ ansible_host: "{{ resource_host }}"