$config_override={ “调试”=>true, “只读”=>false, “MySQLOrchestratorHost”=>“orchestrator.example.com”, “MySQLOrchestratorPort”=>3306, “MySQLOrchestratorDatabase”=>“编排器”, “RemoveTextFromHostnameDisplay”=>“.example.com:3306”, “SlaveLagQuery”=>“从test.heartbeat_table中选择滞后”, “DiscoverByShowSlaveHosts”=>false, “DetectClusterAliasQuery”=>“从test.cluster_info_table中选择cluster_alias,其中1=1”, “DetectClusterDomainQuery”=>“从test.cluster_info_table中选择cluster_domain,其中1=1”, “数据中心模式”=>“.*-(.*)-.*[.].*[..]示例[.]com”, “物理环境模式”=>“.*-.*-(.*)[.].*[.]示例[.]com”, “伪GTIDPattern”=>“heartbeat`(ts,server_id,file,position,relay_master_log_file,exec_master.log_pos)VALUES”, “伪GTIDPatternIsFixedSubstring”=>true, “伪GTIDMonotonicHint”=>“heartbeat”, “DetectPseudoGTIDQuery”=>“从test.heartbeat_table中选择count(*)>0作为pseudo_gtid_exists,其中ts>NOW()-INTERVAL 2 DAY;”, “ProblemIgnoreHostnameFilters”=>[ “test-server-mysql”, ], “PromotionIgnoreHostnameFilters”=>[ “test-server-mysql”, ], “AuditLogFile”=>“”, “AuthenticationMethod”=>“token”, “FailureDetectionPeriodBlockMinutes”=>60, “RecoveryPollSeconds”=>5, “RecoveryPeriodBlockSeconds”=>600, “RecoveryIgnoreHostnameFilters”=>[], “RecoverMasterClusterFilters”=>[ “mysqla”, “mysqlb”, ], “RecoverIntermediateMasterClusterFilters”=>[ “mysqlb”, “mysqlc”, ], “OnFailureDetectionProcesses”=>[ “sudo-i恢复处理程序-t“检测”-f“{failureType}”-h“{failedHost}”-C“{failureCluster}”-n“{countSlaves}” ], “故障转移前进程”=>[ “sudo-i恢复处理程序-t“预故障转移”-f“{failureType}”-h“{failedHost}”-C“{failureCluster}”-n“{countSlaves}” ], “故障转移后进程”=>[ “sudo-i恢复处理程序-t“故障转移后”-f“{failureType}”-h“{失败主机}”-h“{successorHost}”-C“{failureCluster}”-n“{countSlaves}” ], “PostUnsuccessfulFailoverProcesses”=>[], “PostMasterFailoverProcesses”=>[ “sudo setuidgid orc_user ssh{failedHost}'sudo-i do_something_on_failed_host>/dev/null 2>/dev/null'”, “sudo setuidgid orc_user ssh{successorHost}'sudo-i do_something_on_new_host>/dev/null 2>/dev/null'”, ], “PostIntermediateMasterFailoverProcesses”=>[ ], “CoMasterRecoveryMustPromoteOtherCoMaster”=>true, “DetachLostSlavesAfterMasterFailover”=>true, “ApplyMySQLPromotionAfterMasterFailover”=>false, “MasterFailoverLostInstancesDowntimeMinutes”=>60, 'PostponeSlaveRecoveryOnLagMinutes'=>10, “GraphitePollSeconds”=>60, “GraphiteAddr”=>“graphite.example.com:2113”, “GraphitePath”=>“主机。 {hostname}.协调器', “GraphiteConvertHostnameDotsToUnderscores”=>true, } 类{“::编排器”: config_override=>$config_overlide, package_ensure=>“最新”, package_ manage=>真, }
-
此模块使用Puppetlab的stdlib。 -
如果满足以下条件,则编排器deb/rpm包可用于puppet 编排器::params::package_manage 是 真实的 . -
木偶将管理 Orchestrator Packagecloud回购 如果 编排器::params::repo_manage 是 真实的 . 注释 :此功能需要 计算/包云 模块依赖性。