Browse Source

Merge "mysql/client: create tripleo.cnf everytime" into stable/queens

tags/8.5.1
Zuul 1 month ago
parent
commit
68a3c420f1

+ 4
- 0
manifests/profile/base/database/mysql/client.pp View File

@@ -101,10 +101,14 @@ class tripleo::profile::base::database::mysql::client (
101 101
       }
102 102
     }
103 103
 
104
+    file { $mysql_read_default_file:
105
+      ensure => file,
106
+    }
104 107
     augeas { 'tripleo-mysql-client-conf':
105 108
       incl    => $mysql_read_default_file,
106 109
       lens    => 'Puppet.lns',
107 110
       changes => $conf_changes,
111
+      require => File[$mysql_read_default_file],
108 112
     }
109 113
 
110 114
     # If a profile created a file resource for the parent directory,

+ 3
- 0
spec/classes/tripleo_profile_base_database_mysql_client_spec.rb View File

@@ -30,6 +30,9 @@ describe 'tripleo::profile::base::database::mysql::client' do
30 30
 
31 31
       it {
32 32
         is_expected.to contain_exec('directory-create-etc-my.cnf.d')
33
+        is_expected.to contain_file('/etc/my.cnf.d/tripleo.cnf').with(
34
+          :ensure => 'file',
35
+        )
33 36
         is_expected.to contain_augeas('tripleo-mysql-client-conf').with(
34 37
           :incl    => '/etc/my.cnf.d/tripleo.cnf',
35 38
           :changes => [

Loading…
Cancel
Save