puppetlabs / puppetlabs-mysql

MySQL Puppet Module / Manifests + Types & Providers
Apache License 2.0
380 stars 792 forks source link

exec failure for puppet < 6.24 #1518

Closed trefzer closed 1 year ago

trefzer commented 1 year ago

Describe the Bug

for puppet < 6.24 this module fails with error: Error: Failed to apply catalog: Parameter command failed on Exec[wait_for_mysql_socket_to_open]: Command must be a String, got value of class Array (file: /etc/puppetlabs/code/environments/dev_test/modules/mysql/manifests/server/service.pp, line: 57)

Expected Behavior

not failing !

Steps to Reproduce

puppet below 6.24

Analysis

The following commits added exec parameters as an Array which is not supported before puppet 6.24 (release notes)

Solution:

Either revert the usage of arrays in exec or raise puppet version needed (client version !) in metadata.json

pmcmaw commented 1 year ago

Thank you for logging this issue @trefzer, we have resolved this issue and cut a release.