[icinga-checkins] icinga.org: icinga-vagrant/master: icinga2x*: Install vim syntax highlighting

git at icinga.org git at icinga.org
Sun Feb 8 15:28:10 CET 2015


Module: icinga-vagrant
Branch: master
Commit: e8a1e1a7398ce2a16b1222028a008e3cb1e6265e
URL:    https://git.icinga.org/?p=icinga-vagrant.git;a=commit;h=e8a1e1a7398ce2a16b1222028a008e3cb1e6265e

Author: Michael Friedrich <michael.friedrich at gmail.com>
Date:   Sun Feb  8 15:15:45 2015 +0100

icinga2x*: Install vim syntax highlighting

fixes #6731

---

 .../.vagrant-puppet/manifests/default.pp             |   18 ++++++++++++++++++
 icinga2x/.vagrant-puppet/manifests/default.pp        |   18 ++++++++++++++++++
 2 files changed, 36 insertions(+)

diff --git a/icinga2x-cluster/.vagrant-puppet/manifests/default.pp b/icinga2x-cluster/.vagrant-puppet/manifests/default.pp
index 403fd87..e59cdd5 100644
--- a/icinga2x-cluster/.vagrant-puppet/manifests/default.pp
+++ b/icinga2x-cluster/.vagrant-puppet/manifests/default.pp
@@ -39,6 +39,24 @@ file { '/etc/profile.d/env.sh':
   source => 'puppet:////vagrant/.vagrant-puppet/files/etc/profile.d/env.sh'
 }
 
+file { [ '/root/.vim',
+       '/root/.vim/syntax',
+       '/root/.vim/ftdetect' ] :
+  ensure    => 'directory'
+}
+
+exec { 'copy-vim-syntax-file':
+  path => '/bin:/usr/bin:/sbin:/usr/sbin',
+  command => 'cp -f /usr/share/doc/icinga2-common-$(rpm -q icinga2-common | cut -d\'-\' -f3)/syntax/vim/syntax/icinga2.vim /root/.vim/syntax/icinga2.vim',
+  require => [ Package['vim-enhanced'], Package['icinga2-common'], File['/root/.vim/syntax'] ]
+}
+
+exec { 'copy-vim-ftdetect-file':
+  path => '/bin:/usr/bin:/sbin:/usr/sbin',
+  command => 'cp -f /usr/share/doc/icinga2-common-$(rpm -q icinga2-common | cut -d\'-\' -f3)/syntax/vim/ftdetect/icinga2.vim /root/.vim/ftdetect/icinga2.vim',
+  require => [ Package['vim-enhanced'], Package['icinga2-common'], File['/root/.vim/syntax'] ]
+}
+
 ####################################
 # Start page at http://localhost/
 ####################################
diff --git a/icinga2x/.vagrant-puppet/manifests/default.pp b/icinga2x/.vagrant-puppet/manifests/default.pp
index 980bf45..d507ab3 100644
--- a/icinga2x/.vagrant-puppet/manifests/default.pp
+++ b/icinga2x/.vagrant-puppet/manifests/default.pp
@@ -57,6 +57,24 @@ user { 'vagrant':
   require => [User['icinga'], Group['icingacmd']]
 }
 
+file { [ '/root/.vim',
+       '/root/.vim/syntax',
+       '/root/.vim/ftdetect' ] :
+  ensure    => 'directory'
+}
+
+exec { 'copy-vim-syntax-file':
+  path => '/bin:/usr/bin:/sbin:/usr/sbin',
+  command => 'cp -f /usr/share/doc/icinga2-common-$(rpm -q icinga2-common | cut -d\'-\' -f3)/syntax/vim/syntax/icinga2.vim /root/.vim/syntax/icinga2.vim',
+  require => [ Package['vim-enhanced'], Package['icinga2-common'], File['/root/.vim/syntax'] ]
+}
+
+exec { 'copy-vim-ftdetect-file':
+  path => '/bin:/usr/bin:/sbin:/usr/sbin',
+  command => 'cp -f /usr/share/doc/icinga2-common-$(rpm -q icinga2-common | cut -d\'-\' -f3)/syntax/vim/ftdetect/icinga2.vim /root/.vim/ftdetect/icinga2.vim',
+  require => [ Package['vim-enhanced'], Package['icinga2-common'], File['/root/.vim/syntax'] ]
+}
+
 ####################################
 # Icinga 2 General
 ####################################



More information about the icinga-checkins mailing list