Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/suzuki-shunsuke/ansible_role_consul_config
ansible role to configure consul
https://github.com/suzuki-shunsuke/ansible_role_consul_config
ansible ansible-role consul oss
Last synced: 9 days ago
JSON representation
ansible role to configure consul
- Host: GitHub
- URL: https://github.com/suzuki-shunsuke/ansible_role_consul_config
- Owner: suzuki-shunsuke
- License: mit
- Archived: true
- Created: 2018-07-27T08:38:15.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2024-07-18T14:20:17.000Z (7 months ago)
- Last Synced: 2024-10-27T04:47:36.341Z (4 months ago)
- Topics: ansible, ansible-role, consul, oss
- Language: Shell
- Homepage: https://galaxy.ansible.com/suzuki-shunsuke/consul_config
- Size: 122 KB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 21
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
Awesome Lists containing this project
README
# ansible_role_consul_config
ansible role to configure consul
https://galaxy.ansible.com/suzuki-shunsuke/consul_config
[![GitHub last commit](https://img.shields.io/github/last-commit/suzuki-shunsuke/ansible_role_consul_config.svg)](https://github.com/suzuki-shunsuke/ansible_role_consul_config)
[![GitHub tag](https://img.shields.io/github/tag/suzuki-shunsuke/ansible_role_consul_config.svg)](https://github.com/suzuki-shunsuke/ansible_role_consul_config/releases)This role doesn't install consul.
If you want to install, please use [akoi](https://github.com/suzuki-shunsuke/akoi) and [suzuki-shunsuke.akoi](https://github.com/suzuki-shunsuke/ansible_role_akoi).```yaml
packages:
consul:
url: "https://releases.hashicorp.com/consul/{{.Version}}/consul_{{.Version}}_linux_amd64.zip"
version: 1.2.1
files:
- name: consul
archive: consul
```## Directory Structure
* user: `consul_user` default:consul
* group: `consul_group` default:consul```
data_dir/ default:/opt/consul
consul_pid_file default:/var/run/consul/consul.pid
consul_config_file default:/etc/consul/consul.json
consul_configd_path/ default:/etc/consul/consul.d/
service.json
consul_service_unit_file default:/etc/systemd/system/consul.service
```## Requirements
Nothing.
## Role Variables
Required variables are nothing.
Please see* [defaults/main.yml](defaults/main.yml)
* [vars/main.yml](vars/main.yml)
* [tasks/assert.yml](tasks/assert.yml)## Handlers
### `restart consul`
If `consul_use_systemd` is `true`, systemd's service is restarted.
You can define custom handlers.
For example, if you manage consul with supervisor,```yaml
handlers:
- name: restart consul (supervisor)
supervisorctl:
name: consul
state: restarted
listen: restart consul
```## Example Playbook
```yaml
- hosts: servers
roles:
- role: suzuki-shunsuke.consul_config
consul_path: /usr/local/bin/consul
consul_config_files:
web:
service:
name: web
tags:
- rails
port: 80
become: yes
```## Change Log
See [CHANGELOG.md](CHANGELOG.md).
## Contributing
See [CONTRIBUTING.md](CONTRIBUTING.md).
## License
[MIT](LICENSE)