Commit graph

28 commits

Author SHA1 Message Date
Denys Havrysh
234a76f1e9 Manage PostgreSQL entities with client.sls states 2016-10-04 14:38:21 +03:00
Denys Havrysh
8c4dc07467 Map Pillar dicts for PostgreSQL entities to the Salt state arguments 2016-09-09 18:02:47 +03:00
Denys Havrysh
1ec55e0b96 Better ACL handling in the pg_hba.conf file 2016-09-06 14:44:35 +03:00
Denys Havrysh
c285f1006c Introduce osmajorreleasemap for RedHat release specific commands 2016-09-05 13:49:33 +03:00
Denys Havrysh
8db04833c2 Set sane defaults when use_upstream_repo and version Pillars are set 2016-09-04 15:26:46 +03:00
Nicole Scherfenberg
2e26b6f606 fixes formula to comply to its spec
The reworks in merge #110 broke this formulas kitchen based specs.
This MR changes a few minor things, mostly  pillar.example and other inconsistent documentations.
Also, the use of db_user for `postgres_tablespace.present` and `postgres_database.present` now fits the states options, as db_password etc can be specified as well.
2016-08-05 20:44:45 +02:00
Jon Nelson
90cfea1e15 - change C.UTF-8 to en_us.UTF-8 in example pillar, as the former does not
work on all distributions
2016-07-19 10:10:56 -05:00
Jon Nelson
0220b67a85 - re-arrange cluster initialization to a set of variables in a dictionary
which control three things:
    1. should we initialize?
    2. if so, how?
    3. what environment variables and user to use
  The approach taken is very similar to what the Apache formula uses, namely:
  a default dictionary which is over-ridden by:
     os-specific defaults,
     then os codename defaults,
     then os finger defaults,
     and finally user-specified pillar values
- this also adds support for grains['osfinger']
2016-07-11 15:29:11 -05:00
Javier Bértoli
9719e2354e Allow to specify a tablespace for a database
* Tablespaces have to be created before the databases
* Add pillar examples
* Add tests
2016-06-08 07:36:28 -03:00
Campbell
11f4f0f580 Added option to disable creation of backup file when postgresql.conf changes 2016-03-14 19:19:32 +00:00
Roman Inflianskas
d11ba6d14a replace pkg_contrib with pkgs_extra 2015-11-23 14:50:46 +03:00
Roman Inflianskas
2204733990 support options in extensions 2015-11-17 18:14:17 +03:00
Roman Inflianskas
8edafaf7a4 support schemas 2015-11-17 18:14:17 +03:00
Devon Stewart
de16b00297 Adding initdb command to pillar example 2015-11-15 11:06:59 -08:00
Roland Baum
a83f9da115 added option to remove users 2015-10-06 13:24:53 +02:00
Edvinas Klovas
d7580104f6 Add support for database extensions.
This commit adds support for database extensions via
salt.states.postgres_extension

When configuring database pillar data all you need to do is add (optional)
extension list with the extensions that you want the state to apply to specific
database. Example:

    db1:
      owner: 'localUser'
      user: 'localUser'
      template: 'template0'
      lc_ctype: 'C.UTF-8'
      lc_collate: 'C.UTF-8'
      extensions:
        - uuid-ossp

This will make sure `uuid-ossp` extension is enabled on `db1` database.

Updated pillar.example to include (optional) extensions
2015-07-23 17:54:24 +03:00
Dominic Ferrantelli
5c08358430 added examples of new user options to pillar.example 2015-05-05 15:10:34 -07:00
Brian Jackson
967fa6504b Switch to new style map.jinja
Move this formula to the new style map.jinja. Still need to sort out RedHat
handling, but it's not any worse than it was before (i.e. horribly broken)
2015-04-22 17:47:02 -05:00
Dominic Ferrantelli
c62b41524d updated README and pillar.example to include client formula 2015-04-21 13:40:01 -07:00
Alan Pearce
b317cebf18 Add option to use upstream repo on Debian 2015-02-01 14:40:45 +00:00
Brandon Bradley
99114652ac fix host ACL in pillar.example 2014-10-10 22:35:47 -05:00
Berry Langerak
c9aeea4c66 Added the ability to add custom configuration to the postgresql.conf configuration file. 2014-10-06 11:34:43 +02:00
root
06693c0dcf Added support for multiple databases/users 2014-07-27 22:04:57 -04:00
Alan McNea
5793d73e54 Added pg_hpa entry for pillar.example 2014-07-13 19:19:47 +00:00
Seth House
9ac9a4610e Wrap the Postgres conf file in an if-statement; grab source from Pillar 2014-05-16 10:56:55 -06:00
Audrey Roy
c244688496 Add pg_hba.conf, Ubuntu mapping, and example.. 2014-05-15 14:44:39 -07:00
C. R. Oldham
33c19159d2 Add pillar example 2014-05-06 11:48:21 -06:00
Michael Grosser
b194209f07 Add pillar.example 2013-07-28 00:34:29 +02:00