Skip to content
This repository was archived by the owner on Dec 2, 2020. It is now read-only.

Commit e7014fa

Browse files
committed
bindir makes heaps more sense
1 parent e5717ac commit e7014fa

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

manifests/db.pp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,12 +10,12 @@
1010

1111
exec { "postgresql-db-${name}":
1212
command => join([
13-
"${postgresql::binpath}/createdb",
13+
"${postgresql::bindir}/createdb",
1414
"-p${postgresql::port}",
1515
'-E UTF-8',
1616
"-O ${postgresql::user}",
1717
$name
1818
], ' '),
19-
unless => "${postgresql::binpath}/psql -aA -p${postgresql::port} -t -l | cut -d \\| -f 1 | grep -w '${name}'"
19+
unless => "${postgresql::bindir}/psql -aA -p${postgresql::port} -t -l | cut -d \\| -f 1 | grep -w '${name}'"
2020
}
2121
}

manifests/init.pp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
class postgresql(
77
$ensure = $postgresql::params::ensure,
88

9-
$binpath = $postgresql::params::binpath,
9+
$bindir = $postgresql::params::bindir,
1010
$executable = $postgresql::params::executable,
1111

1212
$host = $postgresql::params::host,

manifests/params.pp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
Darwin: {
66
include boxen::config
77

8-
$binpath = "${boxen::config::homebrewdir}/bin"
8+
$bindir = "${boxen::config::homebrewdir}/bin"
99
$executable = "${binpath}/postgres"
1010
$datadir = "${boxen::config::datadir}/postgresql"
1111
$logdir = "${boxen::config::logdir}/postgresql"

0 commit comments

Comments
 (0)