Skip to content

Commit 8ec3336

Browse files
committed
rac: example
1 parent ddf0a0d commit 8ec3336

File tree

27 files changed

+660
-1
lines changed

27 files changed

+660
-1
lines changed

.ansible-lint

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ exclude_paths:
1818
- changelogs
1919
- roles/oraemagent_install # deprecated role
2020
- example/*/ansible/playbooks/collections/ansible_collections
21+
- example/*/ansible/requirements.yml
2122
- playbooks/collections/ansible_collections
2223

2324
extra_vars:

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,6 @@ LINUX.X64_*.zip
66
# ignore for ansible-navigator
77
playbooks/collections/ansible_collections
88
example/*/ansible/playbooks/collections/ansible_collections
9+
example/*/ansible/navigator/replay/*json
910
ansible-navigator.log
1011
navigator/replay/*json
11-
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: true
8+
volume-mounts:
9+
- src: "/vagrant"
10+
dest: "/vagrant"
11+
options: "ro"
12+
environment-variables:
13+
set:
14+
ANSIBLE_CONFIG: ansible.cfg
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"

example/rac/ansible/ansible.cfg

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
[defaults]
2+
inventory = inventory/rac
3+
4+
host_key_checking = False
5+
# display_skipped_hosts = false
6+
duplicate_dict_key = ignore
7+
8+
nocolor = 1
9+
retry_files_enabled = False
10+
11+
# callbacks_enabled = timer, profile_roles
12+
13+
[ssh_connection]
14+
pipelining = True
15+
16+
# needed for devsec ssh-role
17+
scp_if_ssh = True
18+
19+
ssh_args = -o ControlMaster=auto -o ControlPersist=60s
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
---
2+
3+
device_persistence: asmlib
4+
oracle_asm_disk_string: /dev/oracleasm/disks/*
5+
oracle_asm_init_dg: data
6+
7+
asm_diskgroups: # ASM Diskgroups used for DB-storage. Should map to dict asm_storage_layout.
8+
- diskgroup: data
9+
state: present
10+
properties:
11+
- {redundancy: external, ausize: 4}
12+
attributes:
13+
- {name: compatible.rdbms, value: 11.2.0.4.0}
14+
- {name: compatible.asm, value: "19.0.0.0.0"}
15+
disk:
16+
- {device: /dev/sdc, asmlabel: data01}
17+
- diskgroup: fra
18+
state: present
19+
properties:
20+
- {redundancy: external, ausize: 4}
21+
attributes:
22+
- {name: compatible.rdbms, value: 11.2.0.4.0}
23+
- {name: compatible.asm, value: "19.0.0.0.0"}
24+
disk:
25+
- {device: /dev/sdd, asmlabel: fra01}
Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
---
2+
apply_patches_db: true
3+
db_homes_config:
4+
db1913-gi-ee: &db1913-gi-ee
5+
home: db1912-si-ee
6+
version: 19.3.0.0
7+
oracle_home: /u01/app/oracle/product/19/db1913-si-ee
8+
edition: EE
9+
opatch_minversion: 12.2.0.1.27
10+
opatchauto:
11+
- patchid: 33182768
12+
patchversion: 19.13.0.0.211019
13+
state: present
14+
subpatches:
15+
- 33208123 # OCW Release Update 19.13.0.0.211019
16+
- 32585572 # DBWLM Release Update
17+
- 33192793 # Database Release Update 19.13.0.0.211019
18+
opatch: []
19+
# # Remove Oracle Database 19c Important Recommended One-off Patches (Doc ID 555.1)
20+
# - {patchid: 29213893, state: absent, excludeUPI: 24384541, stop_processes: true}
21+
# - {patchid: 30978304, state: absent, excludeUPI: 24384338, stop_processes: true}
22+
# # - {patchid: 31602782, state: absent, excludeUPI: 24384398, stop_processes: true}
23+
# - {patchid: 33121934, state: absent, excludeUPI: 24407586, stop_processes: true}
24+
# - {patchid: 32522300, state: absent, stop_processes: true}
25+
# - {patchid: 31143146, state: absent, stop_processes: true}
26+
# - {patchid: 32919937, state: absent, stop_processes: true}
27+
# - {patchid: 33144001, state: absent, stop_processes: true}
28+
# - patchid: 32876380
29+
# # Oracle JavaVM Component Release Update (OJVM RU) 19.13.0.0.211019
30+
# stop_processes: true
31+
# state: present
32+
# path: 19.13.0.0.211019/ojvm/p33192694_190000_Linux-x86-64.zip
33+
# # Oracle Database 19c Important Recommended One-off Patches (Doc ID 555.1)
34+
# - {patchid: 29213893, path: 19.13.0.0.211019/p29213893_1913000DBRU_Generic.zip, state: present, stop_processes: true}
35+
# - {patchid: 30978304, path: 19.13.0.0.211019/p30978304_1913000DBRU_Generic.zip, state: present, stop_processes: true}
36+
# # Contention on "CURSOR: PIN S WAIT ON X" when PQ slave's execution plan does not match with QC
37+
# # conflicts with 33121934 ...
38+
# # - {patchid: 31602782, path: 19.13.0.0.211019/p31602782_1913000DBRU_Linux-x86-64.zip, state: present, stop_processes: true}
39+
# # Library cache lock / load lock / mutex x during connection storm
40+
# - {patchid: 33121934, path: 19.13.0.0.211019/p33121934_1913000DBRU_Linux-x86-64.zip, state: present, stop_processes: true}
41+
42+
# Current Mapping of ORACLE_HOMEs
43+
# use this mapping for fast change between the Release Updates
44+
# <<: * => merge values from alias and overwrite oracle_home + home
45+
db19-gi-ee:
46+
<<: *db1913-gi-ee
47+
# imagename: db_home_19.13.zip
48+
oracle_home: /u01/app/oracle/product/19/db1
49+
home: db19-gi-ee
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: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
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+
11+
# ssh settings
12+
ssh_print_last_log: true
13+
ssh_allow_agent_forwarding: false
14+
ssh_permit_tunnel: false
15+
ssh_allow_tcp_forwarding: 'no'
16+
ssh_max_auth_retries: 3
17+
18+
ssh_allow_users: vagrant ansible
19+
20+
# disable some ansible-oracle options
21+
disable_selinux: false
22+
configure_oracle_sudo: false
Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
---
2+
# This configuration file is used as a global default
3+
# The variable gi_patches_config is not part of ansible-oracle. It is
4+
# referenced from other structures in the Inventory.
5+
6+
gi_patches_config:
7+
19.23.0.0.240116:
8+
19.3.0.0: # Base Release
9+
opatch_minversion: 12.2.0.1.40
10+
opatchauto:
11+
- patchid: 36233126
12+
patchversion: 19.23.0.0.240416
13+
state: present
14+
subpatches:
15+
- 36240578 # OCW Release Update 19.23.0.0.240416
16+
- 36383196 # DBWLM Release Update
17+
- 36233343 # ACFS Release Update 19.23.0.0.240416
18+
- 36460248 # Tomcat Release Update 19.0.0.0.0
19+
- 36233263 # Database Release Update 19.23.0.0.240416
20+
opath: []
21+
19.22.0.0.240116:
22+
19.3.0.0: # Base Release
23+
opatch_minversion: 12.2.0.1.40
24+
opatchauto:
25+
- patchid: 35940989
26+
patchversion: 19.22.0.0.240116
27+
state: present
28+
subpatches:
29+
- 35967489 # OCW Release Update 19.22.0.0.240116
30+
- 33575402 # DBWLM Release Update
31+
- 35956421 # ACFS Release Update 19.22.0.0.240116
32+
- 36115038 # Tomcat Release Update 19.0.0.0.0
33+
- 35943157 # Database Release Update 19.22.0.0.240116
34+
opath: []
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
---
2+
oracle_install_option_gi: CRS_CONFIG
3+
oracle_install_version_gi: 19.3.0.0
4+
oracle_home_gi: /u01/app/gridinfra/19
5+
# oracle_install_image_gi: grid_home_19.12.zip
6+
oracle_gi_cluster_type: STANDARD
7+
oracle_asm_init_dg: data
8+
9+
apply_patches_gi: true
10+
patch_before_rootsh: true
11+
12+
gi_patches:
13+
# "{{ gi_patches_config['19.23.0.0.240116'] }}"
14+
"{{ gi_patches_config['19.22.0.0.240116'] }}"
15+
16+
role_separation: true
17+
configure_ssh: true
18+
19+
oracle_scan: scan-192-168-56-199.nip.io
20+
oracle_scan_port: 1521
21+
oracle_gi_nic_pub: eth1
22+
oracle_gi_nic_priv: eth2

0 commit comments

Comments
 (0)