Fix the vagrant build.

pull/6/head
Brendan Burns 2014-09-24 10:26:39 -07:00
parent de3799d605
commit 77d13db307
1 changed files with 7 additions and 5 deletions

View File

@ -10,11 +10,13 @@ nginx:
- file: /usr/share/nginx/htpasswd
- cmd: /usr/share/nginx/server.cert
{% if grains.cloud == 'gce' %}
{% set cert_ip='_use_gce_external_ip_' %}
{% endif %}
{% if grains.cloud == 'vagrant' %}
{% set cert_ip=grains.fqdn_ip4 %}
{% if grains.cloud is defined %}
{% if grains.cloud == 'gce' %}
{% set cert_ip='_use_gce_external_ip_' %}
{% endif %}
{% if grains.cloud == 'vagrant' %}
{% set cert_ip=grains.fqdn_ip4 %}
{% endif %}
{% endif %}
# If there is a pillar defined, override any defaults.
{% if pillar['cert_ip'] is defined %}