Merge pull request #3954 from Security-Onion-Solutions/feature/vim

Make sure VIM is installed with correct settings
This commit is contained in:
Mike Reeves
2021-04-22 09:52:02 -04:00
committed by GitHub
2 changed files with 16 additions and 0 deletions

6
salt/common/files/vimrc Normal file
View File

@@ -0,0 +1,6 @@
" Activates filetype detection
filetype plugin indent on
" Sets .sls files to use YAML syntax highlighting
autocmd BufNewFile,BufRead *.sls set syntax=yaml
set number

View File

@@ -69,6 +69,13 @@ salttmp:
- group: 939 - group: 939
- makedirs: True - makedirs: True
# VIM config
vimconfig:
file.managed:
- name: /root/.vimrc
- source: salt://common/files/vimrc
- replace: False
# Install common packages # Install common packages
{% if grains['os'] != 'CentOS' %} {% if grains['os'] != 'CentOS' %}
commonpkgs: commonpkgs:
@@ -95,6 +102,8 @@ commonpkgs:
- python3-mysqldb - python3-mysqldb
- python3-packaging - python3-packaging
- git - git
- vim
heldpackages: heldpackages:
pkg.installed: pkg.installed:
- pkgs: - pkgs:
@@ -133,6 +142,7 @@ commonpkgs:
- lvm2 - lvm2
- openssl - openssl
- git - git
- vim-enhanced
heldpackages: heldpackages:
pkg.installed: pkg.installed: