I have some existing code that applies permissions to jenkins config.xml file. For the last year this has worked as advertised but as of today when I added to new stanzas to the code Puppet has been identifying that changes are needed when puppet is run manually on the QA servers shows that the changes have been applied, but when I look in the config file that should have been changed, the changes haven't been made.
I don't think the issue is the code as there are no errors and the code is just copied from previous lines and points to a new hiera entry.
The code is
<% [@jenkins_users_scmtag].flatten.each do|users| -%>hudson.scm.SCM.Tag:<%= users %> <% end -%><% [@jenkins_users_healthchecks].flatten.each do|users| -%>jenkins.metrics.api.Metrics.HealthCheck:<%= users %> <% end -%><% [@jenkins_users_metricsthreaddump].flatten.each do|users| -%>jenkins.metrics.api.Metrics.metrics_ThreadDump:<%= users %> <% end -%><% [@jenkins_users_metricsview].flatten.each do|users| -%>jenkins.metrics.api.Metrics.Metrics.metrics_view:<%= users %> <% end -%>
The response that puppet is giving shows the correct XML is being applied but in the XML code there are no entries.
hudson.scm.SCM.Tag:paul hudson.scm.SCM.Tag:craig hudson.scm.SCM.Tag:trish
+ jenkins.metrics.api.Metrics.HealthCheck:jane
+ jenkins.metrics.api.Metrics.HealthCheck:bob
+ jenkins.metrics.api.Metrics.metrics_ThreadDump:jane
+ jenkins.metrics.api.Metrics.metrics_ThreadDump:bob
+ jenkins.metrics.api.Metrics.metrics_view:jane
+ jenkins.metrics.api.Metrics.metrics_view:bob
When Puppet is run in debug and trace there are no indications there is anything wrong.
Our environment runs on Puppet 3.8.6 and Foreman.
↧