dotfiles/modules/config/manifests/vim.pp

23 lines
491 B
ObjectPascal
Raw Normal View History

2017-08-12 16:37:55 +01:00
class config::vim {
file { '/home/jake/.vimrc':
ensure => file,
2017-10-08 18:52:37 +01:00
mode => '0644',
owner => 'jake',
group => 'users',
2017-08-12 16:37:55 +01:00
source => 'puppet:///modules/config/vimrc'
2017-10-08 18:52:37 +01:00
}
2017-08-12 16:37:55 +01:00
2017-10-08 18:52:37 +01:00
-> vcsrepo { '/home/jake/.vim_runtime':
2017-08-12 16:37:55 +01:00
ensure => latest,
provider => git,
user => 'jake',
2017-10-08 18:52:37 +01:00
source => 'https://github.com/amix/vimrc.git',
}
2017-08-12 16:37:55 +01:00
2017-10-08 18:52:37 +01:00
-> exec { 'install vim plugins':
command => 'vim +PluginInstall +qall',
user => 'jake',
environment => 'HOME=/home/jake'
2017-08-12 16:37:55 +01:00
}
}