@@ -19,7 +19,7 @@ postgres:
19
19
postgresconf : |
20
20
listen_addresses = '*' # listen on all interfaces
21
21
22
- # Backup extension for postgresql.conf file, defaults to `.bak`.
22
+ # Backup extension for postgresql.conf file, defaults to `` .bak` `.
23
23
# Set to False to stop creation of backup on postgresql.conf changes.
24
24
{%- if 'status.time' in salt.keys() %}
25
25
postgresconf_backup : " .backup@{{ salt['status.time']('%y-%m-%d_%H:%M:%S') }}"
@@ -28,7 +28,7 @@ postgres:
28
28
# Path to the `pg_hba.conf` file Jinja template on Salt Fileserver
29
29
pg_hba.conf : salt://postgres/templates/pg_hba.conf.j2
30
30
31
- # This section covers ACL management in the `pg_hba.conf` file.
31
+ # This section covers ACL management in the `` pg_hba.conf` ` file.
32
32
# acls list controls: which hosts are allowed to connect, how clients
33
33
# are authenticated, which PostgreSQL user names they can use, which
34
34
# databases they can access. Records take one of these forms:
@@ -48,9 +48,20 @@ postgres:
48
48
# PostgreSQL service name
49
49
service : postgresql
50
50
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
+
51
62
# Create/remove users, tablespaces, databases, schema and extensions.
52
63
# 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
54
65
# documentaion to get all supported argument for a particular state.
55
66
#
56
67
# Format is the following:
0 commit comments