diff options
author | Silvio Rhatto <rhatto@riseup.net> | 2020-05-25 13:03:22 -0300 |
---|---|---|
committer | Silvio Rhatto <rhatto@riseup.net> | 2020-05-25 13:03:22 -0300 |
commit | 319b960e0a093dd2909bf1d06b6ef1bf17b94aca (patch) | |
tree | e9c141f748d348d090a8d1e37f73fd0cd5d23ce3 | |
parent | c04cae496085ae08978aa096271b7cbc191e1e5a (diff) | |
download | puppet-bootstrap-319b960e0a093dd2909bf1d06b6ef1bf17b94aca.tar.gz puppet-bootstrap-319b960e0a093dd2909bf1d06b6ef1bf17b94aca.tar.bz2 |
Fix: deploy: get FQDN from /etc/hostname
-rwxr-xr-x | bin/deploy | 18 |
1 files changed, 10 insertions, 8 deletions
@@ -7,12 +7,17 @@ DIRNAME="`dirname $0`" BASEDIR="$DIRNAME/.." +# Install dependencies +source $DIRNAME/dependencies + # Determine hostname -if [ ! -z "$1" ]; then - FQDN="$1" -else - FQDN="`cat /etc/hostname`" -fi +#if [ ! -z "$1" ]; then +# FQDN="$1" +#else +# FQDN="`cat /etc/hostname`" +#fi +#FQDN="`facter fqdn`" +FQDN="`cat /etc/hostname`" # Set manifest PUPPET_MANIFEST="$BASEDIR/manifests/nodes/$FQDN.pp" @@ -26,9 +31,6 @@ if [ ! -e "$PUPPET_MANIFEST" ]; then exit 1 fi -# Install dependencies -source $DIRNAME/dependencies - # Ensure additional dependencies are installed. for package in $DEPLOY_DEPENDENCIES; do provision_package $package |