e6c0e0af8c
This update addresses the following errors and warnings from puppet-lint, with most corrections done automatically using puppet-lint --fix: - 2sp_soft_tabs - arrow_alignment - arrow_on_right_operand_line - double_quoted_strings - hard_tabs - only_variable_string - quoted_booleans - star_comments - trailing_whitespace - variables_not_enclosed Change-Id: I7a2b0109534dd4715d459635fa33b09e7fd0a6a6 Story: 2004515 Task: 28683 Signed-off-by: Don Penney <don.penney@windriver.com>
29 lines
676 B
Puppet
29 lines
676 B
Puppet
class platform::snmp::params (
|
|
$community_strings = [],
|
|
$trap_destinations = [],
|
|
$system_name = '',
|
|
$system_location = '?',
|
|
$system_contact = '?',
|
|
$system_info = '',
|
|
$software_version = '',
|
|
) { }
|
|
|
|
class platform::snmp::runtime
|
|
inherits ::platform::snmp::params {
|
|
|
|
$software_version = $::platform::params::software_version
|
|
$system_info = $::system_info
|
|
|
|
file { '/etc/snmp/snmpd.conf':
|
|
ensure => 'present',
|
|
replace => true,
|
|
content => template('platform/snmpd.conf.erb')
|
|
}
|
|
|
|
# send HUP signal to snmpd if it is running
|
|
-> exec { 'notify-snmp':
|
|
command => '/usr/bin/pkill -HUP snmpd',
|
|
onlyif => 'ps -ef | pgrep snmpd'
|
|
}
|
|
}
|