Skip to content

Commit

Permalink
use common onr-get role
Browse files Browse the repository at this point in the history
  • Loading branch information
robertsweetman committed Apr 9, 2024
1 parent 9d3198e commit 852767c
Show file tree
Hide file tree
Showing 8 changed files with 48 additions and 58 deletions.
14 changes: 2 additions & 12 deletions ansible/roles/onr-boe/defaults/main.yml
Original file line number Diff line number Diff line change
@@ -1,22 +1,12 @@
---
artefacts_s3_bucket_name: mod-platform-image-artefact-bucket20230203091453221500000001
artefacts_s3_bucket_path: hmpps/onr
artefact_dir: /u02 # check this
app_dir: /u01/software # check this
artefact_dir: /u02
app_dir: /u01/software/BOE_3_1_FP7_4_Linux

boe_software: ENTERPRISE07P_4-10007478.TGZ
boe_install_user: bobj
boe_install_group: binstall

stage: "{{ artefact_dir }}/stage"
temp: "{{ artefact_dir }}/temp"

# sap_boe_platform_unpack_base_directory: /opt/sap/boe
# sap_bi_platform_extraction_directory: /u02/software/BIP_4_3_SP1
# sap_bi_platform_installation_directory: /u01/app/bobj/BIP4
# sap_jvm_unpack_base_directory: /opt/sap/java
# sap_host_agent_base_directory: /opt/sap/hostagent

# ncr_environment: "{{ ec2.tags['nomis-combined-reporting-environment'] }}"
# node: "{{ ec2.tags['node'] }}"
# application_type: "{{ ec2.tags['type'] }}"
21 changes: 0 additions & 21 deletions ansible/roles/onr-boe/tasks/extract-software.yml

This file was deleted.

24 changes: 15 additions & 9 deletions ansible/roles/onr-boe/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,19 +26,25 @@
# - oracle_db_reconfigure_has
# - oracle_db_restore_databases

- import_tasks: download-software.yml
tags:
- amibuild
- ec2provision
# - oracle_db_get_base_software
# - import_tasks: install-base-software.yml
# - import_tasks: download-software.yml
# tags:
# - amibuild
# - ec2provision
# # - oracle_db_get_base_software
# # - import_tasks: install-base-software.yml
# # tags:
# # - amibuild
# # - ec2provision
# # - oracle_db_install_base_software

# - import_tasks: extract-software.yml
# tags:
# - amibuild
# - ec2provision
# - oracle_db_install_base_software
# # - oracle_db_extract_base_software

- import_tasks: extract-software.yml
- ansible.builtin.import_role:
name: onr-get
tags:
- amibuild
- ec2provision
# - oracle_db_extract_base_software
10 changes: 10 additions & 0 deletions ansible/roles/onr-get/defaults/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
---
artefacts_s3_bucket_name: mod-platform-image-artefact-bucket20230203091453221500000001
artefacts_s3_bucket_path: hmpps/onr
artefact_dir: /u02
app_dir: /u01/software/BOE_3_1_FP7_4_Linux

boe_software: ENTERPRISE07P_4-10007478.TGZ

stage: "{{ artefact_dir }}/stage"
temp: "{{ artefact_dir }}/temp"
3 changes: 3 additions & 0 deletions ansible/roles/onr-get/meta/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
---
dependencies:
- role: get-ec2-facts
Original file line number Diff line number Diff line change
Expand Up @@ -12,20 +12,6 @@
- "{{ app_dir }}"
tags:
- amibuild
# - oracle_19c_download
# - oracle_19c_create_dirs

# - name: Download oracle prerequisite rpms from S3 bucket
# amazon.aws.aws_s3:
# bucket: "{{ artefacts_s3_bucket_name }}"
# object: "{{ artefacts_s3_bucket_path }}/{{ item }}"
# dest: "{{ stage }}/{{ item }}"
# mode: get
# overwrite: latest
# loop:
# - "{{ oracle_prereq_rpm }}"
# - "{{ oracle_asmlib_rpm }}"
# - "{{ oracleasm_support_rpm }}"

- name: Download BOE software from S3 bucket
amazon.aws.aws_s3:
Expand All @@ -36,5 +22,4 @@
overwrite: latest
loop:
- "{{ boe_software }}"
# - "{{ grid_software }}"
# - "{{ opatch }}"

7 changes: 7 additions & 0 deletions ansible/roles/onr-get/tasks/extract-software.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
- name: Unpack the BOE software
ansible.builtin.unarchive:
src: "{{ stage }}/{{ boe_software }}"
dest: "{{ app_dir }}"
remote_src: yes

10 changes: 10 additions & 0 deletions ansible/roles/onr-get/tasks/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
---
- import_tasks: download-software.yml
tags:
- amibuild
- ec2provision

- import_tasks: extract-software.yml
tags:
- amibuild
- ec2provision

0 comments on commit 852767c

Please sign in to comment.