theforeman / puppet-puppet

Puppet module for Puppet client and server
GNU General Public License v3.0
88 stars 228 forks source link

Add the ability to modify metrics.conf with a jolokia metrics policy location file #903

Open nickgw opened 10 months ago

nickgw commented 10 months ago

To expose Jolokia metrics, metrics.conf expects a jolokia-access.xml file path, and a corresponding jolokia-access.xml file. Currently, metrics.conf has the boilerplate code commented out. This PR allows the contents of jolokia-access.xml to be passed as a parameter. If it's passed, write jolokia-access.xml in the default location and uncomment the line in metrics.conf.