Commit graph

281 commits

Author SHA1 Message Date
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
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
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
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