Skip to content

Commit e2f5015

Browse files
author
Ashley Penney
committed
Merge 3.4.x changes into master.
1 parent 4345749 commit e2f5015

File tree

8 files changed

+49
-36
lines changed

8 files changed

+49
-36
lines changed

Diff for: CHANGELOG.md

+28
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,31 @@
1+
##2014-07-15 - Supported Release 3.4.1
2+
###Summary
3+
4+
This release merely updates metadata.json so the module can be uninstalled and
5+
upgraded via the puppet module command.
6+
7+
##2014-04-14 - Supported Release 3.4.0
8+
###Summary
9+
10+
This feature rolls up several important features, the biggest being PostGIS
11+
handling and allowing `port` to be set on postgresql::server in order to
12+
change the port that Postgres listens on. We've added support for RHEL7
13+
and Ubuntu 14.04, as well as allowing you to manage the service via
14+
`service_ensure` finally.
15+
16+
####Features
17+
- Added `perl_package_name` for installing bindings.
18+
- Added `service_ensure` for allowing control of services.
19+
- Added `postgis_version` and postgis class for installing postgis.
20+
- Added `port` for selecting the port Postgres runs on.
21+
- Add support for RHEL7 and Ubuntu 14.04.
22+
- Add `default_db` to postgresql::server::database.
23+
- Widen the selection of unquoted parameters in postgresql_conf{}
24+
- Require the service within postgresql::server::reload for RHEL7.
25+
- Add `inherit` to postgresql::server::role.
26+
27+
####Bugfixes
28+
129
##2014-03-04 - Supported Release 3.3.3
230
###Summary
331

Diff for: Modulefile

-13
This file was deleted.

Diff for: README.md

+5-6
Original file line numberDiff line numberDiff line change
@@ -853,6 +853,11 @@ Current it is only actively tested with the following operating systems:
853853

854854
Although patches are welcome for making it work with other OS distros, it is considered best effort.
855855

856+
### Postgis support
857+
858+
Postgis is currently considered an unsupported feature as it doesn't work on
859+
all platforms correctly.
860+
856861
### All versions of RHEL/Centos
857862

858863
If you have selinux enabled you must add any custom ports you use to the postgresql_port_t context. You can do this as follows:
@@ -861,12 +866,6 @@ If you have selinux enabled you must add any custom ports you use to the postgre
861866
# semanage port -a -t postgresql_port_t -p tcp $customport
862867
```
863868

864-
### RHEL7
865-
866-
Currently the following features are unsupported:
867-
868-
* Postgis (There is no existing postgis package for RHEL7, and it's not in EPEL7 yet.)
869-
870869
Development
871870
------------
872871

Diff for: manifests/server/config_entry.pp

+4
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,10 @@
1111
default => $path,
1212
}
1313

14+
Exec {
15+
logoutput => 'on_failure',
16+
}
17+
1418
case $name {
1519
/data_directory|hba_file|ident_file|include|listen_addresses|port|max_connections|superuser_reserved_connections|unix_socket_directory|unix_socket_group|unix_socket_permissions|bonjour|bonjour_name|ssl|ssl_ciphers|shared_buffers|max_prepared_transactions|max_files_per_process|shared_preload_libraries|wal_level|wal_buffers|archive_mode|max_wal_senders|hot_standby|logging_collector|silent_mode|track_activity_query_size|autovacuum_max_workers|autovacuum_freeze_max_age|max_locks_per_transaction|max_pred_locks_per_transaction|restart_after_crash|lc_messages|lc_monetary|lc_numeric|lc_time/: {
1620
Postgresql_conf {

Diff for: metadata.json

+9-8
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,12 @@
11
{
2+
"name": "puppetlabs-postgresql",
3+
"version": "3.4.1",
4+
"author": "Inkling/Puppet Labs",
5+
"summary": "PostgreSQL defined resource types",
6+
"license": "ASL 2.0",
7+
"source": "git://github.com/puppetlabs/puppet-postgresql.git",
8+
"project_page": "https://github.com/puppetlabs/puppet-postgresql",
9+
"issues_url": "https://github.com/puppetlabs/puppet-postgresql/issues",
210
"operatingsystem_support": [
311
{
412
"operatingsystem": "RedHat",
@@ -51,21 +59,14 @@
5159
"requirements": [
5260
{
5361
"name": "pe",
54-
"version_requirement": "3.2.x"
62+
"version_requirement": ">= 3.2.0 < 3.4.0"
5563
},
5664
{
5765
"name": "puppet",
5866
"version_requirement": "3.x"
5967
}
6068
],
61-
"name": "puppetlabs-postgresql",
62-
"version": "3.3.3",
63-
"source": "git://github.com/puppetlabs/puppet-postgresql.git",
64-
"author": "Inkling/Puppet Labs",
65-
"license": "ASL 2.0",
66-
"summary": "PostgreSQL defined resource types",
6769
"description": "PostgreSQL defined resource types",
68-
"project_page": "https://github.com/puppetlabs/puppet-postgresql",
6970
"dependencies": [
7071
{
7172
"name": "puppetlabs/stdlib",

Diff for: spec/spec_helper.rb

-6
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,6 @@
77
c.include PuppetlabsSpec::Files
88

99
c.before :each do
10-
# Ensure that we don't accidentally cache facts and environment
11-
# between test cases.
12-
Facter::Util::Loader.any_instance.stubs(:load_all)
13-
Facter.clear
14-
Facter.clear_messages
15-
1610
# Store any environment variables away to be restored later
1711
@old_env = {}
1812
ENV.each_key {|k| @old_env[k] = ENV[k]}

Diff for: spec/unit/provider/postgresql_conf/parsed_spec.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
conf_class = Puppet::Type.type(:postgresql_conf)
1010
provider = conf_class.provider(:parsed)
1111
conffile = tmpfilename('postgresql.conf')
12-
provider.any_instance.stubs(:target).returns conffile
12+
provider.any_instance.stub(:target).and_return conffile
1313
provider
1414
}
1515

Diff for: spec/unit/type/postgresql_conf_spec.rb

+2-2
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@
44
describe Puppet::Type.type(:postgresql_conf) do
55
before do
66
@provider_class = described_class.provide(:simple) { mk_resource_methods }
7-
@provider_class.stubs(:suitable?).returns true
8-
described_class.stubs(:defaultprovider).returns @provider_class
7+
@provider_class.stub(:suitable?).and_return true
8+
described_class.stub(:defaultprovider).and_return @provider_class
99
end
1010

1111
describe "namevar validation" do

0 commit comments

Comments
 (0)