Skip to content

Commit 8172b27

Browse files
committed
Use the wheel group by default on FreeBSD
FreeBSD does not have a 'root' group. System files owned by the 'root' user belong to the 'wheel' group, so use that group by default. This allow to use python::pip without the need to explicitly set the `group` parameter to avoid the error: > Error: Could not execute posix command: Invalid group: root
1 parent 9dcd35b commit 8172b27

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

manifests/params.pp

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,9 @@
1616
}
1717

1818
$group = $facts['os']['family'] ? {
19-
'AIX' => 'system',
20-
default => 'root'
19+
'AIX' => 'system',
20+
'FreeBSD' => 'wheel',
21+
default => 'root'
2122
}
2223

2324
$pip_lookup_path = $facts['os']['family'] ? {

0 commit comments

Comments
 (0)