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

modified templates to dereference class parameters #2

Merged
merged 1 commit into from
Jul 4, 2012
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions templates/snmpd.conf.erb
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@
### File managed by Puppet
###

#rocommunity <%= scope.lookupvar('snmp::params::ro_community') %> <%= scope.lookupvar('snmp::params::ro_network') %>
#rwcommunity <%= scope.lookupvar('snmp::params::rw_community') %> <%= scope.lookupvar('snmp::params::rw_network') %>
#rocommunity <%= scope.lookupvar('snmp::server::ro_community') %> <%= scope.lookupvar('snmp::server::ro_network') %>
#rwcommunity <%= scope.lookupvar('snmp::server::rw_community') %> <%= scope.lookupvar('snmp::server::rw_network') %>
#sysservices 76

com2sec notConfigUser default <%= scope.lookupvar('snmp::params::ro_community') %>
com2sec notConfigUser default <%= scope.lookupvar('snmp::server::ro_community') %>

group notConfigGroup v1 notConfigUser
group notConfigGroup v2c notConfigUser
Expand All @@ -16,8 +16,8 @@ view systemview included .1.3.6.1.2.1.25.1.1

access notConfigGroup "" any noauth exact systemview none none

syslocation <%= scope.lookupvar('snmp::params::location') %>
syscontact <%= scope.lookupvar('snmp::params::contact') %>
syslocation <%= scope.lookupvar('snmp::server::location') %>
syscontact <%= scope.lookupvar('snmp::server::contact') %>

dontLogTCPWrappersConnects yes

2 changes: 1 addition & 1 deletion templates/snmptrapd.conf.erb
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
###
### File managed by Puppet
###
authCommunity log,execute,net <%= scope.lookupvar('snmp::params::ro_community') %>
authCommunity log,execute,net <%= scope.lookupvar('snmp::trapd::ro_community') %>
# traphandle SNMPv2-MIB::coldStart /usr/bin/bin/my_great_script cold