Commit graph

462 commits

Author SHA1 Message Date
Ashley Penney
c2d48f1953 Merge pull request #235 from kamilszymanski/db_docs_update
Add missing documentation for istemplate parameter
2013-08-27 12:00:10 -07:00
Ashley Penney
d378d8aa17 Merge pull request #209 from mnencia/patch-1
Tag the postgresql-contrib package as postgresql
2013-08-27 11:58:18 -07:00
Ashley Penney
f7116f5aad Style guide cleanup.
Most of these changes are just simple bits but I've wrapped a bunch of
stuff around 80 lines so it's slightly more readable.  These should all
be no-op changes.
2013-08-26 12:22:13 -04:00
Kamil Szymanski
83086c2712 Add missing documentation for istemplate parameter 2013-08-25 13:22:33 +02:00
Ashley Penney
0ddb9b109a Add the two missing variables that the if check requires. 2013-08-24 12:07:07 -07:00
Ashley Penney
421e9ae71f Merge pull request #212 from hunner/handle_refreshonly
Handle refreshonly correctly
2013-08-19 12:03:15 -07:00
Hunter Haugen
b85a118b57 Add specs for psql Type and Provider 2013-08-13 16:18:02 -07:00
Hunter Haugen
8919359bca Use boolean for refreshonly
Puppet::Type supports `:boolean => true` to create a
`resource.<property>?` method that is true or false based on the
`:true`, `:false`, `true`, or `false` value of the parameter.

This will allow accurate assesment of the refreshonly attribute for
testing.
2013-08-13 16:18:02 -07:00
Hunter Haugen
b2b9b13df8 Merge pull request #218 from fiddyspence/set_postgres_postgrespw
Alter escaping in postgresql::config::afterservice
2013-08-13 16:13:18 -07:00
Hunter Haugen
9d753b40a8 Merge pull request #229 from mcanevet/plperl
Add README entry for postgresql::plperl
2013-08-13 16:07:34 -07:00
Mickaël Canévet
84f79507ed Fix postgresql::plperl documentation 2013-08-12 10:15:25 +02:00
Mickaël Canévet
70c3341c24 Add README entry for postgresql::plperl 2013-08-12 10:14:19 +02:00
Ashley Penney
158ea50558 Merge pull request #228 from kbarber/release-241
Release 2.4.1
2013-08-01 10:55:29 -07:00
Ken Barber
eb7c27d874 Release 2.4.1
This updates the Modulefile and Changelog for release 2.4.1.

Signed-off-by: Ken Barber <ken@bob.sh>
2013-08-01 18:40:06 +01:00
Ashley Penney
a1b9728dd1 Merge pull request #225 from kbarber/ticket/master/GH-216-alter-role-not-idempotent
(GH-216) Alter role call not idempotent with cleartext passwords
2013-08-01 05:53:15 -07:00
Ken Barber
9c2dab95aa (GH-216) Alter role call not idempotent with cleartext passwords
The postgresql::role defined type was not idempotent when passed cleartext
passwords. This is because we were comparing it with its md5 equivalent in
the db.

This patch converts any cleartext passwords to md5 before comparison, but
only if they are cleartext (ie. not starting with md5).

I also bumped the version of rspec-system-puppet to get use of the refresh
method, plus did some cleanup because the old tests were a bit dusty, again
taking advantage of refresh plus changing some matchers for clarity.

Signed-off-by: Ken Barber <ken@bob.sh>
2013-08-01 03:18:46 +01:00
fiddyspence
eadfe3bf00 modified tests 2013-07-23 15:13:15 +01:00
fiddyspence
165e12d88e amending the unless on the exec for quoting also 2013-07-23 14:43:45 +01:00
fiddyspence
82d79dd21a reverting path on exec 2013-07-23 13:08:54 +01:00
fiddyspence
2eb03efc29 Alter escaping in postgresql::config::afterservice
This allows non-standard users (pe-postgres) to change passwords. Also
added a function to do escaping of the password, added system tests
and rspec tests for the function.
2013-07-23 13:04:46 +01:00
Ashley Penney
721d5e9033 Merge pull request #213 from hunner/release_2.4.0
Release 2.4.0
2013-07-19 16:25:52 -07:00
Hunter Haugen
f1f5672a9d Release 2.4.0
Summary
-------
This updates adds the ability to change permissions on tables, create
template databases from normal databases, manage PL-Perl's postgres
package, and disable the management of `pg_hba.conf`.

Features
--------
- Add `postgresql::table_grant` defined resource
- Add `postgresql::plperl` class
- Add `manage_pg_hba_conf` parameter to the `postgresql::config` class
- Add `istemplate` parameter to the `postgresql::database` define

Bugfixes
--------
- Update `postgresql::role` class to be able to update roles when
  modified instead of only on creation.
- Update tests
- Fix documentation of `postgresql::database_grant`
2013-07-19 16:21:46 -07:00
Hunter Haugen
847f54ce6c Merge pull request #204 from mcanevet/set_istemplate
Add support for istemplate parameter where creating db
2013-07-19 12:55:16 -07:00
Hunter Haugen
95452ceb90 Merge pull request #205 from mcanevet/plperl
Add support for installing PL/Perl
2013-07-19 12:49:21 -07:00
Marco Nenciarini
2344960980 Tag the postgresql-contrib package as postgresql 2013-07-17 12:10:19 +02:00
Hunter Haugen
9471fa5eb7 Merge pull request #208 from hunner/add_grants
Add grant abilities for more that databases
2013-07-16 15:32:24 -07:00
Hunter Haugen
a946157a42 Update readme 2013-07-16 14:31:28 -07:00
Hunter Haugen
6890a56eb7 Reindent postgresql::database_grant spec 2013-07-16 14:31:28 -07:00
Hunter Haugen
a37eaa053b Split database_grant up
The code to grant permissions databases and their objects has been
abstracted to `postgresql::grant` and is used by both
`postgresql::database_grant` and `postgresql::table_grant`
2013-07-16 14:31:28 -07:00
Mickaël Canévet
5ff47cf1b8 Test plperl only on non standard installation as it does not work on redhat5 2013-07-16 16:06:12 +02:00
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
988f45c8a4 Document istemplate parameter 2013-07-16 08:49:03 +02:00
Mickaël Canévet
5065246512 Add support for installing PL/Perl 2013-07-10 15:20:57 +02:00
Mickaël Canévet
bbb3aa4d5c Fix rspec-system 2013-07-10 14:49:56 +02:00
Mickaël Canévet
c86fec994a Add support for istemplate parameter where creating db 2013-07-10 14:44:58 +02:00
Ken Barber
2e0455ffdf Merge branch 'manage_pg_hba_conf'
* manage_pg_hba_conf:
  Add support for optional management of pg_hba.conf
2013-07-08 13:31:02 +01:00
Mickaël Canévet
1f736fcfc0 Add support for optional management of pg_hba.conf
This patch adds support for disabling management of pg_hba.conf by the module,
through the parameter `manage_pg_hba_conf`.
2013-07-08 13:29:48 +01: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