Skip to content

Commit

Permalink
Merge pull request #751 from mcanevet/patch-1
Browse files Browse the repository at this point in the history
Fix when not managing config file
  • Loading branch information
igalic committed Sep 22, 2015
2 parents 8b36568 + 6228846 commit c17c465
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
3 changes: 2 additions & 1 deletion manifests/server/installdb.pp
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,8 @@

if $mysql::server::manage_config_file {
$install_db_args = "--basedir=${basedir} --defaults-extra-file=${config_file} --datadir=${datadir} --user=${mysqluser}"

} else {
$install_db_args = "--basedir=${basedir} --datadir=${datadir} --user=${mysqluser}"
}

exec { 'mysql_install_db':
Expand Down
5 changes: 5 additions & 0 deletions spec/classes/mysql_server_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,11 @@
it { is_expected.to contain_class('mysql::server::account_security') }
end

context 'when not managing config file' do
let(:params) {{ :manage_config_file => false }}
it { is_expected.to compile.with_all_deps }
end

context 'mysql::server::install' do
it 'contains the package by default' do
is_expected.to contain_package('mysql-server').with({
Expand Down

0 comments on commit c17c465

Please sign in to comment.