From 280b101b8a80f6d39ff86f2515c20b5f1e75fa2d Mon Sep 17 00:00:00 2001 From: Alan Moran Date: Mon, 10 Jun 2024 11:25:31 +0200 Subject: [PATCH] Deploy postgres db --- ci/infrastructure/scripts/deploy-postgres.sh | 1 + ci/operations/postgres/add_databases.yml | 19 +++++++++++++++++++ 2 files changed, 20 insertions(+) create mode 100644 ci/operations/postgres/add_databases.yml diff --git a/ci/infrastructure/scripts/deploy-postgres.sh b/ci/infrastructure/scripts/deploy-postgres.sh index c59ea4f525..69818efef0 100755 --- a/ci/infrastructure/scripts/deploy-postgres.sh +++ b/ci/infrastructure/scripts/deploy-postgres.sh @@ -20,6 +20,7 @@ release_ops="${repo_dir}/templates/operations" ops_files=${OPS_FILES:-"${release_ops}/use_ssl.yml\ ${release_ops}/add_static_ips.yml\ ${ci_dir}/operations/postgres/set_disk.yml\ + ${ci_dir}/operations/postgres/add_databases.yml\ "} diff --git a/ci/operations/postgres/add_databases.yml b/ci/operations/postgres/add_databases.yml new file mode 100644 index 0000000000..7ca77cb83f --- /dev/null +++ b/ci/operations/postgres/add_databases.yml @@ -0,0 +1,19 @@ +- type: replace + path: /instance_groups/name=postgres/jobs/name=postgres/properties?/databases/databases/name=sandbox? + value: + name: multiapps_controller + citext: true + +- type: replace + path: /instance_groups/name=postgres/jobs/name=postgres/properties?/databases/roles/name=pgadmin? + value: + name: pgadmin + password: ((pgadmin_database_password)) + permissions: + - "CONNECTION LIMIT 50" + +- type: replace + path: /variables?/name=pgadmin_database_password? + value: + name: pgadmin_database_password + type: password