This commit is contained in:
Tom Krouper 2016-12-06 10:27:10 -08:00
Родитель 86669a0b3f
Коммит 3a085f5c14
5 изменённых файлов: 7 добавлений и 6 удалений

Просмотреть файл

@ -15,7 +15,7 @@ This module is to install the MySQL tool called Orchestrator via puppet. Orchest
'SlaveLagQuery' => 'select lag from test.heartbeat_table',
'DiscoverByShowSlaveHosts' => false,
'DetectClusterAliasQuery' => 'select cluster_alias from test.cluster_info_table where 1=1',
'DetectClusterDomainQuery' => "select cluster_domain from test.cluster_info_table where 1=1',
'DetectClusterDomainQuery' => 'select cluster_domain from test.cluster_info_table where 1=1',
'DataCenterPattern' => '.*-(.*)-.*[.].*[.]example[.]com',
'PhysicalEnvironmentPattern' => '.*-.*-(.*)[.].*[.]example[.]com',
'PseudoGTIDPattern' => '`heartbeat` (ts, server_id, file, position, relay_master_log_file, exec_master_log_pos) VALUES',

Просмотреть файл

@ -1,12 +1,13 @@
#
class orchestrator::my_cnf inherits orchestrator {
$cnf_erb = 'orchestrator/orchestrator.cnf.erb'
file { $orchestrator::topology_cnf:
content => template("puppet-orchestrator-for-mysql/${orchestrator::topology_cnf}.erb"),
content => template($cnf_erb),
mode => '0644',
}
file { $orchestrator::srv_cnf:
content => template("puppet-orchestrator-for-mysql/${orchestrator::srv_cnf}.erb"),
mode => '0644',
content => template($cnf_erb),
mode => '0644',
}
}

Просмотреть файл

@ -10,8 +10,8 @@ class orchestrator::params {
$service_ensure = 'running'
$service_manage = true
$service_name = 'orchestrator'
$srv_cnf = '/etc/mysql/orchestrator_srv.cnf'
$topology_cnf = '/etc/mysql/orchestrator.cnf'
$srv_cnf = '/etc/orchestrator_srv.cnf'
$topology_cnf = '/etc/orchestrator.cnf'
$config_defaults = {
'Debug' => true,