X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/332a26ebf92320cf4c3c9a02cf3d82870dc742bf..d70538d2019716a15159f85079d1174cc84e8407:/tools/salt-install/config_examples/single_host/single_hostname/pillars/postgresql.sls diff --git a/tools/salt-install/config_examples/single_host/single_hostname/pillars/postgresql.sls b/tools/salt-install/config_examples/single_host/single_hostname/pillars/postgresql.sls index 71e712cad3..14452a9905 100644 --- a/tools/salt-install/config_examples/single_host/single_hostname/pillars/postgresql.sls +++ b/tools/salt-install/config_examples/single_host/single_hostname/pillars/postgresql.sls @@ -5,21 +5,42 @@ ### POSTGRESQL postgres: + # Centos-7's postgres package is too old, so we need to force using upstream's + # This is not required in Debian's family as they already ship with PG +11 + {%- if salt['grains.get']('os_family') == 'RedHat' %} + use_upstream_repo: true + version: '12' + + pkgs_deps: + - libicu + - libxslt + - systemd-sysv + + pkgs_extra: + - postgresql12-contrib + + {%- else %} use_upstream_repo: false pkgs_extra: - postgresql-contrib + {%- endif %} postgresconf: |- listen_addresses = '*' # listen on all interfaces + # If you want to enable communications' encryption to the DB server, + # uncomment these entries + # ssl = on + # ssl_cert_file = '/etc/ssl/certs/arvados-snakeoil-cert.pem' + # ssl_key_file = '/etc/ssl/private/arvados-snakeoil-cert.key' acls: - ['local', 'all', 'postgres', 'peer'] - ['local', 'all', 'all', 'peer'] - ['host', 'all', 'all', '127.0.0.1/32', 'md5'] - ['host', 'all', 'all', '::1/128', 'md5'] - - ['host', '__CLUSTER___arvados', '__CLUSTER___arvados', '127.0.0.1/32'] + - ['host', '__CLUSTER___arvados', '__CLUSTER___arvados', '127.0.0.0/8'] users: __CLUSTER___arvados: ensure: present - password: __DATABASE_PASSWORD__ + password: "__DATABASE_PASSWORD__" # tablespaces: # arvados_tablespace: