sap_ha_pacemaker_cluster: Fix haproxy and minor lint issues #898
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
ansible-lint
sap_ha_install_anydb_ibmdb2
that includes tabs in the code on purposehaproxy config fix (GCP and IBM Cloud VS)
RHEL: in haproxy 2.4.17 the default systemd service unit was enhanced with an auto-include of the default config file directory using the CFGDIR variable. When creating the unit template for the resources, our role replaced the Environment definition and the CFGDIR variable definition was removed, but not the newly added
-f $CFGDIR
in the various Exec lines. This broke the start of the unit and resources.The solution in this PR changes the replaced patterns in the config to make sure the CFGDIR pieces are removed on all lines.
Original excerpt of the unit file section:
New config excerpt of the template copy:
The task now replaces the patterns in a loop with a human readable label.
Resulting output:
This is only applied to the newly created template, which is a copy of the original service unit. The original remains untouched as before.
-- only locally tested --