From 03d402e226e386853163d2318f487e5a7d13423f Mon Sep 17 00:00:00 2001
From: Smaine Kahlouch <smaine.kahlouch@arkena.com>
Date: Fri, 18 Dec 2015 16:13:42 +0100
Subject: [PATCH] using hostnames in the inventory is more readable

---
 inventory/inventory.example | 33 +++++++++++++++++----------------
 1 file changed, 17 insertions(+), 16 deletions(-)

diff --git a/inventory/inventory.example b/inventory/inventory.example
index 64028bbcf..df5d077cc 100644
--- a/inventory/inventory.example
+++ b/inventory/inventory.example
@@ -1,30 +1,31 @@
 [downloader]
-10.99.0.26
+node1 ansible_ssh_host=10.99.0.26
 
 [kube-master]
-10.99.0.26
-10.99.0.27
+node1 ansible_ssh_host=10.99.0.26
+node2 ansible_ssh_host=10.99.0.27
 
 [etcd]
-10.99.0.26
-10.99.0.27
-10.99.0.4
+node1 ansible_ssh_host=10.99.0.26
+node2 ansible_ssh_host=10.99.0.27
+node3 ansible_ssh_host=10.99.0.4
 
 [kube-node]
-10.99.0.27
-10.99.0.4
-10.99.0.5
-10.99.0.36
-10.99.0.37
+node2 ansible_ssh_host=10.99.0.27
+node3 ansible_ssh_host=10.99.0.4
+node4 ansible_ssh_host=10.99.0.5
+node5 ansible_ssh_host=10.99.0.36
+node6 ansible_ssh_host=10.99.0.37
 
 [paris]
-10.99.0.26
-10.99.0.4 local_as=xxxxxxxx
-10.99.0.5 local_as=xxxxxxxx
+node1 ansible_ssh_host=10.99.0.26
+node3 ansible_ssh_host=10.99.0.4 local_as=xxxxxxxx
+node4 ansible_ssh_host=10.99.0.5 local_as=xxxxxxxx
 
 [new-york]
-10.99.0.36 local_as=xxxxxxxx
-10.99.0.37 local_as=xxxxxxxx
+node2 ansible_ssh_host=10.99.0.27
+node5 ansible_ssh_host=10.99.0.36 local_as=xxxxxxxx
+node6 ansible_ssh_host=10.99.0.37 local_as=xxxxxxxx
 
 [k8s-cluster:children]
 kube-node
-- 
GitLab