Skip to content

Commit

Permalink
no need for two steps [ci skip]
Browse files Browse the repository at this point in the history
  • Loading branch information
luxflux committed Mar 3, 2015
1 parent 8341ecb commit 9ced2be
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
1 change: 0 additions & 1 deletion Vagrantfile
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@ end

Vagrant::Config.run(2) do |config|

config.vm.provision :shell, inline: 'apt-get update && apt-get install -y ruby-dev git'
config.vm.provision :shell, path: 'vagrant/provision_module.sh'

config.vm.define :server_ubuntu do |c|
Expand Down
5 changes: 5 additions & 0 deletions vagrant/provision_module.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,13 @@
set -e

if [ ! -f /module-installed ]; then
apt-get update
apt-get install -y ruby-dev git

gem install librarian-puppet --no-rdoc --no-ri

cp /vagrant/vagrant/Puppetfile /tmp
cd /tmp && librarian-puppet install --verbose

touch /module-installed
fi

0 comments on commit 9ced2be

Please sign in to comment.