Fix mysql client config generation with containerized environment
authorDamien Ciabrini <dciabrin@redhat.com>
Mon, 3 Jul 2017 09:15:56 +0000 (05:15 -0400)
committerDamien Ciabrini <dciabrin@redhat.com>
Wed, 12 Jul 2017 08:08:05 +0000 (04:08 -0400)
commit764157de6f222e0e5698cdcf7b22926b7997fcb8
tree322f3e0397fced2eaa989d01a20193f6252fc0c9
parent096e913306584baaf0fd2e7bb4951ecb23f370ac
Fix mysql client config generation with containerized environment

When the tripleo::profile::base::database::mysql::client profile is
included by other openstack services, the file /etc/my.cnf.d/tripleo.cnf
is not generated because docker-puppet is configured to disregard the
exec tags.

Make the profile use either File or Exec resource based on how it's
being called, to make it work for both containerized and non-containerized
use cases.

Change-Id: I103baa02373f6713cc300ac039a6f173ff0bbf1c
manifests/profile/base/database/mysql/client.pp