sap_ha_pacemaker_cluster: Fix haproxy and minor lint issues#898
Merged
Conversation
marcelmamula
approved these changes
Nov 27, 2024
Contributor
marcelmamula
left a comment
There was a problem hiding this comment.
LGTM from change perspective, but I cannot test it myself.
sean-freeman
approved these changes
Nov 29, 2024
Member
sean-freeman
left a comment
There was a problem hiding this comment.
lgtm 👍 Verification test performed and HAProxy is responding to the Load Balancer Health Check Probe
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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_ibmdb2that 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 $CFGDIRin 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 --