Skip to content

Commit 3ca2865

Browse files
author
Kimmo Forss
committed
Add new tasks
1 parent b0145e5 commit 3ca2865

File tree

1 file changed

+223
-11
lines changed

1 file changed

+223
-11
lines changed

articles/sap/automation/run-ansible.md

Lines changed: 223 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -220,6 +220,9 @@ ansible-playbook "${playbook_options[@]}" ~/Azure_SAP_Automated_Deployment/sap-a
220220

221221
The operating system configuration playbook is used to configure the operating system of the SAP virtual machines. The playbook performs the following tasks.
222222

223+
You can either run the playbook using the DevOps Pipeline 'Configuration and SAP installation' choosing 'Core Operating System Configuration', or the configuration menu script 'configuration_menu.sh' or directly from the command line.
224+
225+
223226
# [Linux](#tab/linux)
224227

225228
The following tasks are executed on Linux virtual machines:
@@ -236,9 +239,6 @@ The following tasks are executed on Linux virtual machines:
236239
- Configures the services required
237240

238241

239-
You can either run the playbook using the DevOps Pipeline 'Configuration and SAP installation' choosing 'Core Operating System Configuration', or the configuration menu scipt 'configuration_menu.sh' or directly from the command line.
240-
241-
242242
```bash
243243

244244
cd ${HOME}/Azure_SAP_Automated_Deployment/WORKSPACES/SYSTEM/LAB-SECE-SAP04-L00/
@@ -279,10 +279,6 @@ ansible-playbook "${playbook_options[@]}" ~/Azure_SAP_Automated_Deployment/sap-a
279279
- Configures Windows Firewall
280280
- Joins the virtual machine to the specified domain
281281

282-
283-
You can either run the playbook using the DevOps Pipeline 'Configuration and SAP installation' choosing 'Core Operating System Configuration', or the configuration menu scipt 'configuration_menu.sh' or directly from the command line.
284-
285-
286282
```bash
287283

288284
cd ${HOME}/Azure_SAP_Automated_Deployment/WORKSPACES/SYSTEM/LAB-SECE-SAP04-L00/
@@ -331,7 +327,8 @@ The following tasks are executed on Linux virtual machines:
331327
- Configures the SAP-specific services
332328
- Implements configurations defined in the relevant SAP Notes
333329

334-
You can either run the playbook using the DevOps Pipeline 'Configuration and SAP installation' choosing 'SAP Operating System Configuration', or the configuration menu scipt 'configuration_menu.sh' or directly from the command line.
330+
You can either run the playbook using the DevOps Pipeline 'Configuration and SAP installation' choosing 'SAP Operating System Configuration', or the configuration menu script 'configuration_menu.sh' or directly from the command line.
331+
335332

336333

337334
```bash
@@ -363,8 +360,6 @@ ansible-playbook "${playbook_options[@]}" ~/Azure_SAP_Automated_Deployment/sap-a
363360
- Adds local groups and permissions
364361
- Connects to the Windows file shares
365362

366-
You can either run the playbook using the DevOps Pipeline 'Configuration and SAP installation' choosing 'SAP Operating System Configuration', or the configuration menu scipt 'configuration_menu.sh' or directly from the command line.
367-
368363

369364
```bash
370365

@@ -392,7 +387,7 @@ playbook_options=(
392387
# Run the playbook to retrieve the ssh key from the Azure key vault
393388
ansible-playbook "${playbook_options[@]}" ~/Azure_SAP_Automated_Deployment/sap-automation/deploy/ansible/pb_get-sshkey.yaml
394389

395-
# Run the playbook to perform the Operating System configuration
390+
# Run the playbook to perform the SAP Specific Operating System configuration
396391
ansible-playbook "${playbook_options[@]}" ~/Azure_SAP_Automated_Deployment/sap-automation/deploy/ansible/playbook_02_os_sap_specific_config.yaml
397392

398393
```
@@ -403,16 +398,233 @@ ansible-playbook "${playbook_options[@]}" ~/Azure_SAP_Automated_Deployment/sap-a
403398

404399
This playbook downloads the installation media from the control plane to the installation media source. The installation media can be shared out from the central services instance or from Azure Files or Azure NetApp Files.
405400

401+
You can either run the playbook using the DevOps Pipeline 'Configuration and SAP installation' choosing 'SAP Operating System Configuration', or the configuration menu script 'configuration_menu.sh' or directly from the command line.
402+
403+
406404
# [Linux](#tab/linux)
407405

408406
The following tasks are executed on the central services instance virtual machine:
409407

410408
- Download the software from the storage account and make it available for the other virtual machines.
411409

410+
```bash
411+
412+
cd ${HOME}/Azure_SAP_Automated_Deployment/WORKSPACES/SYSTEM/LAB-SECE-SAP04-L00/
413+
414+
export sap_sid=L00
415+
export ANSIBLE_PRIVATE_KEY_FILE=sshkey
416+
417+
playbook_options=(
418+
--inventory-file="${sap_sid}_hosts.yaml"
419+
--private-key=${ANSIBLE_PRIVATE_KEY_FILE}
420+
--extra-vars="_workspace_directory=`pwd`"
421+
--extra-vars ansible_ssh_pass='{{ lookup("env", "ANSIBLE_PASSWORD") }}'
422+
--extra-vars="@sap-parameters.yaml"
423+
"${@}"
424+
)
425+
426+
# Run the playbook to retrieve the ssh key from the Azure key vault
427+
ansible-playbook "${playbook_options[@]}" ~/Azure_SAP_Automated_Deployment/sap-automation/deploy/ansible/pb_get-sshkey.yaml
428+
429+
# Run the playbook to download the software from the SAP Library
430+
ansible-playbook "${playbook_options[@]}" ~/Azure_SAP_Automated_Deployment/sap-automation/deploy/ansible/playbook_03_bom_processing.yaml
431+
432+
```
433+
434+
412435
# [Windows](#tab/windows)
413436

414437
The following tasks are executed on the central services instance virtual machine:
415438

416439
- Download the software from the storage account and make it available for the other virtual machines.
417440

441+
```bash
442+
443+
cd ${HOME}/Azure_SAP_Automated_Deployment/WORKSPACES/SYSTEM/LAB-SECE-SAP04-L00/
444+
445+
export sap_sid=L00
446+
export workload_vault_name="LABSECESAP04user###"
447+
export ANSIBLE_PRIVATE_KEY_FILE=sshkey
448+
prefix="LAB-SECE-SAP04"
449+
450+
password_secret_name=$prefix-sid-password
451+
452+
password_secret=$(az keyvault secret show --vault-name ${workload_vault_name} --name ${password_secret_name} --query value --output table)
453+
export ANSIBLE_PASSWORD=$password_secret
454+
455+
playbook_options=(
456+
--inventory-file="${sap_sid}_hosts.yaml"
457+
--private-key=${ANSIBLE_PRIVATE_KEY_FILE}
458+
--extra-vars="_workspace_directory=`pwd`"
459+
--extra-vars ansible_ssh_pass='{{ lookup("env", "ANSIBLE_PASSWORD") }}'
460+
--extra-vars="@sap-parameters.yaml"
461+
"${@}"
462+
)
463+
464+
# Run the playbook to retrieve the ssh key from the Azure key vault
465+
ansible-playbook "${playbook_options[@]}" ~/Azure_SAP_Automated_Deployment/sap-automation/deploy/ansible/pb_get-sshkey.yaml
466+
467+
# Run the playbook to download the software from the SAP Library
468+
ansible-playbook "${playbook_options[@]}" ~/Azure_SAP_Automated_Deployment/sap-automation/deploy/ansible/playbook_03_bom_processing.yaml
469+
470+
```
471+
---
472+
473+
### SAP Central Services & High Availability Configuration
474+
475+
This playbook will perform the Central Services installation. For High availability scenarios, the playbook will also configure the Pacemaker cluster needed for SAP Central Services for high availability on Linux and Windows Failover Clustering for Windows.
476+
477+
You can either run the playbook using the DevOps Pipeline 'Configuration and SAP installation' choosing 'SCS Installation & High Availability Configuration', or the configuration menu script 'configuration_menu.sh' or directly from the command line.
478+
479+
480+
481+
# [Linux](#tab/linux)
482+
483+
The following tasks are executed by this play:
484+
485+
- Central Services Installation.
486+
- Pacemaker cluster configuration.
487+
488+
```bash
489+
490+
cd ${HOME}/Azure_SAP_Automated_Deployment/WORKSPACES/SYSTEM/LAB-SECE-SAP04-L00/
491+
492+
export sap_sid=L00
493+
export ANSIBLE_PRIVATE_KEY_FILE=sshkey
494+
495+
playbook_options=(
496+
--inventory-file="${sap_sid}_hosts.yaml"
497+
--private-key=${ANSIBLE_PRIVATE_KEY_FILE}
498+
--extra-vars="_workspace_directory=`pwd`"
499+
--extra-vars ansible_ssh_pass='{{ lookup("env", "ANSIBLE_PASSWORD") }}'
500+
--extra-vars="@sap-parameters.yaml"
501+
"${@}"
502+
)
503+
504+
# Run the playbook to retrieve the ssh key from the Azure key vault
505+
ansible-playbook "${playbook_options[@]}" ~/Azure_SAP_Automated_Deployment/sap-automation/deploy/ansible/pb_get-sshkey.yaml
506+
507+
# Run the playbook to download the software from the SAP Library
508+
ansible-playbook "${playbook_options[@]}" ~/Azure_SAP_Automated_Deployment/sap-automation/deploy/ansible/playbook_05_00_00_sap_scs_install.yaml
509+
510+
```
511+
512+
513+
# [Windows](#tab/windows)
514+
515+
The following tasks are executed by this play:
516+
517+
- Central Services Installation.
518+
- Windows failover cluster configuration.
519+
520+
```bash
521+
522+
cd ${HOME}/Azure_SAP_Automated_Deployment/WORKSPACES/SYSTEM/LAB-SECE-SAP04-L00/
523+
524+
export sap_sid=L00
525+
export workload_vault_name="LABSECESAP04user###"
526+
export ANSIBLE_PRIVATE_KEY_FILE=sshkey
527+
prefix="LAB-SECE-SAP04"
528+
529+
password_secret_name=$prefix-sid-password
530+
531+
password_secret=$(az keyvault secret show --vault-name ${workload_vault_name} --name ${password_secret_name} --query value --output table)
532+
export ANSIBLE_PASSWORD=$password_secret
533+
534+
playbook_options=(
535+
--inventory-file="${sap_sid}_hosts.yaml"
536+
--private-key=${ANSIBLE_PRIVATE_KEY_FILE}
537+
--extra-vars="_workspace_directory=`pwd`"
538+
--extra-vars ansible_ssh_pass='{{ lookup("env", "ANSIBLE_PASSWORD") }}'
539+
--extra-vars="@sap-parameters.yaml"
540+
"${@}"
541+
)
542+
543+
# Run the playbook to retrieve the ssh key from the Azure key vault
544+
ansible-playbook "${playbook_options[@]}" ~/Azure_SAP_Automated_Deployment/sap-automation/deploy/ansible/pb_get-sshkey.yaml
545+
546+
# Run the playbook to download the software from the SAP Library
547+
ansible-playbook "${playbook_options[@]}" ~/Azure_SAP_Automated_Deployment/sap-automation/deploy/ansible/playbook_05_00_00_sap_scs_install.yaml
548+
549+
```
550+
551+
---
552+
553+
### Database Installation
554+
555+
This playbook will perform the Database server installation.
556+
557+
You can either run the playbook using the DevOps Pipeline 'Configuration and SAP installation' choosing 'Database Installation', or the configuration menu script 'configuration_menu.sh' or directly from the command line.
558+
559+
560+
561+
# [Linux](#tab/linux)
562+
563+
The following tasks are executed by this play:
564+
565+
- Database instance installation.
566+
567+
```bash
568+
569+
cd ${HOME}/Azure_SAP_Automated_Deployment/WORKSPACES/SYSTEM/LAB-SECE-SAP04-L00/
570+
571+
export sap_sid=L00
572+
export ANSIBLE_PRIVATE_KEY_FILE=sshkey
573+
574+
playbook_options=(
575+
--inventory-file="${sap_sid}_hosts.yaml"
576+
--private-key=${ANSIBLE_PRIVATE_KEY_FILE}
577+
--extra-vars="_workspace_directory=`pwd`"
578+
--extra-vars ansible_ssh_pass='{{ lookup("env", "ANSIBLE_PASSWORD") }}'
579+
--extra-vars="@sap-parameters.yaml"
580+
"${@}"
581+
)
582+
583+
# Run the playbook to retrieve the ssh key from the Azure key vault
584+
ansible-playbook "${playbook_options[@]}" ~/Azure_SAP_Automated_Deployment/sap-automation/deploy/ansible/pb_get-sshkey.yaml
585+
586+
# Run the playbook to download the software from the SAP Library
587+
ansible-playbook "${playbook_options[@]}" ~/Azure_SAP_Automated_Deployment/sap-automation/deploy/ansible/playbook_04_00_00_db_install.yaml
588+
589+
```
590+
591+
592+
# [Windows](#tab/windows)
593+
594+
The following tasks are executed by this play:
595+
596+
- Database instance installation.
597+
598+
```bash
599+
600+
cd ${HOME}/Azure_SAP_Automated_Deployment/WORKSPACES/SYSTEM/LAB-SECE-SAP04-L00/
601+
602+
export sap_sid=L00
603+
export workload_vault_name="LABSECESAP04user###"
604+
export ANSIBLE_PRIVATE_KEY_FILE=sshkey
605+
prefix="LAB-SECE-SAP04"
606+
607+
password_secret_name=$prefix-sid-password
608+
609+
password_secret=$(az keyvault secret show --vault-name ${workload_vault_name} --name ${password_secret_name} --query value --output table)
610+
export ANSIBLE_PASSWORD=$password_secret
611+
612+
playbook_options=(
613+
--inventory-file="${sap_sid}_hosts.yaml"
614+
--private-key=${ANSIBLE_PRIVATE_KEY_FILE}
615+
--extra-vars="_workspace_directory=`pwd`"
616+
--extra-vars ansible_ssh_pass='{{ lookup("env", "ANSIBLE_PASSWORD") }}'
617+
--extra-vars="@sap-parameters.yaml"
618+
"${@}"
619+
)
620+
621+
# Run the playbook to retrieve the ssh key from the Azure key vault
622+
ansible-playbook "${playbook_options[@]}" ~/Azure_SAP_Automated_Deployment/sap-automation/deploy/ansible/pb_get-sshkey.yaml
623+
624+
# Run the playbook to download the software from the SAP Library
625+
ansible-playbook "${playbook_options[@]}" ~/Azure_SAP_Automated_Deployment/sap-automation/deploy/ansible/playbook_04_00_00_db_install.yaml
626+
627+
```
628+
629+
418630
---

0 commit comments

Comments
 (0)