ok instead of throwing up our hands and screaming at the clouds.. put in a real fix.
This commit is contained in:
parent
9213be3ff9
commit
efb85be09e
1 changed files with 7 additions and 0 deletions
|
@ -17,8 +17,15 @@ define host {
|
||||||
{% else %}
|
{% else %}
|
||||||
address {{ host }}
|
address {{ host }}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
{% if env == 'staging' %}
|
||||||
## Some staging parents do not allow ssh from staging. Just default to gw
|
## Some staging parents do not allow ssh from staging. Just default to gw
|
||||||
parents phx2-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 %}
|
{% endif %}
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue