1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
# File 'modules/prometheus/manifests/logstash_exporter.pp', line 1
class prometheus::logstash_exporter{
ensure_packages('prometheus-logstash-exporter')
service { 'prometheus-logstash-exporter':
ensure => 'running',
require => Package['prometheus-logstash-exporter'],
}
file { '/etc/default/prometheus-logstash-exporter':
ensure => present,
mode => '0644',
notify => Service['prometheus-logstash-exporter'],
require => Package['prometheus-logstash-exporter'],
content => template('prometheus/prometheus-logstash-exporter.defaults.erb'),
}
profile::auto_restarts::service { 'prometheus-logstash-exporter': }
}
|