Merge pull request 'telegraf' (!132) from alex/netz39-infra-ansible:telegraf into master

Reviewed-on: https://gitea.n39.eu/Netz39_Admin/netz39-infra-ansible/pulls/132
Reviewed-by: dkdent <dkdent@netz39.de>
Reviewed-by: Stefan Haun <tux@netz39.de>
This commit is contained in:
Alexander Dahl 2023-01-12 06:25:28 +01:00
commit 054a268331
5 changed files with 31 additions and 1 deletions

View file

@ -4,3 +4,17 @@
roles: roles:
- role: docker_setup - role: docker_setup
- hosts: docker_host:&location_space
become: true
roles:
- role: lespocky.telegraf_docker_in_docker
vars:
tdid_conf_dir: "/etc/telegraf"
tdid_influxdb_org: "{{ influxdb_org }}"
tdid_influx_token: "{{ vault_tdid_influx_token }}"
tdid_docker_image: "telegraf:1.24-alpine"
tdid_influxdb_url: "https://influx.n39.eu"
tdid_influxdb_bucket: "system_metrics"
tdid_timezone: "{{ timezone }}"

View file

@ -57,3 +57,6 @@ users:
# Data for DD24 dyndns updates # Data for DD24 dyndns updates
dyndns_domain: "dyndns.n39.eu" dyndns_domain: "dyndns.n39.eu"
dyndns_password: "{{ vault_dyndns_password }}" dyndns_password: "{{ vault_dyndns_password }}"
# Shared influxdb items
influxdb_org: "netz39"

View file

@ -0,0 +1,11 @@
$ANSIBLE_VAULT;1.1;AES256
32316530363561636236376162663963643966336566373964633066326365373234323365376635
3032376339633462623762313638303066306637323630660a323839333935643761313534646631
64303438376132303461363664653239373663323433343331363833373331666532303538306433
3766633837323238320a383461616434326531613532323463393939333331306264663765393761
35336332336135623834373661323535376264323564383234633435373363343739316234653631
32336663636632386131316165663766643935633562353235633937666264326537323362633864
32386264643539356430353837663761356561386162306466643838303462353631346564653432
33356266666466333132636364643962383030313264336363356439663066346462653466343163
38666537306464323434366135333433623335396239636461353136663563323934653737336337
3664393331316162303938626330643137653232653263366461

View file

@ -324,7 +324,7 @@
TZ: "{{ timezone }}" TZ: "{{ timezone }}"
DOCKER_INFLUXDB_INIT_USERNAME: "{{ influxdb_init_username }}" DOCKER_INFLUXDB_INIT_USERNAME: "{{ influxdb_init_username }}"
DOCKER_INFLUXDB_INIT_PASSWORD: "{{ influxdb_init_password }}" DOCKER_INFLUXDB_INIT_PASSWORD: "{{ influxdb_init_password }}"
DOCKER_INFLUXDB_INIT_ORG: Netz39 DOCKER_INFLUXDB_INIT_ORG: "{{ influxdb_org }}"
DOCKER_INFLUXDB_INIT_BUCKET: default DOCKER_INFLUXDB_INIT_BUCKET: default
volumes: volumes:
- "{{ data_dir }}/influxdb/data:/var/lib/influxdb2" - "{{ data_dir }}/influxdb/data:/var/lib/influxdb2"

View file

@ -10,6 +10,8 @@ roles:
version: v1.0.0 version: v1.0.0
- src: git+https://github.com/maz3max/ble-keykeeper-role.git - src: git+https://github.com/maz3max/ble-keykeeper-role.git
version: v1.1.0 version: v1.1.0
- src: lespocky.telegraf_docker_in_docker
version: v0.2.1
collections: collections:
- name: community.grafana - name: community.grafana