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

oradb-manage-statspack: new role for Statspack #239

Closed
wants to merge 211 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
211 commits
Select commit Hold shift + click to select a range
429aaae
oracle_db: Bugfix for start_db in Oracle Restart
Rendanic Apr 21, 2019
dc3a32b
oracle_db: fixed ORA-00904: invalid identifier sql: select SUPPLEMENT…
Rendanic May 29, 2020
47fc3e9
oracle_db: Bugfix for empty slsql
Rendanic Jun 6, 2020
3e2416c
Merge pull request #1 from Rendanic/propatch19c
Rendanic Jul 30, 2020
7fa0d56
Merge pull request #2 from Rendanic/prolpublicyum
Rendanic Jul 30, 2020
7534b35
Switch to opitzconsulting for submodule library
Rendanic Jul 30, 2020
0b6eadc
Merge pull request #3 from opitzconsulting/tbr
Rendanic Jul 30, 2020
1db95f0
Merge pull request #1 from Rendanic/prstartdb
Rendanic Jul 30, 2020
e809030
Merge pull request #2 from Rendanic/prsuplogging
Rendanic Aug 18, 2020
84ce874
Merge pull request #3 from Rendanic/prlistener2
Rendanic Aug 18, 2020
7a6e277
Merge pull request #6 from opitzconsulting/master
Rendanic Nov 11, 2020
e2c63c2
Merge pull request #4 from oravirt/master
Rendanic Nov 17, 2020
73e64cf
Merge pull request #14 from oravirt/master
Rendanic Jan 3, 2021
8c6707d
Merge pull request #15 from Rendanic/prchopt
Rendanic Jan 3, 2021
c9805f7
Merge pull request #16 from Rendanic/prGoldenImage
Rendanic Jan 3, 2021
29bca5f
Merge pull request #17 from Rendanic/prcxoracle2
Rendanic Jan 5, 2021
0e706b5
fixed a problem with thsnames ignoring state in tnsnames_installed
bartowl Feb 16, 2021
16d37c7
Merge pull request #19 from bartowl/feature/tnsnames-ignore-state
Rendanic Mar 3, 2021
c262b2e
Document rman_fra_backupdir and rmanautofs
oraculix Mar 23, 2021
de0fff0
Fix missing '' for directory
Mar 24, 2021
7ef273e
parameter.rman.j2: Use variable for device type disk
Mar 24, 2021
7ec00e7
fixed db_domain handling
Apr 15, 2021
75474ed
Merge pull request #5 from bartowl/oc
Rendanic Apr 15, 2021
6aaf753
Merge pull request #20 from oraculix/patch-1
Rendanic May 13, 2021
f192245
Merge pull request #21 from oraculix/oc
Rendanic May 13, 2021
6c0e88a
Merge pull request #6 from opitzconsulting/master
Rendanic May 20, 2021
860d9ee
oracle_db: fixed wrong identation
Rendanic May 24, 2021
7b3fe44
Merge pull request #7 from Rendanic/prstartdb_fix1
Rendanic May 24, 2021
6bdc4b0
Merge pull request #29 from Rendanic/proratop
Rendanic May 24, 2021
44d90af
Merge pull request #26 from Rendanic/prhugepages
Rendanic May 27, 2021
dea7b59
Merge pull request #25 from Rendanic/prtimezone
Rendanic May 27, 2021
1c321c3
Merge pull request #23 from Rendanic/prnewansibleversion
Rendanic May 27, 2021
5e3c4ec
Merge pull request #31 from opitzconsulting/master
Rendanic May 27, 2021
612a9ee
oracle_parameter: Support for Python3
Rendanic May 28, 2021
e86e95e
oracle_profile: Bugfix for Python3
Rendanic May 29, 2021
73905b6
Merge pull request #8 from Rendanic/prpython3param
Rendanic May 29, 2021
d3c695f
Merge pull request #9 from Rendanic/prpython3profile
Rendanic May 29, 2021
2016dba
Squashed 'library/' content from commit 44a3ecd
Rendanic May 30, 2021
8f4b901
Merge commit '81ac24a34a49d412c1aad8abba9f371d13f75d5d' from ansible-…
Rendanic May 30, 2021
a7dd952
Merge branch 'oc' into subtree
Rendanic May 30, 2021
619d0cd
Merge pull request #32 from Rendanic/subtree
Rendanic May 30, 2021
19ec755
Revert "Replace submodule with subtree"
Rendanic May 31, 2021
0fb9673
Merge pull request #35 from opitzconsulting/revert-32-subtree
Rendanic May 31, 2021
10a1d6c
library: Removed submodule for library
Rendanic May 31, 2021
a7f3e85
Merge commit '81ac24a34a49d412c1aad8abba9f371d13f75d5d' from ansible-…
Rendanic May 31, 2021
b625329
Merge branch 'oc' of https://github.com/Rendanic/ansible-oracle-modul…
Rendanic May 31, 2021
dabf447
oracle_opatch: Bugfix for Python3
Rendanic Jun 1, 2021
88965f3
Merge pull request #36 from Rendanic/subtreeoc
Rendanic Jun 1, 2021
675d855
Merge pull request #10 from Rendanic/prpython3opatch
Rendanic Jun 1, 2021
03289ea
Merge commit '675d8551220053b03fd83e5116d8b133a5ff3659' into prpython…
Rendanic Jun 1, 2021
0ecf3cb
Merge pull request #38 from Rendanic/prgiimage
Rendanic Jun 2, 2021
aa054ff
Merge pull request #33 from Rendanic/prrhelol8_typo
Rendanic Jun 3, 2021
9a61a85
Merge pull request #39 from Rendanic/prhasgoldenimage
Rendanic Jun 6, 2021
ec94c0a
added stop_processes for remove_patch
duhlig Jun 28, 2019
2a1240f
Some interim patches are PSU/RU dependent. The patch ID is the same b…
duhlig Nov 25, 2019
1e06d78
Merge pull request #44 from Rendanic/prmultiplehomes
Rendanic Jun 13, 2021
4ddca99
Merge pull request #22 from Rendanic/prlvol
Rendanic Jun 13, 2021
46124c1
Merge pull request #11 from Rendanic/pr_opatch_rollback_upioc
Rendanic Jun 13, 2021
5906f3e
Merge branch 'prpython3opatch' of https://github.com/Rendanic/ansible…
Rendanic Jun 13, 2021
e2cf304
Merge pull request #46 from Rendanic/prpython3
Rendanic Jun 13, 2021
df974b7
Merge pull request #37 from Rendanic/prpython3opatch
Rendanic Jun 13, 2021
de8ed23
orahost: Bugfix for factor_os is undefined
Rendanic Aug 6, 2021
bed9f8c
Merge pull request #51 from Rendanic/prfactos
Rendanic Aug 6, 2021
47dd3d9
added Support for Oracle 21c Database
Rendanic Aug 21, 2021
b49bd46
Merge pull request #53 from Rendanic/oracle21cdb
Rendanic Aug 21, 2021
dc43d74
oraswgi-install: Added Support for Oracle Restart 21c
Rendanic Aug 23, 2021
d570c0d
common: added python3 + python3-pip to packagelist of OL8
Rendanic Aug 26, 2021
b24d671
Merge pull request #59 from Rendanic/proccxoracle
Rendanic Aug 27, 2021
65f3174
orahost: use ol7_addons/ol8_addons repository instead of punlic-yum URLs
Rendanic Aug 26, 2021
836265c
orahost: bugfix for asmlib rpms for OL8
Rendanic Aug 27, 2021
669f1ec
orahost-storage: Fix for oracleasm executable
Rendanic Aug 26, 2021
00ef492
orahost-storage: Refactoring
Rendanic Aug 26, 2021
c635a50
Merge pull request #57 from Rendanic/procasmlib
Rendanic Aug 28, 2021
6885e45
common: Added missing GPG-Key for EPEL during OS-Setup
Rendanic Aug 25, 2021
b0a038a
Merge pull request #60 from Rendanic/procepelgpg
Rendanic Aug 28, 2021
ba6c8db
Merge pull request #56 from Rendanic/procol8
Rendanic Aug 28, 2021
9fa7b65
Merge pull request #55 from Rendanic/prrestart21c
Rendanic Aug 28, 2021
95a64ec
oraswdb-manage-patches: Extension for UPI (Unique Patch ID)
duhlig Nov 25, 2019
415cc4c
added stop_processes for remove_patch
duhlig Jun 28, 2019
4aeae3e
Some interim patches are PSU/RU dependent. The patch ID is the same b…
duhlig Nov 25, 2019
52fe10f
oraswdb-manage-patches: add missing exclude_upi to Remove unwanted pa…
Rendanic Jun 13, 2021
01e7399
Merge pull request #47 from Rendanic/pr_opatch_rollback_upioc
Rendanic Sep 7, 2021
53e049a
orasw-meta: moved variables from oraswdb-install to orasw-meta
Rendanic Sep 8, 2021
1253334
added ansible-lint configuration
Rendanic Sep 9, 2021
8f44f13
oraswdb-golden-image: ansible-lint
Rendanic Sep 9, 2021
2e8cb0f
Github Actions for Pull-Request
Rendanic Sep 11, 2021
333e66b
Github Actions: added roles/oradb-manage-statspack
Rendanic Sep 11, 2021
0fe5958
Github Actions: added roles/orasw-meta
Rendanic Sep 11, 2021
abd02e2
Github Actions: More rules for Action
Rendanic Sep 11, 2021
3a51c09
oradb-manage-statspack: New role for Statspack (#41)
Rendanic Sep 11, 2021
0a3bfdd
oraswgi-golden-image: ansible-lint
Rendanic Sep 11, 2021
7ea0f2a
common: ansible-lint
Rendanic Sep 11, 2021
10e6530
cxoracle: ansible-lint
Rendanic Sep 11, 2021
6b48032
oraasm-manage-diskgroups: ansible-lint
Rendanic Sep 11, 2021
bbb783b
orahost: ansible-lint
Rendanic Sep 12, 2021
f47057d
oradb-datapatch: ansible-lint
Rendanic Sep 12, 2021
b733500
oradb-manage-db: ansible-lint
Rendanic Sep 12, 2021
df99051
oradb-manage-grants: ansible-lint
Rendanic Sep 12, 2021
c9e17d7
oradb-manage-parameters: ansible-lint
Rendanic Sep 12, 2021
120f736
oradb-manage-pdb: ansible-lint
Rendanic Sep 12, 2021
3abeeef
oradb-manage-profiles: ansible-lint
Rendanic Sep 12, 2021
824ba0d
oradb-manage-redo: ansible-lint
Rendanic Sep 12, 2021
66c877e
oradb-manage-roles: anslibe-lint
Rendanic Sep 12, 2021
09a3370
oradb-manage-services: anslibe-lint
Rendanic Sep 12, 2021
ba959cf
oradb-manage-tablespace: anslibe-lint
Rendanic Sep 12, 2021
7d81d6b
oradb-manage-users: ansble-lint
Rendanic Sep 12, 2021
48f2ebc
oradb-rman: ansble-lint
Rendanic Sep 12, 2021
4d7d6c3
orahost-logrotate: ansible-lint
Rendanic Sep 12, 2021
ee57c70
orahost-ssh/: ansible-lint
Rendanic Sep 12, 2021
a128f15
orahost-cron: ansible-lint
Rendanic Sep 12, 2021
532c46f
orahost-storage: ansible-lint
Rendanic Sep 12, 2021
f04ed2c
oraasm-createdg: ansible-lint
Rendanic Sep 12, 2021
b9c14d0
ansible-lint configuration
Rendanic Sep 12, 2021
70a226d
oraswdb-install: ansible-lint
Rendanic Sep 12, 2021
26d7a76
oraswdb-manage-patches: oracle-lint
Rendanic Sep 13, 2021
64905a7
oraswgi-install: ansible-lint
Rendanic Sep 13, 2021
273a01f
oraswgi-manage-patches: ansble-lint
Rendanic Sep 13, 2021
dffd51d
oraswgi-opatch: anible-lint
Rendanic Sep 13, 2021
010f16a
oradb-create: ansible-lint
Rendanic Sep 13, 2021
30413e2
oradb-delete: ansible-lint
Rendanic Sep 13, 2021
5a85923
ansible-lint: removed meta-no-info from skip_list
Rendanic Sep 20, 2021
83e16cf
Merge pull request #64 from Rendanic/prlint3
Rendanic Sep 20, 2021
61761c7
oraswgi-install: Fixes for RAC-Setups
Rendanic Sep 22, 2021
ff55e04
Merge pull request #66 from Rendanic/prrac1
Rendanic Sep 23, 2021
024c755
oradb-manage-db: assert some values from oracle_databases
Rendanic Sep 13, 2021
84515db
Merge pull request #65 from Rendanic/prassert
Rendanic Sep 23, 2021
2cce28e
fix for quoted sqldelim fixes #68
bartowl Sep 23, 2021
bbab9ff
fix for quoted sqldelim fixes #68
bartowl Sep 23, 2021
00a0491
Merge pull request #69 from bartowl/fix_68
Rendanic Sep 23, 2021
b3bf590
Convert repository to Ansible Collection format
bartowl Sep 23, 2021
7c1c149
Merge pull request #67 from bartowl/add_collection
Rendanic Sep 23, 2021
e2b60bb
Revert "Convert repository to Ansible Collection format"
Rendanic Sep 24, 2021
d4c1fdc
Merge pull request #71 from opitzconsulting/revert-67-add_collection
Rendanic Sep 24, 2021
909a228
oradb-failover: ansible-lint
Rendanic Sep 26, 2021
ae9d24f
oraswgi-clone: ansible-lint
Rendanic Sep 26, 2021
ccff24c
oraswracdb-clone: ansible-lint
Rendanic Sep 26, 2021
87991ba
oraemagent-install: ansible-lint
Rendanic Sep 26, 2021
d197d26
orahost: ansible-lint
Rendanic Sep 26, 2021
9b72659
oraswgi-install: ansible-lint
Rendanic Sep 26, 2021
b45471f
Github Actions: work on all roles
Rendanic Sep 26, 2021
c95e0e7
Merge pull request #72 from Rendanic/prlint4
Rendanic Sep 26, 2021
14057f6
orahost: added support for swap in host_fs_layout, fixed linter in ha…
Rendanic Sep 28, 2021
0bdf87c
Merge pull request #73 from Rendanic/prswap
Rendanic Sep 28, 2021
f5ce8d7
orahost-storage: added option nolock to dnfsoptions
Rendanic Sep 29, 2021
5f1dafe
Merge pull request #74 from Rendanic/prdnfs
Rendanic Sep 29, 2021
3ffd11b
orahost_meta: New role to share defaults from role orahost
Rendanic Oct 4, 2021
8e29936
oraswdb-install: fix for missing memory settings in systemd
Rendanic May 17, 2021
dcde876
Merge pull request #75 from Rendanic/prsystemctl2
Rendanic Oct 4, 2021
b4bfe41
old inventory: make ansible-lint happy
Rendanic Oct 4, 2021
542c6db
oraswdb-install: ansible-lint removed trainling space
Rendanic Oct 4, 2021
e7ddf5e
Merge pull request #76 from Rendanic/prlintoldpb
Rendanic Oct 4, 2021
42ac6e2
git-pre-commit configuration
Rendanic Oct 3, 2021
60c829d
Merge pull request #77 from Rendanic/prprecommit
Rendanic Oct 5, 2021
0cc1841
orahost: Disable NOZEROCONF in /etc/sysconfig/network
Rendanic Oct 5, 2021
f08ef4a
Merge pull request #80 from Rendanic/prnozeroconf
Rendanic Oct 10, 2021
7b5aeab
oraswgi-install: cleanup - removed old comments
Rendanic Oct 5, 2021
a792214
oraswgi-install: added runcluvfy.sh before GI/Restart configuration
Rendanic Oct 5, 2021
fb70ed4
orahost: added user oracle to group asmoper
Rendanic Oct 6, 2021
1e403f7
oraswgi-install: added runcluvy.sh to role for 19c and 21c
Rendanic Oct 6, 2021
f7c23e2
oraswgi-install: Refactoring Tasks for 19c+21c
Rendanic Oct 6, 2021
102d315
oraasm-manage-diskgroups: added support for custom oracle_asm_disk_st…
Rendanic Oct 9, 2021
fd3ecb4
Merge pull request #12 from Rendanic/proraclesql
Rendanic Oct 10, 2021
cc7c1ca
- single quotes for create .. identified by values - implemented chec…
bartowl Oct 12, 2021
4056d76
Merge pull request #13 from opitzconsulting/pruser
Rendanic Oct 13, 2021
c2224ce
Merge pull request #82 from Rendanic/prrefactorgi
Rendanic Oct 13, 2021
c56680f
oraswgi: assert OL8 and GI 19.3 without RU
Rendanic Oct 24, 2021
5265c80
oraswgi: move from package to yum for cvuqdisk.rpm
Rendanic Oct 24, 2021
fb87444
oradb-manage-db: use custom DBCA-Templates from ORACLE_HOME directly
Rendanic Nov 14, 2021
78d453c
Merge pull request #87 from Rendanic/prdbca
Rendanic Nov 14, 2021
4fdb431
ansible-lint: lots of changes to make linting happy
Rendanic Jul 1, 2022
888788a
Merge pull request #94 from Rendanic/prlint4
Rendanic Jul 3, 2022
4f021c4
orahost: added options to host_fs_layout
Rendanic Jul 4, 2022
af3b353
Merge pull request #96 from Rendanic/prhostfs
Rendanic Jul 4, 2022
6661f6d
oracle_profile: Bugfix python2+3
Rendanic Jun 1, 2022
e9cbe4d
Merge pull request #95 from Rendanic/prprofilepython
Rendanic Jul 4, 2022
6d7de3c
bugfix: gold image copy path
bartowl Jun 28, 2022
c2ef811
bugfix hardcoded /home/oracle - use oracle_user_home
bartowl Jul 4, 2022
f209ffa
Merge pull request #93 from bartowl/bugfix/hardcoded_home
Rendanic Jul 5, 2022
15bf3d5
oradb-manage-db: Replace broken .profile_* Envrionmentscript with ocenv
Rendanic Jul 6, 2022
924ec1c
Merge pull request #86 from Rendanic/prprofile
Rendanic Jul 6, 2022
f3a07f1
Merge pull request #92 from bartowl/bugfix/goldenimage
Rendanic Jul 6, 2022
01ff717
- single quotes for create .. identified by values
bartowl Oct 12, 2021
a54814b
- added support to interpret password as hash instead of plaintext in
bartowl Oct 12, 2021
d62a078
Merge pull request #81 from bartowl/bugfix/issue_79
Rendanic Jul 6, 2022
74ac1a6
Breaking Change: removed deprecated roles
Rendanic Jul 6, 2022
50ed963
Merge pull request #97 from Rendanic/prdeprecatedroles
Rendanic Jul 6, 2022
091689d
opatch: Added missing entries for 19c and 21c
Rendanic Jul 6, 2022
92e5112
Merge pull request #98 from Rendanic/propatch
Rendanic Jul 6, 2022
caa3186
ansible-oracle: BREAKING CHANGE! move to a collection (#99)
Rendanic Jul 7, 2022
86c408f
oradb_manage_db: do not start ocenv in .bashrc automatically
Rendanic Jul 8, 2022
b5fe6b6
oradb_manage_db: configure ocenv before database creation
Rendanic Jul 8, 2022
58affe2
Merge pull request #100 from Rendanic/procenv2
Rendanic Jul 8, 2022
50bcf15
typo
Rendanic Jul 7, 2022
d763372
ansible-galaxy: more preparations for upload
Rendanic Jul 7, 2022
bfdf674
oradb_manage_db: be less verbose with loop label
Rendanic Jul 8, 2022
13cf9b9
oradb_rman: be less verbose with loop label
Rendanic Jul 8, 2022
28f7264
Merge pull request #101 from Rendanic/prcollection2
Rendanic Jul 8, 2022
24bf6cd
github action for antsibull-changelog
Rendanic Jul 9, 2022
9d99c2a
antsibull-changelog + documentation
Rendanic Jul 8, 2022
eb4d950
ansible-lint: extend exclude list for antsibull-changelog
Rendanic Jul 8, 2022
ccb62ef
changelog fragments
Rendanic Jul 8, 2022
6c097b5
Merge pull request #102 from Rendanic/prantsibull-changelog
Rendanic Jul 9, 2022
b7b5c9c
fixed quotes for ALTER USER
bartowl Oct 15, 2021
317b092
Merge commit 'b7b5c9c5ff57a5541543cb3010f77d4daead9561' from ansible-…
Rendanic Jul 9, 2022
cf58063
ansible-oracle-modules: changelog
Rendanic Jul 9, 2022
89a1b2f
Merge pull request #103 from Rendanic/prmergemodules
Rendanic Jul 10, 2022
5fd2fae
Set SYSTEM password when creating a DB
Aug 6, 2020
28d9f71
Merge commit '5fd2fae52830e88b8891356c282b378b46ff8703' from ansible-…
Rendanic Jul 10, 2022
7384703
oracle_db: changelog
Rendanic Jul 10, 2022
7139875
Merge pull request #104 from Rendanic/prsystempassword
Rendanic Jul 10, 2022
4e7e52c
oradb_manage_statspack: Bugfix for db.state <> present
Rendanic Jul 10, 2022
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
13 changes: 13 additions & 0 deletions .ansible-lint
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
---

use_default_rules: true

# skip_list:

exclude_paths:
- .github
- dbhome-conversion
- plugins/modules
- playbooks
- changelogs/changelog.yaml
- changelogs/.plugin-cache.yaml
29 changes: 29 additions & 0 deletions .github/workflows/ansible-lint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
---
name: Ansible Lint

on:
pull_request:
branches:
- oc
- master
push:
branches:
- 'pr*'

jobs:
build:

runs-on: ubuntu-20.04

steps:
# Important: This sets up your GITHUB_WORKSPACE environment variable
- uses: actions/checkout@v2

- name: Lint roles
# Use custom action repo due to open PRs 43 and 48
uses: Rendanic/ansible-lint-action@tbr
with:
targets: |
roles/*

args: ""
31 changes: 31 additions & 0 deletions .github/workflows/changelog-lint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: Test antsibull-changelog lint

on:
pull_request:
branches:
- oc
- master
- collection
push:
branches:
- 'pr*'

jobs:
build:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- name: Set up Python 3.9
uses: actions/setup-python@v2
with:
python-version: 3.9

- name: Install dependencies
run: |
python -m pip install --upgrade pip
python -m pip install antsibull-changelog

- name: antsibull-changelog lint (own changelog fragments)
run: |
antsibull-changelog lint
4 changes: 0 additions & 4 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -1,4 +0,0 @@
[submodule "library"]
path = library
url = https://github.com/oravirt/ansible-oracle-modules
branch = master
26 changes: 26 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
---
# See https://pre-commit.com for more information
# See https://pre-commit.com/hooks.html for more hooks
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.0.1
hooks:
# needs some cleanup in project before enabling
# - id: trailing-whitespace
# - id: end-of-file-fixer
- id: check-yaml
- id: check-symlinks
- id: check-added-large-files
- id: check-merge-conflict
- id: detect-private-key
- id: forbid-new-submodules

- repo: https://github.com/ansible-community/ansible-lint.git
rev: v6.3.0
hooks:
- id: ansible-lint
entry: ansible-lint --force-color -p
files: \.(yaml|yml)$
pass_filenames: false
always_run: true
verbose: true
5 changes: 5 additions & 0 deletions .yamllint
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
extends: default

rules:
line-length: disable
249 changes: 249 additions & 0 deletions README.adoc
Original file line number Diff line number Diff line change
@@ -0,0 +1,249 @@
:toc:
:toc-placement!:
toc::[]

* Installs Oracle RAC, RAC One Node and normal single instances.
* Start with one or more clean machine(s), end up with a fully
configured RAC Cluster.

== Getting started

Pre-requisites:

* Ansible >= 2.4
* Oracle Linux (or any RHEL-based Linux System) >= 6.4
* Oracle Database/Grid Infrastructure 18.3.0.0, 12.2.0.1, 12.1.0.1,
12.1.0.2, 11.2.0.4, 11.2.0.3
* For example configurations, look in:

----
SI/FS: group_vars/vbox-si-fs. - vagrant config: http://github.com/oravirt/vagrant-vbox-si-fs
SI/ASM: group_vars/vbox-si-asm - vagrant config: http://github.com/oravirt/vagrant-vbox-si-asm
RAC/ASM: group_vars/vbox-rac-dc1 - vagrant config: http://github.com/oravirt/vagrant-vbox-rac
----

By default, installs a single instance 18.3.0.0 database on a
filesystem.

. Clone this repository:
`git clone --recursive https://github.com/oravirt/ansible-oracle`
. Add the following file to `/tmp` on the controlmachine
* `LINUX.X64_180000_db_home.zip`
. Create an Ansible inventory file
+
....
[myhostgroup]
dbhost
....
. Run the playbook:
+
`ansible-playbook single-instance-db-on-fs.yml -e hostgroup=myhostgroup -i /path/to/inventory`
+
where the `-i` part is optional

== Roles

A lot of these roles uses Ansible modules that comes from
https://github.com/oravirt/ansible-oracle-modules[ansible-oracle-modules]

=== common

This will configure stuff common to all machines

* Install some generic packages
* Configure ntp

=== orahost

This will configure the host specific Oracle stuff:

* Add a user & group
* Create directory structures
* Handle filesystem storage (partition devices, creates vg/lv and a
filesystem (ext4, xfs, btrfs) etc). If you want to create your database
on a filesystem (instead of ASM) this is where you define the layout.
* Install required packages
* Change kernel paramemeters
* Set up pam.d/limits config
* Configures Hugepages (as a percentage of total RAM)
* Disables transparent hugepages
* Disables NUMA (if needed)
* Configures the interconnect network (if needed)
* Configures Oracle ASMLib

=== orahost-ssh

Configures passwordless ssh between clusternodes if setting up RAC
(`configure_cluster=True`)

* Uses existing ssh-keys

=== orahost-storage

This role configures storage that shoud be used by ASM.

* Partitions devices (using parted)
* Create ASMlib labels or sets up udev-rules for device name persistence

=== oraswgi-install

This role will install and configure Oracle Grid Infrastructure (RAC/SI)

* Adds a .profile_grid to the oracle user
* Sets up directory structures
* Copies the install-files to the servers, or installs from a remote
location (e.g nfs share)
* Install Oracle Grid Infrastructure

=== oraasm-manage-diskgroups

This role will statefully manage the lifecycle of an ASM diskgroup

* Uses the *oracle_asmdg* module
* Create/delete diskgroup.
* Add/remove disks
* Manage attributes for the DG

=== oraswdb-install

This role will install the oracle database server(s). It is possible to
run more than 1 database from each home. It performs both Single
Instance/RAC installations.

* Creates a .profile with the correct environment
* Creates directory structures
* Installs the database-server(s)

=== oradb-manage-db

This role statefully manages the lifecycle of a database

* Uses the *oracle_db* module
* Creates/deletes: `state: present/absent`
* Maintains archivelog/force_logging True/False

=== oraswgi-manage-patches

Manage patches in a GI environment

* Uses the *oracle_opatch* module
* Manages opatchauto type of patches as well as 'normal' one-offs

=== oraswdb-manage-patches

Statefully manage patches in a DB environment

* Uses the *oracle_opatch* module
* Manages opatchauto type of patches as well as 'normal' one-offs

=== cxoracle

Installs cx_Oracle in preparation for using
https://github.com/oravirt/ansible-oracle-modules[ansible-oracle-modules]

=== orahost-cron

Configures cron schedules if needed

=== orahost-logrotate

=== oradb-manage-<*>

Statefully manages various aspects of the DB. They all use modules from
https://github.com/oravirt/ansible-oracle-modules[ansible-oracle-modules]

* *oradb-manage-pdb*
* *oradb-manage-tablespace*
* *oradb-manage-parameters*
* *oradb-manage-roles*
* *oradb-manage-users*
* *oradb-manage-grants*
* *oradb-manage-redo*
* *oradb-manage-services*

== Deprecated roles

*_oraswgi-opatch (use oraswgi-manage-patches instead)_*

== Note

These are the Oracle binaries that are pre-configured to be used. They
have to be manually downloaded and made available (either locally, from
a web endpoint or through a nfs-share)

For 18.3.0.0:

----
LINUX.X64_180000_db_home.zip
LINUX.X64_180000_grid_home.zip
----

For 12.2.0.1:

----
linuxx64_12201_database.zip
linuxx64_12201_grid_home.zip
----

For 12.1.0.2

----
linuxamd64_12102_database_1of2.zip
linuxamd64_12102_database_2of2.zip
linuxamd64_12102_grid_1of2.zip
linuxamd64_12102_grid_2of2.zip
----

For 12.1.0.1:

----
linuxamd64_12c_database_1of2.zip
linuxamd64_12c_database_2of2.zip
linuxamd64_12c_grid_1of2.zip
linuxamd64_12c_grid_2of2.zip
----

For 11.2.0.4:

----
p13390677_112040_Linux-x86-64_1of7.zip
p13390677_112040_Linux-x86-64_2of7.zip
p13390677_112040_Linux-x86-64_3of7.zip
----

For 11.2.0.3:

----
p10404530_112030_Linux-x86-64_1of7.zip
p10404530_112030_Linux-x86-64_2of7.zip
p10404530_112030_Linux-x86-64_3of7.zip
----

== Pull-Requests

=== Update subtree plugins/modules from upstream

----
git subtree pull --prefix plugins/modules https://github.com/opitzconsulting/ansible-oracle-modules.git oc
----

=== Important Information

The ansible-oracle project introduced `antsibull-changelog` for managing the `CHANGELOG.rst` based on fragments in `changelogs/gragments`.

The ID should point to the PR and the filename describe the PR in short form.
The fragments are part of the PR. If multiple PRs are open, the upper rule makes sure that no duplicate files are created during merge.

IMPORTANT: Each Pull-Requests needs a fragment from Release 3.0.0 onwards!

=== Working with antsibull-changelog

Changelogs for Collections: https://github.com/ansible-community/antsibull-changelog/blob/main/docs/changelogs.rst#releasing-a-new-version-of-a-collection

=== Creating new releases

`antsibull-changelog release` reads `galaxy.yml` to get the release version automatically.
The execution is aborted, when a release with the version is existing in `CHANGELOG.rst`.

NOTE: The whole release process should be donw with a dedicated Pull-Request.

Loading