vim state tweaks

- change id to avoid ambiguity with package names
- rename module/folder because I'm not going to configure other editors
- update references to match
This commit is contained in:
John Bowdre 2023-03-24 16:06:42 -05:00
parent 7f08d04dc0
commit db9ef4c5d7
4 changed files with 5 additions and 5 deletions

View file

@ -70,9 +70,9 @@ minion04:
True True
``` ```
And finally, as a treat, apply a [Salt state to install vim and my vimrc](srv/salt/edit/vim.sls) on the minions with the `roles:saltlab` grain: And finally, as a treat, apply a [Salt state to install vim and my vimrc](srv/salt/vim/init.sls) on the minions with the `roles:saltlab` grain:
```shell ```shell
sudo salt -G 'roles:saltlab` state.apply edit.vim sudo salt -G 'roles:saltlab` state.apply vim
``` ```
Happy Salting! Happy Salting!

View file

@ -1,4 +1,4 @@
vim: install_vim:
pkg.installed: pkg.installed:
{% if grains['os_family'] == 'RedHat'%} {% if grains['os_family'] == 'RedHat'%}
- name: vim-enhanced - name: vim-enhanced
@ -8,7 +8,7 @@ vim:
/etc/vimrc: /etc/vimrc:
file.managed: file.managed:
- source: salt://edit/vimrc - source: salt://vim/vimrc
- mode: 644 - mode: 644
- user: root - user: root
- group: root - group: root

View file

@ -1,4 +1,4 @@
vim: uninstall_vim:
pkg.removed: pkg.removed:
{% if grains['os_family'] == 'RedHat'%} {% if grains['os_family'] == 'RedHat'%}
- name: vim-enhanced - name: vim-enhanced