- Added initdb_user configuration, renamed postgres_user and postgres_group to user and group
- Corrected inadvertent changes to postgres_user - Fixed postgres_user - Explicitly list the grain that we're filtering by even though it's default - Place *BSD user and runas into osmap instead of hardcoding
This commit is contained in:
committed by
Tim Goodaire
parent
61acd4fd75
commit
8a4eb569f4
@@ -33,13 +33,6 @@ def _run_psql(cmd, runas=None, password=None, host=None, port=None, user=None):
|
||||
if runas is None:
|
||||
if not host:
|
||||
host = __salt__['config.option']('postgres.host')
|
||||
if not host or host.startswith('/'):
|
||||
if 'FreeBSD' in __grains__['os_family']:
|
||||
runas = 'pgsql'
|
||||
if 'OpenBSD' in __grains__['os_family']:
|
||||
runas = '_postgresql'
|
||||
else:
|
||||
runas = 'postgres'
|
||||
|
||||
if user is None:
|
||||
user = runas
|
||||
|
||||
Reference in New Issue
Block a user