Skip to content

Commit

Permalink
Use the wheel group by default on FreeBSD
Browse files Browse the repository at this point in the history
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
  • Loading branch information
smortex committed Oct 7, 2023
1 parent 9dcd35b commit 8172b27
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions manifests/params.pp
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,9 @@
}

$group = $facts['os']['family'] ? {
'AIX' => 'system',
default => 'root'
'AIX' => 'system',
'FreeBSD' => 'wheel',
default => 'root'
}

$pip_lookup_path = $facts['os']['family'] ? {
Expand Down

0 comments on commit 8172b27

Please sign in to comment.