summaryrefslogtreecommitdiff
path: root/share
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2016-10-05 11:51:42 -0300
committerSilvio Rhatto <rhatto@riseup.net>2016-10-05 11:51:42 -0300
commite55f839397fc348ac20228ebe166382171f9ac8b (patch)
tree5b35f6900038783a7c69931335823b1cce981344 /share
parentb0428522c8f4b1c730fc19550b820a0705bcdd21 (diff)
downloadhydra-e55f839397fc348ac20228ebe166382171f9ac8b.tar.gz
hydra-e55f839397fc348ac20228ebe166382171f9ac8b.tar.bz2
Deploy: fix logfile timestamp
Diffstat (limited to 'share')
-rwxr-xr-xshare/hydra/deploy6
1 files changed, 3 insertions, 3 deletions
diff --git a/share/hydra/deploy b/share/hydra/deploy
index 8c45828..d9d14a2 100755
--- a/share/hydra/deploy
+++ b/share/hydra/deploy
@@ -79,7 +79,7 @@ for node in $NODES; do
# Run puppet, overriding FQDN
echo "Applying configuration..."
LC_ALL=C HOSTNAME=$FQDN FACTER_domain=$DOMAIN FACTER_hostname=$FQDN FACTER_fqdn=$HOSTNAME.$DOMAIN $DEPLOY_APPLY 2>&1 | \
- tee $HYDRA_FOLDER/puppet/logs/$FQDN.`date +%Y%M%d%H%M`.log
+ tee $HYDRA_FOLDER/puppet/logs/$FQDN.`date +%Y%m%d%H%M`.log
elif [ "$node" == "localhost" ] || [ "$node" == "`facter fqdn`" ] || [ "$node" == "`facter hostname`" ]; then
echo "Deploying to localhost..."
@@ -106,7 +106,7 @@ for node in $NODES; do
# Run puppet
echo "Applying configuration..."
$DEPLOY_APPLY 2>&1 | \
- tee $HYDRA_FOLDER/puppet/logs/$FQDN.`date +%Y%M%d%H%M`.log
+ tee $HYDRA_FOLDER/puppet/logs/$FQDN.`date +%Y%m%d%H%M`.log
else
echo "Deploying to $node..."
@@ -160,6 +160,6 @@ EOF
# Run puppet
echo "Applying configuration..."
$DEPLOY_APPLY 2>&1 | \
- tee $HYDRA_FOLDER/puppet/logs/$FQDN.`date +%Y%M%d%H%M`.log
+ tee $HYDRA_FOLDER/puppet/logs/$FQDN.`date +%Y%m%d%H%M`.log
fi
done