Skip to content

Commit 4846cc0

Browse files
authored
Merge pull request #20 from sap-linuxlab/dev
0.7.0 release
2 parents 9f4b5e2 + e247af9 commit 4846cc0

File tree

179 files changed

+9868
-536
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

179 files changed

+9868
-536
lines changed

.github/workflows/terraform_ansible_software_availability.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,10 +24,10 @@ jobs:
2424
fail-fast: false
2525
max-parallel: 1
2626
matrix:
27-
terraform_module_ansible: [ansible_sap_ecc_hana_system_copy_hdb,ansible_sap_hana_install,ansible_sap_s4hana_install_maintplan,ansible_sap_s4hana_system_copy_hdb]
27+
terraform_module_ansible: [ansible_sap_bw4hana_install, ansible_sap_ecc_hana_system_copy_hdb, ansible_sap_ecc_ibmdb2_install, ansible_sap_ecc_oracledb_install, ansible_sap_ecc_sapase_install, ansible_sap_ecc_sapmaxdb_install, ansible_sap_hana_install, ansible_sap_nwas_abap_hana_install, ansible_sap_nwas_abap_ibmdb2_install, ansible_sap_nwas_abap_oracledb_install, ansible_sap_nwas_abap_sapase_install, ansible_sap_nwas_abap_sapmaxdb_install, ansible_sap_nwas_java_ibmdb2_install, ansible_sap_nwas_java_sapase_install, ansible_sap_s4hana_install, ansible_sap_s4hana_install_maintplan, ansible_sap_s4hana_system_copy_hdb]
2828
steps:
2929
- name: Checkout
30-
uses: actions/checkout@v3.0.2
30+
uses: actions/checkout@v3.1.0
3131
with:
3232
path: gh_repo
3333
- name: Ansible setup

.github/workflows/terraform_validate.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,13 +17,13 @@ jobs:
1717
fail-fast: false
1818
max-parallel: 10
1919
matrix:
20-
terraform_ver: [~1.0.0, ~1.1.0, ~1.2.0]
20+
terraform_ver: [~1.0.0, ~1.1.0, ~1.2.0, ~1.3.0]
2121
terraform_module_parent: [all, aws_ec2_instance, ibmcloud_vs, ibmcloud_powervs, ibmpowervc, msazure_vm]
2222
steps:
2323
- name: Checkout
24-
uses: actions/checkout@v2
24+
uses: actions/checkout@v3.1.0
2525
- name: Setup Terraform
26-
uses: hashicorp/setup-terraform@v1
26+
uses: hashicorp/setup-terraform@v2.0.2
2727
with:
2828
terraform_version: ${{ matrix.terraform_ver }}
2929
- name: Terraform Init
Lines changed: 105 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,105 @@
1+
---
2+
- name: Ansible Playbook execution for SAP BW/4HANA installation from source media
3+
hosts: all
4+
become: true
5+
6+
# Use include_role inside Task block, instead of using roles declaration or Task block with import_roles.
7+
# This ensures Ansible Roles, and the tasks within, will be parsed in sequence instead of parsing at Playbook initialisation
8+
tasks:
9+
10+
# Set facts based on the install dictionary and the default template selected
11+
- name: Set fact x86_64 softwarecenter_search_list_bw4hana_install
12+
set_fact:
13+
softwarecenter_search_list_bw4hana_install: "{{ sap_swpm_templates_install_dictionary[sap_swpm_templates_product_input]['softwarecenter_search_list_x86_64'] }}"
14+
when:
15+
- ansible_architecture == "x86_64"
16+
17+
# Set facts based on the install dictionary and the default template selected
18+
- name: Set fact ppc64le softwarecenter_search_list_bw4hana_install
19+
set_fact:
20+
softwarecenter_search_list_bw4hana_install: "{{ sap_swpm_templates_install_dictionary[sap_swpm_templates_product_input]['softwarecenter_search_list_ppc64le'] }}"
21+
when:
22+
- ansible_architecture == "ppc64le"
23+
24+
- name: Update etc hosts
25+
lineinfile:
26+
dest: /etc/hosts
27+
line: "{{ ansible_default_ipv4.address }}\t{{ ansible_hostname }}.{{ ansible_domain }}\t{{ ansible_hostname }}"
28+
state: present
29+
become: yes
30+
31+
- name: Install Python package manager pip3 to system Python
32+
ansible.builtin.package:
33+
name:
34+
- python3-pip
35+
state: present
36+
37+
- name: Install Python package manager lxml to system Python when ppc64le
38+
ansible.builtin.package:
39+
name:
40+
- python3-lxml
41+
- libxslt-devel
42+
- libxml2-devel
43+
state: present
44+
when:
45+
- ansible_architecture == "ppc64le"
46+
47+
- name: Install Python dependency wheel to system Python
48+
ansible.builtin.pip:
49+
name:
50+
- wheel
51+
# executable: pip3.6
52+
53+
- name: Install Python dependencies for Ansible Modules to system Python
54+
ansible.builtin.pip:
55+
name:
56+
- urllib3
57+
- requests
58+
- beautifulsoup4
59+
- lxml
60+
# executable: pip3.6
61+
62+
- name: Create directories if does not exist
63+
ansible.builtin.file:
64+
path: "{{ item }}"
65+
state: directory
66+
mode: '0755'
67+
with_items:
68+
- "{{ sap_install_media_detect_directory }}"
69+
- "{{ sap_hana_install_software_directory }}"
70+
71+
# Use task block to call Ansible Module
72+
- name: Execute Ansible Module with system Python to download installation media for SAP HANA and SAP NetWeaver for hosting SAP BW/4HANA
73+
community.sap_launchpad.software_center_download:
74+
suser_id: "{{ suser_id }}"
75+
suser_password: "{{ suser_password }}"
76+
softwarecenter_search_query: "{{ item }}"
77+
dest: "{{ sap_install_media_detect_directory }}"
78+
with_items: "{{ softwarecenter_search_list_bw4hana_install }}"
79+
# vars:
80+
# ansible_python_interpreter: python3.6
81+
82+
83+
- name: Execute Ansible Role sap_install_media_detect
84+
include_role:
85+
name: { role: community.sap_install.sap_install_media_detect }
86+
87+
- name: Execute Ansible Role sap_general_preconfigure
88+
include_role:
89+
name: { role: community.sap_install.sap_general_preconfigure }
90+
91+
- name: Execute Ansible Role sap_netweaver_preconfigure
92+
include_role:
93+
name: { role: community.sap_install.sap_netweaver_preconfigure }
94+
95+
- name: Execute Ansible Role sap_hana_preconfigure
96+
include_role:
97+
name: { role: community.sap_install.sap_hana_preconfigure }
98+
99+
- name: Execute Ansible Role sap_hana_install
100+
include_role:
101+
name: { role: community.sap_install.sap_hana_install }
102+
103+
- name: Execute Ansible Role sap_swpm with SAP BW/4HANA One Host installation from source media
104+
include_role:
105+
name: { role: community.sap_install.sap_swpm }
Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
---
2+
- name: Ansible Playbook dry-run for SAP BW/4HANA installation media
3+
hosts: all
4+
become: false
5+
6+
collections:
7+
- community.sap_launchpad
8+
9+
# Use include_role inside Task block, instead of using roles declaration or Task block with import_roles.
10+
# This ensures Ansible Roles, and the tasks within, will be parsed in sequence instead of parsing at Playbook initialisation
11+
tasks:
12+
13+
- name: Ensure packages are available for the Python used by Ansible on the localhost
14+
ansible.builtin.pip:
15+
name:
16+
- urllib3
17+
- requests
18+
- beautifulsoup4
19+
- lxml
20+
21+
# Use task block to call Ansible Module
22+
- name: Test x86_64 software availability - Execute Ansible Module with system Python to download installation media for SAP HANA and SAP NetWeaver for hosting SAP BW/4HANA
23+
community.sap_launchpad.software_center_download:
24+
suser_id: "{{ suser_id }}"
25+
suser_password: "{{ suser_password }}"
26+
softwarecenter_search_query: "{{ item }}"
27+
dest: "{{ playbook_dir }}"
28+
dry_run: True
29+
with_items:
30+
- "{{ sap_swpm_templates_install_dictionary[sap_swpm_templates_product_input]['softwarecenter_search_list_x86_64'] }}"
31+
when:
32+
- dry_run_test == "x86_64"
33+
# vars:
34+
# ansible_python_interpreter: python3.6
35+
36+
# Use task block to call Ansible Module
37+
- name: Test ppc64le software availability - Execute Ansible Module with system Python to download installation media for SAP HANA and SAP NetWeaver for hosting SAP BW/4HANA
38+
community.sap_launchpad.software_center_download:
39+
suser_id: "{{ suser_id }}"
40+
suser_password: "{{ suser_password }}"
41+
softwarecenter_search_query: "{{ item }}"
42+
dest: "{{ playbook_dir }}"
43+
dry_run: True
44+
with_items:
45+
- "{{ sap_swpm_templates_install_dictionary[sap_swpm_templates_product_input]['softwarecenter_search_list_ppc64le'] }}"
46+
when:
47+
- dry_run_test == "ppc64le"
48+
# vars:
49+
# ansible_python_interpreter: python3.6
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
2+
collections:
3+
4+
# Collections from Ansible Galaxy
5+
- name: community.general
6+
7+
# Collections from public repositories via HTTPS
8+
- name: https://github.com/sap-linuxlab/community.sap_launchpad.git
9+
type: git
10+
version: dev
11+
- name: https://github.com/sap-linuxlab/community.sap_operations.git
12+
type: git
13+
version: dev
14+
- name: https://github.com/sap-linuxlab/community.sap_install.git
15+
type: git
16+
version: dev
17+
18+
# Collections from private repositories via use SSH (embedded GitHub PAT does not work)
19+
# Used for customised/forked Ansible Collections
20+
# - name: git@github.domain.com:gheorg/namespace.sap_install.git
21+
# type: git
22+
# version: dev
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
2+
# Roles from Ansible Galaxy
3+
#- name: linux-system-roles.storage
4+
5+
# Roles from public repositories (e.g. upstream Linux System Roles)
6+
#- src: https://github.com/linux-system-roles/storage.git
7+
8+
# Roles from private repositories via GitHub PAT
9+
#- src: https://PAT_TOKEN@github.com/infrasap/repo.git

0 commit comments

Comments
 (0)