Skip to content

Instantly share code, notes, and snippets.

@aschmidt75
Last active August 29, 2015 14:00
Show Gist options
  • Save aschmidt75/11404122 to your computer and use it in GitHub Desktop.
Save aschmidt75/11404122 to your computer and use it in GitHub Desktop.
install vim plugins for puppet, suitable for vagrant shell provisioning
# install vim magic
sudo apt-get -y install vim
mkdir -p /home/vagrant/.vim/bundle
mkdir -p /home/vagrant/.vim/autoload
chown -R vagrant:vagrant /home/vagrant/.vim
cd /home/vagrant/.vim/bundle
git clone git://github.com/scrooloose/syntastic.git
cd /home/vagrant/.vim/autoload
wget https://raw.github.com/tpope/vim-pathogen/master/autoload/pathogen.vim
# patch in pathogen to vimrc
grep pathogen /home/vagrant/.vimrc >/dev/null
if [[ $? -ne 0 ]]; then
echo "call pathogen#infect()" >>/home/vagrant/.vimrc
echo "syntax on" >>/home/vagrant/.vimrc
echo "filetype plugin indent on" >>/home/vagrant/.vimrc
fi
cd /home/vagrant/.vim/bundle
git clone https://github.com/rodjek/vim-puppet.git
git clone https://github.com/godlygeek/tabular.git
# Puppet base installation
sudo gem install puppet facter --no-ri --no-rdoc
# syntax check
sudo gem install puppet-lint puppet-syntax --no-ri --no-rdoc
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment