Table of Contents
Generate and deploy template definitions for a consul-template. See https://github.com/hashicorp/consul-template#examples for documentation. Templates are written in the Go template format. Either the --source or the --source-file parameter must be given.
# configure template on the target __consul_template_template nginx \ --source /etc/my-consul-templates/nginx.ctmpl \ --destination /etc/nginx/nginx.conf \ --command 'service nginx restart' # upload a local file to the target and configure it __consul_template_template nginx \ --source-file "$__manifest/files/nginx.ctmpl" \ --destination /etc/nginx/nginx.conf \ --command 'service nginx restart'