Puppet Class: tungsten::tungstenmysql::params

Inherited by:
tungsten::tungstenmysql
Defined in:
manifests/tungstenmysql/params.pp

Overview

Parameters:

  • masterUser (Any) (defaults to: root)
  • masterPassword (Any) (defaults to: secret)
  • port (Any) (defaults to: 13306)


17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
# File 'manifests/tungstenmysql/params.pp', line 17

class tungsten::tungstenmysql::params (
	$masterUser							    = root,
	$masterPassword					    = secret,
	$port										    = 13306,
) {

  $baseOverrideOptionsMysqld =  {
    'bind_address' => '0.0.0.0',
    'server_id' => fqdn_rand(1073741824),
    'pid-file' => '/var/lib/mysql/mysql.pid',
    'log-bin' => '/var/lib/mysql/mysql-bin',
    'binlog-format' => 'MIXED',
    'port' => $port,
    'open_files_limit' => '65535',
    'sync_binlog' => '2',
    'max_allowed_packet' => '64m',
    'auto_increment_increment' => 1,
    'auto_increment_offset' => 1,
    'innodb_file_per_table' => true,
    'innodb_log_file_size' => '48m',
    'datadir'=> '/var/lib/mysql'
    }
  $baseOverrideOptionsMysqldSafe =  {}
  $baseOverrideOptionsClient =  {}

	if ($operatingsystem =~ /(?i:centos|redhat|oel|OracleLinux|amazon|SLES)/) {
    $configFileName               = "/etc/my.cnf"
    $logError                     = "/var/log/mysqld.log"
    $pidFile                      = '/var/run/mysqld/mysqld.pid'

	} elsif ($operatingsystem =~ /(?i:debian|ubuntu)/) {
    $configFileName               = "/etc/mysql/my.cnf"
    $logError                     = "/var/log/mysqld.log"
    $pidFile                      = '/var/run/mysqld/mysqld.pid'

	} else {
		fail("The ${module_name} module is not supported on an ${::operatingsystem} based system.")
	}
}