mirror of
https://github.com/jbowdre/vagrant-saltlab.git
synced 2024-11-30 08:32:17 +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
|
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!
|
||||||
|
|
|
@ -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
|
|
@ -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
|
Loading…
Reference in a new issue