Skip to content

Commit

Permalink
Merge pull request #711 from ministryofjustice/onr/DSOS-2682/onr-boe-…
Browse files Browse the repository at this point in the history
…install

Onr/dsos 2682/onr boe install
  • Loading branch information
robertsweetman authored Apr 19, 2024
2 parents 4eed760 + 452741c commit 821ae5f
Show file tree
Hide file tree
Showing 2 changed files with 74 additions and 2 deletions.
72 changes: 72 additions & 0 deletions ansible/group_vars/server_type_onr_db_test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,72 @@
---
ansible_python_interpreter: /usr/bin/python3.9

users_and_groups_system:
- name: oracle
group: oinstall
groups:
- dba
- wheel

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
- azcopy
- oracle-19c
- oracle-secure-backup
- oracle-db-backup
- oracle-db-housekeeping
# - collectd # don't need all the monitoring for testing
# - amazon-cloudwatch-agent
# - amazon-cloudwatch-agent-collectd
# - collectd-service-metrics
# - collectd-oracle-db-connected
# - collectd-textfile-monitoring

packages_yum_install:
- zip-3.0-23.el8
- git
- tar

# Storage: volumes, partitioning and mounting
disks_partition:
- ebs_device_name: /dev/sde
oracle_group: data
oracle_label: DATA01
- ebs_device_name: /dev/sdj
oracle_group: flash
oracle_label: FLASH01

disks_mount:
- ebs_device_name: /dev/sdb
dir: /u01
fstype: xfs
- ebs_device_name: /dev/sdc
dir: /u02
fstype: xfs
- ebs_device_name: /dev/sds
dir: swap
fstype: swap

# Oracle common variables
oracle_install_user: oracle
oracle_install_group: oinstall
oracle_inventory: /u01/app/oraInventory
database_home: /u01/app/oracle/product/19c/db_1
grid_home: /u01/app/oracle/product/19c/gridhome_1
# NOTE: copied from ansible/group_vars/server_type_ncr_db.yml

# tns_entries:
4 changes: 2 additions & 2 deletions ansible/roles/oracle-12c-client/tasks/install_client.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,11 +53,11 @@
ansible.builtin.shell: |
set -eo pipefail
main() {
{{ oracle_home }}/client/runInstaller -silent -debug -waitforcompletion -ignorePrereqFailure -logLevel fine -responseFile {{ stage }}/{{ client_response_file }}
{{ oracle_home }}/client/runInstaller -silent -waitforcompletion -ignoreSysPrereqs -responseFile {{ stage }}/{{ client_response_file }}
}
main 2>&1 | logger -p local3.info -t ansible-oracle-client
become_user: oracle
async: 2400
async: 4800
poll: 30
ignore_errors: true # ignore errors as the installation may return SUCCESS_WITH_ERRORS which is not a failure but the installer return code is non-zero

Expand Down

0 comments on commit 821ae5f

Please sign in to comment.