I have no idea what I am doing

This commit is contained in:
Stephen Smoogen 2017-06-19 17:52:14 +00:00
parent ffa6af14e0
commit eb36b5e7f0
2 changed files with 3 additions and 3 deletions

View file

@ -1,13 +1,13 @@
define hostgroup {
hostgroup_name dnsservers
alias DNS Servers
members {% for host in groups["dns"] %} {{ hostvars[host]['inventory_hostname_short'] }}.fedoraproject.org {% if !loop.last %}, {% endif %} {% endfor %}
members {% for host in groups["dns"] %} {{ hostvars["host"]["inventory_hostname_short"] }}.fedoraproject.org {% if !loop.last %}, {% endif %} {% endfor %}
}
define hostgroup {
hostgroup_name proxies
alias Web Servers
members {% for host in groups["proxies"] %} {{ hostvars[host]['inventory_hostname_short'] }}.fedoraproject.org {% if !loop.last %}, {% endif %} {% endfor %}
members {% for host in groups["proxies"] %} {{ hostvars["host"]["inventory_hostname_short"] }}.fedoraproject.org {% if !loop.last %}, {% endif %} {% endfor %}
}

View file

@ -1,4 +1,4 @@
{% for host in vars['phx2_external'] %}
{% for host in vars["phx2_external"] %}
define host {
host_name {{ host }}
alias {{ host }}