diff options
Diffstat (limited to 'share')
-rwxr-xr-x | share/hydra/deploy | 4 | ||||
-rwxr-xr-x | share/hydra/newnode | 12 | ||||
-rwxr-xr-x | share/hydra/nodes | 6 | ||||
-rwxr-xr-x | share/hydra/whereis | 8 |
4 files changed, 15 insertions, 15 deletions
diff --git a/share/hydra/deploy b/share/hydra/deploy index efbaeba..19150a8 100755 --- a/share/hydra/deploy +++ b/share/hydra/deploy @@ -65,7 +65,7 @@ for node in $NODES; do echo "Syncing configuration..." $DEPLOY_RSYNC "$RSYNC_PATH" $DEPLOY_OPTS - # Copy hiera configuration + # Copy config configuration hydra_deploy_copy_secrets folder # Run puppet, overriding FQDN @@ -110,7 +110,7 @@ EOF echo "Syncing configuration..." $DEPLOY_RSYNC "$RSYNC_PATH" $DEPLOY_OPTS - # Copy hiera configuration + # Copy configuration hydra_deploy_copy_secrets remote # Run puppet 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 diff --git a/share/hydra/nodes b/share/hydra/nodes index e2a318d..a80e6c1 100755 --- a/share/hydra/nodes +++ b/share/hydra/nodes @@ -18,8 +18,8 @@ # Get a list of puppet node files function hydra_node_files { - if [ -d "$PUPPET/hiera/node/" ]; then - FILES="$PUPPET/hiera/node/*" + if [ -d "$PUPPET/config/node/" ]; then + FILES="$PUPPET/config/node/*" fi } @@ -49,7 +49,7 @@ hydra_node_files # Get nodes if [ ! -z "$CLASS" ]; then hydra_nodes | while read node; do - find $PUPPET/hiera -name "$node.yaml" + find $PUPPET/config -name "$node.yaml" done | while read candidate; do if grep -e "$CLASS" $candidate | grep -qe "^nodo::role"; then basename $candidate .yaml diff --git a/share/hydra/whereis b/share/hydra/whereis index 515218b..8c09839 100755 --- a/share/hydra/whereis +++ b/share/hydra/whereis @@ -38,12 +38,12 @@ echo "-------------------------------------------------------------------------- echo "" # Is it a node? -if [ -e "$PUPPET/hiera/node/$LAYER.$DOMAIN.yaml" ]; then - echo "Defined as a node at hiera/node/$LAYER.$DOMAIN.yaml" +if [ -e "$PUPPET/config/node/$LAYER.$DOMAIN.yaml" ]; then + echo "Defined as a node at config/node/$LAYER.$DOMAIN.yaml" echo "Configuration:" echo "" - grep "nodo::role:" $PUPPET/hiera/node/$LAYER.$DOMAIN.yaml - grep "nodo::location:" $PUPPET/hiera/node/$LAYER.$DOMAIN.yaml + grep "nodo::role:" $PUPPET/config/node/$LAYER.$DOMAIN.yaml + grep "nodo::location:" $PUPPET/config/node/$LAYER.$DOMAIN.yaml fi # DNS config |