Puppet Class: prometheus::nft_throttling_denylist
- Defined in:
- modules/prometheus/manifests/nft_throttling_denylist.pp
Overview
SPDX-License-Identifier: Apache-2.0
2 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/nft_throttling_denylist.pp', line 2
class prometheus::nft_throttling_denylist (
Wmflib::Ensure $ensure = 'present',
) {
$script = '/usr/local/bin/prometheus-nft-throttling-denylist.sh'
file { $script:
ensure => $ensure,
mode => '0555',
owner => 'root',
group => 'root',
source => "puppet:///modules/prometheus${script}",
}
systemd::timer::job { 'prometheus-nft-throttling-denylist':
ensure => $ensure,
user => 'root',
description => 'Generate nft throttling denylist length for the prometheus node exporter',
command => $script,
interval => {
'start' => 'OnCalendar',
'interval' => 'minutely',
},
require => [File[$script], Class['prometheus::node_exporter'],]
}
}
|