mirror of https://github.com/zulip/zulip.git
29 lines
769 B
ObjectPascal
29 lines
769 B
ObjectPascal
|
# @summary Plumb Prometheus stats into status.zulip.com
|
||
|
#
|
||
|
# Requires a /etc/zulip/statuspage.conf which maps statuspage.io
|
||
|
# metric_ids to Prometheus queries.
|
||
|
class zulip_ops::statuspage {
|
||
|
$bin = '/usr/local/bin/statuspage-pusher'
|
||
|
|
||
|
file { $bin:
|
||
|
ensure => file,
|
||
|
owner => 'root',
|
||
|
group => 'root',
|
||
|
mode => '0755',
|
||
|
source => 'puppet:///modules/zulip_ops/statuspage-pusher',
|
||
|
}
|
||
|
|
||
|
file { "${zulip::common::supervisor_conf_dir}/statuspage-pusher.conf":
|
||
|
ensure => file,
|
||
|
require => [
|
||
|
Package[supervisor],
|
||
|
File[$bin],
|
||
|
],
|
||
|
owner => 'root',
|
||
|
group => 'root',
|
||
|
mode => '0644',
|
||
|
content => template('zulip_ops/supervisor/conf.d/statuspage-pusher.conf.template.erb'),
|
||
|
notify => Service[supervisor],
|
||
|
}
|
||
|
}
|