Yuvipanda has submitted this change and it was merged.

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, 16 insertions(+), 2 deletions(-)

Approvals:
  Yuvipanda: Verified; Looks good to me, approved



diff --git a/manifests/site.pp b/manifests/site.pp
index 822535f..22183a9 100644
--- a/manifests/site.pp
+++ b/manifests/site.pp
@@ -2247,8 +2247,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..254780c
--- /dev/null
+++ b/modules/role/manifests/paws_internal/mysql_access.pp
@@ -0,0 +1,7 @@
+# = Class role::paws_internal::mysql_access
+# Setup MySQL access to research dbs from paws_internal
+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: merged
Gerrit-Change-Id: I76b37074668ec5740a4f356a7e0c7dcb232666da
Gerrit-PatchSet: 3
Gerrit-Project: operations/puppet
Gerrit-Branch: production
Gerrit-Owner: Yuvipanda <[email protected]>
Gerrit-Reviewer: Yuvipanda <[email protected]>
Gerrit-Reviewer: jenkins-bot <>

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

Reply via email to