diff options
author | Silvio Rhatto <rhatto@riseup.net> | 2015-10-20 16:55:08 -0200 |
---|---|---|
committer | Silvio Rhatto <rhatto@riseup.net> | 2015-10-20 16:55:08 -0200 |
commit | 4f92fcc8f6d89e79ae9b990741d9212580ab54b6 (patch) | |
tree | 218672bd839f1a7ece72396be7003918d080c600 /lib | |
parent | 133d0ec04f0cf0912bac721c598f7b361928b925 (diff) | |
download | hydra-4f92fcc8f6d89e79ae9b990741d9212580ab54b6.tar.gz hydra-4f92fcc8f6d89e79ae9b990741d9212580ab54b6.tar.bz2 |
Deploy: use /etc/hostname instead of facter
Diffstat (limited to 'lib')
-rw-r--r-- | lib/hydra/deploy | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/hydra/deploy b/lib/hydra/deploy index 49fb156..f82c115 100644 --- a/lib/hydra/deploy +++ b/lib/hydra/deploy @@ -16,7 +16,7 @@ function hydra_deploy_setup { DEPLOY_COMMAND="$HYDRA_CONNECT $NODE sudo" RSYNC_PATH="sudo rsync" DEPLOY_OPTS="$HYDRA_FOLDER/puppet/ $NODE:/etc/puppet/" - FQDN="`$DEPLOY_COMMAND facter fqdn`" + FQDN="`$DEPLOY_COMMAND cat /etc/hostname`" DEPLOY_DEST="$FQDN:" COPY_PATH="$RSYNC_PATH" PUPPET_MANIFEST="/etc/puppet/manifests/nodes/$FQDN.pp" @@ -50,7 +50,7 @@ function hydra_deploy_setup { # Deploy on the localhost DEPLOY_RSYNC="" DEPLOY_COMMAND="$SUDO" - FQDN="`facter fqdn`" + FQDN="`cat /etc/hostname`" PUPPET_OPTS="--confdir=$HYDRA_FOLDER/puppet --modulepath=$HYDRA_FOLDER/puppet/modules" PUPPET_MANIFEST="$HYDRA_FOLDER/puppet/manifests/nodes/$FQDN.pp" fi |