coren has uploaded a new change for review.
https://gerrit.wikimedia.org/r/63291
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(-)
git pull ssh://gerrit.wikimedia.org:29418/operations/puppet
refs/changes/91/63291/1
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
+
+ [31m#######[0m [1mThis is an execution host of the Tool Labs grid
engine.[0m
+ [31m### ###[0m
+ [31m## ### ##[0m As a rule, and unless you are actively debugging a
tool
+ [31m## ### ##[0m that is currently running here, you probably should
not
+ [31m## ### ##[0m be connecting to this server directly.
+ [31m### ###[0m
+ [31m#######[0m [1;4mDo not run your tools manually here![0m
+
+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: newchange
Gerrit-Change-Id: I1b04b0f81d7943a01cb3d3071892530b98fef11a
Gerrit-PatchSet: 1
Gerrit-Project: operations/puppet
Gerrit-Branch: production
Gerrit-Owner: coren <[email protected]>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits