Skip to content

Commit 4f30daa

Browse files
authored
Merge pull request #42 from saltstack-formulas/fix-defaults
Don't default to RedHat
2 parents 10167d4 + 3241469 commit 4f30daa

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

snmp/map.jinja

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
{# Debian (up to and excluding 9.x 'Stretch') uses snmpd init script for both snmpd/snmptrapd! #}
22

33
{% load_yaml as snmp %}
4+
pkg: net-snmp
45
service: snmpd
56
servicetrap: snmptrapd
67
config: /etc/snmp/snmpd.conf
@@ -50,6 +51,7 @@ FreeBSD:
5051
pkg: net-snmp
5152
pkgutils: net-snmp
5253
rootgroup: wheel
54+
fallback: {}
5355
{% endload %}
5456

5557
{% load_yaml as rhel_specific %}
@@ -61,7 +63,7 @@ FreeBSD:
6163
snmpdargs: '-Lsd -Lf /dev/null -p /var/run/snmpd.pid -a'
6264
{% endload %}
6365

64-
{% set platform_addition = salt['grains.filter_by'](platform_specific, default='RedHat') %}
66+
{% set platform_addition = salt['grains.filter_by'](platform_specific, default='fallback') %}
6567
{% set rhel_addition = salt['grains.filter_by'](rhel_specific, grain='osmajorrelease', default='default') %}
6668
{% set user_override = salt['pillar.get']('snmp', {}) %}
6769

0 commit comments

Comments
 (0)