Ottomata has uploaded a new change for review. (
https://gerrit.wikimedia.org/r/397616 )
Change subject: Add superset password mappings for analytics mysql dbs
......................................................................
Add superset password mappings for analytics mysql dbs
Bug: T166689
Change-Id: I9e386d8f8bc38b5f8143ffb5381630a714f7f30b
---
M modules/profile/manifests/superset.pp
1 file changed, 16 insertions(+), 1 deletion(-)
git pull ssh://gerrit.wikimedia.org:29418/operations/puppet
refs/changes/16/397616/1
diff --git a/modules/profile/manifests/superset.pp
b/modules/profile/manifests/superset.pp
index 802a53b..d916988 100644
--- a/modules/profile/manifests/superset.pp
+++ b/modules/profile/manifests/superset.pp
@@ -42,7 +42,6 @@
$admin_user = hiera('profile::superset::admin_user', 'admin'),
$admin_password = hiera('profile::superset::admin_password', 'admin'),
$secret_key = hiera('profile::superset::secret_key',
'not_really_a_secret_key'),
- $password_mapping = hiera('profile::superset::password_mapping', undef),
$ldap_proxy_enabled = hiera('profile::superset::ldap_proxy_enabled',
false),
$statsd = hiera('statsd', undef),
) {
@@ -70,6 +69,22 @@
$auth_type = undef
}
+ if $::realm == 'production' {
+ # Use MySQL research user to access mysql DBs.
+ include ::passwords::mysql::research
+ $password_mapping = {
+ # Mediawiki analytics slave database.
+
"mysql://${::passwords::mysql::research::user}@analytics-store.eqiad.wmnet" =>
+ $::passwords::mysql::research::pass,
+ # EventLogging mysql slave database.
+
"mysql://${::passwords::mysql::research::user}@analytics-slave.eqiad.wmnet/log"
=>
+ $::passwords::mysql::research::pass,
+ }
+ }
+ else {
+ $password_mapping = undef
+ }
+
class { '::superset':
workers => $workers,
database_uri => $full_database_uri,
--
To view, visit https://gerrit.wikimedia.org/r/397616
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: newchange
Gerrit-Change-Id: I9e386d8f8bc38b5f8143ffb5381630a714f7f30b
Gerrit-PatchSet: 1
Gerrit-Project: operations/puppet
Gerrit-Branch: production
Gerrit-Owner: Ottomata <[email protected]>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits