kibatic.traefik

❗❗❗ This role is no longer maintained ❗❗❗

[archived] kibatic.traefik

❗❗❗ This role is no longer maintained ❗❗❗

This is an Ansible role to install the Traefik binary and set up a systemd unit.

Build Status

Traefik is a modern HTTP reverse proxy and load balancer designed to easily deploy microservices. It works with multiple backends (like Docker, Swarm, Kubernetes, and more) to manage its configuration automatically and dynamically.

Installation

Run the following command to install:

$ 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

To set up a custom configuration, create a file named templates/traefik.toml.j2. You can change the template variable (for example, in group_vars/all.yml):

traefik_template: templates/traefik.toml

Add the role to your playbook like this:

    - hosts: servers
      roles:
         - { role: kibatic.traefik, tags: traefik }

Updating Traefik

To update Traefik, change the traefik_binary_url or update this role. Then run your playbook with the following extra variables:

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

You can use the same command if you want to downgrade.

License

MIT

Informazioni sul progetto

Ansible role to deploy traefik binary and systemd unit

Installa
ansible-galaxy install kibatic.traefik
Licenza
mit
Download
10.6k
Proprietario
Ajoutez de l'intelligence à vos systèmes