Skip to content

Commit

Permalink
Improve handling of pg_hba_rule (fixes #38) (#48)
Browse files Browse the repository at this point in the history
* bump dependency on postgres module to >= 5

versions <5 use an expired APT repository key that breaks installations

* make pg_hba_rule's title server-specific
  • Loading branch information
costela authored and Domenico Commisso committed Sep 11, 2017
1 parent 3550b01 commit 6cc569e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions manifests/server.pp
Original file line number Diff line number Diff line change
Expand Up @@ -377,8 +377,8 @@
if($barman::autoconfigure) {
# export configuration for the pg_hba.conf
if ($streaming_archiver or $backup_method == 'postgres') {
@@postgresql::server::pg_hba_rule { "barman ${::hostname} client access (replication)":
description => "barman ${::hostname} client access",
@@postgresql::server::pg_hba_rule { "barman ${::hostname}->${name} client access (replication)":
description => "barman ${::hostname}->${name} client access",
type => 'host',
database => 'replication',
user => $barman::settings::dbuser,
Expand All @@ -387,8 +387,8 @@
tag => "barman-${barman::host_group}",
}
}
@@postgresql::server::pg_hba_rule { "barman ${::hostname} client access":
description => "barman ${::hostname} client access",
@@postgresql::server::pg_hba_rule { "barman ${::hostname}->${name} client access":
description => "barman ${::hostname}->${name} client access",
type => 'host',
database => $barman::settings::dbname,
user => $barman::settings::dbuser,
Expand Down
2 changes: 1 addition & 1 deletion metadata.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,6 @@
"description": "Automates Barman installation and server setup",
"dependencies": [
{"name":"puppetlabs/stdlib","version_requirement":">=4.6.0 <5.0.0"},
{"name":"puppetlabs/postgresql","version_requirement":">=4.0.0 <5.0.0"}
{"name":"puppetlabs/postgresql","version_requirement":">=5.0.0 <6.0.0"}
]
}

0 comments on commit 6cc569e

Please sign in to comment.