-
Notifications
You must be signed in to change notification settings - Fork 0
/
sample_playbook_netbackup_sap_hana_config.yml
74 lines (65 loc) · 3.18 KB
/
sample_playbook_netbackup_sap_hana_config.yml
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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
- name: NBU Development -> Configure SAP HANA Protection on DB node
hosts: sap_clients
gather_facts: yes
vars:
# NetBackup Primary server
master_server: <netbackup_primary_server>
# NetBackup Primary server user name
nbu_username: <netbackup_primary_server_user_name>
# NetBackup Primary server password
nbu_password: <netbackup_primary_server_password>
# SAP HANA instance SYSTEM ID, for example: SSK
sap_nbu_instance: <SID>
# NetBackup Storage unit name
msdp_dp_stu: <netbackup_storage_unit>
# SAP HANA Virtual name optional
nbu_client_vip: <sap_hana_primary_host_name>
# SAP HANA node names (Master and worker nodes)
# These names should be NetBackup Client names from bp.conf
nbu_clients:
- client: <sap_hana_host+nbu_client-1>
- client: <sap_hana_host+nbu_client-2>
# SAP HANA instance SID
nbu_client_sid: '{{sap_nbu_instance}}'
# SAP HANA instance number, for example: "09"
nbu_client_ins: "<instance_id>"
# SAP HANA hdbuserstore Key
nbu_client_hdb: <sap_hana_user_key>
# SAP HANA SYSTEM DB name, for example: SYSTEMDB
nbu_client_bsl_sys: <SYSTEMDB>
# SAP HANA tenant DB name, for example: SSK/DB1/DB2 etc
nbu_client_bsl_ten: <tenant-DB>
# SAP HANA user name, for example: sskadm
sap_user: <sid>adm
# provide the path to create the utl and backup script files
# for example: /usr/openv/netbackup/ext/db_ext/sap/scripts/sap_oracle
utl_script_file_path: <directory_path>
policy_list:
policy1:
name: sap_sysDB_{{sap_nbu_instance}}_daily
backupselection: "{{utl_script_file_path}}/{{sap_nbu_instance}}/NBU_{{nbu_client_sid}}_sap_backup_sys_data.sh"
policy_temp: create_policy_sap_single_daily.j2
policy2:
name: sap_sysDB_{{sap_nbu_instance}}_weekly
backupselection: "{{utl_script_file_path}}/{{sap_nbu_instance}}/NBU_{{nbu_client_sid}}_sap_backup_sys_data.sh"
policy_temp: create_policy_sap_single_weekly.j2
policy3:
name: sap_sysDB_{{sap_nbu_instance}}_monthly
backupselection: "{{utl_script_file_path}}/{{sap_nbu_instance}}/NBU_{{nbu_client_sid}}_sap_backup_sys_data.sh"
policy_temp: create_policy_sap_single_monthly.j2
policy4:
name: sap_tenantDB_{{nbu_client_bsl_ten}}_daily
backupselection: "{{utl_script_file_path}}/{{sap_nbu_instance}}/{{nbu_client_bsl_ten}}/NBU_{{nbu_client_sid}}_sap_backup_ten_data.sh"
policy_temp: create_policy_sap_single_daily.j2
policy5:
name: sap_tenantDB_{{nbu_client_bsl_ten}}_weekly
backupselection: "{{utl_script_file_path}}/{{sap_nbu_instance}}/{{nbu_client_bsl_ten}}/NBU_{{nbu_client_sid}}_sap_backup_ten_data.sh"
policy_temp: create_policy_sap_single_weekly.j2
policy6:
name: sap_tenantDB_{{nbu_client_bsl_ten}}_monthly
backupselection: "{{utl_script_file_path}}/{{sap_nbu_instance}}/{{nbu_client_bsl_ten}}/NBU_{{nbu_client_sid}}_sap_backup_ten_data.sh"
policy_temp: create_policy_sap_single_monthly.j2
roles:
- netbackup-api-token-get
- netbackup-sap-policy
- netbackup-api-policy-sap-create