commit
31191b64b7
11 changed files with 18 additions and 27 deletions
|
@ -35,11 +35,11 @@ class mysql::bindings (
|
||||||
|
|
||||||
case $::osfamily {
|
case $::osfamily {
|
||||||
'Archlinux': {
|
'Archlinux': {
|
||||||
if $java_enable { fatal("::mysql::bindings::java cannot be managed by puppet on ${::osfamily} as it is not in official repositories. Please disable java mysql binding.") }
|
if $java_enable { fail("::mysql::bindings::java cannot be managed by puppet on ${::osfamily} as it is not in official repositories. Please disable java mysql binding.") }
|
||||||
if $perl_enable { include '::mysql::bindings::perl' }
|
if $perl_enable { include '::mysql::bindings::perl' }
|
||||||
if $php_enable { warn("::mysql::bindings::php does not need to be managed by puppet on ${::osfamily} as it is included in mysql package by default.") }
|
if $php_enable { warning("::mysql::bindings::php does not need to be managed by puppet on ${::osfamily} as it is included in mysql package by default.") }
|
||||||
if $python_enable { include '::mysql::bindings::python' }
|
if $python_enable { include '::mysql::bindings::python' }
|
||||||
if $ruby_enable { fatal("::mysql::bindings::ruby cannot be managed by puppet on ${::osfamily} as it is not in official repositories. Please disable ruby mysql binding.") }
|
if $ruby_enable { fail("::mysql::bindings::ruby cannot be managed by puppet on ${::osfamily} as it is not in official repositories. Please disable ruby mysql binding.") }
|
||||||
}
|
}
|
||||||
|
|
||||||
default: {
|
default: {
|
||||||
|
|
|
@ -1,7 +1,8 @@
|
||||||
class { 'mysql::server':
|
class { 'mysql::server':
|
||||||
config_hash => {'root_password' => 'password'}
|
root_password => 'password'
|
||||||
}
|
}
|
||||||
class { 'mysql::backup':
|
|
||||||
|
class { 'mysql::server::backup':
|
||||||
backupuser => 'myuser',
|
backupuser => 'myuser',
|
||||||
backuppassword => 'mypassword',
|
backuppassword => 'mypassword',
|
||||||
backupdir => '/tmp/backups',
|
backupdir => '/tmp/backups',
|
||||||
|
|
|
@ -1,3 +1,3 @@
|
||||||
class { 'mysql::bindings':
|
class { 'mysql::bindings':
|
||||||
php_enable => 'true',
|
php_enable => true,
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,16 +1,16 @@
|
||||||
class { 'mysql::server':
|
class { 'mysql::server':
|
||||||
config_hash => {'root_password' => 'password'}
|
root_password => 'password'
|
||||||
}
|
}
|
||||||
database{ ['test1', 'test2', 'test3']:
|
mysql::db{ ['test1', 'test2', 'test3']:
|
||||||
ensure => present,
|
ensure => present,
|
||||||
charset => 'utf8',
|
charset => 'utf8',
|
||||||
require => Class['mysql::server'],
|
require => Class['mysql::server'],
|
||||||
}
|
}
|
||||||
database{ 'test4':
|
mysql::db{ 'test4':
|
||||||
ensure => present,
|
ensure => present,
|
||||||
charset => 'latin1',
|
charset => 'latin1',
|
||||||
}
|
}
|
||||||
database{ 'test5':
|
mysql::db{ 'test5':
|
||||||
ensure => present,
|
ensure => present,
|
||||||
charset => 'binary',
|
charset => 'binary',
|
||||||
collate => 'binary',
|
collate => 'binary',
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
class { 'mysql::server':
|
class { 'mysql::server':
|
||||||
config_hash => {'root_password' => 'password'}
|
root_password => 'password'
|
||||||
}
|
}
|
||||||
mysql::db { 'mydb':
|
mysql::db { 'mydb':
|
||||||
user => 'myuser',
|
user => 'myuser',
|
||||||
|
|
|
@ -1,9 +1,7 @@
|
||||||
$mysql_root_pw = 'password'
|
$mysql_root_pw = 'password'
|
||||||
|
|
||||||
class { 'mysql::server':
|
class { 'mysql::server':
|
||||||
config_hash => {
|
root_password => 'password',
|
||||||
root_password => 'password',
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
mysql_user{ 'redmine@localhost':
|
mysql_user{ 'redmine@localhost':
|
||||||
|
|
|
@ -1 +1 @@
|
||||||
include mysql::perl
|
include mysql::bindings::perl
|
||||||
|
|
|
@ -1 +1 @@
|
||||||
class { 'mysql::python':}
|
class { 'mysql::bindings::python':}
|
||||||
|
|
|
@ -1 +1 @@
|
||||||
include mysql::ruby
|
include mysql::bindings::ruby
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
class { 'mysql::server':
|
class { 'mysql::server':
|
||||||
config_hash => { 'root_password' => 'password', },
|
root_password => 'password',
|
||||||
}
|
}
|
||||||
class { 'mysql::server::account_security': }
|
class { 'mysql::server::account_security': }
|
||||||
|
|
|
@ -1,11 +1,3 @@
|
||||||
mysql::server::config { 'testfile':
|
mysql::server::config { 'testfile':
|
||||||
settings => {
|
|
||||||
'mysqld' => {
|
|
||||||
'bind-address' => '0.0.0.0',
|
|
||||||
'read-only' => true,
|
|
||||||
},
|
|
||||||
'client' => {
|
|
||||||
'port' => '3306'
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue