Skip to content

Commit 4a52eec

Browse files
committed
new vagrantbox example beginner_patching
The new example shows how to install with patching. The documentation is planned for a later PR.
1 parent 5abd31b commit 4a52eec

File tree

21 files changed

+565
-1
lines changed

21 files changed

+565
-1
lines changed
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
---
2+
minor_changes:
3+
- "new vagrantbox example beginner_patching (oravirt#370)"
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
---
2+
ansible-navigator:
3+
# ansible-runner:
4+
# artifact-dir: navigator
5+
# rotate-artifacts-count: 20
6+
execution-environment:
7+
enabled: false
8+
environment-variables:
9+
set:
10+
ANSIBLE_CONFIG: ansible.cfg
11+
volume-mounts:
12+
- src: "/vagrant"
13+
dest: "/vagrant"
14+
options: "Z"
15+
logging:
16+
level: warning
17+
mode: stdout
18+
playbook-artifact:
19+
enable: true
20+
replay: "{playbook_dir}/../navigator/replay/{playbook_name}-{time_stamp}.json"
21+
save-as: "{playbook_dir}/../navigator/replay/{playbook_name}-{time_stamp}.json"
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
[defaults]
2+
3+
# following entries are only needed when working with ansible < 2.9
4+
# roles_path = ${PWD}/../ansible-oracle/roles/
5+
# library = ${PWD}/../ansible-oracle/library/, ${PWD}/../ansible-oracle/plugins/modules
6+
7+
host_key_checking = False
8+
display_skipped_hosts = false
9+
duplicate_dict_key = ignore
10+
11+
nocolor = 1
12+
retry_files_enabled = False
13+
14+
interpreter_python = auto_legacy_silent
15+
16+
callbacks_enabled = timer
17+
stdout_callback=yaml
18+
19+
[ssh_connection]
20+
pipelining = True
21+
22+
# needed for devsec ssh-role
23+
scp_if_ssh = True
Lines changed: 82 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,82 @@
1+
---
2+
apply_patches_db: true
3+
db_homes_config:
4+
5+
db1919_si_se2: &db1919_si_se2
6+
version: 19.3.0.0
7+
oracle_home: /u01/app/oracle/product/19/db1919-si-se2
8+
edition: SE2
9+
opatch_minversion: 12.2.0.1.36
10+
state: present
11+
opatchauto: []
12+
opatch:
13+
- patchid: 35042068
14+
# Database Release Update 19.19.0.0.230418
15+
patchversion: 19.19.0.0.230418
16+
stop_processes: true
17+
state: present
18+
- patchid: 35050341
19+
# Oracle JavaVM Component Release Update (OJVM RU) 19.19.0.0.230418
20+
stop_processes: true
21+
state: present
22+
- patchid: 35261302
23+
# DATAPUMP BUNDLE PATCH 19.19.0.0.0
24+
stop_processes: true
25+
state: present
26+
27+
db1918_si_se2: &db1918_si_se2
28+
version: 19.3.0.0
29+
oracle_home: /u01/app/oracle/product/19/db1918-si-se2
30+
edition: SE2
31+
opatch_minversion: 12.2.0.1.36
32+
opatch:
33+
- patchid: 34765931
34+
# Database Release Update 19.18.0.0.230117
35+
patchversion: 19.18.0.0.230117
36+
stop_processes: true
37+
state: present
38+
path: 19.18.0.0.230117/dbru/34765931/34765931/
39+
- patchid: 34786990
40+
# Oracle JavaVM Component Release Update (OJVM RU) 19.18.0.0.230117
41+
stop_processes: true
42+
state: present
43+
path: 19.18.0.0.230117/ojvm/p34786990_190000_Linux-x86-64.zip
44+
45+
# golden is used for building the golden image only
46+
# Current Mapping of ORACLE_HOMEs
47+
# use this mapping for fast change between the Release Updates
48+
# <<: * => merge values from alias and overwrite oracle_home + home
49+
#
50+
# => Base for imagename at later stage
51+
db19_si_se2_golden:
52+
<<: *db1919_si_se2
53+
# imagename: db_home_19.18.zip
54+
oracle_home: /u01/app/oracle/product/19/db1
55+
oracle_home_name: db19_si_se2
56+
readonly_home: true
57+
58+
db19_si_se2:
59+
<<: *db1919_si_se2
60+
# imagename: db_home_19.19.zip
61+
oracle_home: /u01/app/oracle/product/19/db1
62+
oracle_home_name: db19_si_se2
63+
readonly_home: true
64+
65+
oracle_sw_patches:
66+
- filename: p35042068_190000_Linux-x86-64.zip
67+
patchid: 35042068
68+
version: 19.3.0.0
69+
description: DBRU 19.19
70+
creates: 35042068/README.txt
71+
- filename: p35050341_190000_Linux-x86-64.zip
72+
patchid: 35050341
73+
version: 19.3.0.0
74+
description: OJVM 19.19
75+
creates: 35050341/README.txt
76+
- filename: p35261302_1919000DBRU_Generic.zip
77+
patchid: 35261302
78+
version: 19.3.0.0
79+
description: DATAPUMP BUNDLE PATCH 19.19.0.0.0
80+
creates: 35261302/README.txt
81+
82+
# oracle_sw_patches: []
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
---
2+
# global Defaults for Database-Profiles
3+
4+
oracle_default_profiles:
5+
- name: DEFAULT
6+
state: present
7+
attributes:
8+
- {name: password_life_time, value: unlimited}
9+
- name: PW_UNLIMIT
10+
state: present
11+
attributes:
12+
- {name: password_life_time, value: "UNLIMITED"}
13+
- {name: password_grace_time, value: 7}
14+
- {name: password_lock_time, value: 1}
15+
- {name: password_verify_function, value: "null"}
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
---
2+
# Oracle gets problems, when root processes are not visible
3+
hidepid_option: 0
4+
5+
os_security_kernel_enable_module_loading: true
6+
7+
sysctl_overwrite:
8+
network_ipv6_enable: false
9+
fs.protected_regular: 0 # needed for opatchauto ...
10+
# Needed for Docker on Ansible-host
11+
net.ipv4.ip_forward: 1
12+
13+
# ssh settings
14+
ssh_print_last_log: true
15+
ssh_allow_agent_forwarding: true
16+
ssh_permit_tunnel: false
17+
# tcp_forwarding for VSCode
18+
ssh_allow_tcp_forwarding: 'yes'
19+
ssh_max_auth_retries: 3
20+
21+
ssh_allow_users: vagrant
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
---
2+
configure_public_yum_repo: false
3+
configure_motd: false
4+
5+
autostartup_service: true
6+
7+
configure_hugepages_by: memory
8+
9+
# disable hugepages on small systems
10+
# don't forget to enable use_large_pages in oracle parameter
11+
# size_in_gb_hugepages: 2
12+
size_in_gb_hugepages: 0
13+
14+
15+
configure_host_disks: true
16+
17+
host_fs_layout:
18+
- vgname: vgora
19+
state: present
20+
filesystem:
21+
- {mntp: /u01, lvname: lvorabase, lvsize: 25G, fstype: xfs}
22+
- {mntp: /u02, lvname: lvoradata, lvsize: 25G, fstype: xfs, fsopts: "-m reflink=1 -m crc=1"}
23+
disk:
24+
- {device: /dev/sdb, pvname: /dev/sdb1}
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
---
2+
mos_login:
3+
mos_password:
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
---
2+
is_sw_source_local: true
3+
oracle_sw_copy: false
4+
oracle_sw_unpack: true
5+
6+
# directory for patch download
7+
oracle_sw_source_local: /vagrant
8+
9+
# Directory for Installation-Media
10+
oracle_stage_remote: /vagrant
11+
12+
# Directory for response files, extraceted patches etc.
13+
oracle_stage: /u01/stage
14+
15+
# Example for Remote NFS
16+
# install_from_nfs: true # Mount NFS-Share?
17+
# nfs_server_sw: 192.168.56.99 # NFS-Server
18+
# nfs_server_sw_path: /sw # NFS-Share
19+
# oracle_stage_remote: /u01/se # local mount point for NFS share
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
---
2+
# make sure that python3 is installed before playbook execution
3+
# => needed for selinux module of Ansible
4+
ansible_python_interpreter: /usr/bin/python3.6
5+
6+
# Use /var/tmp instead of /tmp in Ansible for temporaray files on target host
7+
# => /var has more free space then /tmp for yum repositories
8+
ansible_remote_tmp: /var/tmp

0 commit comments

Comments
 (0)