Skip to content
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

Bring in Experimental fixes #643

Merged
merged 73 commits into from
Oct 7, 2024
Merged

Conversation

KimForss
Copy link
Collaborator

@KimForss KimForss commented Oct 7, 2024

This pull request introduces several enhancements and bug fixes across multiple files, focusing on validation improvements, new configuration options, and updates to Ansible playbooks.

Validation Improvements:

New Configuration Options:

  • Webapp/SDAF/Models/LandscapeModel.cs and Webapp/SDAF/Models/SystemModel.cs: Added new configuration options shared_access_key_enabled and shared_access_key_enabled_nfs. [1] [2]
  • Webapp/SDAF/ParameterDetails/LandscapeDetails.json and Webapp/SDAF/ParameterDetails/SystemDetails.json: Updated JSON files to include the new configuration options. [1] [2]
  • Webapp/SDAF/ParameterDetails/LandscapeTemplate.txt and Webapp/SDAF/ParameterDetails/SystemTemplate.txt: Updated templates to reflect the new configuration options. [1] [2]

Ansible Playbook Updates:

  • deploy/ansible/playbook_02_os_sap_specific_config.yaml: Reordered tasks to improve the execution sequence. [1] [2]
  • deploy/ansible/playbook_04_00_00_db_install.yaml: Added condition for database_scale_out in the database installation playbook. [1] [2]
  • deploy/ansible/roles-db/4.0.0-hdb-install/tasks/main.yaml and deploy/ansible/roles-db/4.0.3-hdb-install-scaleout/tasks/main.yaml: Simplified password handling by removing the master password option. [1] [2]
  • deploy/ansible/roles-db/4.0.0-hdb-install/templates/HANA_2_00_install.rsp and deploy/ansible/roles-db/4.0.3-hdb-install-scaleout/templates/HANA_2_00_install_scaleout.rsp: Updated templates to align with the new password handling logic. [1] [2] [3] [4] [5] [6] [7] [8]

Miscellaneous Updates:

These changes collectively enhance the robustness, configurability, and maintainability of the codebase.## Problem

Solution

Tests

Notes

Kimmo Forss added 30 commits October 1, 2024 14:20
…OMPUTERNAME, ANYDB_SECONDARY_DNSNAME, and ANYDB_VMNAME
Install unar package on RHEL for extracting exe archives
…s to use "root" instead of "{{ sid_to_be_deployed.sid | lower }}adm"
Kimmo Forss and others added 23 commits October 3, 2024 19:58
…_tasks' instead of 'include_tasks' for clustering based on OS in VM
…_tasks' instead of 'include_tasks' for clustering based on OS in VM
…_tasks' instead of 'include_tasks' for starting HANA Database
…_tasks' instead of 'include_tasks' for starting HANA Database
@KimForss KimForss self-assigned this Oct 7, 2024
@KimForss KimForss requested a review from a team as a code owner October 7, 2024 07:45
Copy link
Member

@hdamecharla hdamecharla left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Approved #643

@hdamecharla hdamecharla merged commit e32b600 into Azure:experimental Oct 7, 2024
2 checks passed
@hdamecharla
Copy link
Member

Refactor Ansible playbooks and configurations

  • Update paths and permissions in ansible.cfg
  • Reorganize and reorder tasks in SAP OS and DB playbooks
  • Refactor password handling for SAP HANA installations
  • Adjust package management and repository configurations
  • Introduce or remove specific roles and tasks

SteffenBoThomsen pushed a commit to SteffenBoThomsen/sap-automation that referenced this pull request Nov 11, 2024
* Refactor hana_shared_afs_path output to conditionally include values based on var.database.scale_out

* Add the ability to control access key based access to storage accounts

* Web App SAS updates

* Refactor CustomValidators.cs to handle null values in IsValid method

* check string length

* Refactor CustomValidators.cs to handle null values in IsValid method

* Refactor playbook_04_00_00_db_install.yaml to handle null values in secondary_instance_name

* Refactor Azure DevOps project configuration

* Refactor site.js to handle additional storage and network options

* Refactor storage_accounts.tf to conditionally count private endpoint connections

* Refactor sap_namegenerator/output.tf to handle null values in ANYDB_COMPUTERNAME, ANYDB_SECONDARY_DNSNAME, and ANYDB_VMNAME

* Cluster validation logic

* Refactor 5.6 SCS/ERS validation playbook to improve efficiency and readability

* Refactor 5.6 SCS/ERS validation playbook to set sapcontrol path and improve efficiency

* remove the unar package

* Refactor 5.6 SCS/ERS validation playbook to set sapcontrol path and improve efficiency

* Refactor repository vars to remove epel repo for all Red Hat versions
Install unar package on RHEL for extracting exe archives

* Refactor 1.1-swap playbook to use dnf module for updating WALinuxAgent package

* allow_world_readable_tmpfiles for find

* Refactor become_user in DBLoad, PAS Install, and APP Install playbooks to use "root" instead of "{{ sid_to_be_deployed.sid | lower }}adm"

* add Environment variable to allow for silent installations

* Add the ability to set the shared access key access for the sap system storage accounts

* Add 'resource-agents-cloud' package for db2

* Refactor OS image configuration in sap_system/transform.tf

* Refactor HANA_2_00_install.rsp template to fix use_master_password formatting

* Refactor HANA_2_00_install.rsp template to fix password_copy formatting

* Refactor cluster stabilization check for RHEL 8.x and 9.x

* Refactor HANA_2_00_install.rsp template to omit password_copy when hana_use_master_password is 'n'

* Refactor HANA_2_00_install.rsp template to remove password_copy and fix formatting

* Refactor cluster stabilization check for RHEL 8.x and 9.x

* Refactor HANA_2_00_install.rsp template to fix password_copy formatting

* Refactor DB2 cluster tasks for RHEL 8.x and 9.x

* Refactor cluster stabilization check for RHEL 8.x and 9.x

* Refactor cluster stabilization check for RHEL 8.x and 9.x

* Refactor cluster stabilization check for RHEL 8.x and 9.x

* Refactor allow_world_readable_tmpfiles formatting in HANA installation role

* Update azuread provider version to >=3.0 in sap_deployer, sap_library, sap_landscape, sap_library, and sap_system providers.tf files

* Fix the spacing in the ansible role for the SAP 5.2 PAS install

* Refactor spacing in HANA installation role and cluster stabilization check for RHEL 8.x and 9.x

* Refactor password_copy logic in HANA installation role

* Refactor password_copy logic in HANA installation role

* Refactor password_copy logic in HANA installation role

* Refactor password_copy logic in HANA installation role

* Refactor password handling in HANA installation role

* Refactor password handling in HANA installation role

* Refactor password handling and hdbuserstore path in HANA installation role

* Refactor password handling and hdbuserstore path in HANA installation role

* Refactor password handling in HANA installation role

* Refactor ownership in PAS installation role

* Refactor PAS installation role to remove unnecessary debug message

* Refactor become_user in PAS installation role to use lowercase SID adm user

* Refactor become_user in PAS installation role to use root user

* Refactor HANA installation role to include required packages

* Refactor tfvar_variables.tf to include shared access key enabled variables

* Web App updates for shared access keys

* Add tier info for packages task

* Enable world-readable temporary files in ansible.cfg

* add the missing quotes

* Refactor SAP OS configuration playbook to include directory permissions task

* Refactor SAP OS configuration playbook to include directory permissions task

* Add 'resource-agents-sap-hana' to os-packages.yaml

* Refactor SAP OS configuration playbook to include directory permissions task

* Refactor playbook to use 'import_tasks' instead of 'include_tasks' for clustering based on OS in VM

* chore: update ansible.cfg log path to /var/tmp/ansible.log

* Refactor clustering tasks in HANADB Pacemaker playbook

* Refactor clustering tasks in HANADB Pacemaker playbook

* Refactor clustering tasks in HANADB Pacemaker playbook to use 'import_tasks' instead of 'include_tasks' for clustering based on OS in VM

* Refactor clustering tasks in HANADB Pacemaker playbook to use 'import_tasks' instead of 'include_tasks' for clustering based on OS in VM

* Refactor clustering tasks in HANADB Pacemaker playbook to use 'import_tasks' instead of 'include_tasks' for starting HANA Database

* Refactor clustering tasks in HANADB Pacemaker playbook to use 'import_tasks' instead of 'include_tasks' for starting HANA Database

* Remove the include tasks

* Linting

---------

Co-authored-by: Kimmo Forss <[email protected]>
Co-authored-by: hdamecharla <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants