Commit graph

277 commits

Author SHA1 Message Date
Mickaël Canévet
f0ac7325f4 Set plperl_package_name to postgresql-plperl on every RedHat family OS except RHEL5 2013-07-16 15:32:56 +02:00
Mickaël Canévet
68361236c0 Use $::operatingsystemrelease instead of $::lsbmajdistrelease 2013-07-16 10:21:19 +02:00
Mickaël Canévet
d7cb86ca1e Add missing manifests/plperl.pp file 2013-07-16 08:52:20 +02:00
Mickaël Canévet
5065246512 Add support for installing PL/Perl 2013-07-10 15:20:57 +02:00
Ken Barber
238c06383d Merge branch 'alter_existing_user'
* alter_existing_user:
  Alter superuser, createdb, createrole, login, replication status and the connection limit of a role that already exists
2013-07-03 14:13:42 +01:00
Mickaël Canévet
abf8f64ab5 Alter superuser, createdb, createrole, login, replication status and the connection limit of a role that already exists
Previously we only created a new user, any updates to the defined resource
would not update the role. This patch adds extra logic to modify a role
whenever a parameter is changed.

System tests have also been added to support this.
2013-07-03 14:11:54 +01:00
Chris Price
80d44718e9 Merge pull request #194 from kbarber/fixed_failing_utf8_tests
Fix the non-defaults test failing to use UTF8
2013-06-18 08:28:47 -07:00
Ken Barber
2676904608 Fix the non-defaults test failing to use UTF8
The non-default tests try to set UTF8 when UTF8 is not installed on the en_US
machine. These are non-default settings anyway, but one should presume the
correct locale should be set before this is attempted, this patch includes
that step.

In an ideal world we would use a locale module to do this.

This patch also fixes an Ubuntu 10.04 issue where you need to be absolute about
the locale and encoding as well.

Signed-off-by: Ken Barber <ken@bob.sh>
2013-06-14 23:14:47 +01:00
Ken Barber
27e40da908 Merge branch 'rename_test_files'
* rename_test_files:
  Fix travis.yml
  Include location in postgresql::tablespace test
  Rename tablespace_spec.pp to tablespace_spec.rb
  Rename role_spec.pp to role_spec.rb
2013-06-12 15:13:49 +01:00
Ken Barber
cef3be22f2 Fix travis.yml
Signed-off-by: Ken Barber <ken@bob.sh>
2013-06-12 15:04:38 +01:00
Ken Barber
c377370be9 Include location in postgresql::tablespace test
Signed-off-by: Ken Barber <ken@bob.sh>
2013-06-12 14:21:06 +01:00
Matthias Viehweger
bed601256b Rename tablespace_spec.pp to tablespace_spec.rb 2013-06-12 15:40:24 +03:00
Matthias Viehweger
14fbf9f0fe Rename role_spec.pp to role_spec.rb 2013-06-12 15:40:07 +03:00
Chris Price
d896be3ba0 Merge pull request #191 from cprice-puppet/maint/master/release-2.3.0
Update Modulefile and Changelog for 2.3.0 release
2013-06-06 16:26:27 -07:00
Chris Price
77da524671 Merge pull request #190 from cprice-puppet/maint/master/docs-for-database-owner
Update docs to reflect new `owner` parameter for `::database` type.
2013-06-06 15:20:36 -07:00
Chris Price
5c26c3e3f2 Update Modulefile and Changelog for 2.3.0 release 2013-06-06 15:05:04 -07:00
Chris Price
e764c20289 Update docs to reflect new owner parameter for ::database type. 2013-06-06 14:50:15 -07:00
Chris Price
dcac94a70d Merge pull request #156 from harbulot/issue_114
Setting the owner of the database with createdb.
2013-06-06 14:45:07 -07:00
Chris Price
5bc584ef26 Merge pull request #188 from cprice-puppet/bug/master/fix-hard-coded-postgres-user-in-hba
Don't hard-code postgres user's username for pg_hba
2013-06-06 14:43:02 -07:00
Chris Price
4e668dd69e Merge pull request #189 from kbarber/feature/master/support-more-distroz
Add more distributions
2013-06-06 13:57:28 -07:00
Chris Price
8502de54a7 Don't hard-code postgres user's username for pg_hba 2013-06-06 12:55:43 -07:00
Ken Barber
f6fb18a5b3 Fix up and add some tests for unknown OS patch
This patch just adds some new tests for the unknown OS patch, and cleans up
some existing tests to look for the new warning message.

Also, change the warning message for $osfamily and manage_package_repo to
reflect the parameter at fault.

Signed-off-by: Ken Barber <ken@bob.sh>
2013-06-06 20:53:36 +01:00
Chris Price
6bd2befa98 Add support for other operating systems besides Redhat/Debian
Prior to this commit, if you attempted to use the module to
manage postgres on any OS other than Redhat/Debian, there
was an explicit check for that, and a call to `fail`.

In reality, the OS family is only used to build up defaults
for various path and package names, which are all exposed
as parameters.  If the user is willing to explicitly pass
in all of those parameters, there's no reason we should
fail based on OS family.

This commit adds checks to the 'default' osfamily case
such that we now only fail if they're on a non-Redhat-or-Debian
system *and* they haven't explicitly passed in values for
all of the required parameters.
2013-06-06 12:23:30 -07:00
Chris Price
ee8643221b Merge pull request #186 from kbarber/rspec-system-conversion
Convert system tests to use rspec-system
2013-06-06 10:00:07 -07:00
Ken Barber
80c85e8f2b Convert system tests to use rspec-system
This patch ports all of the existing system tests to use rspec-system instead.

To assist with this conversion some patches were made to fix OS compatibility
where necessary. We also added an ensure parameter to the postgresql::server
class to assist with removing PostgreSQL configuration to aid with testing
cleanups.

The documentation has been updated to indicate test usage with rspec-system,
we've also renamed the 'tests' directory to 'examples'.

Signed-off-by: Ken Barber <ken@bob.sh>
2013-06-04 15:36:24 +01:00
Ken Barber
6113f6ef19 Merge pull request #184 from MaxMartin/master
Correct README
2013-05-15 12:05:17 -07:00
Max Martin
976be1305b Correct database_user param name
README formerly incorrectly referred to the password_hash parameter as password.
2013-05-15 12:58:39 -06:00
Ken Barber
e5c1dbcd91 Merge pull request #179 from cprice-puppet/maint/master/fix-readme-for-running-system-testswq
Fix example command in README for running system tests on a distro
2013-05-07 07:56:49 -07:00
Chris Price
a7cd5d96ed Add a few more docs about running system tests 2013-05-06 10:50:03 -07:00
Chris Price
d7cce420d9 Fix example command in README for running system tests on a distro 2013-05-06 10:41:08 -07:00
Chris Price
5dd462157b Merge pull request #176 from kbarber/release_221
Release 2.2.1 + Changelog
2013-04-29 11:59:35 -07:00
Ken Barber
760afe5397 Release 2.2.1 + Changelog
Signed-off-by: Ken Barber <ken@bob.sh>
2013-04-29 19:56:30 +01:00
Ken Barber
7a11366631 Merge pull request #151 from antaflos/psql_cwd
Set /tmp as default CWD for postgresql_psql
2013-04-29 11:52:29 -07:00
Chris Price
f1c87046be Merge pull request #175 from kbarber/release_220
Release 2.2.0
2013-04-26 09:24:49 -07:00
Ken Barber
cd3b7a83a4 Release 2.2.0
Signed-off-by: Ken Barber <ken@bob.sh>
2013-04-26 17:21:37 +01:00
Chris Price
6a96d3cd28 Merge pull request #174 from kbarber/up_stdlib_dependency
Increase stdlib dependency to include 5.x
2013-04-26 09:02:24 -07:00
Ken Barber
2b8f5f1a1c Increase stdlib dependency to include 5.x
Without this patch, librarian-puppet will do strange things like roll back
the version of puppetdb to version 1.0.1 to satisfy all constraints.

Signed-off-by: Ken Barber <ken@bob.sh>
2013-04-26 16:45:19 +01:00
Ken Barber
08b7bdba49 Merge pull request #172 from dprince/python_module
Adds new postgresql::python module.
2013-04-22 14:40:38 -07:00
Dan Prince
03b3df3ab9 Add test on postgresql::python. 2013-04-22 11:30:07 -04:00
Flaper Fesp
bd9bcf4cc2 Add support for psycopg installation 2013-04-22 11:07:50 -04:00
Flaper Fesp
9a307d986a Add support for psycopg installation 2013-04-22 11:04:01 -04:00
Ken Barber
8aa916583e Merge pull request #171 from kamilszymanski/ubuntu_raring_support
Add default PostgreSQL version for Ubuntu 13.04
2013-04-19 07:32:04 -07:00
Kamil Szymanski
10aca2ce2f Add default PostgreSQL version for Ubuntu 13.04 2013-04-18 23:11:40 +02:00
Ken Barber
5e4045d0c9 Merge pull request #158 from harbulot/user_nopassword
Adding the ability to create users without a password.
2013-04-12 12:08:49 -07:00
Ken Barber
3804c9323c Merge pull request #162 from domcleal/pp26-fixes
Three Puppet 2.6 fixes
2013-03-27 04:21:06 -07:00
Dominic Cleal
61b0b16c9b Add create_resources to fix Travis CI failure on Puppet 2.6 2013-03-21 23:38:48 +00:00
Dominic Cleal
4b5212f803 Enable hasstatus for EL and Puppet 2.6, to detect running server 2013-03-21 18:13:17 +00:00
Dominic Cleal
afa63ef850 Pass only arrays to Puppet::Util.execute() for Puppet 2.6 compatibility 2013-03-21 18:13:13 +00:00
Dominic Cleal
a8b382276a Change connection_limit default to string, Puppet 2.6 can't parse negative ints 2013-03-21 18:13:05 +00:00
Ken Barber
1fe648db19 Merge pull request #161 from domcleal/concat-setup
Add explicit call to concat::setup when creating concat file
2013-03-21 03:36:24 -07:00