-
Notifications
You must be signed in to change notification settings - Fork 60
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
sap_ha_pacemaker_cluster: Allow to append manual cluster config to the generated config #922
base: dev
Are you sure you want to change the base?
Conversation
…e generated config
@rob0d |
|
||
- _Type:_ `list` | ||
|
||
This role generally respects pre-defined ha_cluster* variables and tries to merge the configuration it generates with the content of the pre-defined variables. <br> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@rob0d These sentences are bit on the nose, because it contains too many negatives as it tells me: "Hey, this role barely works"
It has to be reworked if PR is to be accepted.
This specific role has certain limits and will not be able to cover all custom cases. As @marcelmamula already mentioned, just appending the variables in this role is not good enough due to the vars having to follow the correct syntax. It is not safe to do this without quite some effort of syntax validation and such logic, to make sure that what will be fed into Please share more details of your particular use case, so we could assess if it would justify putting effort into this enhancement. Note: The variables section in the README is generated from |
Sorry, I probably should have explained this a bit more/better. The two typical non-default functions is to add are: Ethmonitor to monitor if the network interface has gone down (see) or checking the network connectivity using the ping agent (see). This is obviously just our usage case, other people may need other functionality. The Ethmonitor is a must if the cluster uses multiple NICs (e.g. a separate heartbeat interface as generally recommended). An example of how I'm using it is below. To test the current behaviour you can just remove the _append and it should run (and then fail during cluster creation) with the current code.
|
@marcelmamula @ja9fuchs
This is based on the discussion we had several months ago with @ja9fuchs.
This role generally respects pre-defined ha_cluster* variables and tries to merge the configuration it generates with the content of the pre-defined variables. It works really well, however, in some cases the order of resources is important.
The new variables allow to append a specific cluster configuration AFTER the configuration generated by this role.
I've added information to the README file which explains the behaviour. It's a non-breaking change as it just enhances the functionality without changing anything else.