Commit graph

1115 commits

Author SHA1 Message Date
Dominic Cleal
6c0a2e4cea (MODULES-2185) Fix withenv execution under Puppet 2.7
When executing a command with environment variables, the withenv helper
under Puppet 2.7 is on Puppet::Util::Execution and on 3.0 to 3.3, it's
on Puppet::Util.
2015-07-06 13:46:23 -07:00
Jamie Lennox
41cc12efe8 Update README.md 2015-07-03 15:55:15 +01:00
David Schmitt
c45e24b06f Merge pull request #664 from domcleal/tickets/master/MODULES-2185-withenv-2.7
(MODULES-2185) Fix `withenv` execution under Puppet 2.7
2015-07-03 11:50:24 +01:00
David Schmitt
00322bdad7 Merge pull request #615 from tampakrap/opensuse_defaults
Add default values for more openSUSE and SLES distro versions
2015-07-03 09:50:06 +01:00
Theo Chatzimichos
5ddc88992b Add default values for more openSUSE and SLES distro versions 2015-07-02 20:58:38 +02:00
David Schmitt
d5efb1fea3 Merge pull request #665 from bmjen/squash-620
Support granting permission on sequences.
2015-07-02 19:18:48 +01:00
qha
c9ffadd31b Support granting permission on sequences.
add spec test for sequence grant and document postgresql::server::grant.
2015-07-02 10:33:15 -07:00
Morgan Haskel
d6435e47c6 Merge pull request #625 from covermymeds/update_pg_hba_rule
(#2056) Added 9.4, corrected past versions based on docs
2015-07-02 10:23:35 -07:00
Dominic Cleal
c3d853d22e (MODULES-2185) Fix withenv execution under Puppet 2.7
When executing a command with environment variables, the withenv helper
under Puppet 2.7 is on Puppet::Util::Execution and on 3.0 to 3.3, it's
on Puppet::Util.
2015-07-02 18:12:28 +01:00
David Schmitt
3862b06433 Merge pull request #662 from bmjen/4.4.x-mergeback
4.4.x mergeback
2015-07-01 22:45:20 +01:00
David Schmitt
39b812b0be Increment version number for 4.4.1 2015-07-01 14:13:29 -07:00
Ken Barber
1d974be09f (MODULES-2181) Fix variable scope for systemd-override
$manage_package_repo wasn't in scope for the template systemd-override.erb
This was causing all RHEL7 systems with manage_package_repo on to fail on
startup using systemctl, as the proper path to the original service file
is set incorrectly.

This patch adds the manage_package_repo to the top of the ::config class,
and adds some basic tests in config_spec.rb to ensure we don't regress on
this.

Signed-off-by: Ken Barber <ken@bob.sh>
2015-07-01 14:13:29 -07:00
Bryan Jen
3e6a22d166 fixes postgresql::server:recovery acceptance tests 2015-07-01 14:13:29 -07:00
Bryan Jen
2514881d3d adds acceptance tests for postgresql::server::recovery resource 2015-07-01 14:13:29 -07:00
Bryan Jen
3c83e3a4ce updates release date on CHANGELOG 2015-07-01 14:13:29 -07:00
Bryan Jen
7a6fdf6905 re-add apt pinning to unit test on puppet 2.7 2015-07-01 14:13:29 -07:00
Bryan Jen
8cb7d7046f updates CHANGELOG with merged in commits 2015-07-01 14:13:29 -07:00
Bryan Jen
026e4a2fdb Unpins apt 1.8 dependency in fixtures.yml and spec_helper_acceptance. 2015-07-01 14:13:29 -07:00
Bryan Jen
13b447b977 Release 4.4.0 prep 2015-07-01 14:13:28 -07:00
Morgan Haskel
540623144e Loosen the apt dependency
Once puppetlabs-apt 2.1.0 is released (2015-06-16) the postgresql module
will be compatible with apt 1.x (>= 1.8.0) and 2.x (>= 2.1.0). This will
*not* work with puppetlabs-apt 2.0.x.
2015-07-01 14:13:28 -07:00
Bryan Jen
9063dd5c81 Merge pull request #660 from DavidS/release-prep-4.4.1
Increment version number for 4.4.1
2015-07-01 10:36:51 -07:00
David Schmitt
e0ded2e3a4 Increment version number for 4.4.1 2015-07-01 18:35:13 +01:00
David Schmitt
e40f8376a1 Merge pull request #659 from kbarber/maint/4.4.x/fix_systemd_override_for_manage_package_repo
(MODULES-2181) Fix variable scope for systemd-override
2015-07-01 17:01:31 +01:00
Ken Barber
c21e2e5b27 (MODULES-2181) Fix variable scope for systemd-override
$manage_package_repo wasn't in scope for the template systemd-override.erb
This was causing all RHEL7 systems with manage_package_repo on to fail on
startup using systemctl, as the proper path to the original service file
is set incorrectly.

This patch adds the manage_package_repo to the top of the ::config class,
and adds some basic tests in config_spec.rb to ensure we don't regress on
this.

Signed-off-by: Ken Barber <ken@bob.sh>
2015-07-01 15:49:03 +01:00
Morgan Haskel
ba8880a007 Merge pull request #658 from bmjen/recovery-test
fixes postgresql::server:recovery acceptance tests
2015-06-30 13:20:04 -07:00
Bryan Jen
a861997f5b fixes postgresql::server:recovery acceptance tests 2015-06-30 13:18:36 -07:00
Hunter Haugen
5010861aa1 Merge pull request #657 from bmjen/recovery-test
adds acceptance tests for postgresql::server::recovery resource
2015-06-30 12:13:57 -07:00
Bryan Jen
ec60db4cc0 adds acceptance tests for postgresql::server::recovery resource 2015-06-30 12:13:45 -07:00
Morgan Haskel
a99464869b Merge pull request #655 from bmjen/update-changelog
updates release date on CHANGELOG
2015-06-29 10:27:55 -07:00
Travis Fields
d0493a28b9 Merge pull request #654 from bmjen/fix-onlyif-tests
(FM-2931) fixes logic problem with onlyif type param validation.
2015-06-29 10:25:59 -07:00
Bryan Jen
ea1c9c74f8 updates release date on CHANGELOG 2015-06-29 10:22:30 -07:00
Morgan Haskel
5b8625a8a4 Merge pull request #653 from bmjen/update-from-master
(FM-2923) install net-tools for tests
2015-06-29 10:17:50 -07:00
Bryan Jen
90290f6111 (FM-2931) fixes logic problem with onlyif type param validation. 2015-06-29 10:14:39 -07:00
David Schmitt
c7b4ebbf3e (FM-2923) install net-tools for tests
serverspec's be_listening uses net-tools' netstat utility to check for
open ports. This was puleld in until recently by puppet-agent packages.
Now this has changed and we need to install this manually.
2015-06-29 09:44:31 -07:00
JT (Jonny)
855718ef61 Merge pull request #651 from DavidS/install-missing-netstat
(FM-2923) install net-tools for tests
2015-06-26 15:28:30 +01:00
David Schmitt
e963cd153d (FM-2923) install net-tools for tests
serverspec's be_listening uses net-tools' netstat utility to check for
open ports. This was puleld in until recently by puppet-agent packages.
Now this has changed and we need to install this manually.
2015-06-26 14:13:48 +01:00
Morgan Haskel
b87da29090 Merge pull request #650 from cyberious/master
(maint) Fix tests from #527 merge - Looks like copy tests mismatched logic of when it should expect changes
2015-06-25 16:50:42 -07:00
Travis Fields
4596b59c01 (maint) Fix tests from #527 merge
- Looks like copy tests mismatched logic of when it should expect changes
2015-06-25 16:48:02 -07:00
Travis Fields
c4c0402bd4 Merge pull request #527 from kimor79/psql-onlyif 2015-06-25 14:04:10 -07:00
Kimo Rosenbaum
39f15c313c Add onlyif parameter to postgresql_psql to only run command if onlyif returns true
Add option to only attempt table grant if table already exists

Make this slightly more generic
2015-06-25 13:54:02 -07:00
CJ Estel
51fc426be8 Added 9.4, corrected past versions based on docs
adjusted spec to have correct values with change
2015-06-25 16:00:42 -04:00
Travis Fields
5b2c017693 Merge pull request #624 from saimonn/vivid
add ubuntu/vivid support
2015-06-25 10:55:21 -07:00
Hunter Haugen
cb57b323d6 Merge pull request #633 from b0e/master
disabling pg_hba_conf_defaults should not disable ipv4acls and ipv6ac…
2015-06-25 10:43:08 -07:00
Travis Fields
409907cda4 Merge pull request #643 from ghoneycutt/patch-3
Show support for Puppet v4 in the metadata
2015-06-25 10:12:54 -07:00
JT (Jonny)
f6c1c855cd Merge pull request #648 from bmjen/sync-with-master
Sync with master
2015-06-23 17:05:15 +01:00
Bryan Jen
04d59ee8ff re-add apt pinning to unit test on puppet 2.7 2015-06-22 17:00:29 -07:00
Bryan Jen
2ba897fc6f updates CHANGELOG with merged in commits 2015-06-22 15:45:15 -07:00
Mickaël Canévet
69c80b4290 Copy snakeoil certificate and key instead of symlinking
Since postgresql-9.1_9.1.16-0+deb7u1 on wheezy, postgresql can't read
snakeoil certificate as symlink anymore, so server does not restart.
This patch copies cert and key instead of symlinking so that it works
again.
2015-06-22 14:21:00 -07:00
Travis Fields
1315a33e28 (maint) Add beaker-puppet_install_helper and fix fact bug
- Issue with fact() was being called against default instead of
  using fact_on when iterating against each host, also was installing 3.8.1 despite
  specifying PUPPET_VERSION=1.1.1 so updated to use beaker-puppet_install_helper
2015-06-22 14:21:00 -07:00
Morgan Haskel
ad3e042fbb Merge pull request #647 from bmjen/unpin-apt
Unpins apt 1.8 dependency in fixtures.yml and spec_helper_acceptance.
2015-06-22 09:38:00 -07:00