Skip to content
Snippets Groups Projects
Commit e64ec39c authored by Torbjörn Lönnemark's avatar Torbjörn Lönnemark
Browse files

Manage snmp_exporter

parent ca3c0d71
Branches
No related tags found
No related merge requests found
Source diff could not be displayed: it is too large. Options to address this: view the blob.
......@@ -34,6 +34,7 @@ class orwell {
}
include orwell::enoc_pdu_snmp
include orwell::snmp_exporter
}
class orwell::enoc_pdu_snmp {
......@@ -110,3 +111,17 @@ EOS
service_content => $service_content,
}
}
class orwell::snmp_exporter {
package { 'snmp_exporter': }
-> file { '/etc/prometheus/snmp.yml':
source => 'puppet:///modules/orwell/snmp.yml',
mode => '0640',
owner => 'root',
group => 'prometheus',
}
~> service { 'snmp_exporter':
ensure => running,
enable => true,
}
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment