-
Notifications
You must be signed in to change notification settings - Fork 56
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
sap_swpm: New improved and simplified version #840
base: dev
Are you sure you want to change the base?
Conversation
Signed-off-by: Bernd Finger <[email protected]>
Signed-off-by: Bernd Finger <[email protected]>
Signed-off-by: Bernd Finger <[email protected]>
Signed-off-by: Bernd Finger <[email protected]>
Signed-off-by: Bernd Finger <[email protected]>
Signed-off-by: Bernd Finger <[email protected]>
Signed-off-by: Bernd Finger <[email protected]>
Signed-off-by: Bernd Finger <[email protected]>
Signed-off-by: Bernd Finger <[email protected]>
Signed-off-by: Bernd Finger <[email protected]>
Signed-off-by: Bernd Finger <[email protected]>
Signed-off-by: Bernd Finger <[email protected]>
Note: I successfully tested with ap4s scenarios |
Signed-off-by: Bernd Finger <[email protected]>
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.
Some small changes needed, while I continue testing.
Signed-off-by: Bernd Finger <[email protected]>
Signed-off-by: Bernd Finger <[email protected]>
... for better readability Signed-off-by: Bernd Finger <[email protected]>
Signed-off-by: Bernd Finger <[email protected]>
Signed-off-by: Bernd Finger <[email protected]>
... in defaults/main.yml Signed-off-by: Bernd Finger <[email protected]>
Signed-off-by: Bernd Finger <[email protected]>
Due to the use of global variables in sap_swpm, there appears to be no simple way of giving priority to top level vars over the same variables defined in sap_swpm_templates_install_dictionary. We can also assume that if using sap_swpm_templates_install_dictionary, this is done on purpose and with the intention to use its members with priority over top level variables. Signed-off-by: Bernd Finger <[email protected]>
Successfully tested with AP4S scenarios:
on AWS, using the dictionary Note: Variables defined inside the dictionary
If the variable The role is using |
Note: This is WIP. Signed-off-by: Bernd Finger <[email protected]>
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.
Additional changes that would be good to include:
- remove /etc/hosts steps and replace them with /etc/hosts role instead.
- Correct non-standard variable inputs like
sap_swpm_use_password_file == "y"
I found them while updating Readme.
Signed-off-by: Bernd Finger <[email protected]>
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.
LGTM
Signed-off-by: Bernd Finger <[email protected]>
38e377f
to
54c4ed7
Compare
This file should only exist on the collection level. Signed-off-by: Bernd Finger <[email protected]>
roles/sap_swpm/tasks/pre_install/assert_hostname_resolution_for_ha.yml
Outdated
Show resolved
Hide resolved
roles/sap_swpm/tasks/pre_install/assert_hostname_resolution_for_ha.yml
Outdated
Show resolved
Hide resolved
roles/sap_swpm/tasks/pre_install/assert_hostname_resolution_for_ha.yml
Outdated
Show resolved
Hide resolved
Signed-off-by: Bernd Finger <[email protected]>
Signed-off-by: Bernd Finger <[email protected]>
... and for the presence of sap_swpm_virtual_hostname in case of HA installation types Signed-off-by: Bernd Finger <[email protected]>
Signed-off-by: Bernd Finger <[email protected]>
Signed-off-by: Bernd Finger <[email protected]>
Also modify the fail_msg to not resolve sap_swpm_virtual_hostname Signed-off-by: Bernd Finger <[email protected]>
a4e582f
to
c1ec503
Compare
Signed-off-by: Bernd Finger <[email protected]>
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.
LGTM, Thank you @berndfinger for patiently testing and fixing all issues with me to hopefully resolve all issues before merging.
Successfully tested an ASCS/ERS installation. 👍 |
I am providing an improved and simplified version of the role sap_swpm, with the following features:
inifile.params
using both methods (inifile sections and direct parameter setttings), similar to combining thedefault
andadvanced
modes of the previous version. In the first step (but only if the role parametersap_swpm_inifile_sections_list
is defined), the new sap_swpm version is creating the fileinifile.params
from the inifile sections in the template. Then, if the parametersap_swpm_inifile_parameters_dict
is defined, existing variable definitions can be modified, or additional variables and their settings can be added at the end of the file. This provides maximum flexibility for creating the fileinifile.params
while not increasing the complexity of the logic.sap_swpm_inifile_custom_values_dictionary
(for setting role variables) inside the role, as it was required for the previous modesdefault_templates
andadvanced_templates
. The dictionary can still be used and maintained, by setting certain top level role parameters from dictionary members. Note: You cannot access low level dictionary members using a variable which has been defined in the same task. For defining mid-level variables of a dictionary, you have to use a separate task (e.g.set_fact
) before.inifile.params
parameter input file within a few seconds (using tagsap_swpm_generate_inifile
), without running pre_install steps. This file can then be transferred to managed nodes, to be re-used later, even by the rolesap_swpm
for running unattended installations.sap_hana_install
(parametersap_hana_install_configfile_directory
), the new version of sap_swpm is now checking for an existing installer input file on the managed node (parametersap_swpm_inifile_directory
), not on the control node.