Skip to content

Commit 904a525

Browse files
committed
docs(container): "postgres:bake_image" specifics
1 parent 2b10e62 commit 904a525

File tree

1 file changed

+3
-19
lines changed

1 file changed

+3
-19
lines changed

docs/README.rst

Lines changed: 3 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -83,31 +83,15 @@ packaged init script, job or unit.
8383
Further information: https://blog.tyk.nu/blog/freebsd-jails-and-sysv-ipc/
8484

8585

86-
``postgres.server.image``
87-
^^^^^^^^^^^^^^^^^^^^^^^^^
88-
89-
Installs the PostgreSQL server package on Linux, prepares the DB cluster and starts the server by issuing
90-
raw ``pg_ctl`` command. The ``postgres:bake_image`` Pillar toggles this behaviour. For example:
86+
**Running inside a container** (using Packer, Docker or similar tools), when OS ``init`` process
87+
is not available to start the service and enable it on "boot", set pillar value:
9188

9289
.. code:: yaml
9390
9491
postgres:
9592
bake_image: True
9693
97-
If set ``True``, then it becomes possible to fully provision PostgreSQL with all supported entities
98-
from ``postgres.manage`` state during the build ("baking") of AMI / VM / Container images (using
99-
Packer, Docker or similar tools), i.e. when OS ``init`` process is not available to start the
100-
service and enable it on "boot" of resulting appliance.
101-
102-
Also it allows to make Docker images with PostgreSQL using functionality being available since Salt
103-
2016.11.0 release:
104-
105-
.. code:: console
106-
107-
salt 'minion.with.docker' dockerng.sls_build my-postgres base=centos/systemd mods=postgres
108-
109-
If a lookup dictionary or Pillar has ``postgres:bake_image`` set ``False`` (this is default), it is
110-
equivalent of applying ``postgres.server`` state.
94+
This toggles starting PostgreSQL daemon by issuing raw ``pg_ctl`` or ``pg_ctlcluster`` command.
11195

11296
``postgres.upstream``
11397
^^^^^^^^^^^^^^^^^^^^^

0 commit comments

Comments
 (0)