Puppet Class: icingaweb2::module::generictts
- Defined in:
- manifests/module/generictts.pp
Overview
Class: icingaweb2::module::generictts
Install and enable the generictts module.
Parameters
- ensure
-
Enable or disable module. Defaults to ‘present`
- git_repository
-
Set a git repository URL. Defaults to github.
- git_revision
-
Set either a branch or a tag name, eg. ‘master` or `v2.0.0`.
- ticketsystems
-
A hash of ticketsystems. The hash expects a ‘patten` and a `url` for each ticketsystem. The regex pattern is to match the ticket ID, eg. `/#([0-9]4,6)/`. Place the ticket ID in the URL, eg. `my.ticket.system/tickets/id=$1`
Example: ticketsystems =>
system1 => { pattern => '/#([0-9]{4,6)/', url => 'https://my.ticket.system/tickets/id=$1' }
}
29 30 31 32 33 34 35 36 37 38 39 40 41 42 |
# File 'manifests/module/generictts.pp', line 29
class icingaweb2::module::generictts(
Enum['absent', 'present'] $ensure = 'present',
String $git_repository = 'https://github.com/Icinga/icingaweb2-module-generictts.git',
Optional[String] $git_revision = undef,
Hash $ticketsystems = {},
){
create_resources('icingaweb2::module::generictts::ticketsystem', $ticketsystems)
icingaweb2::module {'generictts':
ensure => $ensure,
git_repository => $git_repository,
git_revision => $git_revision,
}
}
|