From cf9a6c94b8f8eca2bd8dcd08987e1dfbc0fc70fb Mon Sep 17 00:00:00 2001 From: Manuel Montecelo Date: Mon, 31 May 2021 21:56:22 +0200 Subject: [PATCH] TT#104381 Add missing tests of dirs in /ngcp-data/*, symlinks from /var/lib For some reason some of the existing directories are tested while others are not. Add them, as some of them are created in the installer, so they will be missing in upgrades installing through second root partition, and we want to catch those cases before we start upgrading real systems. Change-Id: If74db0fa91a16202d0c1297acc3d20abc3c09962 --- templates/130_filesys-ngcp.yaml.tt2 | 103 ++++++++++++++++++++++++++++ 1 file changed, 103 insertions(+) diff --git a/templates/130_filesys-ngcp.yaml.tt2 b/templates/130_filesys-ngcp.yaml.tt2 index 4d234c0..41d2f61 100644 --- a/templates/130_filesys-ngcp.yaml.tt2 +++ b/templates/130_filesys-ngcp.yaml.tt2 @@ -239,3 +239,106 @@ file: group: root linked-to: /ngcp-data/backup filetype: symlink + + /ngcp-data/influxdb: + exists: true + mode: "0755" + owner: influxdb + group: influxdb + filetype: directory + + /var/lib/influxdb: + exists: true + mode: "0777" + owner: root + group: root + linked-to: /ngcp-data/influxdb + filetype: symlink + + /ngcp-data/prometheus: + exists: true + mode: "0755" + owner: prometheus + group: prometheus + filetype: directory + + /var/lib/prometheus: + exists: true + mode: "0777" + owner: root + group: root + linked-to: /ngcp-data/prometheus + filetype: symlink + + /ngcp-data/victoria-metrics: + exists: true + mode: "0755" + owner: _victoria-metrics + group: _victoria-metrics + filetype: directory + + /var/lib/victoria-metrics: + exists: true + mode: "0777" + owner: root + group: root + linked-to: /ngcp-data/victoria-metrics + filetype: symlink + + /ngcp-data/redis: + exists: true + mode: "0755" + owner: redis + group: redis + filetype: directory + + /var/lib/redis: + exists: true + mode: "0777" + owner: root + group: root + linked-to: /ngcp-data/redis + filetype: symlink + + /ngcp-data/logfs: + exists: true + mode: "0700" + owner: root + group: root + filetype: directory + + /ngcp-data/logs: + exists: true + mode: "0755" + owner: root + group: adm + filetype: directory + + /var/log/ngcp: + exists: true + mode: "0777" + owner: root + group: root + linked-to: /ngcp-data/logs + filetype: symlink + + /ngcp-data/spool: + exists: true + mode: "0755" + owner: root + group: root + filetype: directory + + /ngcp-data/spool/faxserver: + exists: true + mode: "2770" + owner: faxserver + group: faxserver + filetype: directory + + /ngcp-data/spool/websocket: + exists: true + mode: "2770" + owner: websocket + group: websocket + filetype: directory