commit
31191b64b7
11 changed files with 18 additions and 27 deletions
|
@ -35,11 +35,11 @@ class mysql::bindings (
|
|||
|
||||
case $::osfamily {
|
||||
'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 $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 $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: {
|
||||
|
|
|
@ -1,7 +1,8 @@
|
|||
class { 'mysql::server':
|
||||
config_hash => {'root_password' => 'password'}
|
||||
root_password => 'password'
|
||||
}
|
||||
class { 'mysql::backup':
|
||||
|
||||
class { 'mysql::server::backup':
|
||||
backupuser => 'myuser',
|
||||
backuppassword => 'mypassword',
|
||||
backupdir => '/tmp/backups',
|
||||
|
|
|
@ -1,3 +1,3 @@
|
|||
class { 'mysql::bindings':
|
||||
php_enable => 'true',
|
||||
php_enable => true,
|
||||
}
|
||||
|
|
|
@ -1,16 +1,16 @@
|
|||
class { 'mysql::server':
|
||||
config_hash => {'root_password' => 'password'}
|
||||
root_password => 'password'
|
||||
}
|
||||
database{ ['test1', 'test2', 'test3']:
|
||||
mysql::db{ ['test1', 'test2', 'test3']:
|
||||
ensure => present,
|
||||
charset => 'utf8',
|
||||
require => Class['mysql::server'],
|
||||
}
|
||||
database{ 'test4':
|
||||
mysql::db{ 'test4':
|
||||
ensure => present,
|
||||
charset => 'latin1',
|
||||
}
|
||||
database{ 'test5':
|
||||
mysql::db{ 'test5':
|
||||
ensure => present,
|
||||
charset => 'binary',
|
||||
collate => 'binary',
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
class { 'mysql::server':
|
||||
config_hash => {'root_password' => 'password'}
|
||||
root_password => 'password'
|
||||
}
|
||||
mysql::db { 'mydb':
|
||||
user => 'myuser',
|
||||
|
|
|
@ -1,9 +1,7 @@
|
|||
$mysql_root_pw = 'password'
|
||||
|
||||
class { 'mysql::server':
|
||||
config_hash => {
|
||||
root_password => 'password',
|
||||
}
|
||||
}
|
||||
|
||||
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':
|
||||
config_hash => { 'root_password' => 'password', },
|
||||
root_password => 'password',
|
||||
}
|
||||
class { 'mysql::server::account_security': }
|
||||
|
|
|
@ -1,11 +1,3 @@
|
|||
mysql::server::config { 'testfile':
|
||||
settings => {
|
||||
'mysqld' => {
|
||||
'bind-address' => '0.0.0.0',
|
||||
'read-only' => true,
|
||||
},
|
||||
'client' => {
|
||||
'port' => '3306'
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue