puppet: process_fts_updates connects as nagios (or provided username).

It should not use the configured zulip username, but should instead
pull from the login user (likely `nagios`), or an explicit alternate
provided PostgreSQL username.  Failure to do so results in Nagios
failures because the `nagios` login does not have permissions to
authenticated the `zulip` PostgreSQL user.

This requires CI changes, as the install tests install as the `zulip`
login username, which allowed Nagios tests to pass previously; with
the custom database and username, however, they must be passed to
process_fts_updates explicitly when validating the install.
This commit is contained in:
Alex Vandiver
2021-12-13 20:23:23 -08:00
committed by Tim Abbott
parent 9d67e37166
commit 71b56f7c1c
3 changed files with 46 additions and 4 deletions

View File

@@ -194,7 +194,7 @@ jobs:
sudo /tmp/production-install ${{ matrix.extra-args }}
- name: Verify install
run: sudo /tmp/production-verify
run: sudo /tmp/production-verify ${{ matrix.extra-args }}
- name: Install pgroonga
if: ${{ matrix.is_bionic }}
@@ -202,7 +202,7 @@ jobs:
- name: Verify install after installing pgroonga
if: ${{ matrix.is_bionic }}
run: sudo /tmp/production-verify
run: sudo /tmp/production-verify ${{ matrix.extra-args }}
- name: Upgrade postgresql
if: ${{ matrix.is_bionic }}
@@ -210,7 +210,7 @@ jobs:
- name: Verify install after upgrading postgresql
if: ${{ matrix.is_bionic }}
run: sudo /tmp/production-verify
run: sudo /tmp/production-verify ${{ matrix.extra-args }}
- name: Report status
if: failure()