Install PeaNUT Docker Compose project
- Jinja 100%
| defaults | ||
| meta | ||
| tasks | ||
| templates | ||
| vars | ||
| LICENSE | ||
| README.md | ||
Ansible Role: PeaNUT-docker
Install PeaNUT Docker Compose project.
Requirements
Requires the following to be installed:
- docker
- docker compose
Role Variables
Common Docker projects variables:
# Base directory for Docker projects
docker_projects_path: # /var/apps
Available role variables are listed below, along with default values (see defaults/main.yml):
# Docker project variables
peanut_project_name: peanut
# Docker project dynamic vars (uses `docker_project_name` prefix, adapt if overridden)
# Port targeted by Traefik router
peanut_traefik_loadbalancer_server_port: "{{ peanut_web_port }}"
# Traefik router entrypoints
peanut_traefik_entrypoints: http,https
# Traefik router middlewares
peanut_traefik_middlewares:
- "internal-access@file"
# PeaNUT service additional docker-compose options (ex: cpu_shares, deploy, ...)
peanut_service_additional_options: |
#ports:
# - "{{ peanut_web_port }}:{{ peanut_web_port }}"
# PeaNUT project variables
# brandawg93/peanut image version
peanut_version: latest
# Port exposed by PeaNUT
peanut_web_port: 8080
# Peanut NUT servers
peanut_nut_servers: []
# - HOST: ups.local
# PORT: 3493
# USERNAME: admin
# PASSWORD: p@55word
# Peanut misc. settings
peanut_date_format: DD/MM/YYYY
peanut_time_format: 24-hour
peanut_temperature_unit: celsius
peanut_dashboard_sections:
- key: KPIS
enabled: true
- key: CHARTS
enabled: true
- key: VARIABLES
enabled: true
peanut_disable_version_check: false
# InfluxDB configuration
peanut_influx_host: ''
peanut_influx_token: ''
peanut_influx_org: ''
peanut_influx_bucket: ''
peanut_influx_interval: 10
Dependencies
This role depends on:
Some variables allow integration with:
Example Playbook
- hosts: example
gather_facts: true
roles:
- djuuu.peanut_docker
License
Beerware License