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

Onr/dsos 2682/onr boe install #706

Merged
merged 31 commits into from
Apr 18, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
31 commits
Select commit Hold shift + click to select a range
bd70440
get hold of more software
robertsweetman Apr 12, 2024
742b00e
fix typo
robertsweetman Apr 12, 2024
78ffbb1
fix typo
robertsweetman Apr 12, 2024
d438717
add test response template
robertsweetman Apr 12, 2024
8648e10
create oracle-11g-client role
robertsweetman Apr 15, 2024
011dedf
encounters same error
robertsweetman Apr 15, 2024
1df0b17
fix file path
robertsweetman Apr 15, 2024
d89b74d
remove package install
robertsweetman Apr 15, 2024
afa2e6a
change to 11g path
robertsweetman Apr 15, 2024
6bd3379
add swap as required for oracle 11g client
robertsweetman Apr 15, 2024
7aaec30
remove flag
robertsweetman Apr 15, 2024
d0a282c
add post install root script
robertsweetman Apr 15, 2024
2341518
add missing library
robertsweetman Apr 16, 2024
d0080dc
download custom files
robertsweetman Apr 16, 2024
4af9084
change 11g client software installer
robertsweetman Apr 16, 2024
e771898
remove comment from shell
robertsweetman Apr 16, 2024
cddcd11
create oracle 12c client role
robertsweetman Apr 17, 2024
860dce0
comment out failed dependency
robertsweetman Apr 17, 2024
689b2b2
change oracle home
robertsweetman Apr 17, 2024
76a06cc
add -ignorePrereqFailure flag which ignores pre-req failures
robertsweetman Apr 17, 2024
2aa40b7
fix response file
robertsweetman Apr 17, 2024
b5334fd
increase async time
robertsweetman Apr 17, 2024
3d244a1
increase async time again
robertsweetman Apr 17, 2024
3829941
increase log level
robertsweetman Apr 17, 2024
f012e4a
massive timeout
robertsweetman Apr 17, 2024
84cc206
fix path
robertsweetman Apr 17, 2024
c675fca
ignore errors
robertsweetman Apr 17, 2024
ab6c10f
use correct installer and remove old response file
robertsweetman Apr 17, 2024
dea1209
remove todo
robertsweetman Apr 17, 2024
0779ea1
tidy up oracle 11g client and oracle 12c client roles
robertsweetman Apr 18, 2024
35d8d8c
Commit changes made by code formatters
github-actions[bot] Apr 18, 2024
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
13 changes: 6 additions & 7 deletions ansible/group_vars/server_type_onr_boe.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,8 @@ server_type_roles_list:
- ansible-script
- epel
- disks
# - oracle-19c-client # TODO: may need to create an 11.2.0 or 11c client role
# - oracle-tns-entries # TODO: see comment above
# - ncr-bip
- oracle-12c-client # use 12c client because the 11g client isn't technically supported by Rhel 6
# - oracle-tns-entries # TODO: not defined yet
- onr-boe
# - collectd TODO: comment these back in, not needed yet
# - amazon-cloudwatch-agent
Expand Down Expand Up @@ -77,12 +76,12 @@ disks_mount:
- ebs_device_name: /dev/sdc
dir: /u02
fstype: ext4
# - ebs_device_name: /dev/sds
# dir: swap
# fstype: swap
- ebs_device_name: /dev/sds
dir: swap
fstype: swap

# oracle client
oracle_install_user: oracle
oracle_install_group: oinstall
oracle_home: /u01/app/oracle/product/19c/client_1
oracle_home: /u01/app/oracle/product/12.2.0/client_1
oracle_inventory: /u01/app/oraInventory
14 changes: 14 additions & 0 deletions ansible/roles/onr-boe/tasks/install-boe.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
---
- name: Create BOE Disk mount point
ansible.builtin.file:
path: /mnt/DATA_1
state: directory
mode: "0755"

- name: Mount DATA_1 volume
ansible.builtin.mount:
src: "{{ app_dir }}/DATA_1"
path: /mnt/DATA_1
fstype: none
opts: bind
state: mounted
50 changes: 24 additions & 26 deletions ansible/roles/onr-boe/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,15 +9,15 @@
# - ec2provision
# - oracle_db_users

# - name: Set selinux to permissive mode
# import_role:
# name: selinux-config
# vars:
# selinux_state: permissive
# tags:
# - amibuild
# - ec2provision
# - oracle_db_selinux_permissive
- name: Set selinux to permissive mode
import_role:
name: selinux-config
vars:
selinux_state: permissive
tags:
- amibuild
- ec2provision
- oracle_db_selinux_permissive

# - import_tasks: get-facts.yml
# tags:
Expand All @@ -26,25 +26,23 @@
# - 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
# # tags:
# # - amibuild
# # - ec2provision
# # - oracle_db_install_base_software

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

- ansible.builtin.import_role:
name: onr-get
tags:
- amibuild
- ec2provision

- ansible.builtin.import_role:
name: onr-get-more
tags:
- amibuild
- ec2provision

- import_tasks: template-response.yml
tags:
- amibuild
- ec2provision
# - import_tasks: install-boe.yml
# tags:
# - amibuild
# - ec2provision
8 changes: 8 additions & 0 deletions ansible/roles/onr-boe/tasks/template-response.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
---
- name: template response ini file
ansible.builtin.template:
src: response.ini.j2
dest: "{{ app_dir }}/response.ini"
# owner: "{{ boe_install_user }}"
# group: "{{ boe_install_group }}"
mode: "0755"
217 changes: 217 additions & 0 deletions ansible/roles/onr-boe/templates/response.ini.j2
Original file line number Diff line number Diff line change
@@ -0,0 +1,217 @@
# Installation Response File
# ----------------------------------------------------------------------
#

[Manual Settings]
# The name of the local server. This feature overrides the local server name
# to the machine name specified. It must be manually set within the response file
# or it will be defaulted to the local machine name.
MACHINENAME=


[Paths]
# The path of the bobje directory. This feature is automically set by
# the installation directory specified as a command line argument followed
# by /bobje/.
BOBJEDIR=

# The path of the DISK_1 directory on the CD. This path defaults to the cd directory
# pertaining to the install which has created the response file. It may be overwritten
# by specifying the cd directory as an argument on the command line.
CDDIR=

# The path of the license directory.
LICENSEDIR=


[Product Information]
# The current language with the following exceptions:
# 1) "jp" if the current language is "ja" (Japanese)
# 2) "chs" if the current language is "zh_CN" (Chinese - China)
# 3) "cht" if the current language is "zh_TW" (Chinese - Taiwan)
BOBJELANG="en"

# The name of the product being installed.
PRODUCTID_NAME="BusinessObjects"

# The version of Business Objects Enterprise.
BOBJEVERSION="12.0"

# The version of the product being installed.
PRODUCTID_VER="12.0"

# The license key to install Business Objects Enterprise.
BOBJELICENSEKEY=

# The product id key. ( The product id is usually the same as the BOBJELICENSEKEY )
PIDKEY=


[Installation Information]
# The installation function to perform. (i.e. install)
FUNCTION=install

# The type of installation. (i.e. new / custom / webtier )
INSTALLTYPE="new"

# A comma-delimited list of flags that describe the operating mode of the Installer
# The following flags are supported:
# install - running a new install of the product
# modify - running a modify install on a previously installed product
# remove - running a uninstall of on a previously installed product
# integrated - the current install is running from within another installed (ie. integrated langpacks)
# interactive - UI is enabled and can prompt for user response
INSTALLMODE="install"

# The name of the local server.
LOCALNAMESERVER=

# Whether to perform a user or system install.
BOBJEINSTALLLOCAL="system"

# The language packs to install.
# Each language is specified using the short format and is seperated by a space.
# Example: LANGPACKS_TO_INSTALL=en fr
LANGPACKS_TO_INSTALL=en

# List of all languages included in the product.
# Each language is specified using the short format and is seperated by a comma.
# Example: LANGUAGES_TO_INSTALL=en,fr
LANGUAGES_TO_INSTALL=en

# The Business Objects Enterprise username.
BOBJEUSERNAME="bobj"

# Specified servers to add.
EXPANDSERVERS=


[Tomcat]
# Whether or not to install Tomcat.
INSTALLTOMCAT=

# The connection port.
CONNECTORPORT="8080"

# The redirection port.
REDIRECTPORT="8443"

# The shutdown port.
SHUTDOWNPORT="8005"


[Application Server]
# The path of the Application Server directory (If an Application Server
# is being installed). This path is automatically set using the installation
# directory.
AS_DIR=

# The Application Server name.
# Defaults to tomcat55 if Tomcat is to be installed.
#AS_SERVER=tomcat55
AS_SERVER=tomcat7

# The instance of the Application Server. (e.g. localhost)
# Defaults to localhost if Tomcat is to be installed.
AS_INSTANCE=localhost

# The Application Server port.
AS_ADMIN_PORT=

# The Application Server deployment action. (i.e. deploy or predeploy)
WDEPLOYACTION=deploy


[CMS Cluster]
# Whether or not to cluster the CMS.
CMSCLUSTER=

# The CMS name to cluster to.
CLUSTER_NAMESERVER=

# The CMS port number to cluster to.
CLUSTERPORTNUMBER="6400"


[CMS]
# The type of database. (e.g. MySQL, DB2, Oracle,SQL Anywhere)
DBTYPE="SQLANYWHERE"

# The service name of the CMS.
SERVICENAME="BOE120"

# The username to connect to the database.
DATABASEUID="Administrator"

# The password to connect to the database.
DATABASEPWD="admin"

# The name of the CMS server.
CMSNAMESERVER=

# The port number used to communicate with the CMS.
CMSPORTNUMBER="6400"

# The password used to connect to the CMS.
CMSPASSWORD=""

# The server intelligence agent node name.
SIANODENAME=

# The port used to communicate with the server intelligence agent.
SIAPORTNUMBER="6410"

# Whether or not to reinitialize the database.
REINIT="yes"


[SQLANYWHERE]
# Whether or not to install SQL Anywhere
INSTALLSQLANYWHERE="yes"

# The port number used to communicate with the SQL Anywhere database.
SERVICEPORT="2638"

# The name of the server hosting the SQL Anywhere database.
SQLANYWHEREHOSTNAME=

# The root password for the SQL Anywhere database.
SQLANYWHEREROOTPWD="admin"


[Audit]
# Whether or not auditing is enabled.
AUDITINGENABLED=yes

# The service audit name of the CMS.
SERVICENAME_AUDIT="BOE120_AUDIT"

# The port number used to communicate with the SQL Anywhere database.
SERVICEPORT_AUDIT="2638"

# The name of the server hosting the SQL Anywhere database.
SQLANYWHEREHOSTNAME_AUDIT=

# The audit username to connect to the database.
DATABASEUID_AUDIT=

# The audit password to connect to the database.
DATABASEPWD_AUDIT=


[Marketing Products]
# This feature manually enables specified marketing products. Each marketing product
# specified must be seperated by a comma.
# For a custom install this field is used to enable those products which are different from a default new installation.
# Example: ENABLEMP=BusinessObjects.MySQL,BusinessObjects.WebTierComponents
ENABLEMP=

# This feature manually disables specified marketing products. Each marketing product
# specified must be seperated by a comma.
# For a custom install this field is used to disable those products which are different from a default new installation.
# Example: DISABLEMP=BusinessObjects.MySQL,BusinessObjects.WebTierComponents
DISABLEMP=


[New Settings]
# All uncommented settings are added here.
13 changes: 13 additions & 0 deletions ansible/roles/onr-get-more/defaults/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
---
artefacts_s3_bucket_name: mod-platform-image-artefact-bucket20230203091453221500000001
artefacts_s3_bucket_path: hmpps/onr
artefact_dir: /u02
app_dir: /u01/software

sqlanywhere: sqla17developerlinux.tar.gz
sqlanywhere_client: sqla17_client_linux_x86x64.tar.gz
oracle_11g_client: oracle-instantclient11.2-basic-11.2.0.4.0-1.x86_64.rpm
tomcat_custom: BOE_SP7FP7_4_Tomcat7_application_incl_custom.tar

stage: "{{ artefact_dir }}/stage"
temp: "{{ artefact_dir }}/temp"
3 changes: 3 additions & 0 deletions ansible/roles/onr-get-more/meta/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
---
dependencies:
- role: get-ec2-facts
27 changes: 27 additions & 0 deletions ansible/roles/onr-get-more/tasks/download-software.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
---
- name: Create directories
ansible.builtin.file:
path: "{{ item }}"
owner: "{{ boe_install_user }}"
group: "{{ boe_install_group }}"
state: directory
recurse: yes
loop:
- "{{ temp }}"
- "{{ stage }}"
- "{{ app_dir }}"
tags:
- amibuild

- name: Download BOE software 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:
- "{{ sqlanywhere_client }}"
- "{{ sqlanywhere }}"
- "{{ oracle_11g_client }}"
- "{{ tomcat_custom }}"
6 changes: 6 additions & 0 deletions ansible/roles/onr-get-more/tasks/extract-software.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
- name: Unpack the BOE software
ansible.builtin.unarchive:
src: "{{ stage }}/{{ boe_software }}"
dest: "{{ app_dir }}"
remote_src: yes
9 changes: 9 additions & 0 deletions ansible/roles/onr-get-more/tasks/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
---
- import_tasks: download-software.yml
tags:
- amibuild
- ec2provision
# - import_tasks: extract-software.yml
# tags:
# - amibuild
# - ec2provision
Loading
Loading