summaryrefslogtreecommitdiffstats
path: root/ansible/inventory
diff options
context:
space:
mode:
authorPetr Ospalý <p.ospaly@partner.samsung.com>2018-12-19 14:27:43 +0100
committerPetr Ospalý <p.ospaly@partner.samsung.com>2018-12-19 14:28:19 +0100
commit144f28a1a980350d135c9ee2c48c6d8c3afb45cd (patch)
treeb8e64f5a3018122e988f10e319511b8c2e8a9853 /ansible/inventory
parentbdf6b628623e33e56b83eacd9145bded437cfcfa (diff)
Add the template for the hosts inventory file
Issue-ID: OOM-1551 Change-Id: I6ed8cae7fae5b482b5934d0e974434083714cf75 Signed-off-by: Petr Ospalý <p.ospaly@partner.samsung.com>
Diffstat (limited to 'ansible/inventory')
-rw-r--r--ansible/inventory/hosts.yml32
1 files changed, 32 insertions, 0 deletions
diff --git a/ansible/inventory/hosts.yml b/ansible/inventory/hosts.yml
new file mode 100644
index 00000000..f11ef7b1
--- /dev/null
+++ b/ansible/inventory/hosts.yml
@@ -0,0 +1,32 @@
+---
+# This group contains hosts with all resources (binaries, packages, etc.)
+# in tarball.
+all:
+ vars:
+ # this key is supposed to be generated during setup.yml playbook execution
+ # change it just when you have better one working for all nodes
+ ansible_ssh_private_key_file: /root/.ssh/offline_ssh_key
+ ansible_ssh_common_args: '-o StrictHostKeyChecking=no'
+
+ children:
+ resources:
+ hosts:
+ resource-host:
+ ansible_host: 10.8.8.5
+
+ # This is group of hosts where nexus, nginx, dns and all other required
+ # services are running.
+ infrastructure:
+ hosts:
+ infrastructure-server:
+ ansible_host: 10.8.8.13
+
+ # This is group of hosts which are/will be part of Kubernetes cluster.
+ kubernetes:
+ hosts:
+ kubernetes-node-1:
+ ansible_host: 10.8.8.19
+
+ nfs-server:
+ hosts:
+ kubernetes-node-1