ok instead of throwing up our hands and screaming at the clouds.. put in a real fix.

This commit is contained in:
Stephen Smoogen 2017-02-20 19:23:19 +00:00
parent 9213be3ff9
commit efb85be09e

View file

@ -17,8 +17,15 @@ define host {
{% else %}
address {{ host }}
{% endif %}
{% if env == 'staging' %}
## Some staging parents do not allow ssh from staging. Just default to gw
parents phx2-gw
{% elif hostvars[host]['vmhost'] is defined %}
parents {{ hostvars[host]['vmhost'] }}
{% elif hostvars[host].datacenter is defined %}
parents phx2-gw
{% endif %}
}
{% endif %}
{% endfor %}