Name: ansible-consul-template
Owner: Telefónica I+D
Description: Ansible role for installing consul-template
Forked from: griggheo/ansible-consul-template
Created: 2016-09-13 19:52:44.0
Updated: 2017-09-25 09:08:21.0
Pushed: 2016-09-13 20:03:56.0
Homepage: null
Size: 2193
Language: Ruby
GitHub Committers
User | Most Recent Commit | # Commits |
---|
Other Committers
User | Most Recent Commit | # Commits |
---|
Installs consul-template as either an Upstart or SystemD service.
faults file for consul-template
ul_template_version: "0.12.0"
ul_template_release: "consul-template_{{ consul_template_version }}_linux_amd64"
ul_template_archive_file: "{{ consul_template_release }}.zip"
ul_template_download_url: "https://releases.hashicorp.com/consul-template/{{ consul_template_version }}/{{ consul_template_archive_file }}"
ul_template_binary: consul-template
ul_template_home: /opt/consul-template
ul_template_config_file_template: consul-template.cfg.j2
ul_template_config_file: consul-template.cfg
ul_template_log_file: /var/log/consul-template
ul_template_log_level: "INFO"
ul_template_consul_server: "127.0.0.1"
ul_template_consul_port: "8500"
ul_template_use_systemd: false
ul_template_use_upstart: false
ul_template_template_files: # Copies your templates
- {src: "template.ctmpl"}
ul_template_templates: # Defines templates in configuration
- {name: "template.ctmpl", dest: "/path/on/disk/where/template/will/render", cmd: "optional command to run when the template is updated", perms: 0600, backup: true}
ul_template_template_templates: # Defines j2 versions of templates to be rendered as consul-template templates
- {name: "template.ctmpl.j2", dest: "/path/on/disk/where/template/will/render", cmd: "optional command to run when the template is updated", perms: 0600, backup: true}
Install and run consul-template using Upstart with a barebones config file that contains no template configuration.
s:
- { role: consul-template,
consul_template_use_upstart: true }
Provide your own configuration file for consul-template.
s:
- { role: consul-template,
consul_template_config_file_template: "{{ playbook_dir }}/files/consul-template.cfg.j2"
consul_template_use_upstart: true }
To test the playbook locally, first install the required dependencies locally.
sible-galaxy install --role-file=requirements.yml --roles-path=roles --force
Then run vagrant.
ant up
Apache v2.0
Grig Gheorghiu http://agiletesting.blogspot.com
Robbie Trencheny https://github.com/robbiet480
Travis Truman https://github.com/trumant
Marc Abramowitz https://github.com/msabramo
Guido Garcia https://github.com/palmerabollo
Damjan Znidarsic https://github.com/spinx
David Wittman https://github.com/DavidWittman