CDIST-TYPE__CONSUL_TEMPLATE_TEMPLATE(7) | cdist | CDIST-TYPE__CONSUL_TEMPLATE_TEMPLATE(7) |
cdist-type__consul_template_template - Manage consul-template templates
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 \
--wait '2s:6s' \
--source-file "$__manifest/files/nginx.ctmpl" \
--destination /etc/nginx/nginx.conf \
--command 'service nginx restart'
cdist-type__consul_template(7), cdist-type__consul_template_config(7)
Steven Armstrong <steven-cdist--@--armstrong.cc>
Copyright (C) 2015-2016 Steven Armstrong. You can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
ungleich GmbH 2021
January 15, 2023 | 7.0.0 |