Ask Your Question
0

How do you set class parameter values to multidimensional arrays in PE?

asked 2015-09-08 08:57:04 -0500

b gravatar image

I have installed the puppetlabs-mysql module and would like to set override_options via the web interface.

I can set a single level array e.g.

["mysqld","client"]

however I can't add any further levels as it converts it to a string. How can I set the following values in puppet enterprise v2015.2.0?

mysqld:
  ssl-ca: /etc/ssl/bundle.crt
  ssl-cert: /etc/ssl/certificate.crt
  ssl-key: /etc/ssl/key.crt
  bind-address: 0.0.0.0
client:
  ssl-ca: /etc/ssl/bundle.crt
  ssl-cert: /etc/ssl/certificate.crt
  ssl-key: /etc/ssl/key.crt
edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
0

answered 2015-09-08 17:48:21 -0500

GregLarkin gravatar image

updated 2015-09-10 16:15:55 -0500

Check this page (https://docs.puppetlabs.com/pe/latest/consoleclassesgroups.html#setting-class-parameters) and see the call-out box with "Tips on specifying...". You can create hash values by enclosing the data with curly braces.

The example in the doc is pretty simple, but you can nest hashes as needed.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

Stats

Asked: 2015-09-08 08:57:04 -0500

Seen: 172 times

Last updated: Sep 10 '15