summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--host_vars/aus-colo.linaro.org1
-rw-r--r--roles/colo-router/templates/hosts.j29
2 files changed, 7 insertions, 3 deletions
diff --git a/host_vars/aus-colo.linaro.org b/host_vars/aus-colo.linaro.org
index 989205a..ccccd20 100644
--- a/host_vars/aus-colo.linaro.org
+++ b/host_vars/aus-colo.linaro.org
@@ -318,6 +318,7 @@ r3_hosts:
tag: rack3x
- mac: "14:58:d0:58:c2:22"
name: r3-m1-c4
+ alias: controller
ip: 10.33.100.4
pxe: true
- mac: "14:58:d0:58:a2:12"
diff --git a/roles/colo-router/templates/hosts.j2 b/roles/colo-router/templates/hosts.j2
index 57f7619..3d8dfd6 100644
--- a/roles/colo-router/templates/hosts.j2
+++ b/roles/colo-router/templates/hosts.j2
@@ -9,15 +9,18 @@ ff02::2 ip6-allrouters
# rack 1 lookups
{% for host in r1_hosts %}
-{{host.ip}} {{host.name}}
+{{host.ip}} {{host.name}} {%if host.alias is defined %}{{host.alias}}{%endif%}
+
{% endfor %}
# rack 2 lookups
{% for host in r2_hosts %}
-{{host.ip}} {{host.name}}
+{{host.ip}} {{host.name}} {%if host.alias is defined %}{{host.alias}}{%endif%}
+
{% endfor %}
# rack 3 lookups
{% for host in r3_hosts %}
-{{host.ip}} {{host.name}}
+{{host.ip}} {{host.name}} {%if host.alias is defined %}{{host.alias}}{%endif%}
+
{% endfor %}