]> gitweb.fluxo.info Git - hydra.git/commitdiff
New node scheme
authorSilvio Rhatto <rhatto@riseup.net>
Sun, 20 Sep 2015 22:16:19 +0000 (19:16 -0300)
committerSilvio Rhatto <rhatto@riseup.net>
Sun, 20 Sep 2015 22:16:19 +0000 (19:16 -0300)
share/hydra/newnode

index 95829a13538fb8fd74416ba9827f1ca8a650407c..7cb7ae44edb72e7f999f9b59ec6e829cface9c4c 100755 (executable)
@@ -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"