Permalink
Switch branches/tags
Nothing to show
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
50 lines (49 sloc) 1.29 KB
{% set vim = salt['grains.filter_by']({
'Arch': {
'pkg': 'vim',
'share_dir': '/usr/share/vim/vimfiles',
'group': 'root',
'config_root': '/etc',
},
'Debian': {
'alternatives': {
'link': '/usr/bin/editor',
'path': '/usr/bin/vim.basic',
'priority': 100,
},
'pkg': 'vim',
'share_dir': '/usr/share/vim/vimfiles',
'group': 'root',
'config_root': '/etc/vim',
},
'OpenBSD': {
'pkg': 'vim--no_x11',
'share_dir': '/usr/local/share/vim/vimfiles',
'group': 'wheel',
'config_root': '/etc',
},
'RedHat': {
'pkg': 'vim-enhanced',
'share_dir': '/usr/share/vim/vimfiles',
'group': 'root',
'config_root': '/etc',
},
'Suse': {
'pkg': 'vim',
'share_dir': '/usr/share/vim/site',
'group': 'root',
'config_root': '/etc',
},
'FreeBSD': {
'pkg': 'vim',
'share_dir': '/usr/local/share/vim/vimfiles',
'group': 'wheel',
'config_root': '/etc',
},
'Gentoo': {
'pkg': 'app-editors/vim',
'share_dir': '/usr/share/vim/vimfiles',
'group': 'wheel',
'config_root': '/etc',
},
}, merge=salt['pillar.get']('vim:lookup')) %}