Guruprasad has proposed merging 
~lgp171188/launchpad-bastion-scripts:add-production-juju-status-command into 
launchpad-bastion-scripts:main.

Commit message:
Add a production-juju-status command

Requested reviews:
  Launchpad code reviewers (launchpad-reviewers)

For more details, see:
https://code.launchpad.net/~lgp171188/launchpad-bastion-scripts/+git/launchpad-bastion-scripts/+merge/487440
-- 
Your team Launchpad code reviewers is requested to review the proposed merge of 
~lgp171188/launchpad-bastion-scripts:add-production-juju-status-command into 
launchpad-bastion-scripts:main.
diff --git a/production-juju-status b/production-juju-status
new file mode 100755
index 0000000..85005bd
--- /dev/null
+++ b/production-juju-status
@@ -0,0 +1,11 @@
+#! /bin/bash
+set -e
+set -o pipefail
+
+today="$(date +%F)"
+now="$(date +"%F-%H:%M:%S")"
+logfile="$HOME/logs/$today-production.log"
+
+mkdir -p "$HOME/logs"
+echo "Running juju status on prod-launchpad at $now" | tee -a "$logfile"
+ssh -i ~/.ssh/id_ed25519_production_juju_status [email protected] 2>&1 | tee -a "$logfile"
_______________________________________________
Mailing list: https://launchpad.net/~launchpad-reviewers
Post to     : [email protected]
Unsubscribe : https://launchpad.net/~launchpad-reviewers
More help   : https://help.launchpad.net/ListHelp

Reply via email to