Using the kernel grain to be less specific to a distro on Linux.

This commit is contained in:
Elijah Lazkani 2017-01-14 12:01:18 -05:00
parent 4b2f1fe329
commit be1a92eda1

View file

@ -1,9 +1,9 @@
spacemacs: spacemacs:
pkg.installed: pkg.installed:
{% if grains['os'] == 'MacOS' %} {% if grains['kernel'] == 'Darwin' %}
- name: emacs-plus - name: emacs-plus
- tap: 'd12frosted/emacs-plus' - tap: 'd12frosted/emacs-plus'
{% else %} {% elif grains['kernel'] == 'Linux' %}
- name: emacs - name: emacs
{% endif %} {% endif %}