Volans has uploaded a new change for review.
https://gerrit.wikimedia.org/r/288195
Change subject: Add the replication_role parameter
......................................................................
Add the replication_role parameter
Add the $replication_role class parameter to allow to manage the
custom configuration based on the role of the server in the
replication chain. Accepted values are:
'standalone' | 'slave' | 'master' | 'multisource_slave'.
Default value is 'standalone'.
Bug: T133333
Change-Id: I2c2264bb9638b083f532d86712db3a51d0e2b920
---
M manifests/config.pp
1 file changed, 15 insertions(+), 11 deletions(-)
git pull ssh://gerrit.wikimedia.org:29418/operations/puppet/mariadb
refs/changes/95/288195/1
diff --git a/manifests/config.pp b/manifests/config.pp
index 0fc38ae..2cebb9c 100644
--- a/manifests/config.pp
+++ b/manifests/config.pp
@@ -5,18 +5,22 @@
# Accepted values for the $semi_sync parameter are:
# 'off' | 'slave' | 'master' | 'both'
+# Accepted values for the $replication_role parameter are:
+# 'standalone' | 'slave' | 'master' | 'multisource_slave'
+
class mariadb::config(
- $config = 'mariadb/default.my.cnf.erb',
- $prompt = '',
- $password = 'undefined',
- $datadir = '/srv/sqldata',
- $tmpdir = '/srv/tmp',
- $sql_mode = '',
- $read_only = 'off',
- $p_s = 'off',
- $ssl = 'off',
- $binlog_format = 'MIXED',
- $semi_sync = 'off',
+ $config = 'mariadb/default.my.cnf.erb',
+ $prompt = '',
+ $password = 'undefined',
+ $datadir = '/srv/sqldata',
+ $tmpdir = '/srv/tmp',
+ $sql_mode = '',
+ $read_only = 'off',
+ $p_s = 'off',
+ $ssl = 'off',
+ $binlog_format = 'MIXED',
+ $semi_sync = 'off',
+ $replication_role = 'standalone',
) {
$server_id = inline_template(
--
To view, visit https://gerrit.wikimedia.org/r/288195
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: newchange
Gerrit-Change-Id: I2c2264bb9638b083f532d86712db3a51d0e2b920
Gerrit-PatchSet: 1
Gerrit-Project: operations/puppet/mariadb
Gerrit-Branch: master
Gerrit-Owner: Volans <[email protected]>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits