The postgres_initdb module is used to initialize the postgresql data directory.
New in version 2016.3.0.
pgsql-data-dir:
postgres_initdb.present:
- name: /var/lib/pgsql/data
- auth: password
- user: postgres
- password: strong_password
- encoding: UTF8
- locale: C
- runas: postgres
salt.states.postgres_initdb.
__virtual__
()¶Only load if the postgres module is present
salt.states.postgres_initdb.
present
(name, user=None, password=None, auth=u'password', encoding=u'UTF8', locale=None, runas=None)¶Initialize the PostgreSQL data directory
Docs for previous releases are available on readthedocs.org.
Latest Salt release: 2018.3.0