Puppet Class: prometheus::ethtool_exporter
- Defined in:
- modules/prometheus/manifests/ethtool_exporter.pp
Overview
SPDX-License-Identifier: Apache-2.0
3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 |
# File 'modules/prometheus/manifests/ethtool_exporter.pp', line 3
class prometheus::ethtool_exporter(
Wmflib::Ensure $ensure = 'present',
) {
if debian::codename::ge('bookworm') {
package { 'prometheus-ethtool-exporter':
ensure => stdlib::ensure($ensure, 'package'),
}
$override_content = @(CONTENT)
[Service]
ExecStart =
ExecStart = /usr/bin/prometheus-ethtool-exporter --skip-no-link -f /var/lib/prometheus/node.d/ethtool.prom -q
| CONTENT
systemd::service { 'prometheus-ethtool-exporter':
ensure => $ensure,
override => true,
restart => true,
content => $override_content,
}
profile::auto_restarts::service { 'prometheus-ethtool-exporter': }
}
}
|