From 4f2c9fa75ff62f2451420eba0f553b7bdcad9843 Mon Sep 17 00:00:00 2001 From: Jake Howard Date: Sat, 12 Aug 2017 16:37:55 +0100 Subject: [PATCH] Add vim config --- manifests/main.pp | 1 + {config => modules/config/files}/vimrc | 0 modules/config/manifests/vim.pp | 22 ++++++++++++++++++++++ 3 files changed, 23 insertions(+) rename {config => modules/config/files}/vimrc (100%) create mode 100644 modules/config/manifests/vim.pp diff --git a/manifests/main.pp b/manifests/main.pp index ea4e52d..7b40617 100644 --- a/manifests/main.pp +++ b/manifests/main.pp @@ -5,4 +5,5 @@ node default { include yaourt include gnome + include config } diff --git a/config/vimrc b/modules/config/files/vimrc similarity index 100% rename from config/vimrc rename to modules/config/files/vimrc diff --git a/modules/config/manifests/vim.pp b/modules/config/manifests/vim.pp new file mode 100644 index 0000000..74763f0 --- /dev/null +++ b/modules/config/manifests/vim.pp @@ -0,0 +1,22 @@ +class config::vim { + file { '/home/jake/.vimrc': + ensure => file, + mode => "0644", + owner => "jake", + group => "users", + source => 'puppet:///modules/config/vimrc' + } -> + + vcsrepo { '/home/jake/.vim_runtime': + ensure => latest, + provider => git, + user => 'jake', + source => "https://github.com/amix/vimrc.git", + } -> + + exec { 'install vim plugins': + command => "vim +PluginInstall +qall", + user => "jake", + environment => "HOME=/home/jake" + } +}