Install Consul-Template on CentOS servers.
Written in Ansible 2.0.*
Available variables are listed below, along with default values (see defaults/main.yml
):
Enable consul-template or not.
Default is true
.
Install consul-template in supervisor or not.
Default is true
.
User for consul-template.
Default user is consul
.
Group for consul-template.
Default group is consul
.
Version of consul-template.
Default version is 0.10.0
.
Release name of consul-template.
Default is consul-template_0.10.0_linux_386
.
Release archive file name of consul-template.
Default is consul-template_0.10.0_linux_386.tar.gz
.
Download URL.
Default is https://github.com/hashicorp/consul-template/releases/download/v0.10.0/consul-template_0.10.0_linux_386.tar.gz
.
Home directory for consul-template.
Default is /home/consul/consul-template
Template name for consul-template main fragment.
Default is consul-template.cfg.j2
.
Note: this template will generate {{ consul_template_home }}/config/fragments/1_main.cfg
.
Consul-template config file name.
Default is consul-template.cfg
.
Note: this will be generated under {{ consul_template_home }}/config
.
Consul server for consul-template to connect.
Default is 127.0.0.1
.
- juwai.supervisor, when consul_template_supervisor_enabled
- hosts: servers
roles:
- juwai.consul-template
MIT
This role was created in 2016 by Juwai Limited.