diff options
author | Alex Schultz <aschultz@redhat.com> | 2017-04-06 13:03:59 -0600 |
---|---|---|
committer | Alex Schultz <aschultz@redhat.com> | 2017-04-06 13:03:59 -0600 |
commit | a22c6c72231a91e97276bdc8fdf77ddd14659e88 (patch) | |
tree | c34715e9ef65f066de52dc2a4aeab20c700e307d /manifests/profile/base/database/mysql | |
parent | bd89e21fe86d81b91ca4e963e8f47bcb7b92a208 (diff) |
Don't try and create the my.cnf.d dir everytime
The creation of /etc/my.cnf.d is not idempotent and is run anytime the
mysql client profile is included. This change adds an unless parameter
to ensure it is only run if not used.
Change-Id: I4a30eaccf72f5687dc22ba93c19136e55d36dcab
Closes-Bug: #1680570
Diffstat (limited to 'manifests/profile/base/database/mysql')
-rw-r--r-- | manifests/profile/base/database/mysql/client.pp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/manifests/profile/base/database/mysql/client.pp b/manifests/profile/base/database/mysql/client.pp index 22384a9..014ef35 100644 --- a/manifests/profile/base/database/mysql/client.pp +++ b/manifests/profile/base/database/mysql/client.pp @@ -82,6 +82,7 @@ class tripleo::profile::base::database::mysql::client ( # Create /etc/my.cnf.d/tripleo.cnf exec { 'directory-create-etc-my.cnf.d': command => 'mkdir -p /etc/my.cnf.d', + unless => 'test -d /etc/my.cnf.d', path => ['/usr/bin', '/usr/sbin', '/bin', '/sbin'], } -> augeas { 'tripleo-mysql-client-conf': |