zulip/puppet/zulip_ops/manifests/statuspage.pp

30 lines
829 B
Puppet

# @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',
}
$page_id = zulipsecret('secrets','statuspage_page_id','')
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],
}
}