A simple template to deploy a solman diag agent. #493
Replies: 2 comments 5 replies
-
@wuftymerguftyguff It's not something I have actively attempted via At a guess, try the below snippet - I only spent 10mins on it but it should be pretty close. If you can prove it, then I could append to the "do-it-for-me, thanks" Inifile Generate method. Drop me an email if you want to work on it together. I grabbed the sample values from: - name: Ansible Play
hosts: all
become: true
tasks:
- name: Execute Ansible Module with system Python to download installation media for SAP Diagnostics Agent on Linux
community.sap_launchpad.software_center_download:
suser_id: "{{ sap_id_user }}"
suser_password: "{{ sap_id_user_password }}"
softwarecenter_search_query: "{{ item }}"
dest: "/software"
loop:
- 'SMDA720_SP14_11-80003641.SAR'
- 'SWPM10SP38_5-20009701.SAR' # Linux x86_64
- 'SAPJVM8_95-80000202.SAR' # Linux x86_64
- 'SAPHOSTAGENT61_61-80004822.SAR' # SAP Host Agent 7.22 Linux x86_64
- 'SAPEXE_1100-80002573.SAR' # Kernel Part I (753)
- 'SAPEXEDB_1100-80002572.SAR' # Kernel Part II (753), SAP HANA
loop_control:
label: "{{ item }} : {{ download_task.msg }}"
register: download_task
- name: Execute Ansible Role sap_install_media_detect
ansible.builtin.include_role:
name: { role: community.sap_install.sap_install_media_detect }
vars:
- sap_install_media_detect_swpm: true
- sap_install_media_detect_hostagent: true
- sap_install_media_detect_kernel: true
- name: Execute Ansible Role sap_swpm
ansible.builtin.include_role:
name: { role: community.sap_install.sap_swpm }
vars:
sap_swpm_ansible_role_mode: advanced_templates
sap_swpm_templates_product_input: sap_diagnostics_agent_753
sap_swpm_templates_install_dictionary:
sap_diagnostics_agent_753:
sap_swpm_product_catalog_id: NW_DiagnosticsAgent:GENERIC.IND.PD
sap_swpm_inifile_custom_values_dictionary:
hostAgent.sapAdmPassword: Klmnop123456
DiagnosticsAgent.LogicalHostName: hostname1
DiagnosticsAgent.SID: DAA
DiagnosticsAgent.InstanceNumber: 98
DiagnosticsAgent.dasidAdmPassword: Abcdef123456
DiagnosticsAgent.SAPJVMVersion: SAPJVM8
DiagnosticsAgent.SolMan.Connection: solman # solman or none
DiagnosticsAgent.SolMan.UseSSL: true
DiagnosticsAgent.SolMan.HostName: host.domain.corp
DiagnosticsAgent.SolMan.PortNumber: 44401
# DiagnosticsAgent.SolMan.UserName
# DiagnosticsAgent.SolMan.Password
# DiagnosticsAgent.SAProuter.RouteString
# DiagnosticsAgent.SAProuter.Password
# DiagnosticsAgent.SLD.Connection
# DiagnosticsAgent.SLD.HostName
# DiagnosticsAgent.SLD.Password
# DiagnosticsAgent.SLD.PortNumber
# DiagnosticsAgent.SLD.UseHTTPS
# DiagnosticsAgent.SLD.UserName
# DiagnosticsAgent.installSAPHostAgent |
Beta Was this translation helpful? Give feedback.
-
Hi @sean-freeman,
|
Beta Was this translation helpful? Give feedback.
-
Deploying a diagnostic agent is probably my most repeated swpm task.
It would be great if sap_install had a simple way of automating this and optionally configuring a deployed agent.
Thoughts?
Beta Was this translation helpful? Give feedback.
All reactions