#!/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 we have gems installed
bundle install --deployment

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

# run rake tasks
bundle exec rake

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

Make the puppet deploy self contained within the directory.
Make the puppet deploy self contained within the directory.
