Skip to content

Commit

Permalink
Revert "puppetlabs/stdlib: Require 9.x"
Browse files Browse the repository at this point in the history
  • Loading branch information
bastelfreak committed Aug 29, 2023
1 parent 5d396bb commit 8f6c13c
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 8 deletions.
6 changes: 3 additions & 3 deletions manifests/backup/pg_dump.pp
Original file line number Diff line number Diff line change
Expand Up @@ -68,13 +68,13 @@
) {
# Install required packages
if $package_name {
stdlib::ensure_packages($package_name)
ensure_packages($package_name)
}
if $install_cron {
if $facts['os']['family'] == 'RedHat' {
stdlib::ensure_packages('cronie')
ensure_packages('cronie')
} elsif $facts['os']['family'] != 'FreeBSD' {
stdlib::ensure_packages('cron')
ensure_packages('cron')
}
}

Expand Down
2 changes: 1 addition & 1 deletion manifests/server/extension.pp
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@
default => $package_ensure,
}

stdlib::ensure_packages($package_name, {
ensure_packages($package_name, {
ensure => $_package_ensure,
tag => 'puppetlabs-postgresql',
})
Expand Down
2 changes: 1 addition & 1 deletion manifests/server/instance/config.pp
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,7 @@
}
}

stdlib::ensure_packages([$package_name])
ensure_packages([$package_name])

$exec_command = ['/usr/sbin/semanage', 'port', '-a', '-t', 'postgresql_port_t', '-p', 'tcp', $port]
$exec_unless = "/usr/sbin/semanage port -l | grep -qw ${port}"
Expand Down
4 changes: 2 additions & 2 deletions manifests/server/instance/passwd.pp
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
# psql will default to connecting as $user if you don't specify name
$_datbase_user_same = $database == $user
$_dboption = $_datbase_user_same ? {
false => " --dbname ${stdlib::shell_escape($database)}",
false => " --dbname ${shell_escape($database)}",
default => ''
}

Expand All @@ -44,7 +44,7 @@
# without specifying a password ('ident' or 'trust' security). This is
# the default for pg_hba.conf.
$escaped = postgresql::postgresql_escape($real_postgres_password)
$exec_command = "${stdlib::shell_escape($psql_path)}${_dboption} -c \"ALTER ROLE \\\"${stdlib::shell_escape($user)}\\\" PASSWORD \${NEWPASSWD_ESCAPED}\"" # lint:ignore:140chars
$exec_command = "${shell_escape($psql_path)}${_dboption} -c \"ALTER ROLE \\\"${shell_escape($user)}\\\" PASSWORD \${NEWPASSWD_ESCAPED}\"" # lint:ignore:140chars
exec { 'set_postgres_postgrespw':
# This command works w/no password because we run it as postgres system
# user
Expand Down
2 changes: 1 addition & 1 deletion metadata.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
"dependencies": [
{
"name": "puppetlabs/stdlib",
"version_requirement": ">= 9.0.0 < 10.0.0"
"version_requirement": ">= 5.2.0 < 10.0.0"
},
{
"name": "puppetlabs/apt",
Expand Down

0 comments on commit 8f6c13c

Please sign in to comment.