From 5b327382fc56ba08a439b4576d646301581dd46f Mon Sep 17 00:00:00 2001 From: Stefan Haun Date: Wed, 16 Nov 2022 19:21:58 +0100 Subject: [PATCH 1/2] :wrench: Move influx data to subdirectory --- host-pottwal.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/host-pottwal.yml b/host-pottwal.yml index 464e86f..03e0972 100644 --- a/host-pottwal.yml +++ b/host-pottwal.yml @@ -277,7 +277,9 @@ DOCKER_INFLUXDB_INIT_ORG: Netz39 DOCKER_INFLUXDB_INIT_BUCKET: default volumes: - - "{{ data_dir }}/influxdb:/var/lib/influxdb2" + - "{{ data_dir }}/influxdb/data:/var/lib/influxdb2" + tags: + - dev - name: Setup proxy site {{ influxdb_domain_name }} include_role: From 039e64040cbac485f4f7ded2e043def81c19a57c Mon Sep 17 00:00:00 2001 From: Stefan Haun Date: Thu, 17 Nov 2022 00:13:54 +0100 Subject: [PATCH 2/2] :wrench: Mount configuration for influxdb from data dir --- host-pottwal.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/host-pottwal.yml b/host-pottwal.yml index 03e0972..d2c9271 100644 --- a/host-pottwal.yml +++ b/host-pottwal.yml @@ -259,6 +259,8 @@ state: directory with_items: - "{{ data_dir }}/influxdb" + - "{{ data_dir }}/influxdb/data" + - "{{ data_dir }}/influxdb/cfg" - name: Ensure container for influxdb is running docker_container: @@ -278,8 +280,7 @@ DOCKER_INFLUXDB_INIT_BUCKET: default volumes: - "{{ data_dir }}/influxdb/data:/var/lib/influxdb2" - tags: - - dev + - "{{ data_dir }}/influxdb/cfg:/etc/influxdb2" - name: Setup proxy site {{ influxdb_domain_name }} include_role: