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
Initialize the PostgreSQL data directory
The transaction log (WAL) directory (default is to keep WAL inside the data directory)
New in version 2019.2.0.
If True, the cluster will be created with data page checksums.
Note
Data page checksums are supported since PostgreSQL 9.3.
New in version 2019.2.0.
© 2019 SaltStack.
Licensed under the Apache License, Version 2.0.
https://docs.saltstack.com/en/latest/ref/states/all/salt.states.postgres_initdb.html