coren has uploaded a new change for review.

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


Change subject: Tool Labs: Tyrant role, and minimal class config
......................................................................

Tool Labs: Tyrant role, and minimal class config

Change-Id: I06de0a637a55bafff3047d084b4378051318969d
---
M manifests/role/labs.pp
M modules/toollabs/manifests/tyrant.pp
2 files changed, 23 insertions(+), 2 deletions(-)


  git pull ssh://gerrit.wikimedia.org:29418/operations/puppet 
refs/changes/05/72105/1

diff --git a/manifests/role/labs.pp b/manifests/role/labs.pp
index 0d6cf65..97adefd 100644
--- a/manifests/role/labs.pp
+++ b/manifests/role/labs.pp
@@ -66,5 +66,12 @@
     class { 'toollabs::redis': }
   }
 
+  class tyrant inherits role::labs::tools::config {
+    system_role { "role::labs::tools::tyrant": description => "Tool Labs UWSGI 
emperor" }
+    class { 'toollabs::tyrant':
+      gridmaster => $grid_master,
+    }
+  }
+
 } # class role::labs::tools
 
diff --git a/modules/toollabs/manifests/tyrant.pp 
b/modules/toollabs/manifests/tyrant.pp
index 1fa77b1..f4be395 100644
--- a/modules/toollabs/manifests/tyrant.pp
+++ b/modules/toollabs/manifests/tyrant.pp
@@ -10,7 +10,21 @@
 #
 # Sample Usage:
 #
-class toollabs::tyrant inherits toollabs {
-    include toollabs::infrastructure
+class toollabs::tyrant($gridmaster) inherits toollabs {
+    include toollabs::infrastructure,
+        toollabs::exec_environ
+    class { 'gridengine::submit_host':
+        gridmaster => $gridmaster,
+    }
+
+  file { "$store/submithost-$fqdn":
+    ensure => file,
+    owner => 'root',
+    group => 'root',
+    mode => '0444',
+    require => File[$store],
+    content => "$ipaddress\n",
+  }
 
 }
+

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

Gerrit-MessageType: newchange
Gerrit-Change-Id: I06de0a637a55bafff3047d084b4378051318969d
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

Reply via email to