ci: migrate from gitlab ci to woodpecker
All checks were successful
ci/woodpecker/push/linting Pipeline was successful

This commit is contained in:
Simon Cornet 2026-05-15 13:40:39 +02:00
commit 5aaf6a11f3
4 changed files with 64 additions and 35 deletions

View file

@ -3,6 +3,7 @@
exclude_paths: exclude_paths:
- ".gitlab/*" - ".gitlab/*"
- ".gitlab-ci.yml" - ".gitlab-ci.yml"
- ".woodpecker/*"
- "defaults/main.yaml" - "defaults/main.yaml"
- "meta/main.yaml" - "meta/main.yaml"
- "vars/*" - "vars/*"

View file

@ -1,13 +0,0 @@
---
# gitlab stages
stages:
- "gitleaks"
- "linting"
# include components
include:
- component: "$CI_SERVER_FQDN/components/ansible/linting@v3.0.3"
- component: "$CI_SERVER_FQDN/components/gitleaks/gitleaks@v1.0.0"
- component: "$CI_SERVER_FQDN/components/markdownlint/markdownlint@1.0.0"
- component: "$CI_SERVER_FQDN/components/yamllint/yamllint@1.0.2"

41
.woodpecker/linting.yml Normal file
View file

@ -0,0 +1,41 @@
---
when:
- event: "push"
branch: "main"
- event: "manual"
steps:
# gitleaks
- name: "gitleaks"
# renovate: datasource=github-releases depName=gitleaks/gitleaks
image: "cr.simoncor.net/ghcr/gitleaks/gitleaks:v8.30.1"
commands:
- "gitleaks detect --source . --verbose --redact"
# yamllint
- name: "yamllint"
# renovate: datasource=docker depName=cr.simoncor.net/yamllint
image: "cr.simoncor.net/yamllint:1.38.0"
depends_on:
- "gitleaks"
commands:
- "yamllint -c .yamllint ."
# ansible-lint
- name: "ansible-lint"
# renovate: datasource=docker depName=docker.io/pipelinecomponents/ansible-lint
image: "cr.simoncor.net/dockerhub/pipelinecomponents/ansible-lint:0.79.11"
depends_on:
- "gitleaks"
commands:
- "ansible-lint -c .ansible-lint ."
# markdownlint
- name: "markdownlint"
# renovate: datasource=docker depName=docker.io/davidanson/markdownlint-cli2
image: "cr.simoncor.net/dockerhub/davidanson/markdownlint-cli2:v0.22.1"
depends_on:
- "gitleaks"
commands:
- "markdownlint-cli2 --config .markdownlint-cli2.jsonc"

View file

@ -5,7 +5,7 @@ This role the installation and configuration of the Zabbix Agent version 2.
## Supported Operating Systems ## Supported Operating Systems
| Operating System | Version | | Operating System | Version |
| --- | ----- | | ---------------- | --------- |
| Alpine | 3.23 | | Alpine | 3.23 |
| Debian | 13 | | Debian | 13 |
| SLES | 15 | | SLES | 15 |
@ -14,7 +14,7 @@ This role the installation and configuration of the Zabbix Agent version 2.
## Variables ## Variables
| Variable | Type | Default | Required | | Variable | Type | Default | Required |
| --- | --- | --- | --- | | -------------------------- | ----------- | ------------------------------------- | -------- |
| zabbix_agent_hostinterface | string | inventory_hostname | No | | zabbix_agent_hostinterface | string | inventory_hostname | No |
| zabbix_agent_hostname | string | inventory_hostname | No | | zabbix_agent_hostname | string | inventory_hostname | No |
| zabbix_agent_listen_port | string | 10050 | No | | zabbix_agent_listen_port | string | 10050 | No |
@ -65,7 +65,7 @@ This is possible, but please `only use if really required`.
If you call the role without tags, it will execute all of the stages bellow. If you call the role without tags, it will execute all of the stages bellow.
| Tags | Purpose | | Tags | Purpose |
| --- | --- | | -------------------- | ---------------------------------------- |
| zabbix_agent_config | Only manage Zabbix Agent 2 configuration | | zabbix_agent_config | Only manage Zabbix Agent 2 configuration |
| zabbix_agent_install | Only manage Zabbix Agent 2 installation | | zabbix_agent_install | Only manage Zabbix Agent 2 installation |
| zabbix_agent_prereq | Only manage Zabbix Agent 2 prerequisites | | zabbix_agent_prereq | Only manage Zabbix Agent 2 prerequisites |