mysql/client: create tripleo.cnf everytime
If TLS isn't enabled, Augeas won't create tripleo.cnf but Docker will create the file itself while mount binding it into the container. With podman, the files/dirs that don't exist aren't created (probably for the best), so let's create this empty file so podman can mount it anyway. Blueprint podman-support Co-Authored-By: Cédric Jeanneret <cjeanner@redhat.com> Change-Id: I28fa68f5a802ad60a2cac0dd2644804dd1f47e9e
This commit is contained in:
parent
cb3abe9548
commit
5a96b2ec0c
|
@ -101,10 +101,14 @@ class tripleo::profile::base::database::mysql::client (
|
|||
}
|
||||
}
|
||||
|
||||
file { $mysql_read_default_file:
|
||||
ensure => file,
|
||||
}
|
||||
augeas { 'tripleo-mysql-client-conf':
|
||||
incl => $mysql_read_default_file,
|
||||
lens => 'Puppet.lns',
|
||||
changes => $conf_changes,
|
||||
require => File[$mysql_read_default_file],
|
||||
}
|
||||
|
||||
# If a profile created a file resource for the parent directory,
|
||||
|
|
|
@ -30,6 +30,9 @@ describe 'tripleo::profile::base::database::mysql::client' do
|
|||
|
||||
it {
|
||||
is_expected.to contain_exec('directory-create-etc-my.cnf.d')
|
||||
is_expected.to contain_file('/etc/my.cnf.d/tripleo.cnf').with(
|
||||
:ensure => 'file',
|
||||
)
|
||||
is_expected.to contain_augeas('tripleo-mysql-client-conf').with(
|
||||
:incl => '/etc/my.cnf.d/tripleo.cnf',
|
||||
:changes => [
|
||||
|
|
Loading…
Reference in New Issue