Skip to content

Commit

Permalink
exclude paradedb test for debian 11
Browse files Browse the repository at this point in the history
  • Loading branch information
vitabaks committed Sep 17, 2024
1 parent 4f81e7b commit 104c1a1
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 11 deletions.
2 changes: 1 addition & 1 deletion automation/molecule/default/converge.yml
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@
enable_pg_wait_sampling: true
enable_pg_partman: true
enable_citus: "{{ 'false' if ansible_distribution_version == '24.04' else 'true' }}" # TODO Ubuntu 24.04
enable_paradedb: true # pg_search and pg_analytics
enable_paradedb: "{{ 'false' if ansible_distribution_release == 'bullseye' else 'true' }}" # pg_search and pg_analytics (no packages for debian 11)
# create extension
postgresql_schemas:
- { schema: "paradedb", db: "postgres", owner: "postgres" } # pg_search must be installed in the paradedb schema.
Expand Down
20 changes: 10 additions & 10 deletions automation/roles/pre-checks/tasks/extensions.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,16 @@
- (enable_timescale | default(false) | bool) or (enable_timescaledb | default(false) | bool)
- postgresql_version | string is version(timescale_minimal_pg_version | default(12) | string, '<')

- name: ParadeDB | Checking PostgreSQL version
run_once: true
ansible.builtin.fail:
msg:
- "The current PostgreSQL version ({{ postgresql_version }}) is not supported by the ParadeDB (pg_search, pg_analytics)."
- "PostgreSQL version must be {{ paradedb_minimal_pg_version | default(14) }} or higher."
when:
- (enable_paradedb | default(false) | bool) or (enable_pg_search | default(false) | bool) or (enable_pg_analytics | default(false) | bool)
- postgresql_version | string is version(paradedb_minimal_pg_version | default(14) | string, '<')

- name: ParadeDB | Checking supported operating system and version
run_once: true
ansible.builtin.fail:
Expand All @@ -26,16 +36,6 @@
(ansible_os_family == "RedHat" and ansible_distribution_major_version in ['8', '9'])
)

- name: ParadeDB | Checking PostgreSQL version
run_once: true
ansible.builtin.fail:
msg:
- "The current PostgreSQL version ({{ postgresql_version }}) is not supported by the ParadeDB (pg_search, pg_analytics)."
- "PostgreSQL version must be {{ paradedb_minimal_pg_version | default(14) }} or higher."
when:
- (enable_paradedb | default(false) | bool) or (enable_pg_search | default(false) | bool) or (enable_pg_analytics | default(false) | bool)
- postgresql_version | string is version(paradedb_minimal_pg_version | default(14) | string, '<')

# shared_preload_libraries
- name: Create a list of extensions
run_once: true
Expand Down

0 comments on commit 104c1a1

Please sign in to comment.