test(inspec): add tests for multiple ports and postgres versions

* Fix `opensuse-leap-15` (enable `suse` and workaround `service` bug)
* Use port `5433` for `debian` and `opensuse-leap-15`
* Use upstream repo version `10` for `debian`
This commit is contained in:
Imran Iqbal
2019-05-02 01:29:47 +01:00
parent 49fdd3333b
commit bf6a653e0b
4 changed files with 28 additions and 2 deletions

View File

@@ -1,6 +1,11 @@
# Port to use for the cluster -- can be used to provide a non-standard port
# NOTE: If already set in the minion config, that value takes priority
{%- if not (grains.os_family == 'Debian' or grains.osfinger == 'Leap-15') %}
postgres.port: '5432'
{%- else %}
postgres.port: '5433'
{%- endif %}
postgres:
# UPSTREAM REPO
@@ -10,7 +15,11 @@ postgres:
{%- else %}
use_upstream_repo: True
# Version to install from upstream repository (if upstream_repo: True)
{%- if not (grains.os_family == 'Debian') %}
version: '9.6'
{%- else %}
version: '10'
{%- endif %}
# # 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