mirror of
https://github.com/jbowdre/vagrant-saltlab.git
synced 2024-12-28 03:12:19 +00:00
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:
parent
7f08d04dc0
commit
db9ef4c5d7
4 changed files with 5 additions and 5 deletions
|
@ -70,9 +70,9 @@ minion04:
|
|||
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
|
||||
sudo salt -G 'roles:saltlab` state.apply edit.vim
|
||||
sudo salt -G 'roles:saltlab` state.apply vim
|
||||
```
|
||||
|
||||
Happy Salting!
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
vim:
|
||||
install_vim:
|
||||
pkg.installed:
|
||||
{% if grains['os_family'] == 'RedHat'%}
|
||||
- name: vim-enhanced
|
||||
|
@ -8,7 +8,7 @@ vim:
|
|||
|
||||
/etc/vimrc:
|
||||
file.managed:
|
||||
- source: salt://edit/vimrc
|
||||
- source: salt://vim/vimrc
|
||||
- mode: 644
|
||||
- user: root
|
||||
- group: root
|
|
@ -1,4 +1,4 @@
|
|||
vim:
|
||||
uninstall_vim:
|
||||
pkg.removed:
|
||||
{% if grains['os_family'] == 'RedHat'%}
|
||||
- name: vim-enhanced
|
Loading…
Reference in a new issue