aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xshare/hydra/newnode5
1 files 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