POSTGRESAPP on MacOS

This commit is contained in:
noelmcloughlin
2018-03-08 11:41:19 +00:00
parent 36fb8f48b2
commit 1e527c4b91
11 changed files with 218 additions and 18 deletions

View File

@@ -17,12 +17,12 @@ Available states
------------
Installs and configures both PostgreSQL server and client with creation of various DB objects in
the cluster.
the cluster. This state applies to both Linux and MacOS.
``postgres.client``
-------------------
Installs the PostgreSQL client binaries and libraries.
Installs the PostgreSQL client binaries and libraries on Linux.
``postgres.manage``
-------------------
@@ -33,18 +33,18 @@ See ``pillar.example`` file for details.
``postgres.python``
-------------------
Installs the PostgreSQL adapter for Python.
Installs the PostgreSQL adapter for Python on Linux.
``postgres.server``
-------------------
Installs the PostgreSQL server package, prepares the DB cluster and starts the server using
Installs the PostgreSQL server package on Linux, prepares the DB cluster and starts the server using
packaged init script, job or unit.
``postgres.server.image``
-------------------------
Installs the PostgreSQL server package, prepares the DB cluster and starts the server by issuing
Installs the PostgreSQL server package on Linux, prepares the DB cluster and starts the server by issuing
raw ``pg_ctl`` command. The ``postgres:bake_image`` Pillar toggles this behaviour. For example:
.. code:: yaml
@@ -77,12 +77,14 @@ The state relies on the ``postgres:use_upstream_repo`` Pillar value which could
* ``True`` (default): adds the upstream repository to install packages from
* ``False``: makes sure that the repository configuration is absent
* ``postgresapp`` (MacOS) uses upstream PostgresApp package repository.
The ``postgres:version`` Pillar controls which version of the PostgreSQL packages should be
installed from the upstream repository. Defaults to ``9.5``.
installed from the upstream Linux repository. Defaults to ``9.5``.
Testing
=======
The postgres state was tested on MacOS (El Capitan 10.11.6)
Testing is done with the ``kitchen-salt``.