Commit graph

860 commits

Author SHA1 Message Date
Hunter Haugen
7b711f4905 Update readme with types docs 2015-03-25 08:19:09 -07:00
Morgan Haskel
3e20a165cd Merge pull request #597 from hunner/update_changelog
Update changelog for merge of #591
2015-03-24 18:24:24 -04:00
Hunter Haugen
8973259973 Update changelog for merge of #591 2015-03-24 15:22:39 -07:00
Hunter Haugen
f5f87f9347 Merge pull request #591 from exptom/patch-1
Update apt key to full 40characters
2015-03-24 14:18:37 -07:00
Morgan Haskel
f657021796 Merge pull request #595 from hunner/release_4.3.0
Supported Release 4.3.0
2015-03-24 17:17:12 -04:00
Hunter Haugen
1a83f57ec8 Supported Release 4.3.0
Summary
This release fixes compatibility with Puppet 4 and removes opportunities for local users to view the postgresql password. It also adds a new custom resource to aid in managing replication.

Features
- Add `postgresql::server::logdir` parameter to manage the logdir
- Add `environment` parameter to `postgresql_psql`
- Add `postgresql_replication_slot` custom resource

Bugfixes
- Fix for Puppet 4
- Don't print postgresql\_psql password in command
- Allow `postgresql::validate_db_connection` for more than one host+port+database combo
- Fix service command on Debian 8 and up
- Fix `postgresql::server::extension` to work with custom user/group/port
- Fix `postgresql::server::initdb` to work with custom user/group/port
- Fix changing template1 encoding
- Fix default `postgresql::server::grant::object_name` value
- Fix idempotency of granting all tables in schema with `puppet::server::grant`
- Fix lint warnings
2015-03-24 13:42:04 -07:00
Morgan Haskel
f3a17066d1 Merge pull request #593 from cmurphy/rspec-puppet-2
Testing updates
2015-03-24 15:58:01 -04:00
Colleen Murphy
5ff3378daa Update .travis.yml
This commit makes the following changes to the test matrix:

- Runs tests on ruby 2.1.5 instead of 2.0.0
- Runs tests on ruby 1.8.7 with puppet 3.x
- Adds an environment to run on an intermediate 3.x puppet version
  instead of latest (specifically 3.4.x)
- Adds an environment to run with the future parser on latest puppet.
  This would affect the test runs for the validate and spec checks.
- Stop testing with strict variables
- Runs the tests on docker
2015-03-23 22:11:47 -07:00
Colleen Murphy
0086f7d77d Keep testing on puppet 2.7 and drop strict vars
The modulesync config repo is dropping universal support for puppet
2.7, but individual repos should still keep support until the next
naturally-occuring major release.

This also drops testing on strict variables.
2015-03-23 12:13:48 -07:00
Colleen Murphy
65201d9c66 Ensure lint fails on warnings 2015-03-23 11:13:46 -07:00
Hunter Haugen
4a96679a65 Merge pull request #592 from exi/extension-quote-fix
(MODULES-1878) properly quote create and drop extension statements
2015-03-23 10:34:23 -07:00
Reno Reckling
1ecc5bc8dd properly quote create and drop extension statements 2015-03-23 14:06:41 +01:00
Tom Ford
313235a1f9 Update apt key to full 40characters
Latest version of puppetlabs/apt module shows warning on every puppet run if using a short key so this update includes the full 40 character key.
2015-03-20 14:26:26 +00:00
Colleen Murphy
969287c2fd Remove unneeded dependencies
puppetlabs_spec_helper handles these dependencies for us.
2015-03-19 13:56:05 -07:00
Colleen Murphy
e049fbc464 Update rspec-puppet tests for 2.0
This patch replaces `subject` with `catalogue` for the raise_error
matchers because `subject` no longer contains Puppet errors. We also
unpin rspec-puppet.
2015-03-19 13:55:26 -07:00
Hunter Haugen
a189ed7789 Merge pull request #560 from DECK36/master
Allowing validation of db connection for more than one user and port
2015-03-19 10:42:49 -07:00
Hunter Haugen
7018a5f5ad Merge pull request #582 from rvstaveren/rvstaveren-extension-postgresql_psql-fix
postgresql::server::extension needs to have defaults for postgresql_psql
2015-03-19 10:30:02 -07:00
Hunter Haugen
88dc7eeb6c Merge pull request #585 from backstop/master
Use space.  Join seems to be defaulting to comma.
2015-03-19 10:27:21 -07:00
Travis Fields
0438db2f01 Merge pull request #588 from mhaskel/fix_for_586
Since this was in an osfamily block it was getting picked up on ubuntu
2015-03-18 08:38:13 -07:00
Morgan Haskel
72c6942759 Since this was in an osfamily block it was getting picked up on ubuntu
Fixes #586
2015-03-17 17:12:31 -07:00
Colleen Murphy
67577e8403 Merge pull request #587 from mhaskel/fix_postgresql_acceptance_tests
Fix acceptance tests for EL
2015-03-17 16:44:11 -07:00
Morgan Haskel
8053ea7232 Fix acceptance tests for EL
The return value of fact('selinux') is a stringified bool.
2015-03-17 16:35:31 -07:00
Morgan Haskel
57448a98f3 Merge pull request #583 from hunner/fix_4
Fix the handling of run_unless_sql_command in puppet 4
2015-03-17 15:10:43 -07:00
Morgan Haskel
0db1be08c1 Merge pull request #586 from raphink/dev/jessie
Adjust $service_status for Debian Jessie
2015-03-17 13:15:34 -07:00
Raphaël Pinson
3a2717111d Adjust $service_status for Debian Jessie 2015-03-17 16:20:27 +01:00
Ruben van Staveren
05c466c9d0 Provide postgresql_psql defaults for postgresql::server::initdb 2015-03-16 21:30:21 +01:00
Ruben van Staveren
977a7495f8 Fix indentation to 2 spaces 2015-03-16 21:22:08 +01:00
Ruben van Staveren
01b38f5bb4 postgresql::server::extension needs to have defaults for postgresql_psql
Using same pattern as with postgresql::server::database.
observed when installing the pg_trgm using pgsql 9.4
2015-03-16 21:22:07 +01:00
Kevin Wolf
fc580e1f93 Use space. Join seems to be defaulting to comma. 2015-03-16 13:56:44 -05:00
Hunter Haugen
8204bcdcaf Fix the handling of run_unless_sql_command in puppet 4
`Puppet::Util::SUIDManager.run_and_capture` (in puppet < 3.4) returns an
array of the output and the `Process::Status` object.
`Puppet::Util::Execution.execute` (in puppet >= 3.4) returns the output
and saves the `Process::Status` object to `$CHILD_STATUS`

This is handled in the provider, but the type was also trying to handle
it, and was not last updated when the provider was.
2015-03-13 15:20:27 -07:00
Morgan Haskel
7870b38db6 Merge pull request #584 from hunner/fix_spec
Fix specs for #567
2015-03-13 15:19:51 -07:00
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