1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
# File 'modules/prometheus/manifests/pushgateway.pp', line 1
class prometheus::pushgateway (
Wmflib::Ensure $ensure = present,
Stdlib::Port $listen_port = 9091,
String $vhost = 'prometheus-pushgateway.discovery.wmnet',
) {
ensure_packages('prometheus-pushgateway')
httpd::site{ 'pushgateway':
priority => 30, # Earlier than main prometheus* vhost wildcard matching
content => template('prometheus/pushgateway-apache.erb'),
}
systemd::service { 'prometheus-pushgateway':
ensure => $ensure,
restart => true,
content => systemd_template('prometheus-pushgateway'),
service_params => {
hasrestart => true,
},
}
}
|