add initial snmpd_conf role
This commit is contained in:
38
roles/snmpd_conf/templates/snmpd_conf.j2
Normal file
38
roles/snmpd_conf/templates/snmpd_conf.j2
Normal file
@ -0,0 +1,38 @@
|
||||
###############################################
|
||||
# {{ __template_header }}
|
||||
###############################################
|
||||
#
|
||||
# Configuration : {{ __snmpd_conf_file }}
|
||||
# Template Version : {{ __snmpd_conf_version}}-{{ __snmpd_conf_revision }}
|
||||
#
|
||||
# {{ __project_author }} ({{ __project_email }})
|
||||
###############################################
|
||||
|
||||
|
||||
com2sec readonly default public
|
||||
|
||||
group MyROSystem v1 paranoid
|
||||
group MyROSystem v2c paranoid
|
||||
group MyROSystem usm paranoid
|
||||
group MyROGroup v1 readonly
|
||||
group MyROGroup v2c readonly
|
||||
group MyROGroup usm readonly
|
||||
group MyRWGroup v1 readwrite
|
||||
group MyRWGroup v2c readwrite
|
||||
group MyRWGroup usm readwrite
|
||||
|
||||
view all included .1 80
|
||||
view system included .iso.org.dod.internet.mgmt.mib-2.system
|
||||
|
||||
# context sec.model sec.level match read write notif
|
||||
access MyROSystem "" any noauth exact system none none
|
||||
access MyROGroup "" any noauth exact all none none
|
||||
access MyRWGroup "" any noauth exact all all none
|
||||
|
||||
|
||||
###############################################################################
|
||||
# System contact information
|
||||
#
|
||||
syslocation {{ __snmpd_location }}
|
||||
syscontact {{ __snmpd_contact_name }} {{ __snmpd_contact_email }}
|
||||
# -----------------------------------------------------------------------------
|
Reference in New Issue
Block a user