Skip to content

Commit c92db18

Browse files
author
Oleg Gizburg
committed
change username/group/datadir defaults for FreeBSD
old (9.4, 9.5) PostgreSQL packages on FreeBSD use other $user, $group and $datadir settings. Currently the latest version available is 11. Instead of listing new PostgreSQL versions for new settings swap old settings (9.4, 9.5) and default
1 parent 5ce085f commit c92db18

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

manifests/params.pp

+6-6
Original file line numberDiff line numberDiff line change
@@ -205,16 +205,16 @@
205205

206206
'FreeBSD': {
207207
case $version {
208-
'96', '10': {
209-
$user = pick($user, 'postgres')
210-
$group = pick($group, 'postgres')
211-
$datadir = pick($datadir, "/var/db/postgres/data${version}")
212-
}
213-
default: {
208+
'94', '95': {
214209
$user = pick($user, 'pgsql')
215210
$group = pick($group, 'pgsql')
216211
$datadir = pick($datadir, '/usr/local/pgsql/data')
217212
}
213+
default: {
214+
$user = pick($user, 'postgres')
215+
$group = pick($group, 'postgres')
216+
$datadir = pick($datadir, "/var/db/postgres/data${version}")
217+
}
218218
}
219219

220220
$link_pg_config = true

0 commit comments

Comments
 (0)