mirror of
https://github.com/saltstack-formulas/postgres-formula.git
synced 2025-04-16 09:40:26 +00:00
No description
![]() It is just a variant of init_db. A more correct solution would be to support configuring a different initdb command while passing values from the pillar by default like version. This would make it truly generic but is probably not achievable given current pillar self-referencing capabilities (ie. none). Thus, I decided to make it OS family specific since Debian provides its own tools to manage clusters, etc. Gentoo also has a specific way to initialize a new cluster which does not fit with commands.initdb so the current if/elif would be extended when support is added for Gentoo. |
||
---|---|---|
_modules | ||
_states | ||
postgres | ||
test/integration/default/serverspec | ||
.gitignore | ||
.kitchen.yml | ||
Gemfile | ||
Gemfile.lock | ||
LICENSE | ||
pillar.example | ||
README.rst |
postgres
Note
See the full Salt Formulas installation and usage instructions.
Available states
postgres
Installs the postgresql package.
postgres.python
Installs the postgresql python module
postgres.client
Installs the postgresql client
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