-
-
Save anonymous/dcf276c654591787a80539f16dc5c7c9 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{% 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' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment