diff --git a/manifests/mysql.pp b/manifests/mysql.pp index 0a28f9b..846f48a 100644 --- a/manifests/mysql.pp +++ b/manifests/mysql.pp @@ -7,10 +7,11 @@ class lodgeit::mysql( $database_password, ) { class { '::mysql::server': - config_hash => { - 'root_password' => $mysql_root_password, - 'default_engine' => 'InnoDB', - 'bind_address' => '127.0.0.1', + root_password => $mysql_root_password, + override_options => { + 'mysqld' => { + 'default-storage-engine' => 'InnoDB', + } } } include ::mysql::server::account_security diff --git a/spec/acceptance/fixtures/preconditions.pp b/spec/acceptance/fixtures/preconditions.pp index 9b0bda2..f69423f 100644 --- a/spec/acceptance/fixtures/preconditions.pp +++ b/spec/acceptance/fixtures/preconditions.pp @@ -1,5 +1,10 @@ class { '::mysql::server': - config_hash => { 'root_password' => '123456' }, + root_password => $mysql_root_password, + override_options => { + 'mysqld' => { + 'default-storage-engine' => 'InnoDB', + } + } } mysql::db { 'acceptance':