From 09d497c9c5df488fefa7b071205fc234c460875d Mon Sep 17 00:00:00 2001 From: Terence Tuhinanshu Date: Fri, 18 Oct 2024 13:34:57 -0400 Subject: [PATCH 1/2] Upgrade dev to PostgreSQL 14, PostGIS 3.5 --- deployment/ansible/group_vars/all | 6 +++--- .../tasks/install-postgis-from-source.yml | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/deployment/ansible/group_vars/all b/deployment/ansible/group_vars/all index b2ac8a7f1..6280cf7a0 100644 --- a/deployment/ansible/group_vars/all +++ b/deployment/ansible/group_vars/all @@ -10,7 +10,7 @@ postgres_password: "cac_tripplanner" postgres_host: "192.168.56.25" postgresql_support_psycopg2_version: "2.9.*" -'postgis_version': [3, 0, 1] +'postgis_version': [3, 5, 0] packer_version: "1.5.4" @@ -29,8 +29,8 @@ papertrail_log_files: - "/var/log/event-feed.log" - "/var/log/upstart/otp.log" -postgresql_version: "12" -postgresql_package_version: "12.*.pgdg20.04+1" +postgresql_version: "14" +postgresql_package_version: "14.*.pgdg20.04+1" postgresql_support_libpq_version: "*" postgresql_listen_addresses: "*" diff --git a/deployment/ansible/roles/cac-tripplanner.database/tasks/install-postgis-from-source.yml b/deployment/ansible/roles/cac-tripplanner.database/tasks/install-postgis-from-source.yml index 120cf7943..07dca84a6 100644 --- a/deployment/ansible/roles/cac-tripplanner.database/tasks/install-postgis-from-source.yml +++ b/deployment/ansible/roles/cac-tripplanner.database/tasks/install-postgis-from-source.yml @@ -28,7 +28,7 @@ args: chdir: "/tmp/postgis-{{ postgis_version | join('.') }}" with_items: - - ./configure + - ./configure --without-protobuf - make - make install - ldconfig From 7dcd78baf89b7d82023dd659e1e1b57f5174892a Mon Sep 17 00:00:00 2001 From: Terence Tuhinanshu Date: Tue, 5 Nov 2024 11:26:10 -0500 Subject: [PATCH 2/2] Remove overridden, confusing defaults --- .../ansible/roles/cac-tripplanner.database/defaults/main.yml | 2 -- 1 file changed, 2 deletions(-) diff --git a/deployment/ansible/roles/cac-tripplanner.database/defaults/main.yml b/deployment/ansible/roles/cac-tripplanner.database/defaults/main.yml index 8400892e2..6307bd6e6 100644 --- a/deployment/ansible/roles/cac-tripplanner.database/defaults/main.yml +++ b/deployment/ansible/roles/cac-tripplanner.database/defaults/main.yml @@ -1,7 +1,5 @@ --- # postgresql defaults copied from azavea.postgresql -postgresql_version: "12" -postgresql_package_version: "12.*.*" postgresql_listen_addresses: localhost postgresql_port: 5432 postgresql_data_directory: /var/lib/postgresql/{{ postgresql_version }}/main