-
-
Save UtahDave/3931955 to your computer and use it in GitHub Desktop.
manage snmpd with salt
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| snmp_ro_community: xxxxxxx | |
| snmp_management_station: 10.0.0.1 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| syslocation YOUR LoCATION | |
| syscontact YOUR CONTACT | |
| rocommunity {{ pillar['snmp_ro_community'] }} {{ pillar['snmp_management_station'] }} | |
| ignoreDisk ram* | |
| ignoreDisk loop* | |
| ignoreDisk fd* | |
| ignoreDisk md* | |
| ignoreDisk /proc | |
| ignoreDisk /proc/* | |
| ignoreDisk /sys | |
| ignoreDisk /dev/* | |
| ignoreDisk /var/lib/nfs/rpc_pipefs | |
| includeAllDisks 10% |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| net-snmp: | |
| pkg: | |
| - installed | |
| service: | |
| - name: snmpd | |
| - running | |
| - require: | |
| - pkg: net-snmp | |
| /etc/snmp/snmpd.conf: | |
| file.managed: | |
| - source: salt://files/snmpd.conf | |
| - user: root | |
| - group: root | |
| - mode: 644 | |
| - template: jinja | |
| - require: | |
| - pkg: net-snmp | |
| - watch_in: | |
| - service: snmpd | |
| snmpd: | |
| service.running: | |
| - enable: True | |
| - reload: True |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment