Puppet Class: librenms::applications::puppet_agent
- Inherits:
- librenms::params
- Defined in:
- manifests/applications/puppet_agent.pp
Overview
2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 |
# File 'manifests/applications/puppet_agent.pp', line 2
class librenms::applications::puppet_agent (
Boolean $enabled = true,
) inherits librenms::params {
ensure_packages([$librenms::params::python3_yaml_package], {ensure => present})
create_resources(librenms::fetch, {
'puppet_agent.py' => {
use => $enabled,
}})
librenms::snmpd{'puppet-agent':
use => $enabled,
script => 'puppet_agent.py',
do_sudo => true
}
}
|