Commit graph

348 commits

Author SHA1 Message Date
puneet kandhari
471ac94a5b Remove backwards incompatible change 2015-11-23 11:42:26 -06:00
puneet kandhari
1b7097207f Merge pull request #72 from tenso-m/dropped
add dropped state
2015-11-23 06:54:52 -06:00
puneet kandhari
7bfde30dde Merge pull request #74 from tenso-m/extra
replace pkg_contrib with pkgs_extra
2015-11-23 06:54:22 -06:00
puneet kandhari
9ef3abbb4c Merge pull request #73 from tenso-m/dir-perms
ensure proper permissions for postgresql dir
2015-11-23 06:53:56 -06:00
puneet kandhari
2956529010 Merge pull request #75 from tenso-m/suse
add Suse default values
2015-11-23 06:53:26 -06:00
puneet kandhari
f74bcc5c96 Merge pull request #76 from tenso-m/refactoring
small refactoring
2015-11-23 06:52:42 -06:00
Roman Inflianskas
b71fa41bfd small refactoring 2015-11-23 14:50:51 +03:00
Roman Inflianskas
d11ba6d14a replace pkg_contrib with pkgs_extra 2015-11-23 14:50:46 +03:00
Roman Inflianskas
38e5962600 ensure proper permissions for postgresql dir 2015-11-23 14:50:42 +03:00
Roman Inflianskas
c54fcc7646 add Suse default values 2015-11-23 14:49:19 +03:00
Roman Inflianskas
2f6cbb39b6 add dropped state 2015-11-23 14:27:40 +03:00
Forrest
4f3e1cb8db Merge pull request #71 from tenso-m/master
Schemas support, better extensions support
2015-11-17 11:25:43 -08: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
puneet kandhari
401912743e Merge pull request #70 from abrefort/master
Add missing conf_dir for Ubuntu Codenames.
2015-11-17 07:07:30 -06:00
Adrien Bréfort
abd8314225 Add missing conf_dir for Ubuntu Codenames. 2015-11-17 12:35:40 +01:00
Forrest
70dc865448 Merge pull request #69 from blast-hardcheese/chores/moving-initdb-command
Moving initdb command definition
2015-11-15 12:21:00 -08:00
Devon Stewart
de16b00297 Adding initdb command to pillar example 2015-11-15 11:06:59 -08:00
Devon Stewart
e2b6eab753 On second thought, initdb command should be defined in defaults.yaml 2015-11-10 11:07:58 -08:00
Forrest
aedb775743 Merge pull request #68 from blast-hardcheese/bugfix/fixing-require-statements
Bugfix/fixing require statements
2015-11-06 11:00:26 -08:00
Devon Stewart
40b3729341 Making initdb command overridable 2015-11-06 00:02:00 -08:00
Devon Stewart
ec8d37e0e6 Require postgresql service when trying to create databases 2015-11-06 00:01:43 -08:00
Devon Stewart
4030891045 Fixing broken references 2015-11-05 23:49:16 -08:00
puneet kandhari
658506ff07 Merge pull request #67 from tr33/master
added option to remove users
2015-10-06 07:03:50 -05:00
Roland Baum
a83f9da115 added option to remove users 2015-10-06 13:24:53 +02:00
puneet kandhari
5c2a572683 Merge pull request #65 from johnkeates/master
Vivid support (same as Utopic at the moment)
2015-08-30 15:32:58 -05:00
John Keates
936484b028 Merge branch 'master' of https://github.com/saltstack-formulas/postgres-formula 2015-08-30 22:00:36 +02:00
Nitin Madhok
9455349a8b Merge pull request #57 from webplatform/master
Added superuser pillar, missing conf_dir directory
2015-08-09 08:01:12 -04:00
John Keates
810ff093ad Merge branch 'master' of https://github.com/johnkeates/postgres-formula 2015-08-05 12:08:11 +02:00
John Keates
a2cb701014 Update codemap 2015-07-31 02:08:08 +02:00
puneet kandhari
5665644aa1 Merge pull request #61 from madssj/fix-debian-ver
Fixes for debian specific configuration
2015-07-24 15:53:34 -05:00
Brian Jackson
da92fb585d Merge pull request #62 from edvinasme/add-database-extension-support
Add support for database extensions.
2015-07-23 12:33:49 -05: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
Mads Sülau Jørgensen
58f8abb55e Fixed conf_dir and pkg_dev on debian
There should be a better way of doing this, as I'm hardcoding the version name into the config dir.

On Debian based systems, postgresql is configured in "clusters" using some Debian specific tools. The main cluster is called ... main, which is why the `conf_dir` has a suffix of `main`.
2015-07-10 16:37:19 +02:00
Mads Sülau Jørgensen
851b62ce10 Fixed libpq-dev naming on debian 2015-07-10 16:35:06 +02:00
Nitin Madhok
c87fa54cbf Removing extra new lines 2015-05-07 13:37:18 -04:00
Wolodja Wentland
d7233e51b7 Merge pull request #56 from dferrantelli/add_ubuntu_pgdg
added pkg_repo defaults for trusty and utopic
2015-05-06 11:26:56 +02:00
Dominic Ferrantelli
965577ade7 added pkg_repo defaults for trusty and utopic 2015-05-05 17:14:35 -07:00
Forrest
b33f9f06a8 Merge pull request #55 from dferrantelli/dev_state
moved dev packages to seperate state
2015-05-05 16:21:33 -07:00
Forrest
5a1285e75c Merge pull request #54 from dferrantelli/add_other_pg_perms
added other postgres user perms such that they can be enabled/disabled
2015-05-05 16:21:00 -07:00
Dominic Ferrantelli
1b97d540ca moved dev packages to seperate state 2015-05-05 15:40:49 -07:00
Dominic Ferrantelli
5c08358430 added examples of new user options to pillar.example 2015-05-05 15:10:34 -07:00
Dominic Ferrantelli
9e1ff20af5 added other postgres user perms such that they can be enbabled/disabled by this formula 2015-05-05 11:52:33 -07:00
Wolodja Wentland
4656452825 Merge pull request #53 from iggy/fix-__salt__-unavailable
Fix __salt__ unavailable in __virtual__()
2015-05-05 20:15:36 +02:00
Brian Jackson
5015024725 Fix __salt__ unavailable in __virtual__()
In older versions of Salt (this was originally developed against 2015.2),
__salt__ isn't loaded yet in the __virtual__() function. Work around this by
just duplicating the check from upstream postgres.py
2015-05-05 11:42:43 -05:00
Renoir Boulanger
5d807cc47a postgres_user.present didnt have superuser option 2015-04-29 21:05:16 -04:00
Renoir Boulanger
de48c74c88 Ensure pg_hba.conf parent directory exists 2015-04-29 18:45:22 -04:00
Renoir Boulanger
45f011a763 Merge pull request #1 from saltstack-formulas/master
Merging from upstream
2015-04-27 15:15:10 -04:00
Forrest
eda4cf69ae Merge pull request #49 from iggy/fix-defaults-yaml-tablespaces
Fix backward compat
2015-04-24 11:20:00 -07:00
Brian Jackson
997bc3563a Fix backward compat
This should fix the backwards compatibility breakage. Missed in my testing
because I had a pre-existing pillar setup (from an old way I did tablespace
support).
2015-04-24 13:15:59 -05:00