From bcd3ff1a7b248c9f99a715ae896cd7d74411b6f2 Mon Sep 17 00:00:00 2001 From: Alex Demidoff Date: Tue, 5 Dec 2023 20:01:12 +0000 Subject: [PATCH] PMM-7 try postgres user --- build/ansible/roles/pmm-images/tasks/main.yml | 1 + update/ansible/playbook/tasks/roles/postgres/tasks/main.yml | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/build/ansible/roles/pmm-images/tasks/main.yml b/build/ansible/roles/pmm-images/tasks/main.yml index 10673e278b..790ed8fcf5 100644 --- a/build/ansible/roles/pmm-images/tasks/main.yml +++ b/build/ansible/roles/pmm-images/tasks/main.yml @@ -85,6 +85,7 @@ non_unique: true loop: - { name: pmm, uid: 1000, comment: "PMM Server", shell: "/bin/false", home: "/home/pmm", group: pmm, } + - { name: postgres, uid: 1001, comment: "Postgresql", shell: "/sbin/nologin", home: "/dev/null", group: pmm, } - { name: nginx, uid: 999, comment: "nginx user", shell: "/sbin/nologin", home: "/var/cache/nginx", group: nginx, } - { name: clickhouse, uid: 997, comment: "Clickhouse server", shell: "/sbin/nologin", home: "/var/lib/clickhouse", group: clickhouse, } when: ansible_virtualization_type == "docker" diff --git a/update/ansible/playbook/tasks/roles/postgres/tasks/main.yml b/update/ansible/playbook/tasks/roles/postgres/tasks/main.yml index 731ae2e82d..e38f271d7a 100644 --- a/update/ansible/playbook/tasks/roles/postgres/tasks/main.yml +++ b/update/ansible/playbook/tasks/roles/postgres/tasks/main.yml @@ -75,7 +75,7 @@ become_method: su ignore_errors: True - - name: Check /srv/postgres14 ownership + - name: Print postgres14 logs shell: cat /srv/logs/postgresql14.log - name: Start Postgres database without supervisor