aboutsummaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2015-11-09 12:41:24 -0200
committerSilvio Rhatto <rhatto@riseup.net>2015-11-09 12:41:24 -0200
commit907ffde715fe31a79bd111cb6ae2614036c202f6 (patch)
tree46da3cd6b3e20abd418891dfba5ed929896f70b7 /bin
parentdc8de77ffcc5ac3861a9f4e31c3bacc8a42ed322 (diff)
downloadpuppet-bootstrap-907ffde715fe31a79bd111cb6ae2614036c202f6.tar.gz
puppet-bootstrap-907ffde715fe31a79bd111cb6ae2614036c202f6.tar.bz2
Deploy: support for default.pp
Diffstat (limited to 'bin')
-rwxr-xr-xbin/deploy9
1 files changed, 7 insertions, 2 deletions
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