Petrb has uploaded a new change for review.

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


Change subject: motd is now project wide
......................................................................

motd is now project wide

Change-Id: I6f3d49efa97fe39617ad98df4eb2d565a2100b41
---
A modules/toollabs/files/profile-tool-labs.sh
M modules/toollabs/manifests/init.pp
2 files changed, 14 insertions(+), 0 deletions(-)


  git pull ssh://gerrit.wikimedia.org:29418/operations/puppet 
refs/changes/85/64285/1

diff --git a/modules/toollabs/files/profile-tool-labs.sh 
b/modules/toollabs/files/profile-tool-labs.sh
new file mode 100644
index 0000000..d5e540f
--- /dev/null
+++ b/modules/toollabs/files/profile-tool-labs.sh
@@ -0,0 +1,2 @@
+#!/bin/sh
+[ -f /data/project/.system/tips.sh ] && /data/project/.system/tips.sh
diff --git a/modules/toollabs/manifests/init.pp 
b/modules/toollabs/manifests/init.pp
index 995eca7..1f7e89d 100644
--- a/modules/toollabs/manifests/init.pp
+++ b/modules/toollabs/manifests/init.pp
@@ -57,11 +57,23 @@
     group => "root",
   }
 
+  # this is a link to shared folder
   file { "/shared":
     ensure => link,
     target => "/data/project/.shared";
   }
 
+  # this file contains the motd tips and also the admin motd script
+  # in fact it just check if the shared script exist and if so
+  # it executes it
+  file { "/etc/profile.d/tips.sh":
+    ensure => file,
+    source => "puppet:///modules/toollabs/profile-tool-labs.sh",
+    mode => "0555",
+    owner => "root",
+    group => "root",
+  }
+
 
   # Tool Labs is enduser-facing, so we want to control the motd
   # properly (most things make no sense for community users: they

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

Gerrit-MessageType: newchange
Gerrit-Change-Id: I6f3d49efa97fe39617ad98df4eb2d565a2100b41
Gerrit-PatchSet: 1
Gerrit-Project: operations/puppet
Gerrit-Branch: production
Gerrit-Owner: Petrb <[email protected]>

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

Reply via email to