aboutsummaryrefslogtreecommitdiff
path: root/share
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2015-09-20 19:16:19 -0300
committerSilvio Rhatto <rhatto@riseup.net>2015-09-20 19:16:19 -0300
commit793a4889babe1f98cd2937eeef2fad0892ddfa38 (patch)
tree3d1288a9a76a163d165225a97ea06b472be80187 /share
parentaafc0161f938bb29d42f6de001866ad824168716 (diff)
downloadhydra-793a4889babe1f98cd2937eeef2fad0892ddfa38.tar.gz
hydra-793a4889babe1f98cd2937eeef2fad0892ddfa38.tar.bz2
New node scheme
Diffstat (limited to 'share')
-rwxr-xr-xshare/hydra/newnode4
1 files changed, 2 insertions, 2 deletions
diff --git a/share/hydra/newnode b/share/hydra/newnode
index 95829a1..7cb7ae4 100755
--- a/share/hydra/newnode
+++ b/share/hydra/newnode
@@ -23,7 +23,7 @@ hydra_config_load
# Parameters
BASENAME="`basename $0`"
NODE="$1"
-NODES="$HYDRA_FOLDER/puppet/manifests/nodes.pp"
+NODES="$HYDRA_FOLDER/puppet/manifests/site.pp"
# Check configuration and parameters
if [ -z "$NODE" ]; then
@@ -33,7 +33,7 @@ elif [ ! -e "$HYDRA_FOLDER/config/domain" ]; then
echo "fatal: please configure your domain at $HYDRA_FOLDER/config/domain"
exit 1
elif [ ! -f "$NODES" ]; then
- echo "fatal: nodes.pp not found"
+ echo "fatal: $NODES not found"
exit 1
elif grep -qe "^import \"nodes/$NODE.pp\"$" $NODES &> /dev/null; then
echo "fatal: node $NODE already defined"