commit | c749e86d700e7dfcffabd3931188390d0f03e212 | [log] [tgz] |
---|---|---|
author | Petr Michalec <epcim@apealive.net> | Wed Sep 06 21:10:10 2017 +0200 |
committer | Petr Michalec <epcim@apealive.net> | Wed Sep 06 21:10:10 2017 +0200 |
tree | 1168e4dc53e54010084dff11813e0baf0102c039 | |
parent | c33e5aaa80681b40a7ebe72f7f50d4412733e13c [diff] |
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