-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdownload-sap-media.sh
executable file
·50 lines (34 loc) · 1.58 KB
/
download-sap-media.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
#!/bin/bash
cat << EOT
============
Disclaimer
============
SAP does not allow us to provide the SAP Software for installing SAP S/4HANA Foundation with you.
Hence you need to bring the installation binaries on your own.
If you have an SAP S-User and oassword with the permission to download SAP Software from their software marketplace,
this script downloads the SAP software for you to the right location. Please ask your SAP team to provide an S-User with
software download permission to you.
If you do not have an S-User and the software is stored centrally at your company, you can also upload the
software to the fileserver in this lab.
For this course we need the following Software:
- HANA 2 SPS 06
- S4HANA 2021 Foundation
- SWPM/SUM
- SAPCAR
Here are the current versions of the files you need to provide:
On server utility in directory /export/sap-software/HANA2SPS06:
EOT
## Parse current sap-dl.yml
ansible -e @sap-dl.yml -m debug -a "msg='{{ hdb2sps06 + sapcar}}'" localhost | egrep -v 'SUCCESS|msg|\]|\}'
echo ""
echo "On server utility in directory /export/sap-software/S4HANA.FQDN"
## Parse current sap-dl.yml
ansible -e @sap-dl.yml -m debug -a "msg='{{ s4fndn2021 + swpm + sapcar}}'" localhost | egrep -v 'SUCCESS|msg|\]|\}'
echo ""
echo "Press Ctrl-C to stop downloading with S-User and provide the software on your own"
echo "or enter your SAP credentials with download permissions"
echo ""
ansible-galaxy collection install -r ./collections/requirements.yml 2>&1 > /dev/null
ansible-playbook -v -i utility, \
-u devops \
download-sap-media.yml