aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2016-05-12 17:40:14 -0300
committerSilvio Rhatto <rhatto@riseup.net>2016-05-12 17:40:14 -0300
commit068cfa7fa6c61643c6769c5b7f8746048feca7da (patch)
treed79b89ca4a6c986bc27a0f7af938de68f0de2ab8
parent89ccdde9968d89d77af5a6f0e190043cda0c717d (diff)
downloadhydra-068cfa7fa6c61643c6769c5b7f8746048feca7da.tar.gz
hydra-068cfa7fa6c61643c6769c5b7f8746048feca7da.tar.bz2
Fixes newnode
-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