Skip to content
Ansible role to deploy traefik binary and systemd unit
Branch: master
Clone or download
eliecharra Merge pull request #27 from bencomp/traefik-1.7.6
Update traefik binary URL to v1.7.6
Latest commit f3943df Jan 7, 2019
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
defaults Update traefik binary URL to v1.7.6 Jan 4, 2019
handlers fiw daemon-reload and start service Dec 8, 2018
meta Fix ansible galaxy definition Dec 11, 2018
tasks fiw daemon-reload and start service Dec 8, 2018
templates Remove all unused config lines Jan 24, 2018
tests Fix role Jan 11, 2017
.gitignore Add vagrant file Jan 11, 2017
.travis.yml
CODE_OF_CONDUCT.md
LICENSE
README.md
Vagrantfile Add vagrant file Jan 11, 2017
ansible.cfg

README.md

kibatic.traefik

Ansible role to deploy traefik binary and systemd unit.

Build Status

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

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 )

traefik_template: templates/traefik.toml

Add role to your playbook.

    - 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 :

$ ansible-playbook playbook.yml -t traefik --extra-vars "traefik_update=yes"

Use same command if you want to downgrade.

License

MIT

You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.