puppet-snmp
puppet-snmp copied to clipboard
Cannot override rw_community6's public
Defining rw_community6 created a new string instead of replacing the default public.
- Puppet: Puppet v5.3.2 (PE 2019.1)
- Ruby:
- Distribution: CentOS 7.5
- Module version: 4.1.0
How to reproduce (e.g Puppet code you use)
class { 'snmp':
agentaddress => [ 'udp:161', ],
ro_community => 'RANDOM_HASH',
rw_community6 => 'RANDOM_HASH',
snmpd_options => '',
#ro_network => '127.0.0.1',
snmpv2_enable => false,
snmpd_config => [ 'rouser username authPriv' ],
location => 'SOCAL',
contact => [email protected]',
extends => [ 'diskstats /bin/cat /proc/diskstats', ],
}
What are you seeing
What behavior did you expect instead
To replace the default public community string
Output log
Notice: /Stage[main]/Snmp/File[snmpd.conf]/content:
--- /etc/snmp/snmpd.conf 2019-04-08 12:45:11.559223835 -0700
+++ /tmp/puppet-file20190408-16726-4id0q9 2019-04-08 12:47:18.943158166 -0700
@@ -13,8 +13,9 @@
# ------------------------------------------------------------------------------
# Traditional Access Control
-rocommunity public 127.0.0.1
+rocommunity RANDOM_HASH 127.0.0.1
rocommunity6 public ::1
+rocommunity6 RANDOM_HASH ::1
## Any additional information you'd like to impart