neovim-install: {% if grains['os_family'] == 'Debian' %} pkgrepo.managed: - ppa: neovim-ppa/unstable {% endif %} pkg.installed: {% if grains['kernel'] == 'Darwin' %} - name: neovim - taps: 'neovim/neovim' {% elif grains['kernel'] == 'Linux' %} - name: neovim {% endif %} os-family: file.managed: - name: {{ grains.homedir }}/os_family - source: salt:///neovim/files/os_fams - template: jinja