Last active
August 29, 2015 14:00
-
-
Save aschmidt75/11404122 to your computer and use it in GitHub Desktop.
install vim plugins for puppet, suitable for vagrant shell provisioning
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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