Petrb has uploaded a new change for review.

  https://gerrit.wikimedia.org/r/69133


Change subject: updating motd to make it clear which server is which
......................................................................

updating motd to make it clear which server is which

Change-Id: I135dea142ef26912d4c4b8be1563f6c2fda3f230
---
M modules/toollabs/files/40-tools-infrastructure-banner
1 file changed, 18 insertions(+), 0 deletions(-)


  git pull ssh://gerrit.wikimedia.org:29418/operations/puppet 
refs/changes/33/69133/1

diff --git a/modules/toollabs/files/40-tools-infrastructure-banner 
b/modules/toollabs/files/40-tools-infrastructure-banner
old mode 100644
new mode 100755
index 5a67afb..d26e9a5
--- a/modules/toollabs/files/40-tools-infrastructure-banner
+++ b/modules/toollabs/files/40-tools-infrastructure-banner
@@ -4,10 +4,28 @@
 # This script is managed by puppet
 #
 
+if [ -f /data/project/.system/.testing ];then
 cat <<EOF
       ^
      / \    This server is part of the Tool Labs infrastructure.
     / ! \
    /_____\         "No user-serviceable parts inside."
 
+           *** This is a testing server ***
+
 EOF
+
+exit 0
+fi
+
+cat <<EOF
+      ^
+     / \    This server is part of the Tool Labs infrastructure.
+    / ! \
+   /_____\         "No user-serviceable parts inside."
+
+           *** This is a production server ***
+
+EOF
+
+

-- 
To view, visit https://gerrit.wikimedia.org/r/69133
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I135dea142ef26912d4c4b8be1563f6c2fda3f230
Gerrit-PatchSet: 1
Gerrit-Project: operations/puppet
Gerrit-Branch: production
Gerrit-Owner: Petrb <benap...@gmail.com>

_______________________________________________
MediaWiki-commits mailing list
MediaWiki-commits@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to