summaryrefslogtreecommitdiff
path: root/share
diff options
context:
space:
mode:
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"