hello all, I need to upgrade apache module (puppet...
# forge-modules
s
hello all, I need to upgrade apache module (puppetlabs-apache) from 8.6.0 to latest... However, I've noticed there is an issue with httpd.conf template starting from version 11.0.0 when template was converted from erb to epp. In erb template there was 3 empty line spaces from
LimitRequestsFields
until
User
field: https://github.com/puppetlabs/puppetlabs-apache/blob/v8.6.0/templates/httpd.conf.erb#L19-L40 however in epp version there is only 2: https://github.com/puppetlabs/puppetlabs-apache/blob/v11.0.0/templates/httpd.conf.epp#L17-L32 this however will cause a change in httpd.conf for removing that extra line and httpd restart 😕 This is not such a big of a deal in testing environments but I would need to apply this update to live environment also. Has anyone found a workaround for this by now?
s
Due to the way the test suite is written, it is not detecting such white space changes. It also take ages to run. I think that reworking the test suite to test the generated content of resources as a whole once rather than only checking part of it dozens of time would speed up tests and avoid such changes.
thankyou 1
You can workaround this by changing the files to match what puppet expects and so that it does not update the config / restart, but that will only work if you have a few nodes.
As far as I am concerned, I just make sure a new version break nothing, and then push to production and all servers eventual restart.
👍 2
s
tnx @smortex for the response... yeah, I understand that such things are a bit pain to test...
$conf_template
worked for me, I will use that custom template for now to push the change and wait for some moment when servers are rebooted or migrated to implement the change without custom template.