Commit graph

144 commits

Author SHA1 Message Date
Flaper Fesp
219e7445bd Removed trailing comma. Makes puppet fail 2013-01-18 15:58:47 +01:00
Chris Price
5a7e1d442f Merge pull request #83 from cprice-puppet/bug/master/82-pg-8.1-connect-privilege
Fix revoke command in database.pp to support postgres 8.1
2013-01-16 17:21:13 -08:00
Chris Price
43ded429de Fix revoke command in database.pp to support postgres 8.1
In postgres 8.1, the 'CONNECT' privilege doesn't exist, which
would result in an error if you tried to use the 'database'
type.  This commit conditions the revoke statement to use the
'ALL' privilege on 8.1.
2013-01-16 16:38:24 -08:00
Daniel Pittman
a018be54e7 Merge pull request #79 from Seldaek/patch-2
Add support for ubuntu 12.10 status
2013-01-16 10:17:19 -08:00
Chris Price
2580464d59 Merge pull request #81 from cprice-puppet/maint/master/2.0-release
Update CHANGELOG, README, Modulefile for 2.0.0 release
2013-01-15 16:43:22 -08:00
Chris Price
1d6ad0ce9b Update CHANGELOG, README, Modulefile for 2.0.0 release 2013-01-15 16:09:10 -08:00
Ken Barber
3b060fa208 Merge pull request #80 from cprice-puppet/bug/master/require-service-from-db
Add a "require" to make sure the service is up before trying to create a...
2013-01-15 14:46:05 -08:00
Chris Price
a1d0ef75f0 Add a "require" to make sure the service is up before trying to create a db 2013-01-15 14:43:18 -08:00
Ken Barber
21868869dd Merge pull request #78 from cprice-puppet/maint/master/fix-error-message-in-default-version-fact
Fix error message in default version fact
2013-01-15 14:38:55 -08:00
Jordi Boggiano
3504405cf0 Add support for ubuntu 12.10 status 2013-01-15 23:31:14 +01:00
Ken Barber
c35f78d23a Merge pull request #77 from cprice-puppet/maint/master/stdlib-dep-semantic-versioning
Update stdlib dependency to reflect semantic versioning
2013-01-15 14:11:26 -08:00
Chris Price
0ae8ac12f2 Update stdlib dependency to reflect semantic versioning 2013-01-15 14:09:51 -08:00
Chris Price
dfa397c26e Fix error message in default version fact
A commit that I merged yesterday broke the default version fact
such that it would sometimes return nil and sometimes an error message
if your distro wasn't supported.  This commit makes it consistent again.
2013-01-15 13:25:21 -08:00
Chris Price
19b12ffed4 Merge pull request #75 from cprice-puppet/kbarber-ticket/master/manage_postgres_apt_repo
Kbarber ticket/master/manage postgres apt repo
2013-01-15 11:28:55 -08:00
Ken Barber
5963a0a4b9 Fix examples for specifying usage of official postgresql repos
This changes the wording and name of the example for using
yum|apt.postgresql.org as the source of your packages.

Signed-off-by: Ken Barber <ken@bob.sh>
2013-01-15 11:00:24 -08:00
Ken Barber
faeac44713 Manage official postgres apt repo
Previously we hadn't supported using the official PostgreSQL repos for deb-based
packaging. This commit fixes that by introducing the management of the apt
repositories on the host as required, and using the correct package and service
name.

Signed-off-by: Ken Barber <ken@bob.sh>
2013-01-15 11:00:24 -08:00
Chris Price
a32553ba77 Merge pull request #70 from cprice-puppet/bug/master/amz-linux-patch-cleanup
Fix merge issue from AMZ linux patch
2013-01-14 14:15:58 -08:00
Chris Price
5f705ddf32 Fix merge issue from AMZ linux patch 2013-01-14 14:14:10 -08:00
Ken Barber
3a180d80cb Merge pull request #66 from cprice-puppet/maint/master/allow-version-param-in-main-init
Change API to expose non-default pg version support via main type
2013-01-14 14:04:24 -08:00
Chris Price
b208885620 Merge pull request #39 from haf/amz-linux
Amz linux
2013-01-14 13:46:01 -08:00
Henrik
5c89dc11f9 data dirs on amazon differ 2013-01-14 22:40:59 +01:00
Henrik
6cb9071bfd Updating params.
The OS Family for Amazon Linux is "Linux", and $::operatingsystem is
"Amazon".
2013-01-14 22:40:05 +01:00
Henrik
02aef86e31 updating the switch statement looking at osfamily 2013-01-14 22:35:25 +01:00
Chris Price
1477d03503 Clean up docs for base class (init.pp) 2013-01-14 13:26:34 -08:00
Chris Price
f2dd4d2da0 Merge pull request #69 from Seldaek/patch-1
Provide version for ubuntu 12.10
2013-01-14 13:11:35 -08:00
Jordi Boggiano
82dc194a7d Provide version for ubuntu 12.10 2013-01-14 19:48:52 +01:00
Chris Price
a8e66e6872 Update uses of 'postgresql' to 'postgresql::client' 2013-01-11 14:26:27 -08:00
Chris Price
45669b7f8b Add remaining params to init.pp, and update tests 2013-01-11 14:23:56 -08:00
Hunter Haugen
6c0b1eff95 Update the base class to accept version parameter 2013-01-11 14:23:56 -08:00
Chris Price
8b14a656d7 Merge pull request #62 from kbarber/ticket/master/fix_inherits_and_test_validate_db_connection
Fix inherits issue with validate_db_connection
2013-01-11 14:21:17 -08:00
Ken Barber
e1acc2774f Fix inherits issue with validate_db_connection
Previously the validate_db_connection defined type was trying to use inherits
like a class. This of course would fail.

After analyzing its usage, I've removed the need for the top-level params
inherit by just including the 'postgresql' module which pulls in the client
package and the params class as well. It also avoids resource duplication
for the client package as well.

To ensure we don't get regression on this I've added system tests that test
this defined type in a success and failure state.

Signed-off-by: Ken Barber <ken@bob.sh>
2013-01-11 21:57:38 +00:00
Ken Barber
358ebc178b Merge pull request #58 from Mosibi/master
Turn the exec in validate_db_connection.pp around
2013-01-11 04:21:44 -08:00
Ken Barber
4cd9da77c0 Merge pull request #55 from Spenser309/master
Syntax Error
2013-01-11 01:12:37 -08:00
Chris Price
53224c0ab8 Merge pull request #59 from puppetlabs-operations/wheezy_default_version
Add Debian wheezy support for default version fact
2013-01-08 10:06:49 -08:00
Adrien Thebo
147fa8e59b Add Debian wheezy support for default version fact
Debian Wheezy has a default version of 9.1, but doesn't currently have
an operatingsystemrelease value beyond 'wheezy'. This command searches
for wheezy in the operatingsystemrelease fact and sets the fact value
accordingly.
2013-01-07 19:02:34 -08:00
Richard Arends
fcace1e5c0 changed validate_db_connection.pp 2012-12-28 10:00:15 +01:00
Spenser Gilliland
457f80bfe4 Syntax Fix 2012-12-21 17:26:48 -06:00
Chris Price
8bb71e4bc1 Merge pull request #50 from maestrodev/psql-cwd
This is great--thank you!
2012-12-14 08:30:16 -08:00
Brett Porter
6b53c07da0 set an appropriate parent for the parameter 2012-12-14 23:22:38 +11:00
Brett Porter
6367e359ea add optional cwd to the postgres_psql command
When the psql command runs from a directory it does not have permission to
access, it outputs an error. This error trips up the unless SQL command,
causing the other SQL commands to run even if not needed. Rather than ignore
stderr (which might hide something else), or use an arbitrary directory like
/tmp, this code sets the cwd to the data directory, which will exist and be
owned by the postgres user. If someone uses the postgres_psql type and
customises the psql_user parameter, they should also set an appropriate cwd.
2012-12-14 23:02:18 +11:00
Chris Price
9febf9a6ed Merge pull request #46 from cprice-puppet/feature/master/refactor-default-version-fact
Rework `postgres_default_version` fact
2012-12-11 07:36:42 -08:00
Chris Price
07b4dd2f78 Merge pull request #48 from florinbroasca/master
Fix default version for Ubuntu and Debian
2012-12-10 08:59:20 -08:00
Chris Price
9fd8b48074 Merge pull request #49 from nzakaria/master
Moved remote access for other users to end of IPv4 section
2012-12-10 08:50:00 -08:00
nzakaria
d7e474a695 Update templates/pg_hba.conf.erb
Moved the ip mask for allowing remote access for other users to the end of the IPv4 section
so that it doesn't block access to the DB via local loopback for other forms of authentication (such as LDAP).
2012-12-10 14:42:04 +11:00
Florin Broasca
b02556f96c Fix default version for Ubuntu and Debian 2012-12-09 23:56:27 +02:00
Chris Price
052085bcc0 Merge pull request #47 from cprice-puppet/feature/master/fix-yum-gpg-keys
Fix GPG key for yum.postgresl.org
2012-12-07 11:37:44 -08:00
Chris Price
97af59e701 Fix GPG key for yum.postgresl.org
The GPG key for yum.postgresql.org was in the wrong directory,
and as written, would have only supported postgres 9.2 anyway.

I looked at the yum rpms for a few other versions besides 9.2,
and they appear to be using the same GPG key.  So this commit
assumes that they all are doing so, and it sets things up
accordingly.  Hopefully this will make the yumrepo support
compatible with other versions of postgres besides 9.2, but I
haven't added that to the actual test matrix yet.
2012-12-07 11:34:30 -08:00
Chris Price
208b663ad1 Rework postgres_default_version fact
This commit fixes up the `postgres_default_version` fact so that
it doesn't use apt/yum (slow), and instead just has a hard-coded
list of default postgres versions for various OS versions.  We
will need to add new OS versions to this fact over time, but that
seems preferable to the previous implementation which was causing
slower puppet runs on all nodes (regardless of whether they were
actually using postgres or not).
2012-12-07 10:40:18 -08:00
Chris Price
afd8e90dd5 Fix to 'require' for database_grant 2012-12-06 14:35:42 -08:00
Chris Price
9d12358917 Merge pull request #43 from cprice-puppet/feature/master/support-non-default-versions
Feature/master/support non default versions
2012-12-06 14:08:01 -08:00