qubes-apply

python script to automate qubes saltstack

git clone https://9o.is/git/qubes-apply.git

neovim.sls

(496B)


      1 {% if grains['os_family'] == 'RedHat' %}
      2 
      3 neovim:
      4   pkg.installed
      5 
      6 {% elif grains['os_family'] == 'Debian' %}
      7 
      8 neovim:
      9   pkg.installed:
     10     - name: curl
     11   cmd.run:
     12     - cwd: /tmp
     13     - unless: test -x /usr/bin/nvim
     14     - name: |
     15         curl -LO --proxy http://127.0.0.1:8082/ --tlsv1.2 --proto =https --max-time 180 \
     16           https://github.com/neovim/neovim/releases/download/v0.11.1/nvim-linux-x86_64.tar.gz
     17         tar xf nvim-linux-x86_64.tar.gz -C /usr --strip-components=1
     18 
     19 {% endif %}