This ansible role install Consul and expect you to supply your own configuration templates.
See:
Consul has MANY configuration parameters and trying to cover all of them with ansible variables makes things awfully complicated, hard to maintain and frustrating when some options are not handled. You might also prefer to use HCL over the JSON format... For these reasons, this role handles the installation of consul and use your supplied configuration templates so that everyone's life is made easier!
- Consul binary directory
- Default value:
/usr/local/bin
- Base configuration directory
- Default value:
/etc/consul
- Path to the configuration template to use
- Must be supplied
- Resulting config will be the file name without the
.j2
extension. ie./some/path/config.hcl.j2
would result in{{ consul_config_dir }}/config.hcl
- Consul data directory
- Should be used in your config as it will be created by this role
- Default value:
/var/consul/data
- Extra configuration directory
- Default value:
{{ consul_config_dir }}/consul.d
- Extra configuration templates to render
- Resulting configs will be the files name without the
.j2
extension. ie./some/path/my-extra-config.hcl.j2
would result in{{ consul_extra_config_dir }}/my-extra-config.hcl
- Resulting configs will be the files name without the
- Default value:
[]
- Consul unix group
- Default value:
consul
- Directory for PID file
- Default value:
/var/run/consul
- Consul unix user
- Default value:
consul
- Consul version to install
- Default value:
1.10.0