Yuvipanda has uploaded a new change for review.

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

Change subject: paws_internal: Add mysql reseach creds to notebook1001
......................................................................

paws_internal: Add mysql reseach creds to notebook1001

Bug: T149543
Change-Id: I76b37074668ec5740a4f356a7e0c7dcb232666da
---
M manifests/site.pp
A modules/role/manifests/paws_internal/mysql_access.pp
2 files changed, 14 insertions(+), 2 deletions(-)


  git pull ssh://gerrit.wikimedia.org:29418/operations/puppet 
refs/changes/75/319475/1

diff --git a/manifests/site.pp b/manifests/site.pp
index 6d8fbca..81f2dd2 100644
--- a/manifests/site.pp
+++ b/manifests/site.pp
@@ -2246,8 +2246,15 @@
 }
 
 # Experimental Jupyter notebook servers
-node /^notebook100[12]\.eqiad\.wmnet$/ {
-    role(notebook::server, paws_internal::jupyterhub, 
analytics_cluster::client)
+node 'notebook1001.eqiad.wmnet' {
+    # Equivalent of stat1003
+    role(paws_internal::jupyterhub, paws_internal::mysql_access)
+
+    include standard
+}
+node 'notebook1002.eqiad.wmnet' {
+    # Equivalent to stat1002
+    role(paws_internal::jupyterhub, analytics_cluster::client)
     include standard
 }
 
diff --git a/modules/role/manifests/paws_internal/mysql_access.pp 
b/modules/role/manifests/paws_internal/mysql_access.pp
new file mode 100644
index 0000000..0bb0c71
--- /dev/null
+++ b/modules/role/manifests/paws_internal/mysql_access.pp
@@ -0,0 +1,5 @@
+class role::paws_internal::mysql_access {
+    statistics::mysql_credentials { 'research':
+        group => 'researchers',
+    }
+}

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

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

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

Reply via email to