Skip to content

Commit 3ea94c5

Browse files
authored
Merge pull request #1564 from puppetlabs/unbreak-debian-support-with-encoding
Unbreak Debian support with custom encoding
2 parents b996aef + e36a72f commit 3ea94c5

File tree

4 files changed

+13
-10
lines changed

4 files changed

+13
-10
lines changed

lib/puppet/type/postgresql_psql.rb

+1-5
Original file line numberDiff line numberDiff line change
@@ -135,11 +135,7 @@ def matches(value)
135135
end
136136

137137
autorequire(:anchor) do
138-
["postgresql::server::service::begin::#{self[:instance]}"]
139-
end
140-
141-
autorequire(:service) do
142-
["postgresqld_instance_#{self[:instance]}"]
138+
["postgresql::server::service::end::#{self[:instance]}"]
143139
end
144140

145141
def should_run_sql(refreshing = false)

manifests/server/instance/service.pp

+10-3
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,10 @@
4242
status => $service_status,
4343
}
4444

45+
Anchor["postgresql::server::service::begin::${name}"]
46+
-> Service["postgresqld_instance_${name}"]
47+
-> Anchor["postgresql::server::service::end::${name}"]
48+
4549
if $service_ensure in ['running', true] {
4650
# This blocks the class before continuing if chained correctly, making
4751
# sure the service really is 'up' before continuing.
@@ -56,10 +60,13 @@
5660
sleep => 1,
5761
tries => 60,
5862
psql_path => $psql_path,
59-
require => Service["postgresqld_instance_${name}"],
60-
before => Anchor["postgresql::server::service::end::${name}"],
6163
}
62-
Postgresql::Server::Database <| title == $default_database |> -> Postgresql_conn_validator["validate_service_is_running_instance_${name}"]
64+
65+
Anchor["postgresql::server::service::begin::${name}"]
66+
-> Service["postgresqld_instance_${name}"]
67+
-> Postgresql::Server::Database <| title == $default_database |>
68+
-> Postgresql_conn_validator["validate_service_is_running_instance_${name}"]
69+
-> Anchor["postgresql::server::service::end::${name}"]
6370
}
6471
}
6572

manifests/server/plperl.pp

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,5 +16,5 @@
1616
-> Class['postgresql::server::install']
1717
-> Package['postgresql-plperl']
1818
-> Class['postgresql::server::service']
19-
anchor { 'postgresql::server::plperl::end': }
19+
-> anchor { 'postgresql::server::plperl::end': }
2020
}

spec/acceptance/utf8_encoding_spec.rb spec/acceptance/aaa_spec.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
require 'spec_helper_acceptance'
44

5-
describe 'postgresql::server', skip: 'IAC-1286' do
5+
describe 'postgresql::server' do
66
let(:pp) do
77
<<-MANIFEST
88
class { 'postgresql::globals':

0 commit comments

Comments
 (0)