Skip to content

Commit

Permalink
Merge pull request #22 from marekrost/master
Browse files Browse the repository at this point in the history
Config update
  • Loading branch information
tersmitten authored Dec 6, 2019
2 parents cda84f4 + 64275bb commit 9be7381
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
1 change: 1 addition & 0 deletions defaults/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ snmpd_users:
snmpd_sys_location: 'Unknown'
snmpd_sys_contact: Root <root@localhost>
snmpd_sys_description: "{{ inventory_hostname }}"
snmpd_sys_services: 72

snmpd_disks_include_all: false
snmpd_disks_include_all_threshold: '10%'
Expand Down
5 changes: 4 additions & 1 deletion templates/etc/snmp/snmpd.conf.j2
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,10 @@ rouser authOnlyUser

sysLocation {{ snmpd_sys_location }}
sysContact {{ snmpd_sys_contact }}
sysDescr {{ snmpd_sys_description }}
{% if snmpd_sys_description %}
sysDescr {{ snmpd_sys_description }}
{% endif %}
sysServices {{ snmpd_sys_services }}

iquerySecName {{ snmpd_internal_user.username }}
rouser {{ snmpd_internal_user.username }}
Expand Down

0 comments on commit 9be7381

Please sign in to comment.