Custom Function for mysql connection string

asked 2017-07-16 13:17:21 -0600

Hi all, I have a mysql module that I'm working with that has variables such as host, port, database name and certificate information. I want to create a custom function under module/lib/puppet/parser/functions that would enable me to use the function in other modules.

mysql::config has host = xx port =xxx database name = xxx cert = filename

How would I go about creating the function? I've looked up dozens of examples of functions but none of the ever seem to have as many variables as I do..

thanks

edit retag flag offensive close merge delete