Skip to content

Modernization rewrite V2#18

Merged
ralphm merged 27 commits into
netdata:masterfrom
pid1:full-rewrite-v2
Jun 9, 2026
Merged

Modernization rewrite V2#18
ralphm merged 27 commits into
netdata:masterfrom
pid1:full-rewrite-v2

Conversation

@pid1

@pid1 pid1 commented Mar 10, 2026

Copy link
Copy Markdown
Contributor

This is a re-implementation of #16 with a clean commit history and addressing the feedback in the prior PR.

pid1 added 8 commits December 6, 2024 15:36
Remove legacy multi-role structure (roles/, molecule/, claim.yml, purge.yml,
netdata-agent.yml, .ansible-lint, group_vars/, host_vars/).

Implement single-role layout supporting Debian, Ubuntu, and OpenSUSE with
CI workflows for linting and integration testing.

Address all review feedback from #16:
- Restore trailing period in CODEOWNERS comment
- Remove .gitignore per reviewer agreement
- Rename netdata_release_version to netdata_release_channel with nightly->edge mapping
- Move role version from defaults to meta/main.yml as 0.1.0
- Add explicit GPG key ID to apt_key task
- Replace restart handler with netdatacli reload-claiming-state for claims
- Remove default insecure=no from claim.conf.j2
- Remove redundant enable_all_charts charts.d.conf task
- Consolidate install-ubuntu.yml into install-debian.yml
- Remove empty vars/main.yml
The ansible-lint schema[meta] rule does not allow 'version' inside
galaxy_info. Move the field to the root level of meta/main.yml to
satisfy the reviewer's request while passing lint validation.
Rewrite README.md with accurate platform support (adds Ubuntu, openSUSE), structured usage examples, complete role variables table, and release channel documentation.
@pid1 pid1 requested a review from a team as a code owner March 10, 2026 23:15
@pid1 pid1 mentioned this pull request Mar 10, 2026
pid1 added 10 commits March 10, 2026 19:01
…s/checkout to v6

Remove the top-level 'version' key from meta/main.yml, which is not a valid
RoleMetadata attribute and caused all integration test jobs to fail with exit
code 4. Update actions/checkout from v4 to v6 in both workflow files to
resolve Node.js 20 deprecation warnings.
Install community.general collection explicitly in the opensuse-test CI
job, since the openSUSE Leap ansible package does not always bundle it.

Remove the Tumbleweed-specific netfilter repository task from
install-opensuse.yml. The hardcoded Tumbleweed URL is invalid for Leap
systems and caused connection failures. The libnetfilter_acct1 package
is available from the standard Leap repositories.
@rawiriblundell

Copy link
Copy Markdown

@ralphm Just in case you weren't aware :)

pid1 added 9 commits March 13, 2026 06:12
Add when condition to skip libnetfilter_acct1 installation on Leap 16.0+
where the package is unavailable. Restore opensuse/leap:15.5 to the CI
matrix with community.general pinned to 3.8.8 for Python 3.6 compat.
The test playbook referenced the role as `../netdata-ansible`, which
Ansible resolves relative to the playbook file (tests/), so it expected
a sibling directory named `netdata-ansible` next to the repo checkout.
In CI the repo is checked out as `ansible` (because the upstream repo
is netdata/ansible), so the parent directory is `ansible`, not
`netdata-ansible`, and Ansible failed with:

    ERROR! the role '../netdata-ansible' was not found in ...

Fix it the standard Ansible Galaxy way: add a `tests/roles/netdata`
symlink pointing at the repository root, and have the playbook reference
the role by its declared name (`role: netdata`). Ansible's default
roles_path includes the directory of the playbook, so `tests/roles/`
is searched automatically. This also matches how the role is invoked
in the README.
@pid1

pid1 commented Jun 2, 2026

Copy link
Copy Markdown
Contributor Author

@ralphm @Ferroin Not sure who is maintaining this nowadays, but this is ready for review.

@ralphm ralphm left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @pid1. I think this good to be merged as-is, so I will do so. Whatever we would want to tweak can be done in a separate PR. E.g. adding support for Ubuntu 26.04.

@ralphm ralphm merged commit 0e62157 into netdata:master Jun 9, 2026
9 checks passed
ralphm added a commit that referenced this pull request Jun 9, 2026
@pid1 pid1 mentioned this pull request Jun 9, 2026
6 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants