Puppet Class: puppet_hipchat
- Inherits:
- puppet_hipchat::params
- Defined in:
- manifests/init.pp
Overview
Class: puppet_hipchat
Send Puppet report information to HipChat
5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 |
# File 'manifests/init.pp', line 5
class puppet_hipchat (
$api_key,
$room,
$server = 'https://api.hipchat.com',
$notify_color = 'red',
$notify_room = false,
$statuses = [ 'failed' ],
$config_file = "${puppet_hipchat::params::puppetconf_path}/hipchat.yaml",
$package_name = $puppet_hipchat::params::package_name,
$install_hc_gem = $puppet_hipchat::params::install_hc_gem,
$provider = $puppet_hipchat::params::provider,
$owner = $puppet_hipchat::params::owner,
$group = $puppet_hipchat::params::group,
$puppetboard = $puppet_hipchat::params::puppetboard,
$dashboard = $puppet_hipchat::params::dashboard,
$api_version = $puppet_hipchat::params::api_version,
$proxy = $puppet_hipchat::params::proxy,
) inherits puppet_hipchat::params {
file { $config_file:
ensure => file,
owner => $owner,
group => $group,
mode => '0440',
content => template('puppet_hipchat/hipchat.yaml.erb'),
}
if $install_hc_gem {
package { $package_name:
ensure => installed,
provider => $provider,
}
}
}
|