Puppet Class: icingaweb2::module::cube

Defined in:
manifests/module/cube.pp

Summary

Installs and enables the cube module.

Overview

Note:

If you want to use ‘git` as `install_method`, the CLI `git` command has to be installed. You can manage it yourself as package resource or declare the package name in icingaweb2 class parameter `extra_packages`.

Examples:

class { 'icingaweb2::module::cube':
  git_revision => 'v1.0.0'
}

Parameters:

  • ensure (Enum['absent', 'present'])

    Enable or disable module.

  • module_dir (Stdlib::Absolutepath) (defaults to: "${icingaweb2::globals::default_module_path}/cube")

    Target directory of the module.

  • git_repository (Stdlib::HTTPUrl)

    Set a git repository URL.

  • git_revision (Optional[String[1]]) (defaults to: undef)

    Set either a branch or a tag name, eg. ‘master` or `v1.0.0`.

  • install_method (Enum['git', 'none', 'package'])

    Install methods are ‘git`, `package` and `none` is supported as installation method.

  • package_name (String[1])

    Package name of the module. This setting is only valid in combination with the installation method ‘package`.



29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
# File 'manifests/module/cube.pp', line 29

class icingaweb2::module::cube (
  Enum['absent', 'present']      $ensure,
  Stdlib::HTTPUrl                $git_repository,
  String[1]                      $package_name,
  Enum['git', 'none', 'package'] $install_method,
  Stdlib::Absolutepath           $module_dir   = "${icingaweb2::globals::default_module_path}/cube",
  Optional[String[1]]            $git_revision = undef,
) {
  require icingaweb2

  icingaweb2::module { 'cube':
    ensure         => $ensure,
    git_repository => $git_repository,
    git_revision   => $git_revision,
    install_method => $install_method,
    module_dir     => $module_dir,
    package_name   => $package_name,
  }
}