diff options
author | Silvio Rhatto <rhatto@riseup.net> | 2016-03-22 13:48:42 -0300 |
---|---|---|
committer | Silvio Rhatto <rhatto@riseup.net> | 2016-03-22 13:48:42 -0300 |
commit | 38defecb3a09b175ff9f3520a146358a5250c5a3 (patch) | |
tree | ea9770f19d307c70619c76357ebfc621dfce34a4 /share/hydra/newnode | |
parent | bdd58beb8ccf1fc8abf43ba4f940e9c438ec9297 (diff) | |
download | hydra-38defecb3a09b175ff9f3520a146358a5250c5a3.tar.gz hydra-38defecb3a09b175ff9f3520a146358a5250c5a3.tar.bz2 |
Rename 'hiera' to 'config'
Diffstat (limited to 'share/hydra/newnode')
-rwxr-xr-x | share/hydra/newnode | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/share/hydra/newnode b/share/hydra/newnode index 76d4a54..57c5885 100755 --- a/share/hydra/newnode +++ b/share/hydra/newnode @@ -38,7 +38,7 @@ if [ -z "$NODE" ]; then elif [ ! -e "$HYDRA_FOLDER/config/domain" ]; then echo "fatal: please configure your domain at $HYDRA_FOLDER/config/domain" exit 1 -elif [ -e "$HYDRA_FOLDER/puppet/hiera/node/$NODE.yaml" ]; then +elif [ -e "$HYDRA_FOLDER/puppet/config/node/$NODE.yaml" ]; then echo "fatal: node $NODE already defined" exit 1 fi @@ -63,12 +63,12 @@ fi #fi # Copy YAML template -mkdir -p $HYDRA_FOLDER/puppet/hiera/node -cp $YAML $HYDRA_FOLDER/puppet/hiera/node/$NODE.yaml +mkdir -p $HYDRA_FOLDER/puppet/config/node +cp $YAML $HYDRA_FOLDER/puppet/config/node/$NODE.yaml # Setup secret YAML template -mkdir -p $HYDRA_FOLDER/puppet/hiera/secrets/node -echo "---" > $HYDRA_FOLDER/puppet/hiera/secrets/node/$NODE.yaml +mkdir -p $HYDRA_FOLDER/puppet/config/secrets/node +echo "---" > $HYDRA_FOLDER/puppet/config/secrets/node/$NODE.yaml # Copy node template #mkdir -p $HYDRA_FOLDER/puppet/manifests/nodes @@ -80,7 +80,7 @@ echo "---" > $HYDRA_FOLDER/puppet/hiera/secrets/node/$NODE.yaml # Add to git ( cd $HYDRA_FOLDER/puppet - git add manifests/nodes/$NODE.pp hiera/node/$NODE.yaml hiera/secrets/node/$NODE.yaml + git add manifests/nodes/$NODE.pp config/node/$NODE.yaml config/secrets/node/$NODE.yaml #if [ -e 'manifests/site.pp' ]; then # git add manifests/site.pp |