Skip to content

Instantly share code, notes, and snippets.

@big-samantha
Created August 8, 2016 22:14
Show Gist options
  • Save big-samantha/2bc4155ef31d30370abeb31af32a2b3f to your computer and use it in GitHub Desktop.
Save big-samantha/2bc4155ef31d30370abeb31af32a2b3f to your computer and use it in GitHub Desktop.
---
roles:
vim-mode:
provisioners:
- type: shell
inline: |
yum install -y vim
echo 'set -o vi' > /etc/profile.d/setovi.sh
echo 'set editing-mode vi' > /etc/profile.d/seteditvi.sh
echo 'export EDITOR=vim' > /etc/profile.d/editorvim.sh
adopt:
provisioners:
- type: shell
inline: |
ln -s /vagrant/puppet-adopt /etc/puppetlabs/code/modules/adopt
puppet module install puppetlabs-puppetserver_gem
git clone https://github.com/trlinkin/trlinkin-noop.git /etc/puppetlabs/code/modules/noop --branch noop_from_console
yum install -y gcc bzip2 openssl-devel libyaml-devel libffi-devel readline-devel zlib-devel gdbm-devel ncurses-devel git
yum groupinstall 'Development Tools' -y
echo "noop_from_console('noop')" >> /etc/puppetlabs/code/environments/production/manifests/site.pp
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment