Rush has uploaded a new change for review.

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

Change subject: labsdb: apply candidate puppet logic for maintain-views to 
labsdb1008
......................................................................

labsdb: apply candidate puppet logic for maintain-views to labsdb1008

* This is a host we have dedicated to pilot the migration of this logic
* contextualize labsdb as role::labsdb in modules/role

Change-Id: I655641ed7963c9f62d0d3e9ff0dfcee17c915f62
---
M manifests/site.pp
M modules/role/manifests/labsdb/init.pp
2 files changed, 10 insertions(+), 1 deletion(-)


  git pull ssh://gerrit.wikimedia.org:29418/operations/puppet 
refs/changes/19/315319/1

diff --git a/manifests/site.pp b/manifests/site.pp
index 75d56d2..c3a9e6e 100644
--- a/manifests/site.pp
+++ b/manifests/site.pp
@@ -1466,6 +1466,15 @@
 node /labsdb100[138]\.eqiad\.wmnet/ {
     # this role is depecated and its nodes scheduled for decom
     role(mariadb::labs)
+
+    # Labsdb1008 has been assigned to pilot our
+    # setup logic for maintain-views.
+    # This hostname specification is temporary for untangling
+    # this historically unpuppetized logic.
+    # testing purposes only temporarily labsdb at the moment
+    if $::hostname == 'labsdb1008' {
+        include role::labsdb
+    }
 }
 
 node /labsdb10(09|10|11)\.eqiad\.wmnet/ {
diff --git a/modules/role/manifests/labsdb/init.pp 
b/modules/role/manifests/labsdb/init.pp
index 114d1a0..7183b7f 100644
--- a/modules/role/manifests/labsdb/init.pp
+++ b/modules/role/manifests/labsdb/init.pp
@@ -1,4 +1,4 @@
-class labsdb {
+class role::labsdb {
 
     file { '/etc/maintain-views.json':
         ensure  => file,

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

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

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

Reply via email to