From b5a0796573e3fed798f257b09391b0e51fbb28e3 Mon Sep 17 00:00:00 2001 From: Silvio Rhatto Date: Wed, 1 Nov 2017 11:33:12 -0200 Subject: Puppetfile support --- bin/deploy | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'bin/deploy') diff --git a/bin/deploy b/bin/deploy index 22065dc..3680129 100755 --- a/bin/deploy +++ b/bin/deploy @@ -57,6 +57,15 @@ if [ -d "$BASEDIR/puppet/files/patches/$DIST" ]; then ) fi +# Check for Puppetfile +if [ -e "$BASEDIR/Puppetfile" ]; then + if which r10k &> /dev/null; then + ( cd $BASEDIR && $SUDO r10k puppetfile install -v ) + elif which librarian-puppet &> /dev/null; then + ( cd $BASEDIR && $SUDO librarian-puppet install ) + fi +fi + # Run puppet apply PUPPET_OPTS="--confdir=$BASEDIR --modulepath=$BASEDIR/modules" LC_ALL=C $SUDO puppet apply $PUPPET_OPTS $PUPPET_MANIFEST -- cgit v1.2.3