From 41c04b5ac46af3b6ee42f394712b215cbfc1f1d6 Mon Sep 17 00:00:00 2001 From: David Kilias Date: Wed, 19 Oct 2022 21:40:05 +0200 Subject: [PATCH 1/3] feat: :sparkles: add ingress for influxDB --- holmium.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/holmium.yml b/holmium.yml index c75cea8..92ba397 100644 --- a/holmium.yml +++ b/holmium.yml @@ -28,6 +28,8 @@ local: true - name: jabber.n39.eu - name: conference.jabber.n39.eu + - name: influx.n39.eu + local: true - server: radon hosts: - name: nodered.n39.eu From 3881a35bb545a79d14114c1fe8c063954ae4fc43 Mon Sep 17 00:00:00 2001 From: David Kilias Date: Wed, 19 Oct 2022 22:20:50 +0200 Subject: [PATCH 2/3] =?UTF-8?q?feat:=20=E2=9C=A8=20add=20influxdb=20docker?= =?UTF-8?q?=20config=20to=20pottwal?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- inventory.yml | 8 ++++++++ pottwal.yml | 34 ++++++++++++++++++++++++++++++++++ 2 files changed, 42 insertions(+) diff --git a/inventory.yml b/inventory.yml index 17c0ed2..bfd5b25 100644 --- a/inventory.yml +++ b/inventory.yml @@ -102,6 +102,14 @@ all: 32366339366433626466306634383563343633343736393735336130363462346265646431393839 3566326231663663340a383731353935366234643132386438663736313938356266613432303232 3165 + influxdb_init_username: admin + influxdb_init_password: !vault | + $ANSIBLE_VAULT;1.1;AES256 + 30316166356665623137386637353262316230616462356365333734323464363438666461323262 + 6463643839386563313765323534386365396131323462650a313737643139656638373265623433 + 37663136346132623166336139303234323433616634336332663133653532643336303362303161 + 3231306434626336370a363265643462366231326263313563306366393930633765633934386362 + 34316566643132353936636661623365663331333636636462316366623366383864 unicorn.n39.eu: server_admin: "admin+unicorn@netz39.de" platon.n39.eu: diff --git a/pottwal.yml b/pottwal.yml index 375725c..35f5c66 100644 --- a/pottwal.yml +++ b/pottwal.yml @@ -24,6 +24,9 @@ redmine_mysql_image: mysql:5.7 redmine_database: redmine + influxdb_host_port: 8088 + influxdb_image: influxdb:2.4-alpine + roles: - role: docker_setup vars: @@ -258,6 +261,37 @@ site_name: pad.n39.eu proxy_port: "{{ hedgedoc_host_port }}" + - name: Ensure the influxdb directories exist + file: + path: "{{ item }}" + state: directory + with_items: + - "{{ data_dir }}/influxdb" + + - name: Ensure container for influxdb is running + docker_container: + name: influxdb + image: "{{ influxdb_image }}" + pull: true + state: started + detach: yes + ports: + - "127.0.0.1:{{ influxdb_host_port }}:8086" + restart_policy: unless-stopped + env: + DOCKER_INFLUXDB_INIT_USERNAME: "{{ influxdb_init_username }}" + DOCKER_INFLUXDB_INIT_PASSWORD: "{{ influxdb_init_password }}" + DOCKER_INFLUXDB_INIT_ORG: Netz39 + DOCKER_INFLUXDB_INIT_BUCKET: default + volumes: + - "{{ data_dir }}/influxdb:/var/lib/influxdb2" + + - name: Setup proxy site influx.n39.eu + include_role: + name: setup-http-site-proxy + vars: + site_name: influx.n39.eu + proxy_port: "{{ influxdb_host_port }}" # Expected setup for the data directory # file: configuration.yml From f30e482dd6f33fe7c507b6fd4e49083e69d6d88c Mon Sep 17 00:00:00 2001 From: Stefan Haun Date: Thu, 20 Oct 2022 22:52:15 +0200 Subject: [PATCH 3/3] :sparkles: Add influx.n39.eu to dehydrated --- pottwal.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/pottwal.yml b/pottwal.yml index 35f5c66..5f1497a 100644 --- a/pottwal.yml +++ b/pottwal.yml @@ -47,6 +47,7 @@ - conference.jabber.n39.eu deploy_cert_hook: "docker exec prosody prosodyctl --root cert import ${DOMAIN} /var/lib/dehydrated/certs" - name: redmine.n39.eu + - name: influx.n39.eu - role: penguineer.dehydrated_cron - role: dd24-dyndns-cron # variables are set in the inventory