From 068cfa7fa6c61643c6769c5b7f8746048feca7da Mon Sep 17 00:00:00 2001 From: Silvio Rhatto Date: Thu, 12 May 2016 17:40:14 -0300 Subject: Fixes newnode --- share/hydra/newnode | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/share/hydra/newnode b/share/hydra/newnode index 57c5885..acd989f 100755 --- a/share/hydra/newnode +++ b/share/hydra/newnode @@ -23,7 +23,7 @@ hydra_config_load # Parameters BASENAME="`basename $0`" NODE="$1" -DOMAIN="`cat $HYDRA_FOLDER/config/domain` 2> /dev/null" +DOMAIN="`cat $HYDRA_FOLDER/config/domain 2> /dev/null`" #NODES="$HYDRA_FOLDER/puppet/manifests/site.pp" # Check if node was given by fqdn or just hostname @@ -80,7 +80,8 @@ echo "---" > $HYDRA_FOLDER/puppet/config/secrets/node/$NODE.yaml # Add to git ( cd $HYDRA_FOLDER/puppet - git add manifests/nodes/$NODE.pp config/node/$NODE.yaml config/secrets/node/$NODE.yaml + #git add manifests/nodes/$NODE.pp config/node/$NODE.yaml config/secrets/node/$NODE.yaml + git add config/node/$NODE.yaml config/secrets/node/$NODE.yaml #if [ -e 'manifests/site.pp' ]; then # git add manifests/site.pp -- cgit v1.2.3