summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2014-03-09 10:56:54 -0300
committerSilvio Rhatto <rhatto@riseup.net>2014-03-09 10:56:54 -0300
commit505f57c738136747f729ef7153b61e7c5d579f37 (patch)
tree55d51376407c21a67f6956e966936d9eb2f87aaf
parenta1f7c2dbd8d95923fe93d11d103fc43cd375ae3a (diff)
downloadhydra-505f57c738136747f729ef7153b61e7c5d579f37.tar.gz
hydra-505f57c738136747f729ef7153b61e7c5d579f37.tar.bz2
Another fix at newnode
-rw-r--r--share/config/templates/node/nodo.pp2
-rwxr-xr-xshare/hydra/newnode2
2 files changed, 2 insertions, 2 deletions
diff --git a/share/config/templates/node/nodo.pp b/share/config/templates/node/nodo.pp
index a5345b3..1d6cdf6 100644
--- a/share/config/templates/node/nodo.pp
+++ b/share/config/templates/node/nodo.pp
@@ -1,3 +1,3 @@
-node 'nodo.example.org' {
+node 'nodename.example.org' {
include nodo
}
diff --git a/share/hydra/newnode b/share/hydra/newnode
index ea069d7..e5ab9a9 100755
--- a/share/hydra/newnode
+++ b/share/hydra/newnode
@@ -69,7 +69,7 @@ mkdir -p $HYDRA_FOLDER/puppet/manifests/nodes
cp $PP $HYDRA_FOLDER/puppet/manifests/nodes/$NODE.pp
# Edit the template
-sed -i -e "s/nodo/$NODE/g" $HYDRA_FOLDER/puppet/manifests/nodes/$NODE.pp
+sed -i -e "s/nodename/$NODE/g" $HYDRA_FOLDER/puppet/manifests/nodes/$NODE.pp
sed -i -e "s/example.org/$DOMAIN/g" $HYDRA_FOLDER/puppet/manifests/nodes/$NODE.pp
# Add to git