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
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
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
Dominic Ferrantelli
1b97d540ca
moved dev packages to seperate state
2015-05-05 15:40:49 -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
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
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
Brian Jackson
17baaa9f8c
Add _states/_modules for tablespaces and add tablespace support to formula
...
Add temporary states/modules for handling tablespaces in Postgresql. These will
be fed back upstream, but they can live here for now.
Add support for the states/modules to the formula.
2015-04-23 11:17:39 -05: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
7ddfbb22e6
moved upstream repo to an include, checked for Ubuntu before attempting to add it
2015-04-21 15:13:42 -07:00
Dominic Ferrantelli
f6e68157a3
added client formula and required default values
2015-04-21 13:06:41 -07:00
Dominic Ferrantelli
430c735b0d
added automatic indentation of postgres:postgresconf to allow for multiple lines to be added to the conf
2015-03-12 16:14:34 -07:00
Rico Moorman
9a21a59b58
Adjust the init state's jinja syntax to prevent errors if there is no postgres pillar data
2015-02-27 00:29:51 +01:00
Alan Pearce
3baf9ca8e1
Add switch to install contrib package
2015-02-14 17:36:04 +00:00
Alan Pearce
b317cebf18
Add option to use upstream repo on Debian
2015-02-01 14:40:45 +00:00
Adam Durana
0a429b9a97
Fix typo
2015-01-29 18:26:47 -05:00
Bernd Schlapsi
3e0b210d5d
Option to disable installation of pkg_libpq_dev
2015-01-29 07:26:55 +01:00
Stéphanie Bréfort
4aaf298d00
Limitation of default access rights to improve security
2015-01-12 19:02:06 +01:00
Will Saxon
a58f153fb1
Remove duplication in map.jinja
...
This change addresses #26 by consolidating Ubuntu and Debian
configuration back under the 'Debian' os_family grain.
The main difference between the various Ubuntu and Debian versions is
the version of postgresql in use; package/service names and directory
patterns are identical. This change separates the version number into
its own pg_version dictionary, which is used as needed by the postgres
dictionary.
2014-12-31 16:58:41 -05:00
John Keates
503c5f9eea
Fix indentation on line 54
2014-12-22 15:18:17 +01:00
John Keates
4aabfdeae8
Add support for Debian 7 and Debian 8
2014-12-22 15:02:13 +01:00
Adrien Bréfort
4ced50dac3
Remove default cluster creation for Ubuntu.
...
Since this is already done by the post-install script.
2014-12-21 23:11:00 +01:00
Adrien Bréfort
69ef32edb4
Add Ubuntu 14.10 map support.
2014-12-21 22:22:07 +01:00
Seth House
c2939d7e97
Change states to use short-dec style
2014-12-13 00:19:59 -07:00
Berry Langerak
a8afe3ed58
Re-adding variables that I removed by accident.:
2014-10-06 11:48:12 +02:00
Berry Langerak
cfbc2910ed
Fixing merge conflict.
2014-10-06 11:43:45 +02: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
Berry Langerak
59e6f3e1fd
Removing the static 9.3 from init.sls, moving it to a variable.
2014-10-06 10:38:12 +02:00
Berry Langerak
aef555ad80
Fixing issues with Centos (initdb, and service name).
2014-10-06 10:14:34 +02:00
Berry Langerak
f96844c7c0
Adding PostgreSQL 9.3 support for Ubuntu 14.04
...
- Added conditional support for PostgreSQL 9.3.
- Added conf_dir and create_cluster variables to denote actions based on
OS / release.
2014-10-01 16:55:01 +02:00
Nitin Madhok
6875fa39fa
Revert "update map.jinja Debian grain for postgresql 9.3"
2014-09-25 12:24:34 -04:00
Brandon Bradley
ffc266221b
update map.jinja Debian grain for postgresql 9.3
2014-09-25 08:18:28 -05:00
root
06693c0dcf
Added support for multiple databases/users
2014-07-27 22:04:57 -04:00
Maxime Haineault
d91417979d
Added other missing deps
2014-07-27 01:58:18 -04:00
Maxime Haineault
6545fa58a7
Added postgres dev package
2014-07-27 01:55:47 -04:00
Alan McNea
ae5e3e565a
Changed pillar data to use pillar.get and set defaults in init.sls
2014-07-13 19:17:24 +00:00
Seth House
10e8fa89ba
Switched to safe dictionary lookup methods
...
Fixes #10
2014-05-29 13:02:28 -06:00
Seth House
23b9c22398
Moved conf file watch statement into the if-statement
2014-05-16 11:03:55 -06:00
Seth House
2bd55a5a16
Wrap app db creation in an if-statement to check for Pillar values
2014-05-16 11:00:16 -06: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
0657d2fbde
pg_hba.conf is Jinja-templated.
2014-05-15 15:31:42 -07:00
Audrey Roy
be6689a770
Add watch state, to watch pg_hba.conf.
2014-05-15 15:09:21 -07:00
Audrey Roy
4a2a60f6bf
Add creation of user and db for the app.
2014-05-15 15:06:04 -07:00
Audrey Roy
ac7e017eb5
Ubuntu uses Debian mapping.
2014-05-15 14:54:53 -07:00
Audrey Roy
c244688496
Add pg_hba.conf, Ubuntu mapping, and example..
2014-05-15 14:44:39 -07:00