From ba23aba981fabf2ca53cb5de7ab6519ae71e3446 Mon Sep 17 00:00:00 2001 From: Sergio Oliveira Date: Fri, 2 Aug 2013 16:21:46 -0300 Subject: [PATCH] Installing vim package if it's not installed --- puppet/modules/vim/manifests/init.pp | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/puppet/modules/vim/manifests/init.pp b/puppet/modules/vim/manifests/init.pp index 842ebb1..0f9448b 100644 --- a/puppet/modules/vim/manifests/init.pp +++ b/puppet/modules/vim/manifests/init.pp @@ -1,7 +1,13 @@ class vim ( $vim_file = 'puppet:///modules/vim/vimrc.local' ) { - + + if ! defined(Package['vim']) { + package { 'vim': + ensure => installed + } + } + file { 'editor_vim': path => '/etc/profile.d/editor.sh', ensure => present, @@ -14,4 +20,4 @@ class vim ( source => $vim_file } -} \ No newline at end of file +} -- libgit2 0.21.2