You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The `X01_hosts.yaml` file is the inventory file that Ansible uses for configuration of the SAP infrastructure. The `X01` label might differ for your deployments.
98
+
The `L00_hosts.yaml` file is the inventory file that Ansible uses for configuration of the SAP infrastructure. The `L00` label might differ for your deployments.
99
99
100
100
```yaml
101
-
X01_DB:
101
+
L00_DB:
102
102
hosts:
103
-
x01dxdb00l0538:
103
+
l00dxdb00l0538:
104
104
ansible_host : 10.110.96.12
105
105
ansible_user : azureadm
106
106
ansible_connection : ssh
107
107
connection_type : key
108
108
vars:
109
109
node_tier : hana
110
110
111
-
X01_SCS:
111
+
L00_SCS:
112
112
hosts:
113
-
x01scs00l538:
113
+
l00scs00l538:
114
114
ansible_host : 10.110.32.25
115
115
ansible_user : azureadm
116
116
ansible_connection : ssh
117
117
connection_type : key
118
118
vars:
119
119
node_tier : scs
120
120
121
-
X01_ERS:
121
+
L00_ERS:
122
122
hosts:
123
123
vars:
124
124
node_tier : ers
125
125
126
-
X01_PAS:
126
+
L00_PAS:
127
127
hosts:
128
-
x01app00l538:
128
+
l00app00l538:
129
129
ansible_host : 10.110.32.24
130
130
ansible_user : azureadm
131
131
ansible_connection : ssh
@@ -134,9 +134,9 @@ X01_PAS:
134
134
vars:
135
135
node_tier : pas
136
136
137
-
X01_APP:
137
+
L00_APP:
138
138
hosts:
139
-
x01app01l538:
139
+
l00app01l538:
140
140
ansible_host : 10.110.32.15
141
141
ansible_user : azureadm
142
142
ansible_connection : ssh
@@ -145,7 +145,7 @@ X01_APP:
145
145
vars:
146
146
node_tier : app
147
147
148
-
X01_WEB:
148
+
L00_WEB:
149
149
hosts:
150
150
vars:
151
151
node_tier : web
@@ -156,6 +156,17 @@ X01_WEB:
156
156
157
157
Make sure that you [download the SAP software](software.md) to your Azure environment before you run this step.
158
158
159
+
One way you can run the playbooks is to use the **Configuration** menu.
:::image type="content" source="./media/tutorial/configuration-menu.png" alt-text="Diagram that shows the SAP Deployment Automation Ansible configuration menu.":::
168
+
169
+
159
170
To run a playbook or multiple playbooks, use the following `ansible-playbook` command. This example runs the operating system configuration playbook.
Copy file name to clipboardExpand all lines: articles/sap/automation/tutorial.md
+56-3Lines changed: 56 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -923,25 +923,78 @@ Make sure you have the following files in the current folders: `sap-parameters.y
923
923
924
924
For a standalone SAP S/4HANA system, there are eight playbooks to run in sequence. One way you can run the playbooks is to use the **Configuration** menu.
925
925
926
-
:::image type="content" source="./media/deployment-framework/automation-diagram-full.png" alt-text="Diagram that shows the SAP Deployment Automation Framework environment.":::
:::image type="content" source="./media/tutorial/configuration-menu.png" alt-text="Diagram that shows the SAP Deployment Automation Ansible configuration menu.":::
933
+
934
+
935
935
Choose the playbooks to run.
936
936
937
937
### Playbook: Base Operating System configuration
938
938
939
939
This playbook performs the generic OS configuration setup on all the machines, which includes configuration of software repositories, packages, and services.
940
940
941
+
You can either run the playbook using the configuration menu or directly from the command line.
942
+
943
+
```bash
944
+
945
+
cd ${HOME}/Azure_SAP_Automated_Deployment/WORKSPACES/SYSTEM/LAB-SECE-SAP04-L00/
946
+
947
+
export sap_sid=L00
948
+
export ANSIBLE_PRIVATE_KEY_FILE=sshkey
949
+
950
+
playbook_options=(
951
+
--inventory-file="${sap_sid}_hosts.yaml"
952
+
--private-key=${ANSIBLE_PRIVATE_KEY_FILE}
953
+
--extra-vars="_workspace_directory=`pwd`"
954
+
--extra-vars="@sap-parameters.yaml"
955
+
"${@}"
956
+
)
957
+
958
+
# Run the playbook to retrieve the ssh key from the Azure key vault
### Playbook: SAP specific Operating System configuration
942
969
943
970
This playbook performs the SAP OS configuration setup on all the machines. The steps include creation of volume groups and file systems and configuration of software repositories, packages, and services.
944
971
972
+
You can either run the playbook using the configuration menu or directly from the command line.
973
+
974
+
```bash
975
+
976
+
cd ${HOME}/Azure_SAP_Automated_Deployment/WORKSPACES/SYSTEM/LAB-SECE-SAP04-L00/
977
+
978
+
export sap_sid=L00
979
+
export ANSIBLE_PRIVATE_KEY_FILE=sshkey
980
+
981
+
playbook_options=(
982
+
--inventory-file="${sap_sid}_hosts.yaml"
983
+
--private-key=${ANSIBLE_PRIVATE_KEY_FILE}
984
+
--extra-vars="_workspace_directory=`pwd`"
985
+
--extra-vars="@sap-parameters.yaml"
986
+
"${@}"
987
+
)
988
+
989
+
# Run the playbook to retrieve the ssh key from the Azure key vault
0 commit comments