Skip to content

Commit

Permalink
Merge branch 'experimental' into quickFix
Browse files Browse the repository at this point in the history
  • Loading branch information
Morgan Deegan committed Mar 21, 2024
2 parents 9990f8b + 1fff160 commit 93aa452
Show file tree
Hide file tree
Showing 86 changed files with 2,545 additions and 671 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/github-actions-ansible-lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ jobs:
uses: actions/checkout@v4

- name: Setup Python
uses: actions/setup-python@v4
uses: actions/setup-python@v5
with:
python-version: '3.x'

Expand Down
22 changes: 18 additions & 4 deletions Webapp/SDAF/Models/SystemModel.cs
Original file line number Diff line number Diff line change
Expand Up @@ -213,15 +213,29 @@ public bool IsValid()
public bool? use_simple_mount { get; set; } = false;

public string database_cluster_type { get; set; } = "AFA";

public string scs_cluster_type { get; set; } = "AFA";


public int? scs_cluster_disk_lun { get; set; } = 5;

public int? scs_cluster_disk_size { get; set; } = 128;

public string scs_cluster_disk_type { get; set; } = "Premium_ZRS";

public int? database_cluster_disk_lun { get; set; } = 8;

public int? database_cluster_disk_size { get; set; } = 128;

public string database_cluster_disk_type { get; set; } = "Premium_ZRS";

/*---------------------------------------------------------------------------8
| |
| PPG information |
| |
+------------------------------------4--------------------------------------*/


public string[] proximityplacementgroup_names { get; set; }

[PpgIdValidator]
Expand Down Expand Up @@ -285,7 +299,7 @@ public bool IsValid()
[IpAddressValidator]
public string[] database_vm_db_nic_ips { get; set; }


[IpAddressValidator]
public string[] database_vm_db_nic_secondary_ips { get; set; }

Expand Down Expand Up @@ -492,7 +506,7 @@ public bool IsValid()

public int? ANF_HANA_data_volume_throughput { get; set; }

public int? ANF_hana_data_volume_count { get; set; } = 1;
public int? ANF_HANA_data_volume_count { get; set; } = 1;

/*---------------------------------------------------------------------------8
| |
Expand All @@ -509,7 +523,7 @@ public bool IsValid()

public int? ANF_HANA_log_volume_throughput { get; set; }

public int? ANF_hana_log_volume_count { get; set; } = 1;
public int? ANF_HANA_log_volume_count { get; set; } = 1;

/*---------------------------------------------------------------------------8
| |
Expand Down
76 changes: 74 additions & 2 deletions Webapp/SDAF/ParameterDetails/SystemDetails.json
Original file line number Diff line number Diff line change
Expand Up @@ -1363,6 +1363,78 @@
"Overrules": "",
"Display": 2
},
{
"Name": "scs_cluster_disk_lun",
"Required": false,
"Description": "The LUN of the shared disk for the SAP Central Services cluster",
"Type": "field",
"Options": [],
"Overrules": "",
"Display": 3
},
{
"Name": "scs_cluster_disk_size",
"Required": false,
"Description": "The size of the shared disk for the SAP Central Services cluster",
"Type": "field",
"Options": [],
"Overrules": "",
"Display": 3
},
{
"Name": "scs_cluster_disk_type",
"Required": false,
"Description": "The storage_account_type of the shared disk for the SAP Central Services cluster",
"Type": "lookup",
"Options": [
{
"Text": "Premium LRS",
"Value": "Premium_LRS"
},
{
"Text": "Premium ZRS",
"Value": "Premium_ZRS"
}
],
"Overrules": "",
"Display": 3
},
{
"Name": "database_cluster_disk_lun",
"Required": false,
"Description": "The LUN of the shared disk for the Database cluster",
"Type": "field",
"Options": [],
"Overrules": "",
"Display": 3
},
{
"Name": "database_cluster_disk_size",
"Required": false,
"Description": "The size of the shared disk for the Database cluster",
"Type": "field",
"Options": [],
"Overrules": "",
"Display": 3
},
{
"Name": "database_cluster_disk_type",
"Required": false,
"Description": "The storage_account_type of the shared disk for the Database cluster",
"Type": "lookup",
"Options": [
{
"Text": "Premium LRS",
"Value": "Premium_LRS"
},
{
"Text": "Premium ZRS",
"Value": "Premium_ZRS"
}
],
"Overrules": "",
"Display": 3
},
{
"Name": "use_msi_for_clusters",
"Required": false,
Expand Down Expand Up @@ -1935,7 +2007,7 @@
"Display": 3
},
{
"Name": "ANF_hana_data_volume_count",
"Name": "ANF_HANA_data_volume_count",
"Required": false,
"Description": "Number of ANF Data Volumes",
"Type": "field",
Expand Down Expand Up @@ -1995,7 +2067,7 @@
"Display": 3
},
{
"Name": "ANF_hana_data_volume_count",
"Name": "ANF_HANA_data_volume_count",
"Required": false,
"Description": "Number of ANF Data Volumes",
"Type": "field",
Expand Down
22 changes: 20 additions & 2 deletions Webapp/SDAF/ParameterDetails/SystemTemplate.txt
Original file line number Diff line number Diff line change
Expand Up @@ -118,9 +118,27 @@ $$use_private_endpoint$$
# scs_cluster_type defines cluster quorum type; AFA (Azure Fencing Agent), ASD (Azure Shared Disk), ISCSI
$$scs_cluster_type$$

#scs_cluster_disk_lun defines the LUN number for the SAP Central Services cluster disk
$$scs_cluster_disk_lun$$

#scs_cluster_disk_size defines the size for the SAP Central Services cluster disk
$$scs_cluster_disk_size$$

#scs_cluster_disk_type defines the storage_account_type of the shared disk for the SAP Central Services cluster
$$scs_cluster_disk_type$$

# database_cluster_type defines cluster quorum type; AFA (Azure Fencing Agent), ASD (Azure Shared Disk), ISCSI
$$database_cluster_type$$

#database_cluster_disk_lun defines the LUN number for the database cluster disk
$$database_cluster_disk_lun$$

#database_cluster_disk_size defines the size for the database cluster disk
$$database_cluster_disk_size$$

#database_cluster_disk_type defines the storage_account_type of the shared disk for the Database cluster
$$database_cluster_disk_type$$

# use_msi_for_clusters if defined will use managed service identity for the Pacemaker cluster fencing
$$use_msi_for_clusters$$

Expand Down Expand Up @@ -525,7 +543,7 @@ $$ANF_HANA_data_use_existing_volume$$
$$ANF_HANA_data_volume_name$$

# Number of ANF Data Volumes
$$ANF_hana_data_volume_count$$
$$ANF_HANA_data_volume_count$$


#########################################################################################
Expand All @@ -550,7 +568,7 @@ $$ANF_HANA_log_use_existing$$
$$ANF_HANA_log_volume_name$$

# Number of ANF Data Volumes
$$ANF_hana_log_volume_count$$
$$ANF_HANA_log_volume_count$$

#########################################################################################
# #
Expand Down
4 changes: 2 additions & 2 deletions deploy/ansible/playbook_00_validate_parameters.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -363,13 +363,13 @@

- name: "0.0 Validations - Deployer disk space requirements"
ansible.builtin.set_fact:
deployer_free_temp_disk_space: 100
deployer_free_temp_disk_space: 40
when:
- deployer_free_temp_disk_space is not defined

- name: "0.0 Validations - Check for free disk space on deployer"
ansible.builtin.assert:
that: (mnt_free_diskspace | first | int / (1024 * 1024 * 1024) | int) > (deployer_free_temp_disk_space | int)
that: (mnt_free_diskspace | first | int / (1024 * 1024 * 1024) | int) > (40 )
fail_msg: "The deployer needs at least {{ deployer_free_temp_disk_space }} GB of free disk space in /mnt"
when:
- mnt_free_diskspace | length > 0
Expand Down
1 change: 0 additions & 1 deletion deploy/ansible/playbook_03_bom_processing.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,6 @@
sapbits_sas_token: "{{ hostvars.localhost.sapbits_sas_token }}"
when: hostvars.localhost.sapbits_sas_token is defined


- name: 3.3-bom-processing role for Linux
become: true
when: ansible_os_family != "Windows"
Expand Down
4 changes: 4 additions & 0 deletions deploy/ansible/playbook_04_00_00_db_install.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -402,6 +402,10 @@
tags:
- always

- name: "Configure accounts for oracle"
ansible.builtin.include_role:
name: roles-os/1.11-accounts

- name: "Database Installation Playbook: - Check for file system mounts"
ansible.builtin.include_role:
name: roles-sap-os/2.6-sap-mounts
Expand Down
38 changes: 37 additions & 1 deletion deploy/ansible/playbook_04_00_01_db_ha.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -304,6 +304,42 @@
suffix: "_DC_ACTION_2"
tier: 'oracle'

- hosts: "{{ sap_sid | upper }}_DB[1]"
name: DB Dataguard setup on secondary - Oracle
remote_user: "root"
gather_facts: true
vars_files:
- vars/ansible-input-api.yaml # API Input template with defaults

tasks:

- name: "Oracle Data Guard Setup on Secondary"
when:
- db_high_availability
- platform in ['ORACLE', 'ORACLE-ASM']
become: true
block:
- name: Setting the DB facts
ansible.builtin.set_fact:
tier: ora # Actions for Oracle DB Servers
action: 3
main_password: "{{ hostvars.localhost.sap_password }}"
tags:
- always

- name: Oracle Data guard
ansible.builtin.include_role:
name: roles-db/4.1.3-ora-dg
tags:
- 4.1.3-ora-dg

- name: "Observer Playbook: - Run post installation routines"
ansible.builtin.include_role:
name: roles-sap/7.0.0-post-install
vars:
suffix: "_DC_ACTION_2"
tier: 'oracle'

# /*----------------------------------------------------------------------------8
# | |
# | PLAY FOR Observer Node setup |
Expand Down Expand Up @@ -335,7 +371,7 @@
- name: "Observer Playbook: Setting the DB facts"
ansible.builtin.set_fact:
node_tier: observer
action: 3
action: 4
main_password: "{{ hostvars.localhost.sap_password }}"
tags:
- always
Expand Down
Loading

0 comments on commit 93aa452

Please sign in to comment.