]> gitweb.fluxo.info Git - hydra.git/commitdiff
Deploy: fix logfile timestamp
authorSilvio Rhatto <rhatto@riseup.net>
Wed, 5 Oct 2016 14:51:42 +0000 (11:51 -0300)
committerSilvio Rhatto <rhatto@riseup.net>
Wed, 5 Oct 2016 14:51:42 +0000 (11:51 -0300)
share/hydra/deploy

index 8c4582804cd63766f4f6e99329e3595ac3513f90..d9d14a28ee2ac26cd2dca9ab0a971f339d9eec99 100755 (executable)
@@ -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