Commit graph

997 commits

Author SHA1 Message Date
github-actions[bot]
36d9686f38 ci: This PR is to trigger periodic CI testing 2026-07-04 13:35:00 +00:00
github-actions[bot]
12148960e7 ci: This PR is to trigger periodic CI testing 2026-07-04 13:35:00 +00:00
github-actions[bot]
4b147cd2c4 ci: This PR is to trigger periodic CI testing 2026-07-04 13:35:00 +00:00
github-actions[bot]
2a004f617b ci: This PR is to trigger periodic CI testing 2026-07-04 13:35:00 +00:00
github-actions[bot]
b5e91def77 ci: This PR is to trigger periodic CI testing 2026-07-04 13:35:00 +00:00
github-actions[bot]
a0868fa76b ci: This PR is to trigger periodic CI testing 2026-07-04 13:35:00 +00:00
github-actions[bot]
d16e781950 ci: This PR is to trigger periodic CI testing 2026-07-04 13:35:00 +00:00
github-actions[bot]
36266dd82f ci: This PR is to trigger periodic CI testing 2026-07-04 13:35:00 +00:00
github-actions[bot]
9599a5d423 ci: This PR is to trigger periodic CI testing 2026-07-04 13:35:00 +00:00
github-actions[bot]
4b76e6ff74 ci: This PR is to trigger periodic CI testing 2026-07-04 13:35:00 +00:00
github-actions[bot]
353fbff5cc ci: This PR is to trigger periodic CI testing 2026-07-04 13:35:00 +00:00
github-actions[bot]
658b679151 ci: This PR is to trigger periodic CI testing 2026-07-04 13:35:00 +00:00
github-actions[bot]
4d3ba60398 ci: This PR is to trigger periodic CI testing 2026-07-04 13:35:00 +00:00
github-actions[bot]
65b546d036 ci: This PR is to trigger periodic CI testing 2026-07-04 13:35:00 +00:00
github-actions[bot]
b9580f4da7 ci: This PR is to trigger periodic CI testing 2026-07-04 13:35:00 +00:00
github-actions[bot]
78356220cc ci: This PR is to trigger periodic CI testing 2026-07-04 13:35:00 +00:00
github-actions[bot]
89df4c307a ci: This PR is to trigger periodic CI testing 2026-07-04 13:35:00 +00:00
github-actions[bot]
4d1428f095 ci: This PR is to trigger periodic CI testing 2026-07-04 13:35:00 +00:00
github-actions[bot]
f1d357c82c ci: This PR is to trigger periodic CI testing 2026-07-04 13:35:00 +00:00
github-actions[bot]
dfdad237fe ci: This PR is to trigger periodic CI testing 2026-07-04 13:35:00 +00:00
github-actions[bot]
48228ab3ad ci: This PR is to trigger periodic CI testing 2026-07-04 13:35:00 +00:00
github-actions[bot]
aa046fc2c0 ci: This PR is to trigger periodic CI testing 2026-07-04 13:35:00 +00:00
github-actions[bot]
2dc22d24d3 ci: This PR is to trigger periodic CI testing 2026-07-04 13:35:00 +00:00
github-actions[bot]
3ae0f9b78a ci: This PR is to trigger periodic CI testing 2026-07-04 13:35:00 +00:00
Rich Megginson
d4c5353eb0 ci: Use our own pr_title_lint.py instead of NPM commitlint [citest_skip]
There are a few problems with the NPM commitlint

* NPM is problematic
* Having to install NPM and commitlint and dependencies is slow and heavyweight
* commitlint is overkill for our simple use case

We have our own pr_title_lint.py which is small and works exactly for our use case.

Enhance coderabbit checks for PRs and test cleanup

Signed-off-by: Rich Megginson <rmeggins@redhat.com>
2026-07-02 11:24:09 -06:00
Rich Megginson
42c0322b17 ci: use gha checkout v7, codecov v7 [citest_skip]
Use github actions checkout @v7

Use codecov action @v7

Signed-off-by: Rich Megginson <rmeggins@redhat.com>
2026-07-01 08:40:10 -06:00
Rich Megginson
8f6bd49889 docs(changelog): version 1.20.3 [citest_skip]
Update changelog and .README.html for version 1.20.3

Signed-off-by: Rich Megginson <rmeggins@redhat.com>
2026-06-25 16:51:40 -06:00
Rich Megginson
6a3853d5c4 test: fix kernel url path for the mac80211_hwsim kernel module
The method for determining the kernel url path for the module did not
work on all arches.

Skip the test if the kernel module is not found.  Some architectures do
not provide the module.

Signed-off-by: Rich Megginson <rmeggins@redhat.com>
2026-06-25 15:45:20 -06:00
Rich Megginson
c1fe21dab1 docs(changelog): version 1.20.2 [citest_skip]
Update changelog and .README.html for version 1.20.2

Signed-off-by: Rich Megginson <rmeggins@redhat.com>
2026-06-24 12:10:57 -06:00
Rich Megginson
6be4f3ecd6 test: remove unused files
We do not use molecule.

The custom requirements are no longer needed.

Remove py26 requirements

Use ansible-core - much smaller than ansible

Signed-off-by: Rich Megginson <rmeggins@redhat.com>
2026-06-24 06:57:42 -06:00
Rich Megginson
87b9e46f64 test: refactor wireless tests into single setup and cleanup
The wireless test setup/cleanup had a lot of duplicated code scattered
among a few task files.  This unifies the setup and cleanup code and
gets rid of redundant files.

This also enables all of the wireless tests on CentOS 7 and later,
and RHEL 8 and later.

Signed-off-by: Rich Megginson <rmeggins@redhat.com>
2026-06-09 06:38:45 -06:00
Rich Megginson
3c4717c84f test: fix unit test module lookup paths
fix unit test module lookup paths

Signed-off-by: Rich Megginson <rmeggins@redhat.com>
2026-06-01 14:39:13 -06:00
Rich Megginson
82f252d492 docs(changelog): version 1.20.1 [citest_skip]
Update changelog and .README.html for version 1.20.1

Signed-off-by: Rich Megginson <rmeggins@redhat.com>
2026-06-01 07:16:30 -06:00
Rich Megginson
2f9b128e2b fix: correctly retry device read when device is unstable
Cause: The retry loop for reading from a device would bail out of the loop
before retrying because the loop should have used a greater-than-or-equal
to test the retry condition rather than a less-than.

Consequence: If the device is not stable, the loop would bail and issue
an exception rather than trying to retry the read.

Fix: Use the correct loop condition.

Result: The network role can correctly retry the read when the device
is unstable.

Signed-off-by: Rich Megginson <rmeggins@redhat.com>
2026-05-26 07:17:56 -06:00
Sergei Petrosian
fd99c0b783 ci: Skip reviews for PRs with [citest_skip] in the title
- Add info about .coderabbit.yam for AI assistants to contributing.md
- Note that CodeRabbit uses config from the main branch so this change will apply
after this PR is merged.

Signed-off-by: Sergei Petrosian <spetrosi@redhat.com>
2026-05-21 12:03:55 +02:00
Rich Megginson
59f4ef91ee refactor: use ansible.posix 2.1.X for EL7 compatibility [citest_skip]
The recently released ansible.posix 2.2.0 does not work on EL7.
Pin the version of ansible.posix to 2.1.X.

NOTE: Even though this role might not support EL7, this update
is applied to all system roles for consistency.  Plus, when this
role is part of the system roles collection, all roles must use
the same version of ansible.posix - there is no way for a role
which is part of a collection to use a different version of a
dependency than the version used by the other roles.

Signed-off-by: Rich Megginson <rmeggins@redhat.com>
2026-05-20 08:04:04 -06:00
Sergei Petrosian
cd58ebb508 ci: Add config file for CodeRabbit with custom rules
Sourcery that we currently use cannot read documentation files and best
practices, it's rather a refactoring tool.
So I want to introduce CodeRabbit that allows creating .coderabbit.yaml with
custom rules and conventions.

Signed-off-by: Sergei Petrosian <spetrosi@redhat.com>
2026-05-19 14:06:47 +02:00
Rich Megginson
42cf0cf23a docs(changelog): version 1.20.0 [citest_skip]
Update changelog and .README.html for version 1.20.0

Signed-off-by: Rich Megginson <rmeggins@redhat.com>
2026-05-12 07:28:38 -06:00
Sergei Petrosian
313f3ea4ec feat: Use verbosity-based logging in network role
- Replace no_log: true with no_log: "{{ ansible_verbosity < 3 }}"
  in all tasks (setup, service_facts, package_facts, and service tasks)
- This allows output to be shown when running with -vvv or higher verbosity
- The no_log was used for verbosity control, not security purposes

In the network role, no_log: true was used to reduce verbose output,
not to protect sensitive information. Using ansible_verbosity allows
users to see the output when debugging with increased verbosity flags.

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
Signed-off-by: Sergei Petrosian <spetrosi@redhat.com>
2026-05-12 07:18:48 -06:00
Rich Megginson
1552fe866a docs(changelog): version 1.19.0 [citest_skip]
Update changelog and .README.html for version 1.19.0

Signed-off-by: Rich Megginson <rmeggins@redhat.com>
2026-05-07 14:53:54 -06:00
Rich Megginson
b23e006322 refactor: log-to-syslog in debug_flags will log internal trace msgs to syslog [citest_skip]
If you set __network_debug_flags=log-to-syslog then the internal trace messages which
are returned by the module will also be logged to syslog.  This is useful for when
the network role hangs and times out and is killed before those messages can
be returned.  The trace messages printed to syslog can help debug problems.

Signed-off-by: Rich Megginson <rmeggins@redhat.com>
2026-05-07 14:21:02 -06:00
dependabot[bot]
1f5c1a45fb ci: bump actions/github-script from 8 to 9
Bumps [actions/github-script](https://github.com/actions/github-script) from 8 to 9.
- [Release notes](https://github.com/actions/github-script/releases)
- [Commits](https://github.com/actions/github-script/compare/v8...v9)

---
updated-dependencies:
- dependency-name: actions/github-script
  dependency-version: '9'
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2026-05-01 12:02:44 -06:00
Rich Megginson
3267ddb287 test: ensure integration and unit pytest work in collection mode
Refactor the common code in tests_unit.yml and the integration pytest
into a single block of code.

The tests/ directory has a library sub-directory with a symlink to the
network_connections.py module.  This was causing problems because the logic
in get_modules_and_utils_paths.yml really wants the real files and
directories, not the symlinks, and for some reason the bash `-f` test
is returning `true` for the symlink.  Instead, ensure that we do not use
the link by using `-L` to screen it out.

Also added the collection paths to the search.

Make the path arrays have unique values.

Use the `realpath` filter to see the full actual path.

Signed-off-by: Rich Megginson <rmeggins@redhat.com>
2026-05-01 06:55:49 -06:00
Rich Megginson
0cd3b7a16f fix: handle_exceptions is not a valid parameter
Signed-off-by: Rich Megginson <rmeggins@redhat.com>
2026-04-30 06:25:05 -06:00
HVSharma12
91a6c42298 fix: add initial support for sle16+
Signed-off-by: HVSharma12 <harshvardhan.sharma@suse.com>
2026-04-29 08:18:53 -06:00
Rich Megginson
f23d29c22c docs(changelog): version 1.18.0 [citest_skip]
Update changelog and .README.html for version 1.18.0

Signed-off-by: Rich Megginson <rmeggins@redhat.com>
2026-04-28 11:08:51 -06:00
Rich Megginson
b94f3d0993 feat: add role fingerprints to syslog
Feature: Add a fingerprint string to the system log to indicate when the role began
successfully, and when the role finished successfully.  The fingerprint string indicates
the role name, a timestamp, and the platform.

Reason: Users can see when the role was used and if it was used successfully.  This
information from the system log can be collected by log scanners and aggregators
for further analysis.

Result: The role logs fingerprints to the system log.

This also adds a test to check if the fingerprints were written upon a successful
role invocation.

Signed-off-by: Rich Megginson <rmeggins@redhat.com>
2026-04-27 08:55:57 -06:00
Rich Megginson
09f4336dee ci: ansible-lint requires dependencies to be installed [citest_skip]
ansible-lint requires the dependencies in meta/collection-requirements.yml
and tests/collection-requirements.yml to be installed.  tox-lsr 3.18.1
will ensure they are installed.

Refactor the tests somewhat so that the collection and test steps are separate.

Signed-off-by: Rich Megginson <rmeggins@redhat.com>
2026-04-09 17:13:10 -06:00
Rich Megginson
06d6f36229 ci: Comply with Ansible partner certification checking [citest_skip]
https://github.com/ansible-collections/partner-certification-checker/blob/main/README.md

Unfortunately we cannot use the checkers provided by their team because they assume
the git repo is in collection format - you cannot convert to collection format first
then point the checkers at that collection.  Instead, implement our own checkers that
do the same (and more) - check with multiple versions of ansible-lint and ansible-test
to ensure we cover:

* all supported versions of EL
* Automation Hub gating
* the latest versions of Ansible, including the latest milestone version

This requires the latest version of tox-lsr

Signed-off-by: Rich Megginson <rmeggins@redhat.com>
2026-04-08 16:13:40 -06:00
Rich Megginson
dc993ffea9 test: support ansible-test milestone version 2.22 [citest_skip]
The ansible milestone branch is now version 2.22

Signed-off-by: Rich Megginson <rmeggins@redhat.com>
2026-04-08 15:16:00 -06:00