diff options
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 |