2023-11-13 22:41:42 +01:00
|
|
|
# @summary Plumb Prometheus stats into status.zulip.com
|
|
|
|
#
|
|
|
|
# Requires a /etc/zulip/statuspage.conf which maps statuspage.io
|
|
|
|
# metric_ids to Prometheus queries.
|
2024-02-06 21:40:19 +01:00
|
|
|
class kandra::statuspage {
|
2023-11-13 22:41:42 +01:00
|
|
|
$bin = '/usr/local/bin/statuspage-pusher'
|
|
|
|
|
|
|
|
file { $bin:
|
|
|
|
ensure => file,
|
|
|
|
owner => 'root',
|
|
|
|
group => 'root',
|
|
|
|
mode => '0755',
|
2024-02-06 21:40:19 +01:00
|
|
|
source => 'puppet:///modules/kandra/statuspage-pusher',
|
2023-11-13 22:41:42 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
file { "${zulip::common::supervisor_conf_dir}/statuspage-pusher.conf":
|
|
|
|
ensure => file,
|
|
|
|
require => [
|
|
|
|
Package[supervisor],
|
|
|
|
File[$bin],
|
|
|
|
],
|
|
|
|
owner => 'root',
|
|
|
|
group => 'root',
|
|
|
|
mode => '0644',
|
2024-02-06 21:40:19 +01:00
|
|
|
content => template('kandra/supervisor/conf.d/statuspage-pusher.conf.template.erb'),
|
2023-11-13 22:41:42 +01:00
|
|
|
notify => Service[supervisor],
|
|
|
|
}
|
|
|
|
}
|