puppet-initsystem

Puppet module for detecting initsystem of OS

Downloads
136.7K
Stars
1
Committers
3

initsystem

Table of Contents

  1. Description
  2. Setup - The basics of getting started with init_daemon
  3. Usage - Configuration options and additional functionality

Description

This module aims to detect initsystem of OS.

Setup

Installing the initsystem module.

Usage

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: {  }
}