Relaxed approach to set HOSTNAME/DOMAIN

Change-Id: I9c7407d8f841c9a1c8362fefe8395b6aa67434ca
diff --git a/bootstrap.sh b/bootstrap.sh
index 11b38a2..52393d4 100755
--- a/bootstrap.sh
+++ b/bootstrap.sh
@@ -69,7 +69,9 @@
 export FORMULAS_SALT_MASTER
 
 # system / host
-export HOSTNAME=${HOSTNAME:-cfg01}
+export HOSTNAME=${HOSTNAME:-`hostname -s`}
+export HOSTNAME=${HOSTNAME//.*/}
+export DOMAIN=${DOMAIN:-`hostname -d`}
 export DOMAIN=${DOMAIN:-bootstrap.local}
 
 # salt