File manager - Edit - /opt/saltstack/salt/lib/python3.10/site-packages/salt/states/__pycache__/postgres_initdb.cpython-310.pyc
Back
o ;j@ � @ s* d Z dd� Z d dd�ZdS ) a Initialization of PostgreSQL data directory =========================================== The postgres_initdb module is used to initialize the postgresql data directory. .. versionadded:: 2016.3.0 .. code-block:: yaml pgsql-data-dir: postgres_initdb.present: - name: /var/lib/pgsql/data - auth: password - user: postgres - password: strong_password - encoding: UTF8 - locale: C - runas: postgres - checksums: True - waldir: /var/postgresql/wal c C s dt vrdS dS )z5 Only load if the postgres module is present �postgres.datadir_init)FzFUnable to load postgres module. Make sure `postgres.bins_dir` is set.T)�__salt__� r r �O/opt/saltstack/salt/lib/python3.10/site-packages/salt/states/postgres_initdb.py�__virtual__ s r N�password�UTF8Fc C s� d| � d�} | i d| d�} t d | d�s^td r(d| d <