Support for upstream postgresql.org zypp repo after PR review

This commit is contained in:
Noel McLoughin
2018-01-14 16:05:12 +00:00
committed by noelmcloughlin
parent a87ccfb0ed
commit 22b11fd680
2 changed files with 45 additions and 14 deletions

View File

@@ -1,19 +1,20 @@
postgres:
# Set True to configure upstream postgresql.org repository for YUM or APT
# UPSTREAM REPO
# Set True to configure upstream postgresql.org repository for YUM/APT/ZYPP
use_upstream_repo: False
# Version to install from upstream repository
version: '9.3'
# Version to install from upstream repository (if upstream_repo: True)
version: '9.6'
# These are Debian/Ubuntu specific package names
pkg: 'postgresql-9.3'
pkg_client: 'postgresql-client-9.3'
# Additional packages to install with PostgreSQL server,
# this should be in a list format
# PACKAGE
# These pillars are typically never required.
# pkg: 'postgresql'
# pkg_client: 'postgresql-client'
# service: postgresql
pkgs_extra:
- postgresql-contrib
- postgresql-plpython
# POSTGRES
# Append the lines under this item to your postgresql.conf file.
# Pay attention to indent exactly with 4 spaces for all lines.
postgresconf: |
@@ -48,9 +49,6 @@ postgres:
config_backup: ".backup@{{ salt['status.time']('%y-%m-%d_%H:%M:%S') }}"
{%- endif %}
# PostgreSQL service name
service: postgresql
{%- if grains['init'] == 'unknown' %}
# If Salt is unable to detect init system running in the scope of state run,