#!/bin/bash
# script to apply a puppet repo
set -e

# make sure we have gems installed
bundle install

# make sure modules are installed.
bundle exec librarian-puppet install

# run rake tasks
bundle exec rake

# apply stuff
sudo puppet apply --hiera_config=hiera.yaml --modulepath=modules:vendor/modules manifests/site.pp

#!/bin/bash
# script to apply a puppet repo
set -e

# make sure modules are installed.
bundle exec librarian-puppet install

# run rake tasks
bundle exec rake

# apply stuff
sudo puppet apply --hiera_config=hiera.yaml --modulepath=modules:vendor/modules manifests/site.pp

--- 
+++ 
@@ -1,9 +1,6 @@
 #!/bin/bash
 # script to apply a puppet repo
 set -e
-
-# make sure we have gems installed
-bundle install
 
 # make sure modules are installed.
 bundle exec librarian-puppet install
Make sure gems are installed.
