Skip to content

Commit

Permalink
Merge pull request #42 from saltstack-formulas/fix-defaults
Browse files Browse the repository at this point in the history
Don't default to RedHat
  • Loading branch information
myii authored Jan 3, 2022
2 parents 10167d4 + 3241469 commit 4f30daa
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion snmp/map.jinja
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{# Debian (up to and excluding 9.x 'Stretch') uses snmpd init script for both snmpd/snmptrapd! #}

{% load_yaml as snmp %}
pkg: net-snmp
service: snmpd
servicetrap: snmptrapd
config: /etc/snmp/snmpd.conf
Expand Down Expand Up @@ -50,6 +51,7 @@ FreeBSD:
pkg: net-snmp
pkgutils: net-snmp
rootgroup: wheel
fallback: {}
{% endload %}

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

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

Expand Down

0 comments on commit 4f30daa

Please sign in to comment.