Ansible BuildAnsible Build
Home
Roles
Scripts
Mint System
Chat
GitHub
Home
Roles
Scripts
Mint System
Chat
GitHub
  • Restic Exporter role

    • Usage
restic_exporter logo

Restic Exporter role

Add nginx config for Restic exporter path.

Usage

Configure the role.

restic_exporter_requires_package: python2-passlib # default: python3-passlib
restic_exporter_nginx_data_dir: /usr/share/nginx/proxies # default: "{{ nginx_data_dir }}/proxies"
restic_exporter_proxy_basic_auth_username: exporter # default: restic-exporter
restic_exporter_proxy_basic_auth_password: # default: "{{ vault_restic_exporter_proxy_basic_auth_password }}"

Ensure the nginx proxy includes the restic-exporter config:

nginx_proxies:
  - src_hostname: server.example.com
    ssl: true
    exporter: restic
    options: |
      include /etc/nginx/conf.d/proxies/restic-exporter.nginx;

Include the role in your playbook.

- hosts: restic
  roles:
  - role: restic_exporter
Edit this page
Last Updated:
Contributors: Janik von Rotz