diff options
author | Silvio Rhatto <rhatto@riseup.net> | 2015-09-11 23:15:25 -0300 |
---|---|---|
committer | Silvio Rhatto <rhatto@riseup.net> | 2015-09-11 23:15:25 -0300 |
commit | fb8774be70b691b8b085a3cfadee5e28f21902ac (patch) | |
tree | 9279a3e1629a300912081ba9a9fc5d53496e8118 /share | |
parent | 73e0228dcfe77d4ec549bc3e29b85056939d7358 (diff) | |
download | hydra-fb8774be70b691b8b085a3cfadee5e28f21902ac.tar.gz hydra-fb8774be70b691b8b085a3cfadee5e28f21902ac.tar.bz2 |
Updates newnode to new scheme
Diffstat (limited to 'share')
-rw-r--r-- | share/config/templates/node/nodo.example.org.pp (renamed from share/config/templates/node/nodo.pp) | 0 | ||||
-rw-r--r-- | share/config/templates/node/nodo.example.org.yaml | 2 | ||||
-rwxr-xr-x | share/hydra/newnode | 8 |
3 files changed, 5 insertions, 5 deletions
diff --git a/share/config/templates/node/nodo.pp b/share/config/templates/node/nodo.example.org.pp index 1d6cdf6..1d6cdf6 100644 --- a/share/config/templates/node/nodo.pp +++ b/share/config/templates/node/nodo.example.org.pp diff --git a/share/config/templates/node/nodo.example.org.yaml b/share/config/templates/node/nodo.example.org.yaml index 56bce89..02a3bea 100644 --- a/share/config/templates/node/nodo.example.org.yaml +++ b/share/config/templates/node/nodo.example.org.yaml @@ -1,5 +1,5 @@ --- -nodo::role: 'vserver' +nodo::role: 'virtual' # # Backup diff --git a/share/hydra/newnode b/share/hydra/newnode index e5ab9a9..95829a1 100755 --- a/share/hydra/newnode +++ b/share/hydra/newnode @@ -44,7 +44,7 @@ fi DOMAIN="`cat $HYDRA_FOLDER/config/domain`" # Create node -echo "import \"nodes/$NODE.pp\"" >> $NODES +echo "import \"nodes/$NODE.$DOMAIN.pp\"" >> $NODES # Set YAML template if [ -e "$HYDRA_FOLDER/config/templates/node/nodo.example.org.yaml" ]; then @@ -55,9 +55,9 @@ fi # Set node template if [ -e "$HYDRA_FOLDER/config/templates/node/nodo.pp" ]; then - PP="$HYDRA_FOLDER/config/templates/node/nodo.pp" + PP="$HYDRA_FOLDER/config/templates/node/nodo.example.org.pp" else - PP="$APP_BASE/share/config/templates/node/nodo.pp" + PP="$APP_BASE/share/config/templates/node/nodo.example.org.pp" fi # Copy YAML template @@ -66,7 +66,7 @@ cp $YAML $HYDRA_FOLDER/puppet/hiera/production/domain/$DOMAIN/node/$NODE.$DOMAIN # Copy node template mkdir -p $HYDRA_FOLDER/puppet/manifests/nodes -cp $PP $HYDRA_FOLDER/puppet/manifests/nodes/$NODE.pp +cp $PP $HYDRA_FOLDER/puppet/manifests/nodes/$NODE.$DOMAIN.pp # Edit the template sed -i -e "s/nodename/$NODE/g" $HYDRA_FOLDER/puppet/manifests/nodes/$NODE.pp |