2017-03-18 07:01:38 +00:00
|
|
|
neovim-install:
|
2017-03-18 17:14:58 +00:00
|
|
|
{% if grains['os_family'] == 'Debian' %}
|
2017-03-18 07:20:46 +00:00
|
|
|
pkgrepo.managed:
|
2017-03-18 07:31:57 +00:00
|
|
|
- ppa: neovim-ppa/unstable
|
2017-03-18 07:20:46 +00:00
|
|
|
{% endif %}
|
2017-03-18 07:01:38 +00:00
|
|
|
pkg.installed:
|
|
|
|
{% if grains['kernel'] == 'Darwin' %}
|
|
|
|
- name: neovim
|
|
|
|
- taps: 'neovim/neovim'
|
|
|
|
{% elif grains['kernel'] == 'Linux' %}
|
|
|
|
- name: neovim
|
|
|
|
{% endif %}
|
|
|
|
|
2017-03-18 17:14:58 +00:00
|
|
|
os-family:
|
|
|
|
file.managed:
|
|
|
|
- name: {{ grains.homedir }}/os_family
|
|
|
|
- source: salt:///neovim/files/os_fams
|
|
|
|
|