Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/hfm/puppet-initsystem

Puppet module for detecting initsystem of OS
https://github.com/hfm/puppet-initsystem

puppet system sysvinit upstart

Last synced: 3 months ago
JSON representation

Puppet module for detecting initsystem of OS

Awesome Lists containing this project

README

        

# initsystem

[![Build Status](https://img.shields.io/travis/hfm/puppet-initsystem/master.svg?style=flat-square)](https://travis-ci.org/hfm/puppet-initsystem)
[![Puppet Forge](https://img.shields.io/puppetforge/v/hfm/initsystem.svg?style=flat-square)](https://forge.puppetlabs.com/hfm/initsystem)

#### Table of Contents

1. [Description](#description)
1. [Setup - The basics of getting started with init_daemon](#setup)
1. [Usage - Configuration options and additional functionality](#usage)

## 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.

```puppet
case $facts['initsystem'] {
'sysvinit' {
# Type your code...
}
'upstart' {
# Type your code...
}
'systemd' {
# Type your code...
}
default: { }
}
```