123456789101112131415161718192021222324252627282930313233343536373839404142 |
- #
- # SNMPd
- #
- include:
- - network.interfaces
- #
- # Install and start SNMPd
- # Require /etc/network/interfaces to be installed (and ifreload'ed) so we
- # can simply pick lookback IP addresses from grains.
- snmpd:
- pkg.installed:
- - name: snmpd
- - require:
- - file: /etc/network/interfaces
- service.running:
- - enable: true
- - reload: true
- /etc/default/snmpd:
- file.managed:
- - source: salt://snmpd/default_snmpd
- - require:
- - pkg: snmpd
- - watch_in:
- - service: snmpd
- /etc/snmp/snmpd.conf:
- file.managed:
- - template: jinja
- - source: salt://snmpd/snmpd.conf
- - require:
- - pkg: snmpd
- - watch_in:
- - service: snmpd
- /etc/snmp/ifAlias:
- file.absent
|