Add vim config
This commit is contained in:
parent
92c5f9ee75
commit
4f2c9fa75f
3 changed files with 23 additions and 0 deletions
|
@ -5,4 +5,5 @@ node default {
|
||||||
|
|
||||||
include yaourt
|
include yaourt
|
||||||
include gnome
|
include gnome
|
||||||
|
include config
|
||||||
}
|
}
|
||||||
|
|
22
modules/config/manifests/vim.pp
Normal file
22
modules/config/manifests/vim.pp
Normal file
|
@ -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"
|
||||||
|
}
|
||||||
|
}
|
Loading…
Reference in a new issue