Puppet Class: sys
- Inherited by:
-
sys::rsync::params
- Defined in:
- manifests/init.pp
Overview
Class: sys
The sys module is a placeholder for common platform-dependent constants, including:
* $root_home: The root user's home directory.
* $root_group: The default group used for root's files.
* $binary_group: The default group used for system binaries.
* $nobody_group: The group for the 'nobody' user.
11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 |
# File 'manifests/init.pp', line 11
class sys {
# Settings for the root and binary groups.
case $::osfamily {
darwin: {
$binary_group = 'wheel'
$root_group = 'wheel'
}
solaris: {
$binary_group = 'bin'
$root_group = 'bin'
}
openbsd: {
$binary_group = 'bin'
$root_group = 'wheel'
}
windows: {
$binary_group = 'SYSTEM'
$root_group = 'Administrators'
}
default: {
$binary_group = 'root'
$root_group = 'root'
}
}
# The root home directory is different on OS X.
case $::osfamily {
darwin: {
$root_home = '/var/root'
}
default: {
$root_home = '/root'
}
}
# If we're on Debian-based systems, they use 'nogroup' instead of 'nobody'.
case $::osfamily {
debian: {
$nobody_group = 'nogroup'
}
default: {
$nobody_group = 'nobody'
}
}
}
|