Fix PostgreSQL tests for newer FreeBSD versions (#67658)

Use PostgreSQL 9.5 on FreeBSD 12.0, and PostgreSQL 11 on FreeBSD 12.1 and 11.3 due to the Python packages having a dependency on that version of PostgreSQL and automatically uninstalling PostgreSQL 9.5.

* Use separate PostgreSQL versions for 12.0 and 12.1
pull/67827/head
Sam Doran 5 years ago committed by GitHub
parent cfe96b2092
commit d7546ba336
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -59,7 +59,9 @@
loop_var: loop_item loop_var: loop_item
- name: install dependencies for postgresql test - name: install dependencies for postgresql test
package: name={{ postgresql_package_item }} state=present package:
name: "{{ postgresql_package_item }}"
state: present
with_items: "{{ postgresql_packages }}" with_items: "{{ postgresql_packages }}"
loop_control: loop_control:
loop_var: postgresql_package_item loop_var: postgresql_package_item

@ -0,0 +1,12 @@
postgresql_packages:
- postgresql95-server
- py36-psycopg2
pg_dir: /usr/local/pgsql/data
pg_hba_location: "{{ pg_dir }}/pg_hba.conf"
pg_ver: 9.5
pg_user: pgsql
pg_group: pgsql
locale_latin_suffix: .ISO8859-1
locale_utf8_suffix: .UTF-8

@ -0,0 +1,12 @@
postgresql_packages:
- postgresql95-server
- py27-psycopg2
pg_dir: /usr/local/pgsql/data
pg_hba_location: "{{ pg_dir }}/pg_hba.conf"
pg_ver: 9.5
pg_user: pgsql
pg_group: pgsql
locale_latin_suffix: .ISO8859-1
locale_utf8_suffix: .UTF-8

@ -0,0 +1,12 @@
postgresql_packages:
- postgresql95-server
- py36-psycopg2
pg_dir: /usr/local/pgsql/data
pg_hba_location: "{{ pg_dir }}/pg_hba.conf"
pg_ver: 9.5
pg_user: pgsql
pg_group: pgsql
locale_latin_suffix: .ISO8859-1
locale_utf8_suffix: .UTF-8

@ -0,0 +1,12 @@
postgresql_packages:
- postgresql96-server
- py27-psycopg2
pg_dir: /usr/local/pgsql/data
pg_hba_location: "{{ pg_dir }}/pg_hba.conf"
pg_ver: 9.6
pg_user: pgsql
pg_group: pgsql
locale_latin_suffix: .ISO8859-1
locale_utf8_suffix: .UTF-8

@ -0,0 +1,12 @@
postgresql_packages:
- postgresql11-server
- py36-psycopg2
pg_dir: /var/db/postgres/data11
pg_hba_location: "{{ pg_dir }}/pg_hba.conf"
pg_ver: 11
pg_user: postgres
pg_group: postgres
locale_latin_suffix: .ISO8859-1
locale_utf8_suffix: .UTF-8

@ -0,0 +1,12 @@
postgresql_packages:
- postgresql11-server
- py27-psycopg2
pg_dir: /var/db/postgres/data11
pg_hba_location: "{{ pg_dir }}/pg_hba.conf"
pg_ver: 11
pg_user: postgres
pg_group: postgres
locale_latin_suffix: .ISO8859-1
locale_utf8_suffix: .UTF-8

@ -1,12 +0,0 @@
postgresql_packages:
- "postgresql95-server"
- "py36-psycopg2"
pg_hba_location: "/usr/local/pgsql/data/pg_hba.conf"
pg_dir: "/usr/local/pgsql/data"
pg_ver: 9.5
pg_user: pgsql
pg_group: pgsql
locale_latin_suffix: .ISO8859-1
locale_utf8_suffix: .UTF-8

@ -1,12 +0,0 @@
postgresql_packages:
- "postgresql95-server"
- "py27-psycopg2"
pg_hba_location: "/usr/local/pgsql/data/pg_hba.conf"
pg_dir: "/usr/local/pgsql/data"
pg_ver: 9.5
pg_user: pgsql
pg_group: pgsql
locale_latin_suffix: .ISO8859-1
locale_utf8_suffix: .UTF-8
Loading…
Cancel
Save