Hunter Haugen
c323cea12a
Fix specs for #567
2015-03-13 14:20:26 -07:00
Hunter Haugen
c58f327f46
Merge branch 'wavesoftware-feature/using-env-to-hide-dbpassword-in-output'
2015-03-12 10:59:38 -07:00
Hunter Haugen
6b8c3a9526
Don't make change to .gitignore
...
It will be stomped on by modulesync.
And remove trailing whitespace
2015-03-12 10:58:48 -07:00
Krzysztof Suszyński
a9b16b6ccf
I've added some acceptance tests to 100% check that my method is valid and passwords ane not placed in report
2015-03-12 10:57:20 -07:00
Krzysztof Suszyński
5419384473
Fix for not running acceptance tests on CentOS box
...
This was caused by fact that SELinux is already disabled and `setenforce 0` returns 1 insted of 0 in that case.
2015-03-12 10:57:20 -07:00
Krzysztof Suszyński
cfbf2f9308
Using enviromental varables to hide actual password in psql commands displayed in output and reports.
2015-03-12 10:57:19 -07:00
Hunter Haugen
0f4c71850e
Merge branch 'cwood-master'
2015-03-12 10:43:04 -07:00
Colin Wood
83b4ac1661
Allow management of logdir and add logdir parameter
2015-03-12 10:40:46 -07:00
Hunter Haugen
9e9aa9da85
Merge pull request #564 from antaflos/idempotency_for_grant_all_tables
...
Make granting on ALL TABLES IN SCHEMA idempotent
2015-03-12 10:28:34 -07:00
Hunter Haugen
a50a16d97d
Merge pull request #580 from raphink/dev/replication
...
Replication type
2015-03-12 10:18:42 -07:00
Raphaël Pinson
76ab6f1160
Add a postgresql_replication_slot type
2015-03-12 18:14:58 +01:00
Morgan Haskel
d348cdb4b6
Merge pull request #579 from sathieu/template_encoding
...
(MODULES-1834) Be less strict when changing template1 encoding
2015-03-12 10:06:53 -07:00
JT (Jonny)
1f88cc3f93
Merge pull request #581 from mhaskel/merge_4.2.x_to_master
...
Merge 4.2.x to master
2015-03-11 16:35:26 +00:00
Mathieu Parent
f3a0db44ef
(MODULES-1834) Be less strict when changing template1 encoding
...
We currently use: UTF8 != UTF-8
We should instead use: pg_char_to_encoding(UTF8) == pg_char_to_encoding(UTF-8)
2015-03-10 10:03:44 +01:00
JT (Jonny)
6c61f6cfac
Merge pull request #578 from mhaskel/4.2.0-prep-pt2
...
Remove references to host parameter since the vote was to revert that
2015-03-10 08:48:16 +00:00
JT (Jonny)
f523a3e412
Merge pull request #577 from mhaskel/revert_host_param
...
Revert "(MODULES-661) Add host parameter to psql commands"
2015-03-10 00:23:19 +00:00
Morgan Haskel
33981b4032
Remove references to host parameter since the vote was to revert that
2015-03-09 17:21:40 -07:00
Morgan Haskel
8295b488cc
Revert "(MODULES-661) Add host parameter to psql commands"
...
This reverts commit d92b2545e2
.
Conflicts:
spec/unit/puppet/provider/postgresql_psql/ruby_spec.rb
2015-03-09 17:00:06 -07:00
Travis Fields
62a774a90e
Merge pull request #576 from mhaskel/4.2.0-prep
...
4.2.0 prep
2015-03-09 13:47:41 -07:00
Morgan Haskel
9236b21700
4.2.0 prep
2015-03-09 13:38:23 -07:00
Hunter Haugen
eaef089635
Merge pull request #574 from mhaskel/thankyou_geppetto
...
Rework defaults for `$object_name` in `postgresql::server::grant`
2015-03-09 09:50:05 -07:00
Morgan Haskel
154517aa32
There was a default case in the selector
2015-03-06 15:53:05 -08:00
Morgan Haskel
dcfe75eb95
Rework defaults for $object_name
in postgresql::server::grant
...
You don't have access to parameters within the parameter list.
2015-03-06 15:49:07 -08:00
Colleen Murphy
317c146629
Merge pull request #573 from mhaskel/openbsd_support
...
Openbsd support
2015-03-06 14:39:56 -08:00
Morgan Haskel
1ca8ecda15
Merge pull request #561 from igalic/docs-current
...
doc links should point to /current/ rather than a specific version
2015-03-06 14:26:42 -08:00
Morgan Haskel
593e953bf7
Readme and test updates for service_reload parameter
2015-03-06 14:11:33 -08:00
Sebastian Reitenbach
ef1681f5e5
Changes to support OpenBSD.
...
Added $service_reload parameter to params.pp, in order to allow
a reload of the postgresql server on OpenBSD, which apparently doesn't
have a service binary.
2015-03-06 14:11:33 -08:00
Hunter Haugen
ab98ae34ce
Merge pull request #572 from mhaskel/readme
...
README had outdated upgrade info
2015-03-06 13:52:27 -08:00
Morgan Haskel
a3d79445b0
README had outdated upgrade info
...
Info was on upgrading from 2.x->3.0, but this is 4.x.
2015-03-06 13:51:28 -08:00
Andreas Ntaflos
dbbb7aa2b3
Make granting on ALL TABLES IN SCHEMA idempotent
...
Define a proper SELECT statement to feed into Postgresql_psql's
`unless` parameter that checks if there are any tables in the specified
schema for which the specified role *does not* have the specified
privilege. Only then allow the GRANT statement to be executed. For
details see comments.
Note that this, too, suffers from the problem that there is no feasible
way to check if a role has ALL PRIVILEGES on a table in plain SQL. By
terrible convention the INSERT privilege represents ALL PRIVILEGES here.
2015-03-05 17:18:42 +01:00
TP Honey
4dbf624b2a
Merge pull request #570 from petems/MAINT-fix-spec-describe
...
(MAINT) Fixes incorrect rspec it description
2015-03-04 18:25:30 +00:00
Peter Souter
d1c2144b74
(MAINT) Fixes incorrect rspec it description
...
Copy-paste error from before
2015-03-04 11:57:06 +00:00
Morgan Haskel
8b49b58f3c
Merge pull request #568 from petems/MODULES-661-remote_postgres
...
(MODULES-661) Add host parameter to psql commands
2015-03-03 14:19:39 -08:00
Peter Souter
d92b2545e2
(MODULES-661) Add host parameter to psql commands
...
This allows you to use `postgres_pqsl` commands to be run against a specified host. The ultimate goal being that you can use `puppetlabs-postsgresql` to run against remote instances, especially things such as Amazons RDS service.
This PR will be further extended to do things like allow remote `table_grant` and the like.
2015-03-03 17:13:37 +00:00
JT (Jonny)
018437c5ff
Merge pull request #567 from antaflos/patch-1
...
Use correct TCP port when checking password
2015-03-02 16:35:23 +00:00
Andreas Ntaflos
aee6dba6f8
Use correct TCP port when checking password
...
The PostgreSQL server's port is specified in `postgresql::server::port`, so use it in the `unless` clause of `Exec['set_postgres_postgrespw']`. Failing to do so results in repeated invocations of the exec resource during Puppet runs when the server's port is not set to the default of 5432.
2015-02-27 04:48:15 +01:00
Colleen Murphy
b77c213351
Merge pull request #565 from gerhardsam/create_role_before_db
...
create role before database
2015-02-26 13:20:04 -08:00
Colleen Murphy
8b9ebd84bc
Merge pull request #566 from mcanevet/fix/future_parser
...
Fix for future parser
2015-02-25 08:48:43 -08:00
Mickaël Canévet
9303828255
Fix for future parser
2015-02-25 13:50:32 +01:00
Sebastian Gerhards
a246e586be
create role before database
...
Creating the role before creating the database is mandatory because otherwise
granting the access right to the database fails.
2015-02-23 11:57:05 +01:00
Colleen Murphy
9c2399be6c
Merge pull request #540 from mcanevet/fix/encoding
...
Fix/encoding
2015-02-20 11:15:33 -08:00
Mickaël Canévet
e1034d9bee
Fix template1 encoding on debian
2015-02-19 08:37:31 +01:00
Mickaël Canévet
0daf411a3e
Add an acceptance test to prove that default encoding is wrong on Debian
2015-02-19 08:37:31 +01:00
Morgan Haskel
b0f2a8f765
Merge pull request #562 from hunner/fix_version
...
This wasn't matching anything other than psql 8
2015-02-06 17:42:24 +01:00
Hunter Haugen
bfaef511a6
This wasn't matching anything other than psql 8
2015-02-06 08:40:22 -08:00
Morgan Haskel
fdc8180820
Merge pull request #559 from hunner/fix_dbcomment
...
Fix comment detection
2015-02-06 15:40:38 +01:00
Igor Galić
f51bb46cea
doc links should point to /current/ rather than a specific version
2015-02-06 13:34:47 +01:00
Bjoern Kortuemm (@uuid0)
1e7a91f4c5
Allowing validation of db connection for more than one user and port per host/dbname combination
2015-02-06 13:19:14 +01:00
Hunter Haugen
f889a4612d
Fix comment detection
...
On psql 8.1, `pg_catalog.shobj_description` does not exist. Also, if the
database to comment is not the current db then this warning will be
raised and the comment will not be applied: `WARNING: database comments
may only be applied to the current database`
This fix uses the pg_* databases to find the comment based on the
database oid rather than the shared object description function.
2015-02-05 14:39:58 -08:00
Colleen Murphy
6d2b66cc3d
Merge pull request #558 from hunner/fix_dbcomment
...
Fix comment detection
2015-02-04 22:48:28 -08:00