Puppet Class: icingaweb2::module::doc

Defined in:
manifests/module/doc.pp

Summary

The doc module provides an interface to the Icinga 2 and Icinga Web 2 documentation.

Overview

Parameters:

  • ensure (Enum['absent', 'present']) (defaults to: 'present')

    Enable or disable module. Defaults to ‘present`



7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
# File 'manifests/module/doc.pp', line 7

class icingaweb2::module::doc(
  Enum['absent', 'present']   $ensure = 'present',
){

  case $::osfamily {
    'Debian': {
      $install_method = 'package'
      $package_name   = 'icingaweb2-module-doc'
    }
    default: {
      $install_method = 'none'
      $package_name   = undef
    }
  }

  icingaweb2::module { 'doc':
    ensure         => $ensure,
    install_method => $install_method,
    package_name   => $package_name,
  }
}