Skip to content

Commit

Permalink
Update docs for GH-55.
Browse files Browse the repository at this point in the history
  • Loading branch information
razorsedge committed Oct 15, 2015
1 parent f50f1fb commit fa33c7a
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 8 deletions.
23 changes: 19 additions & 4 deletions README.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -204,6 +204,21 @@ This also says that any host on network 10.0.0.0/8 can read any SNMP value via S

Reference: [Manpage of snmpd.conf - Access Control](http://www.net-snmp.org/docs/man/snmpd.conf.html#lbAJ)

####Multiple Network Restrictions

In traditional access control, you can also pass multiple networks for the community string.
```puppet
class { 'snmp':
ro_community => 'shibboleth',
ro_network => [ '192.168.0.0/16', '1.2.3.4/32', ],
}
```
and it becomes this in snmpd.conf:
```
rocommunity shibboleth 192.168.0.0/16
rocommunity shibboleth 1.2.3.4/32
```

##Reference

###Classes
Expand Down Expand Up @@ -246,19 +261,19 @@ Read-write (RW) community string for IPv6.
Default: none

#####`ro_network`
Network that is allowed to RO query the daemon.
Network that is allowed to RO query the daemon. Can be an array.
Default: 127.0.0.1

#####`ro_network6`
Network that is allowed to RO query the daemon via IPv6.
Network that is allowed to RO query the daemon via IPv6. Can be an array.
Default: ::1/128

#####`rw_network`
Network that is allowed to RW query the daemon.
Network that is allowed to RW query the daemon. Can be an array.
Default: 127.0.0.1

#####`rw_network6`
Network that is allowed to RW query the daemon via IPv6.
Network that is allowed to RW query the daemon via IPv6. Can be an array.
Default: ::1/128

#####`contact`
Expand Down
8 changes: 4 additions & 4 deletions manifests/init.pp
Original file line number Diff line number Diff line change
Expand Up @@ -30,19 +30,19 @@
# Default: none
#
# [*ro_network*]
# Network that is allowed to RO query the daemon.
# Network that is allowed to RO query the daemon. Can be an array.
# Default: 127.0.0.1
#
# [*ro_network6*]
# Network that is allowed to RO query the daemon via IPv6.
# Network that is allowed to RO query the daemon via IPv6. Can be an array.
# Default: ::1/128
#
# [*rw_network*]
# Network that is allowed to RW query the daemon.
# Network that is allowed to RW query the daemon. Can be an array.
# Default: 127.0.0.1
#
# [*rw_network6*]
# Network that is allowed to RW query the daemon via IPv6.
# Network that is allowed to RW query the daemon via IPv6. Can be an array.
# Default: ::1/128
#
# [*contact*]
Expand Down

0 comments on commit fa33c7a

Please sign in to comment.