Skip to content

Instantly share code, notes, and snippets.

/salt ?? Secret

Created May 11, 2016 20:28
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save anonymous/dcf276c654591787a80539f16dc5c7c9 to your computer and use it in GitHub Desktop.
Save anonymous/dcf276c654591787a80539f16dc5c7c9 to your computer and use it in GitHub Desktop.
{% set ENDPOINT = "{{ grains['env'][0] }}-consul.int.xxx.com:8500" %}
{% set ENVIRONMENT = "{{ grains['env'][0] }}" %}
{% set TEMPLATE = '/var/www/html/xxx/configs/env.ctmpl' %}
{% set DESTINATION = '/etc/parxxxchment/p6/env.php' %}
/usr/local/scripts/consul_template/start.sh --endpoint {{ ENDPOINT }} --environment {{ ENVIRONMENT }} --template {{ TEMPLATE }} --destination {{ DESTINATION }} >> /var/log/consul_template.log:
cron.present:
- user: root
- minute: '*/10'
@iggy
Copy link

iggy commented May 11, 2016

{% set ENDPOINT =  grains['env'][0] ~ "-consul.int.xxx.com:8500" %}
{% set ENVIRONMENT = grains['env'][0] %}```

@pryorda
Copy link

pryorda commented May 11, 2016

Thanks I will try that.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment