Template Creation for PowerVC
In this section you define the templates to run this demo.
Test your configuration
To check proper connection to your VCenter create the following template:
- Go to
Resources
->Templates
- Click
Add
->Add Job Template
- Add the following parameters
- Name: tool - list diskimages
- Inventory: your demo inventory
- Project: your GitHub project
- Playbook: tools/powervc/power_list_diskimages.yml
- Credentials: OpenStack: PowerVC credentials
- Click
Save
- Click
Launch
If everything goes well you get a list of diskimages that are available in your environment.
There are some more playbooks like this in the tools directory of this repository to get information on the PowerVC environment. You can use these playbooks to figure out some of the variables that need to be configured in the inventory.
Set up the provisioning playbooks
Step 1
- Go to
Resources
->Templates
- Click
Add
->Add Job Template
- Add the following parameters
- Name: 01 - provision Servers
- Inventory: your demo inventory
- Project: your GitHub project
- Playbook: powervc/01-server-provisioning-power.yml
- Credentials OpenStack: PowerVC Credentials
- Click
Save
Step 2a
- Click
Add
->Add Job Template
- Add the following parameters
- Name: 02 - basic-os-setup (part1)
- Inventory: your demo inventory
- Project: your GitHub project
- Playbook: powervc/02-basic-os-setup-subscription.yml
- Credentials
- OpenStack: PowerVC Credentials
- Cloud: RHN Registration Credentials
- SSH: Root Machine Credentials
- Click
Save
Step 2b
- Click
Add
->Add Job Template
- Add the following parameters
- Name: 02 - basic-os-setup (part2)
- Inventory: your demo inventory
- Project: your GitHub project
- Playbook: powervc/02-basic-os-setup-storage.yml
- Credentials
- OpenStack: PowerVC Credentials
- Cloud: RHN Registration Credentials
- SSH: Root Machine Credentials
- Click
Save
Step 3 and 4
Repeat Step 2 with proper settings for the following playbooks in the powervc subdirectory:
- 03-A-sap-hana-prepare.yml
- 03-B-sap-hana-install.yml
- 03-03-CD-sap-hana-cluster.yml (also needs PowerVC Credentials for unsupported Openstack fencing)
- 04-A-sap-netweaver-prepare.yml
- 04-B-S4-deployment.yml
Combine these job templates in a workflow template:
- Click
Add
->Add Workflow Template
- Add the following parameters
- Name: 00 - End-2-End S/4 HANA deployment
- Inventory: your demo inventory
- Project: your GitHub project
- Variables: (adopt the variables to your needs)
This setup assumes a preconfigured DNS server with static names(see Prerequisites)
---
## Server Configuration (used in Step1 and Step 2)
## Hostgroup is taken from inventory os_availability_zones
server_def:
- name: sapdemo21
ip: 10.10.10.21
flavor: medium
group: hanas
deploy_target: "Name of Hostgroup"
- name: sapdemo22
ip: 10.10.10.22
flavor: medium
group: hanas
deploy_target: "Name of Hostgroup"
- name: sapdemo23
ip: 10.10.10.23
flavor: medium
group: s4hanas
deploy_target: "Name of Hostgroup"
# sap_general_preconfigure (used in Step 3A and 4A)
#-------------------------
sap_domain: your.sap.domain.here
sap_general_preconfigure_modify_etc_hosts: true
sap_general_preconfigure_update: true
sap_general_preconfigure_fail_if_reboot_required: false
sap_general_preconfigure_reboot_ok: true
# sap_hana_preconfigure(used in step 3A )
#----------------------
sap_hana_preconfigure_update: true
sap_hana_preconfigure_fail_if_reboot_required: false
sap_hana_preconfigure_reboot_ok: true
# sap_netweaver_preconfigure (used in step 4A)
#---------------------------
# No definition needed
# Path to SAP Software on NFS fileshare (used in step 3B und 4B)
#----------------------------------
# download new HANA version, or S4version -- just put it on the fileshare in a directory and change here
# The directory name should be a part of the Product ID
sap_hana_version: HANA2SPS06
sap_swpm_product: S4HANA2021.FNDN
# sap_hana_install (used in 3B and particular in 3CD and 4B)
#------------------
sap_hana_install_software_directory: "/"
sap_hana_install_sapcar_filename: SAPCAR
sap_hana_install_software_extract_directory: "/home/sapinst"
sap_hana_install_master_password: "R3dh4t$123"
sap_hana_sid: "RHE"
sap_hana_instance_number: "00"
# sap_install.sap_ha_* (4roles in step 03-CD)
#---------------------
### Cluster Definition
sap_ha_install_pacemaker_cluster_name: cluster1
sap_hana_hacluster_password: 'my_hacluster'
sap_hana_cluster_nodes:
- node_name: rhd-hana1
node_ip: ""
node_role: primary
hana_site: DC01
- node_name: rhd-hana2
node_ip: ""
node_role: secondary
hana_site: DC02
sap_ha_set_hana_vip1: 1.2.3.4 ## Change to Virtual IP of cluster (needs to be in hosts or DNS)
sap_pacemaker_stonith_devices:
- name: "fence_for_openstack"
agent: "fence_openstack"
parameters: >
<to be defined>
# sap_swpm (used in step 4B)
#----------
# This currently does not work in all setups (see github issues)
sap_swpm_update_etchosts: false
# sap_swpm
#----------
# Product ID for New Installation
sap_swpm_product_catalog_id: NW_ABAP_OneHost:.HDB.ABAP
# Software
sap_swpm_software_path: "/"
sap_swpm_sapcar_path: ""
sap_swpm_swpm_path: ""
# NW Passwords
sap_swpm_master_password: "R3dh4t$123"
sap_swpm_ddic_000_password: ""
# HDB Passwords
sap_swpm_db_system_password: ""
sap_swpm_db_systemdb_password: ""
sap_swpm_db_schema_abap_password: ""
sap_swpm_db_sidadm_password: ""
# Default Value
#sap_swpm_db_schema_abap: "SAPHANADB"
# NW Instance Parameters
sap_swpm_sid: S4H
sap_swpm_pas_instance_nr: "01"
sap_swpm_ascs_instance_nr: "02"
sap_swpm_ascs_instance_hostname: ""
sap_swpm_fqdn: ""
# HDB Instance Parameters
# For dual host installation, change the db_host to appropriate value
sap_swpm_db_host: "hanavip"
sap_swpm_db_sid: ""
sap_swpm_db_instance_nr: ""
-
Click
Save
-
Click
Visualizer
and create the following workflow:- on "Start" click
+
, selectOn Success
, clickNext
, select job Template01 provision servers
and clickSave
- on
01 provisiom servers
and select Inventory syncSAP Server
on success - on
SAP Server
select job template02 basic OS Setup
on success - on
02 basic OS Setup
select job template03-A Hana preparation
on success - on
02 basic OS Setup
select job template04-A Netweaver preparation
on success - on
03-A Hana preparation
select job template03-B HANA install
on success - on
03-B HANA install
select to template03-CD- HANA HSR and Cluster
on success - on
03-CD- HANA HSR and Cluster
select04 - SAP S/4HANA install
on success - on
04-A Netweaver Preparation
, click the chain symbol and connect it to the existing04 - SAP S/4HANA install
tile - Click
Save
- on "Start" click
Your workflow should look like this: