mirror of
https://github.com/Security-Onion-Solutions/securityonion.git
synced 2025-12-06 17:22:49 +01:00
Merge pull request #3954 from Security-Onion-Solutions/feature/vim
Make sure VIM is installed with correct settings
This commit is contained in:
6
salt/common/files/vimrc
Normal file
6
salt/common/files/vimrc
Normal 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
|
||||||
@@ -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:
|
||||||
|
|||||||
Reference in New Issue
Block a user