avoid volume sprawl

This commit is contained in:
Jason Ertel
2023-09-18 11:19:21 -04:00
parent e067b7134e
commit f9cbde10a6
6 changed files with 26 additions and 0 deletions

View File

@@ -25,6 +25,14 @@ influxlogdir:
- group: 939
- makedirs: True
influxlogdir:
file.directory:
- name: /opt/so/conf/influxdb/etc
- dir_mode: 750
- user: 939
- group: 939
- makedirs: True
influxdbdir:
file.directory:
- name: /nsm/influxdb

View File

@@ -38,6 +38,7 @@ so-influxdb:
- binds:
- /opt/so/log/influxdb/:/log:rw
- /opt/so/conf/influxdb/config.yaml:/conf/config.yaml:ro
- /opt/so/conf/influxdb/etc:/etc/influxdb2:rw
- /nsm/influxdb:/var/lib/influxdb2:rw
- /etc/pki/influxdb.crt:/conf/influxdb.crt:ro
- /etc/pki/influxdb.key:/conf/influxdb.key:ro