Puppet module for detecting initsystem of OS
This module aims to detect initsystem of OS.
Installing the initsystem module.
Installing this module, you can use $::initsystem
in Puppet manifests.
case $facts['initsystem'] {
'sysvinit' {
# Type your code...
}
'upstart' {
# Type your code...
}
'systemd' {
# Type your code...
}
default: { }
}