diff options
author | Silvio Rhatto <rhatto@riseup.net> | 2017-11-01 11:33:12 -0200 |
---|---|---|
committer | Silvio Rhatto <rhatto@riseup.net> | 2017-11-01 11:33:12 -0200 |
commit | b5a0796573e3fed798f257b09391b0e51fbb28e3 (patch) | |
tree | e4bc0230a4c0eb5bd9cc4c6f55623f92e606295e /bin/deploy | |
parent | c23be46b6e346ddcfea85f8e147e540bd700153d (diff) | |
download | puppet-bootstrap-b5a0796573e3fed798f257b09391b0e51fbb28e3.tar.gz puppet-bootstrap-b5a0796573e3fed798f257b09391b0e51fbb28e3.tar.bz2 |
Puppetfile support
Diffstat (limited to 'bin/deploy')
-rwxr-xr-x | bin/deploy | 9 |
1 files changed, 9 insertions, 0 deletions
@@ -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 |