Skip to content
Snippets Groups Projects
Unverified Commit 27473b98 authored by Imran Iqbal's avatar Imran Iqbal
Browse files

test(pillar): use separate pillars to test `default` & `repo` suites

parent a6c81972
No related branches found
No related tags found
No related merge requests found
...@@ -8,21 +8,7 @@ postgres.port: '5433' ...@@ -8,21 +8,7 @@ postgres.port: '5433'
{%- endif %} {%- endif %}
postgres: postgres:
# UPSTREAM REPO use_upstream_repo: false
# Set True to configure upstream postgresql.org repository for YUM/APT/ZYPP
{%- if grains.os_family != 'Debian' and salt['grains.get']('osfinger') != 'CentOS-6' %}
use_upstream_repo: False
{%- else %}
use_upstream_repo: True
# Version to install from upstream repository (if upstream_repo: True)
version: '13'
# # Set True to add a file in /etc/profile.d adding the bin dir in $PATH
# # as packages from upstream put them somewhere like /usr/pgsql-10/bin
# add_profile: False
# # If automatic package installation fails, use `fromrepo` to specify the
# # upstream repo to install packages from [#133, #185] (if upstream_repo: True)
# fromrepo: 'jessie-pgdg'
{%- endif %}
# ### MACOS # ### MACOS
# # Set to 'postgresapp' OR 'homebrew' for MacOS # # Set to 'postgresapp' OR 'homebrew' for MacOS
...@@ -177,7 +163,8 @@ postgres: ...@@ -177,7 +163,8 @@ postgres:
public: public:
owner: localUser owner: localUser
# enable per-db extension # enable per-db extension
{%- if grains.os_family == 'Debian' and salt['grains.get']('osfinger') != 'Debian-8' %} {#- TODO: Find a way to only disable this for the `default` suite, since it works with the `repo` suite #}
{%- if grains.os_family == 'Debian' and salt['grains.get']('osfinger') != 'Debian-9' %}
extensions: extensions:
uuid-ossp: uuid-ossp:
schema: 'public' schema: 'public'
...@@ -190,7 +177,8 @@ postgres: ...@@ -190,7 +177,8 @@ postgres:
owner: localUser owner: localUser
# optional extensions to install in schema # optional extensions to install in schema
{%- if grains.os_family == 'Debian' and salt['grains.get']('osfinger') != 'Debian-8' %} {#- TODO: Find a way to only disable this for the `default` suite, since it works with the `repo` suite #}
{%- if grains.os_family == 'Debian' and salt['grains.get']('osfinger') != 'Debian-9' %}
extensions: extensions:
uuid-ossp: uuid-ossp:
schema: uuid-ossp schema: uuid-ossp
......
---
postgres:
use_upstream_repo: true
version: '13'
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment