This formula installs and configures postgresql.
Install and configure postgresql.
Configure official PostgreSQL repository.
Install the PostGIS extention.
Configure sysctls according to the PostgreSQL best practises.
Some states require settings set in the salt-pillar. See pillar.example for an example pillar file.