Merge branch 'master' into alternatives

This commit is contained in:
N
2018-03-06 16:26:08 +00:00
committed by GitHub
6 changed files with 57 additions and 25 deletions

View File

@@ -1,23 +1,25 @@
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
#'Alternatives system' priority incremental. 0 disables feature.
linux:
altpriority: 30
# POSTGRES
# Append the lines under this item to your postgresql.conf file.
# Pay attention to indent exactly with 4 spaces for all lines.
postgresconf: |
@@ -52,9 +54,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,