Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature/dsos 2464/combine patching and installation #459

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
34 changes: 17 additions & 17 deletions ansible/group_vars/server_type_ncr_bip_cmc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,23 +14,23 @@ users_and_groups_system:
- sapsys

server_type_roles_list:
# - users-and-groups
# - sudoers
# - get-ec2-facts
# - set-ec2-hostname
# - domain-search
# - disable-ipv6
# - disable-firewall
# - time
# - packages
# - message-of-the-day
# - amazon-ssm-agent
# - amazon-cli
# - ansible-script
# - epel
# - disks
# - oracle-19c-client
# - oracle-tns-entries
- users-and-groups
- sudoers
- get-ec2-facts
- set-ec2-hostname
- domain-search
- disable-ipv6
- disable-firewall
- time
- packages
- message-of-the-day
- amazon-ssm-agent
- amazon-cli
- ansible-script
- epel
- disks
- oracle-19c-client
- oracle-tns-entries
- ncr-bip-cmc
- collectd
- amazon-cloudwatch-agent
Expand Down
12 changes: 6 additions & 6 deletions ansible/roles/ncr-bip-cmc/tasks/get_facts.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,12 @@

- name: Set password facts
set_fact:
cms_cluster_key: "{{ secretsmanager_passwords_dict['bip_cmc'].passwords[cms_cluster_key] }}"
cms_admin_password: "{{ secretsmanager_passwords_dict['bip_cmc'].passwords[cms_admin_password] }}"
cms_db_password: "{{ secretsmanager_passwords_dict['bip_cmc'].passwords[cms_db_password] }}"
lcm_password: "{{ secretsmanager_passwords_dict['bip_cmc'].passwords[lcm_password] }}"
product_key: "{{ secretsmanager_passwords_dict['bip_cmc'].passwords[product_key] }}"
auditing_db_password: "{{ secretsmanager_passwords_dict['bip_cmc'].passwords[auditing_db_password] }}"
cms_cluster_key: "{{ secretsmanager_passwords_dict['bip_cmc'].passwords['cms_cluster_key'] }}"
cms_admin_password: "{{ secretsmanager_passwords_dict['bip_cmc'].passwords['cms_admin_password'] }}"
cms_db_password: "{{ secretsmanager_passwords_dict['bip_cmc'].passwords['cms_db_password'] }}"
lcm_password: "{{ secretsmanager_passwords_dict['bip_cmc'].passwords['lcm_password'] }}"
product_key: "{{ secretsmanager_passwords_dict['bip_cmc'].passwords['product_key'] }}"
auditing_db_password: "{{ secretsmanager_passwords_dict['bip_cmc'].passwords['auditing_db_password'] }}"

- name: Check all SSM parameters and tags are set
set_fact:
Expand Down
6 changes: 0 additions & 6 deletions ansible/roles/ncr-bip-cmc/tasks/install_bip_cmc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,6 @@
path: /u01/app/bobj/BIP4/sap_bobj/init/setupinit.sh
register: bip_init_file_check

- name: Check if init has been run
stat:
path: /etc/init.d/SAPBOBJEnterpriseXI40
register: setupinit_folder_check

- name: Install BIP
block:
- name: Perform pre-requesite checks
Expand All @@ -40,4 +35,3 @@
ansible.builtin.shell: /u01/app/bobj/BIP4/sap_bobj/init/setupinit.sh
when:
- bip_init_file_check.stat.exists
- not setupinit_folder_check.stat.exists
19 changes: 19 additions & 0 deletions ansible/roles/ncr-bip-cmc/tasks/update_bip_cmc.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
---
- name: Check if product is installed
stat:
path: /u01/app/bobj/BIP4/sap_bobj
register: bip_installed_check

- name: Check if init file exists
stat:
path: /u01/app/bobj/BIP4/sap_bobj/init/setupinit.sh
register: bip_init_file_check

- name: Update BIP
block:
- name: Run Silent Installation
become_user: bobj
ansible.builtin.shell: |
. ~/.bash_profile
/u02/software/BIP_4_3_SP1/setup.sh -InstallDir /u01/app/bobj/BIP4/ -r /u02/software/BIP_4_3_SP1/cmc_response.ini
when: bip_installed_check.stat.exists