@@ -19,7 +19,7 @@ postgres:
1919 postgresconf : |
2020 listen_addresses = '*' # listen on all interfaces
2121
22- # Backup extension for postgresql.conf file, defaults to `.bak`.
22+ # Backup extension for postgresql.conf file, defaults to `` .bak` `.
2323 # Set to False to stop creation of backup on postgresql.conf changes.
2424 {%- if 'status.time' in salt.keys() %}
2525 postgresconf_backup : " .backup@{{ salt['status.time']('%y-%m-%d_%H:%M:%S') }}"
@@ -28,7 +28,7 @@ postgres:
2828 # Path to the `pg_hba.conf` file Jinja template on Salt Fileserver
2929 pg_hba.conf : salt://postgres/templates/pg_hba.conf.j2
3030
31- # This section covers ACL management in the `pg_hba.conf` file.
31+ # This section covers ACL management in the `` pg_hba.conf` ` file.
3232 # acls list controls: which hosts are allowed to connect, how clients
3333 # are authenticated, which PostgreSQL user names they can use, which
3434 # databases they can access. Records take one of these forms:
@@ -48,9 +48,20 @@ postgres:
4848 # PostgreSQL service name
4949 service : postgresql
5050
51+ {%- if grains['init'] == 'unknown' %}
52+
53+ # If Salt is unable to detect init system running in the scope of state run,
54+ # probably we are trying to bake a container/VM image with PostgreSQL.
55+ # Use ``service`` setting to contol how PostgreSQL will be started: if set to
56+ # ``True`` the raw ``pg_ctl`` will be utilized instead of packaged init
57+ # script, job or unit run with Salt ``service`` state.
58+ bake_image : True
59+
60+ {%- endif %}
61+
5162 # Create/remove users, tablespaces, databases, schema and extensions.
5263 # Each of these dictionaries contains PostgreSQL entities which
53- # mapped to the `postgres_*` Salt states with arguments. See the Salt
64+ # mapped to the `` postgres_*` ` Salt states with arguments. See the Salt
5465 # documentaion to get all supported argument for a particular state.
5566 #
5667 # Format is the following:
0 commit comments