Merge pull request 'Mount configuration for InfluxDB from data directory' (!117) from cfg-influxdb into master
Reviewed-on: https://gitea.n39.eu/Netz39_Admin/netz39-infra-ansible/pulls/117 Reviewed-by: dkdent <dkdent@netz39.de>
This commit is contained in:
commit
a33b2bed72
1 changed files with 4 additions and 1 deletions
|
@ -259,6 +259,8 @@
|
||||||
state: directory
|
state: directory
|
||||||
with_items:
|
with_items:
|
||||||
- "{{ data_dir }}/influxdb"
|
- "{{ data_dir }}/influxdb"
|
||||||
|
- "{{ data_dir }}/influxdb/data"
|
||||||
|
- "{{ data_dir }}/influxdb/cfg"
|
||||||
|
|
||||||
- name: Ensure container for influxdb is running
|
- name: Ensure container for influxdb is running
|
||||||
docker_container:
|
docker_container:
|
||||||
|
@ -277,7 +279,8 @@
|
||||||
DOCKER_INFLUXDB_INIT_ORG: Netz39
|
DOCKER_INFLUXDB_INIT_ORG: Netz39
|
||||||
DOCKER_INFLUXDB_INIT_BUCKET: default
|
DOCKER_INFLUXDB_INIT_BUCKET: default
|
||||||
volumes:
|
volumes:
|
||||||
- "{{ data_dir }}/influxdb:/var/lib/influxdb2"
|
- "{{ data_dir }}/influxdb/data:/var/lib/influxdb2"
|
||||||
|
- "{{ data_dir }}/influxdb/cfg:/etc/influxdb2"
|
||||||
|
|
||||||
- name: Setup proxy site {{ influxdb_domain_name }}
|
- name: Setup proxy site {{ influxdb_domain_name }}
|
||||||
include_role:
|
include_role:
|
||||||
|
|
Loading…
Reference in a new issue