Merge pull request #604 from mhaskel/rebase_581

Fixed test classes
This commit is contained in:
Colleen Murphy 2014-11-19 10:24:25 -08:00
commit 31191b64b7
11 changed files with 18 additions and 27 deletions

View file

@ -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: {

View file

@ -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',

View file

@ -1,3 +1,3 @@
class { 'mysql::bindings':
php_enable => 'true',
php_enable => true,
}

View file

@ -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',

View file

@ -1,5 +1,5 @@
class { 'mysql::server':
config_hash => {'root_password' => 'password'}
root_password => 'password'
}
mysql::db { 'mydb':
user => 'myuser',

View file

@ -1,9 +1,7 @@
$mysql_root_pw = 'password'
class { 'mysql::server':
config_hash => {
root_password => 'password',
}
root_password => 'password',
}
mysql_user{ 'redmine@localhost':

View file

@ -1 +1 @@
include mysql::perl
include mysql::bindings::perl

View file

@ -1 +1 @@
class { 'mysql::python':}
class { 'mysql::bindings::python':}

View file

@ -1 +1 @@
include mysql::ruby
include mysql::bindings::ruby

View file

@ -1,4 +1,4 @@
class { 'mysql::server':
config_hash => { 'root_password' => 'password', },
root_password => 'password',
}
class { 'mysql::server::account_security': }

View file

@ -1,11 +1,3 @@
mysql::server::config { 'testfile':
settings => {
'mysqld' => {
'bind-address' => '0.0.0.0',
'read-only' => true,
},
'client' => {
'port' => '3306'
}
}
}