coren has submitted this change and it was merged.

Change subject: Tool Labs: Also MOTD for the exec nodes
......................................................................


Tool Labs: Also MOTD for the exec nodes

Change-Id: I1b04b0f81d7943a01cb3d3071892530b98fef11a
---
A modules/toollabs/files/40-tools-exechost-banner
M modules/toollabs/manifests/execnode.pp
2 files changed, 21 insertions(+), 1 deletion(-)

Approvals:
  coren: Looks good to me, approved
  jenkins-bot: Verified



diff --git a/modules/toollabs/files/40-tools-exechost-banner 
b/modules/toollabs/files/40-tools-exechost-banner
new file mode 100644
index 0000000..03e1735
--- /dev/null
+++ b/modules/toollabs/files/40-tools-exechost-banner
@@ -0,0 +1,13 @@
+#! /bin/sh
+
+cat <<EOF
+
+     #######     This is an execution host of the Tool Labs grid 
engine.
+   ###     ###
+  ##     ### ##  As a rule, and unless you are actively debugging a 
tool
+  ##   ###   ##  that is currently running here, you probably should 
not
+  ## ###     ##  be connecting to this server directly.
+   ###     ###
+     #######     Do not run your tools manually here!
+
+EOF
diff --git a/modules/toollabs/manifests/execnode.pp 
b/modules/toollabs/manifests/execnode.pp
index 5387346..ac62d65 100644
--- a/modules/toollabs/manifests/execnode.pp
+++ b/modules/toollabs/manifests/execnode.pp
@@ -19,7 +19,14 @@
     gridmaster => $gridmaster,
   }
 
+  file { "/etc/update-motd.d/40-exechost-banner":
+    ensure => file,
+    mode => "0755",
+    owner => "root",
+    group => "root",
+    source => 
"puppet:///modules/toollabs/40-${instanceproject}-exechost-banner",
+  }
+
   # TODO: grid node setup
-  # TODO: sshd config
 }
 

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

Gerrit-MessageType: merged
Gerrit-Change-Id: I1b04b0f81d7943a01cb3d3071892530b98fef11a
Gerrit-PatchSet: 1
Gerrit-Project: operations/puppet
Gerrit-Branch: production
Gerrit-Owner: coren <[email protected]>
Gerrit-Reviewer: coren <[email protected]>
Gerrit-Reviewer: jenkins-bot

_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to