From: Silvio Rhatto Date: Mon, 9 Nov 2015 14:41:24 +0000 (-0200) Subject: Deploy: support for default.pp X-Git-Url: https://gitweb.fluxo.info/?a=commitdiff_plain;h=907ffde715fe31a79bd111cb6ae2614036c202f6;p=puppet-bootstrap.git Deploy: support for default.pp --- diff --git a/bin/deploy b/bin/deploy index 5d3361b..289f86c 100755 --- a/bin/deploy +++ b/bin/deploy @@ -15,10 +15,15 @@ else FQDN="`cat /etc/hostname`" fi -# Check for manifest +# Set manifest PUPPET_MANIFEST="$BASEDIR/puppet/manifests/nodes/$FQDN.pp" if [ ! -e "$PUPPET_MANIFEST" ]; then - echo "file not found: $PUPPET_MANIFEST" + PUPPET_MANIFEST="$BASEDIR/puppet/manifests/nodes/default.pp" +fi + +# Check manifest +if [ ! -e "$PUPPET_MANIFEST" ]; then + echo "no manifest found for $FQDN" exit 1 fi