diff options
-rwxr-xr-x | bin/deploy | 9 |
1 files changed, 7 insertions, 2 deletions
@@ -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 |