aboutsummaryrefslogtreecommitdiff
path: root/lib/hydra/deploy
diff options
context:
space:
mode:
Diffstat (limited to 'lib/hydra/deploy')
-rw-r--r--lib/hydra/deploy4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/hydra/deploy b/lib/hydra/deploy
index 4571c24..47dbe62 100644
--- a/lib/hydra/deploy
+++ b/lib/hydra/deploy
@@ -107,8 +107,8 @@ function hydra_deploy_copy_secrets {
hydra_deploy_copy $location $HYDRA_FOLDER/puppet/hiera/secrets/role/$ROLE.yaml $DEPLOY_DEST/etc/puppet/hiera/secrets/role/
fi
- if [ ! -z "$NODE" ] && [ -e "$HYDRA_FOLDER/puppet/hiera/secrets/node/$NODE.yaml" ]; then
- hydra_deploy_copy $location $HYDRA_FOLDER/puppet/hiera/secrets/node/$NODE.yaml $DEPLOY_DEST/etc/puppet/hiera/secrets/node/
+ if [ ! -z "$FQDN" ] && [ -e "$HYDRA_FOLDER/puppet/hiera/secrets/node/$FQDN.yaml" ]; then
+ hydra_deploy_copy $location $HYDRA_FOLDER/puppet/hiera/secrets/node/$FQDN.yaml $DEPLOY_DEST/etc/puppet/hiera/secrets/node/
fi
}