Imran Iqbal
74615fc765
fix(uuid-ossp): use hyphen consistently
...
* Found when testing Travis CI for the formula
* States fail and run in the wrong order
* Broken: https://travis-ci.org/myii/postgres-formula/jobs/524227136#L2092
* Fixed: https://travis-ci.org/myii/postgres-formula/jobs/524229384#L2086
2019-04-25 05:23:31 +01:00
Thomas Rossetto
e40f990165
Remove deprecated createuser command in salt 2019.02
2019-03-22 17:17:55 +01:00
Gilou
5c094a05ca
Rename setting to add_profile, add an example to explain it
2018-10-11 02:37:51 +02:00
N
9d2f69a865
Enhance remove S/W support
2018-07-25 00:18:42 +01:00
Imran Iqbal
34aae257e5
Allow configuration of cluster name
, locale
& encoding
2018-06-21 08:30:08 +01:00
Niels Abspoel
a827825050
Merge pull request #220 from noelmcloughlin/macos_fix
...
Fix /Library/LaunchDaemons/limit.maxfiles.plist on MacOS
2018-06-19 08:24:16 +02:00
Niels Abspoel
aa91079a3c
Merge pull request #222 from myii/PR_psql10_acls
...
Enable replication connections by default in `pg_hba.conf`
2018-06-19 08:23:03 +02:00
N
bdbc784f0f
limits file has jinja context; fix #213
2018-06-18 23:56:30 +01:00
Imran Iqbal
9fdce93004
Set default version to 10
2018-06-13 02:07:16 +01:00
Imran Iqbal
e1a19ed78f
Use top-level postgres.port
and existing states to set port
2018-06-12 10:21:27 +01:00
Imran Iqbal
06e5944133
Allow port
to be configurable
...
Regex:
- `^` Line start
- `#*\s*` Find line even if commented out
- `(port)` 'port' -- capture as backreference `\1`
- `\s*=\s*` Equals sign, whether or not surrounded by whitespace
- `\d{4,5}` Existing port value, expected at 4/5 digits
- `(.*)` Remainder (i.e. comment) -- capture as backreference `\2`
- `$` Line end
2018-06-09 00:21:40 +01:00
Imran Iqbal
cdca9108e0
Add fromrepo
to pillar.example
2018-06-06 16:37:56 +01:00
Gilles Dartiguelongue
f048ab87cd
Add example usage of identity mapping
2018-03-12 16:48:56 +01:00
noelmcloughlin
a34a4c270c
Homebrew Postgres on MacOS
2018-03-08 21:27:47 +00:00
noelmcloughlin
1e527c4b91
POSTGRESAPP on MacOS
2018-03-08 11:53:38 +00:00
N
9e6adde7b5
Merge branch 'master' into alternatives
2018-03-06 16:26:08 +00:00
Noel McLoughin
22b11fd680
Support for upstream postgresql.org zypp repo after PR review
2018-02-26 14:21:27 +00:00
Noel McLoughin
db90890184
Tidyup alternatives system priority hardcoding
2018-02-22 22:07:43 +00:00
Denys Havrysh
4af8512483
Fix issue #141
2017-02-13 16:27:22 +02:00
Javier Bértoli
3c2d65b8b0
Merge pull request #138 from vutny/backup-hba
...
Make local backup of `pg_hba.conf` file before modification
2017-02-06 14:17:01 -03:00
ek9
7d692958ee
add example on how to enable extension on a db
2017-01-24 18:15:46 +01:00
Denys Havrysh
79b83fe414
Make local backup of pg_hba.conf
file before modification
2017-01-13 12:09:45 +02:00
Denys Havrysh
69a59b6f63
Skip configuring ACLs in `pg_hba.conf
` if not provided
2017-01-12 11:34:41 +02:00
Denys Havrysh
52d57d3576
Describe `postgres.server.image
` state in README
2017-01-09 16:22:45 +02:00
Denys Havrysh
186e972075
Use `bake_image
` Pillar setting to control PG startup behavior
2017-01-07 16:19:14 +02:00
Denys Havrysh
3a022aa5b7
Correct listen_addresses
option example for postgresql.conf file
2016-12-20 12:05:32 +02:00
Denys Havrysh
a291d40ef1
Fix and set useful backup extension for postgresql.conf file
2016-12-19 12:29:14 +02:00
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