launchpad-reviewers team mailing list archive
-
launchpad-reviewers team
-
Mailing list archive
-
Message #32617
[Merge] ~lgp171188/launchpad-bastion-scripts:add-production-juju-status-command into launchpad-bastion-scripts:main
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 prod-launchpad@is-bastion-ps5.internal 2>&1 | tee -a "$logfile"