Jcrespo has uploaded a new change for review.
https://gerrit.wikimedia.org/r/265479
Change subject: Fixing db path for newer machines by adding a condition on the
role
......................................................................
Fixing db path for newer machines by adding a condition on the role
Old parser caches were installed on /a, maintain old path but
install new databases on /srv.
Change-Id: Ie537321e3ab77266d97b7aecf93de366608e1b6c
References: T121879 T121888
---
M manifests/role/mariadb.pp
1 file changed, 6 insertions(+), 2 deletions(-)
git pull ssh://gerrit.wikimedia.org:29418/operations/puppet
refs/changes/79/265479/1
diff --git a/manifests/role/mariadb.pp b/manifests/role/mariadb.pp
index 9e345c8..7202fa7 100644
--- a/manifests/role/mariadb.pp
+++ b/manifests/role/mariadb.pp
@@ -756,13 +756,17 @@
class { 'role::mariadb::grants':
shard => 'parsercache',
}
+ $basedir = $host ? {
+ /pc100[123]/ => '/a',
+ default => '/srv',
+ }
class { 'mariadb::config':
prompt => 'PARSERCACHE',
config => 'mariadb/parsercache.my.cnf.erb',
password => $passwords::misc::scripts::mysql_root_pass,
- datadir => '/a/sqldata-cache',
- tmpdir => '/a/tmp',
+ datadir => "${basedir}/sqldata-cache",
+ tmpdir => "${basedir}/tmp",
}
# mysql monitoring access from tendril (db1011)
--
To view, visit https://gerrit.wikimedia.org/r/265479
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: newchange
Gerrit-Change-Id: Ie537321e3ab77266d97b7aecf93de366608e1b6c
Gerrit-PatchSet: 1
Gerrit-Project: operations/puppet
Gerrit-Branch: production
Gerrit-Owner: Jcrespo <[email protected]>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits