2015-02-23 23:40:07 +05:30
|
|
|
========
|
|
|
|
postgres
|
|
|
|
========
|
|
|
|
|
|
|
|
.. note::
|
|
|
|
|
|
|
|
See the full `Salt Formulas installation and usage instructions
|
|
|
|
<http://docs.saltstack.com/en/latest/topics/development/conventions/formulas.html>`_.
|
|
|
|
|
|
|
|
Available states
|
|
|
|
================
|
|
|
|
|
|
|
|
.. contents::
|
|
|
|
:local:
|
|
|
|
|
|
|
|
``postgres``
|
|
|
|
------------
|
|
|
|
|
|
|
|
Installs the postgresql package.
|
|
|
|
|
|
|
|
``postgres.python``
|
|
|
|
-------------------
|
|
|
|
|
|
|
|
Installs the postgresql python module
|
|
|
|
|
2015-04-21 13:40:01 -07:00
|
|
|
``postgres.client``
|
|
|
|
-------------------
|
|
|
|
|
|
|
|
Installs the postgresql client
|
|
|
|
|
2015-02-23 23:40:07 +05:30
|
|
|
Testing
|
|
|
|
=======
|
|
|
|
|
|
|
|
Testing is done wit kitchen-salt
|
|
|
|
|
|
|
|
``kitchen converge``
|
|
|
|
--------------------
|
|
|
|
|
|
|
|
Runs the postgres main state
|
|
|
|
|
|
|
|
``kitchen verify``
|
|
|
|
------------------
|
|
|
|
|
|
|
|
Runs serverspec tests on the actual instance
|
|
|
|
|
|
|
|
``kitchen test``
|
|
|
|
----------------
|
|
|
|
|
|
|
|
Builds and runs test from scratch
|
|
|
|
|
|
|
|
``kitchen login``
|
|
|
|
-----------------
|
|
|
|
|
|
|
|
Gives you ssh to the vagrant machine for manual testing
|
|
|
|
|