Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 4 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jobs:
- name: Set up Python 3
uses: actions/setup-python@v4
with:
python-version: '3.x'
python-version: "3.x"

- name: Install pipenv
run: pip3 install pipenv
Expand All @@ -29,5 +29,6 @@ jobs:
- name: Run Molecule tests
run: pipenv run molecule test
env:
PY_COLORS: '1'
ANSIBLE_FORCE_COLOR: '1'
PY_COLORS: "1"
ANSIBLE_FORCE_COLOR: "1"
ANSIBLE_ALLOW_BROKEN_CONDITIONALS: "true"
1,226 changes: 679 additions & 547 deletions Pipfile.lock

Large diffs are not rendered by default.

2 changes: 2 additions & 0 deletions defaults/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,3 +44,5 @@ postgresql_random_page_cost: "4.0"
postgresql_max_standby_streaming_delay: "30s"
postgresql_autoprewarm_enabled: true
postgresql_dynamic_shared_memory_type: "mmap"

postgresql_build_cflags: ""
2 changes: 1 addition & 1 deletion molecule/default/converge.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,6 @@
hosts: all
become: true
roles:
- role: ansible-role-postgresql
- role: jobscore.postgresql
postgresql_configure_systemd: false
postgresql_version: 18.3
2 changes: 0 additions & 2 deletions molecule/default/molecule.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,6 @@ lint: |
set -e
yamllint .
platforms:
- name: focal
image: ubuntu:focal
- name: jammy
image: ubuntu:jammy
- name: noble
Expand Down
2 changes: 1 addition & 1 deletion molecule/default/verify.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
vars:
postgresql_version: 18.3
roles:
- role: ansible-role-postgresql
- role: jobscore.postgresql
postgresql_configure_systemd: false
post_tasks:
- name: Check Postgres version
Expand Down
6 changes: 6 additions & 0 deletions tasks/install.yml
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@
mode: 0755
owner: "{{ postgresql_user }}"
group: "{{ postgresql_user }}"
changed_when: false

- name: Get postgresql source code
unarchive:
Expand All @@ -67,14 +68,18 @@
creates: "{{ postgresql_tmp_dir }}/configure"
extra_opts:
- "--strip=1"
changed_when: false

- name: Configure postgresql source
become: true
become_user: "{{ postgresql_user }}"
command: ./configure {{ postgresql_config_params }} --prefix={{ postgresql_src_dir }} --with-openssl --with-systemd
environment:
CFLAGS: "{{ postgresql_build_cflags }}"
args:
chdir: "{{ postgresql_tmp_dir }}"
creates: "{{ postgresql_tmp_dir }}/GNUmakefile"
changed_when: false

- name: Build postgresql from source
become: true
Expand All @@ -83,6 +88,7 @@
args:
chdir: "{{ postgresql_tmp_dir }}"
creates: "{{ postgresql_tmp_dir }}/src/bin/psql/psql"
changed_when: false

- name: Install postgresql
command: make install-world
Expand Down
1 change: 1 addition & 0 deletions tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,3 +35,4 @@
file:
path: "{{ postgresql_tmp_dir }}"
state: absent
changed_when: false
Loading