Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot override rw_community6's public #189

Open
ngeorgieff opened this issue Apr 8, 2019 · 0 comments
Open

Cannot override rw_community6's public #189

ngeorgieff opened this issue Apr 8, 2019 · 0 comments

Comments

@ngeorgieff
Copy link

ngeorgieff commented Apr 8, 2019

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@email.com',
    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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant