2017-08-12 16:37:55 +01:00
|
|
|
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",
|
2017-10-08 17:34:31 +01:00
|
|
|
environment => "HOME=/home/jake"
|
2017-08-12 16:37:55 +01:00
|
|
|
}
|
|
|
|
}
|