-
Notifications
You must be signed in to change notification settings - Fork 794
parameterize mysqld config_dir #492
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,12 +9,12 @@ | |
mode => '0400', | ||
} | ||
|
||
file { '/etc/mysql': | ||
file { $mysql::server::config_dir: | ||
ensure => directory, | ||
mode => '0755', | ||
} | ||
|
||
file { '/etc/mysql/conf.d': | ||
file { "${mysql::server::config_dir}/conf.d": | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This one should be parametrized. |
||
ensure => directory, | ||
mode => '0755', | ||
recurse => $mysql::server::purge_conf_dir, | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -75,6 +75,27 @@ | |
end | ||
end | ||
|
||
context 'mysql::server::config alternative conf dir' do | ||
let(:params){{ :config_dir => '/etc/mysql-alternative' }} | ||
it do | ||
should contain_file('/etc/mysql-alternative').with({ | ||
:ensure => :directory, | ||
:mode => '0755', | ||
}) | ||
end | ||
it do | ||
should contain_file('/etc/mysql-alternative/conf.d').with({ | ||
:ensure => :directory, | ||
:mode => '0755', | ||
}) | ||
end | ||
it do | ||
should contain_file('/etc/mysql-alternative/my.cnf').with_content( | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This file location is the value of |
||
%r{^!includedir /etc/mysql-alternative/conf.d/$} | ||
) | ||
end | ||
end | ||
|
||
context 'mysql::server::config' do | ||
it do | ||
should contain_file('/etc/mysql').with({ | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This patch should not be provided at all. It's in package.