Skip to content

Commit fbffae3

Browse files
authored
Merge pull request #9 from jburel/psql15
Psql15
2 parents cac41e4 + 18b5142 commit fbffae3

File tree

9 files changed

+41
-24
lines changed

9 files changed

+41
-24
lines changed

.github/workflows/molecule.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ jobs:
3232
- uses: actions/checkout@v4
3333
- uses: actions/setup-python@v4
3434
with:
35-
python-version: '3.8'
35+
python-version: '3.9'
3636
- name: Install Ansible & Molecule
3737
run: |
3838
pip install "ansible<8" "ansible-lint<6.13" flake8

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,8 @@ Role Variables
1313
--------------
1414

1515
Required:
16-
- `postgresql_version`: The PostgreSQL major version, e.g. `12`, `13`, `14`
16+
17+
- `postgresql_version`: The PostgreSQL major version, e.g. `11`, `12`, `13`, `14`, `15`, `16`
1718

1819
Optional:
1920
- `postgresql_package_version`: The PostgreSQL full version, ignored on Ubuntu, e.g. `12.11`

meta/main.yml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ galaxy_info:
44
description: Upstream PostgreSQL client
55
company: Open Microscopy Environment
66
license: BSD
7-
min_ansible_version: 2.6
7+
min_ansible_version: '2.10'
88
platforms:
99
- name: EL
1010
versions:
@@ -15,5 +15,3 @@ galaxy_info:
1515
namespace: ome
1616
role_name: postgresql_client
1717
galaxy_tags: ['postgresql', 'database']
18-
19-
dependencies: []

molecule/rockylinux9/molecule.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,10 @@ platforms:
1414
image: rockylinux:9
1515
- name: postgresql14
1616
image: rockylinux:9
17+
- name: postgresql15
18+
image: rockylinux:9
19+
- name: postgresql16
20+
image: rockylinux:9
1721
provisioner:
1822
name: ansible
1923
lint:
@@ -27,6 +31,10 @@ provisioner:
2731
postgresql_version: "13"
2832
postgresql14:
2933
postgresql_version: "14"
34+
postgresql15:
35+
postgresql_version: "15"
36+
postgresql16:
37+
postgresql_version: "16"
3038
playbooks:
3139
converge: ../resources/playbook.yml
3240
scenario:

molecule/ubuntu2204/molecule.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,10 @@ platforms:
1414
image: ubuntu:22.04
1515
- name: postgresql14
1616
image: ubuntu:22.04
17+
- name: postgresql15
18+
image: ubuntu:22.04
19+
- name: postgresql16
20+
image: ubuntu:22.04
1721
provisioner:
1822
name: ansible
1923
lint:
@@ -26,6 +30,10 @@ provisioner:
2630
postgresql_version: "13"
2731
postgresql14:
2832
postgresql_version: "14"
33+
postgresql15:
34+
postgresql_version: "15"
35+
postgresql16:
36+
postgresql_version: "16"
2937
playbooks:
3038
converge: ../resources/playbook.yml
3139
scenario:

tasks/debian.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,26 @@
11
---
22

3-
- name: postgres | install gpg for apt repo
3+
- name: Postgres | install gpg for apt repo
44
become: true
55
ansible.builtin.apt:
66
update_cache: true
77
name: gnupg
88
state: present
99

10-
- name: postgres | get postgresql apt key
10+
- name: Postgres | get postgresql apt key
1111
become: true
12-
apt_key:
12+
ansible.builtin.apt_key:
1313
url: https://www.postgresql.org/media/keys/ACCC4CF8.asc
1414
state: present
1515

16-
- name: postgres | setup apt repo
16+
- name: Postgres | setup apt repo
1717
become: true
18-
apt_repository:
18+
ansible.builtin.apt_repository:
1919
codename: "{{ ansible_distribution_release }}"
2020
repo: deb http://apt.postgresql.org/pub/repos/apt/
2121
{{ ansible_distribution_release }}-pgdg main
2222

23-
- name: postgres | install client packages
23+
- name: Postgres | install client packages
2424
become: true
2525
ansible.builtin.apt:
2626
update_cache: true

tasks/main.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
11
---
22

3-
- import_tasks: redhat.yml
3+
- name: Import tasks for redhat
4+
ansible.builtin.import_tasks: redhat.yml
45
when: ansible_os_family | lower == 'redhat'
56

6-
- import_tasks: debian.yml
7+
- name: Import tasks for debian
8+
ansible.builtin.import_tasks: debian.yml
79
when: ansible_os_family | lower == 'debian'

tasks/redhat.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
key: https://download.postgresql.org/pub/repos/yum/keys/PGDG-RPM-GPG-KEY-AARCH64-RHEL
1313
when: ansible_facts.get('architecture') is search("aarch64")
1414

15-
- name: postgres | setup dnf repository for arch64
15+
- name: Postgres | setup dnf repository for arch64
1616
become: true
1717
ansible.builtin.dnf:
1818
update_cache: true
@@ -21,7 +21,7 @@
2121
state: present
2222
when: ansible_facts.get('architecture') is search("aarch64")
2323

24-
- name: postgres | setup dnf repository for amd64
24+
- name: Postgres | setup dnf repository for amd64
2525
become: true
2626
ansible.builtin.dnf:
2727
update_cache: true
@@ -30,7 +30,7 @@
3030
state: present
3131
when: ansible_facts.get('architecture') is search("x86_64")
3232

33-
- name: postgres | install client packages
33+
- name: Postgres | install client packages
3434
become: true
3535
ansible.builtin.dnf:
3636
update_cache: true

vars/main.yml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -4,14 +4,6 @@
44
# DEPRECATED
55
# This variable includes information used by the postgresql (server) role
66
postgresql_distribution_redhat:
7-
"9.6":
8-
repo: pgdg96
9-
basename: postgresql96
10-
setup: postgresql96-setup
11-
"11":
12-
repo: pgdg11
13-
basename: postgresql11
14-
setup: postgresql-11-setup
157
"12":
168
repo: pgdg12
179
basename: postgresql12
@@ -24,3 +16,11 @@ postgresql_distribution_redhat:
2416
repo: pgdg14
2517
basename: postgresql14
2618
setup: postgresql-14-setup
19+
"15":
20+
repo: pgdg15
21+
basename: postgresql15
22+
setup: postgresql-15-setup
23+
"16":
24+
repo: pgdg16
25+
basename: postgresql16
26+
setup: postgresql-16-setup

0 commit comments

Comments
 (0)