Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/kibatic/ansible-traefik
Ansible role to deploy traefik binary and systemd unit
https://github.com/kibatic/ansible-traefik
ansible-galaxy ansible-role systemd-unit traefik
Last synced: 27 days ago
JSON representation
Ansible role to deploy traefik binary and systemd unit
- Host: GitHub
- URL: https://github.com/kibatic/ansible-traefik
- Owner: kibatic
- License: mit
- Created: 2017-01-11T16:45:03.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2024-06-13T20:44:51.000Z (7 months ago)
- Last Synced: 2024-12-07T01:50:30.306Z (about 1 month ago)
- Topics: ansible-galaxy, ansible-role, systemd-unit, traefik
- Language: Jinja
- Homepage: https://galaxy.ansible.com/kibatic/traefik/
- Size: 88.9 KB
- Stars: 86
- Watchers: 10
- Forks: 32
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
- Code of conduct: CODE_OF_CONDUCT.md
Awesome Lists containing this project
README
❗❗❗ **This role is not maintained anymore** ❗❗❗
[archived] kibatic.traefik
=========❗❗❗ **This role is not maintained anymore** ❗❗❗
Ansible role to deploy traefik binary and systemd unit.
[![Build Status](https://travis-ci.org/kibatic/ansible-traefik.svg?branch=master)](https://travis-ci.org/kibatic/ansible-traefik)
Træfɪk is a modern HTTP reverse proxy and load balancer made to deploy microservices with ease. It supports several backends (Docker, Swarm, Kubernetes, Marathon, Mesos, Consul, Etcd, Zookeeper, BoltDB, Rest API, file…) to manage its configuration automatically and dynamically.
Installation
--------------`$ ansible-galaxy install kibatic.traefik`
Role Variables
--------------```yml
traefik_install_dir: /usr/bin
traefik_binary_url: https://github.com/containous/traefik/releases/download/v1.7.5/traefik_linux-amd64
traefik_bin_path: "{{ traefik_install_dir }}/traefik"
traefik_config_file: /etc/traefik.toml
traefik_template: traefik.toml
traefik_systemd_unit_template: traefik.service
traefik_systemd_unit_dest: /etc/systemd/system/traefik.service
```Configuration
----------------Create a custom config file `templates/traefik.toml.j2`.
Override template variable (e.g. in `group_vars/all.yml` )```yml
traefik_template: templates/traefik.toml
```Add role to your playbook.
```yml
- hosts: servers
roles:
- { role: kibatic.traefik, tags: traefik }
```Update Traefik
--------------You have to change `traefik_binary_url` or update this role. Then run your playbook
with following **extra vars** :```bash
$ ansible-playbook playbook.yml -t traefik --extra-vars "traefik_update=yes"
```Use same command if you want to downgrade.
License
-------MIT