Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
1 change: 1 addition & 0 deletions .ansible-lint
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ exclude_paths:
- extensions
- dbhome-conversion
- docker
- tools
- plugins/modules
- execution-environment.yml
- playbooks/desupported
Expand Down
21 changes: 21 additions & 0 deletions CHANGELOG.rst
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,27 @@ opitzconsulting.ansible\_oracle Release Notes

.. contents:: Topics

v4.13.1
=======

Minor Changes
-------------

- Upgrade ansible-doctor 6.0.5 and pre-commit (oravirt#517)
- ansible-lint upgrade to 25.2.1 (oravirt#517)
- helper script for building releases (oravirt#518)
- nix: Adding direnv and nix configuration for easy setup of dev environment via nix-shell (oravirt#517)

Security Fixes
--------------

- ansible-core: Upgrade versions due to security alerts from dependbot (oravirt#517)

Bugfixes
--------

- oradb_tzupgrade_pdbs: compose the list of PDBs in Ansible (oravirt#516)

v4.13.0
=======

Expand Down
2 changes: 1 addition & 1 deletion changelogs/.plugin-cache.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -159,4 +159,4 @@ plugins:
strategy: {}
test: {}
vars: {}
version: 4.13.0
version: 4.13.1
17 changes: 17 additions & 0 deletions changelogs/changelog.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -747,6 +747,23 @@ releases:
- scripts_folder_fix.yml
- typo-zauberkasten.yml
release_date: '2025-03-30'
4.13.1:
changes:
bugfixes:
- 'oradb_tzupgrade_pdbs: compose the list of PDBs in Ansible (oravirt#516)'
minor_changes:
- Upgrade ansible-doctor 6.0.5 and pre-commit (oravirt#517)
- ansible-lint upgrade to 25.2.1 (oravirt#517)
- helper script for building releases (oravirt#518)
- 'nix: Adding direnv and nix configuration for easy setup of dev environment
via nix-shell (oravirt#517)'
security_fixes:
- 'ansible-core: Upgrade versions due to security alerts from dependbot (oravirt#517)'
fragments:
- nix-doctor-lint.yml
- oradb_tzupgrade_pdbs.yml
- release-scripts.yml
release_date: '2025-04-27'
4.2.0:
changes:
breaking_changes:
Expand Down
8 changes: 0 additions & 8 deletions changelogs/fragments/nix-doctor-lint.yml

This file was deleted.

3 changes: 0 additions & 3 deletions changelogs/fragments/oradb_tzupgrade_pdbs.yml

This file was deleted.

9 changes: 6 additions & 3 deletions example/beginner/ansible/requirements.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
---
collections:
- name: devsec.hardening
version: 8.2.0
- name: opitzconsulting.ansible_oracle
version: 3.2.0
version: 4.13.1

# following entry is for development only!
# - name: opitzconsulting.ansible_oracle
# source: ./../../..
# type: dir
2 changes: 1 addition & 1 deletion example/beginner_patching/ansible/requirements.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
collections:
- name: opitzconsulting.ansible_oracle
version: 4.13.0
version: 4.13.1

# following entry is for development only!
# - name: opitzconsulting.ansible_oracle
Expand Down
2 changes: 1 addition & 1 deletion example/rac/ansible/requirements.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
collections:
- name: opitzconsulting.ansible_oracle
version: 4.13.0
version: 4.13.1

# following entry is for development only!
# - name: opitzconsulting.ansible_oracle
Expand Down
2 changes: 1 addition & 1 deletion galaxy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
namespace: opitzconsulting
name: ansible_oracle
description: "This is the collection of ansible-oracle from https://github.com/oravirt/ansible-oracle"
version: 4.13.0
version: 4.13.1
repository: https://github.com/oravirt/ansible-oracle.git
readme: README.md
authors:
Expand Down
67 changes: 67 additions & 0 deletions tools/release/build_release.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,67 @@
#!/usr/bin/env bash
set -eu
set -o pipefail

# Shellscript for managing releases in ansible-oracle
#
# used to update the collection version in files.

galaxy="../../galaxy.yml"

workdir=$(dirname "$0")
cd "$workdir" || exit 1

build_release=$(git branch --show-current | cut -d"/" -f2)

function change_release_version() {
echo "Using Release from branch: $build_release"
echo "Format galaxy.yml"
sed -i "/^version: /c\version: ${build_release}" "${galaxy}"
grep "version: " "${galaxy}"

echo "Format requirements.yml"
sed -i "/^ version: /c\ version: ${build_release}" requirements.yml
grep "version: " requirements.yml

target_dirs="example/beginner_patching/ansible/requirements.yml
example/rac/ansible/requirements.yml
example/beginner/ansible/requirements.yml"

for requirement_file in ${target_dirs} ; do
filename="../../${requirement_file}"

echo "target file: ${filename}"
cp requirements.yml "${filename}"
done

}

check_antsibull_changes() {

# check if all antsibull entries have a reference with (oravirt#[0-9][0-9][0-9])
echo "Checking antsibull changelog entries"

pwd

for clfile in "../../changelogs/fragments"/*yml ; do
echo "Checking file: ${clfile}"

if grep " - " "${clfile}" | grep -v "oravirt#[0-9][0-9][0-9]" ; then
echo "Found changelog entries without PR reference"
exit
fi
done

}

function make_changelog() {
# cd "${workdir}/../.."
pwd
echo "Starting antsibull changelog"
../.././.venv/antsibull/bin/antsibull-changelog release
}

check_antsibull_changes
change_release_version

make_changelog
9 changes: 9 additions & 0 deletions tools/release/requirements.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
---
collections:
- name: opitzconsulting.ansible_oracle
version: 4.13.1

# following entry is for development only!
# - name: opitzconsulting.ansible_oracle
# source: ./../../..
# type: dir
Loading