Skip to content

Commit 28329c8

Browse files
authored
re-added workflow for pdns_records (#24)
* re-added workflow for pdns_records * better pdns support for ubuntu and debian based systems
1 parent 44ac0ac commit 28329c8

14 files changed

Lines changed: 240 additions & 529 deletions

File tree

.github/workflows/main.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,6 @@ jobs:
6060
- pdns
6161
- pdns_recursor
6262
- pihole
63-
# - pdns_records
6463

6564
steps:
6665
- name: check out the codebase.

.github/workflows/pdns_records.yml

Lines changed: 155 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,155 @@
1+
---
2+
3+
name: pdns_records
4+
5+
on:
6+
workflow_dispatch:
7+
inputs:
8+
logLevel:
9+
description: 'Log level'
10+
required: true
11+
default: 'warning'
12+
type: choice
13+
options:
14+
- info
15+
- warning
16+
- debug
17+
push:
18+
branches:
19+
- 'main'
20+
- 'feature/**'
21+
- 'fix/**'
22+
- '!doc/**'
23+
paths:
24+
- "!Makefile"
25+
- "!README.md"
26+
- 'roles/pdns_records/**'
27+
- '.github/workflows/pdns_records.yml'
28+
- '.config/ansible-lint.yml'
29+
- '.yamllint'
30+
pull_request:
31+
branches:
32+
- 'main'
33+
- 'feature/**'
34+
- 'fix/**'
35+
- '!doc/**'
36+
paths:
37+
- "!Makefile"
38+
- "!README.md"
39+
- 'roles/pdns_records/**'
40+
- '.github/workflows/pdns_records.yml'
41+
- '.config/ansible-lint.yml'
42+
- '.yamllint'
43+
44+
env:
45+
COLLECTION_NAMESPACE: bodsch
46+
COLLECTION_NAME: dns
47+
PY_COLORS: '1'
48+
ANSIBLE_FORCE_COLOR: '1'
49+
50+
jobs:
51+
arch:
52+
name: "${{ matrix.image }} / ${{ matrix.scenario }} / ${{ matrix.ansible-version }} / ${{ matrix.python_version }}"
53+
runs-on: ubuntu-22.04
54+
strategy:
55+
fail-fast: false
56+
matrix:
57+
image:
58+
- archlinux:latest
59+
ansible-version:
60+
- '9.5'
61+
python_version:
62+
- '3.12'
63+
scenario:
64+
- backend-lmdb
65+
- backend-mysql
66+
- backend-sqlite
67+
collection_role:
68+
- pdns_records
69+
70+
steps:
71+
- name: check out the codebase.
72+
uses: actions/checkout@v4.2.2
73+
74+
- name: 🐍 set up python
75+
uses: actions/setup-python@v5
76+
with:
77+
python-version: "${{ matrix.python_version }}"
78+
79+
- name: install dependencies
80+
run: |
81+
python -m pip install --upgrade pip
82+
pip install -r test-requirements.txt
83+
84+
- name: force reinstall of community.docker
85+
run: |
86+
mkdir -p /home/runner/.ansible/collections
87+
ansible-galaxy collection install community.docker --force
88+
89+
- name: Install collection
90+
run: |
91+
make \
92+
install
93+
94+
- name: test ${{ matrix.collection_role }} - ${{ matrix.scenario }}
95+
run: |
96+
make \
97+
test \
98+
-e TOX_ANSIBLE="ansible_${{ matrix.ansible-version }}" \
99+
-e DISTRIBUTION="${{ matrix.image }}" \
100+
-e COLLECTION_ROLE="${{ matrix.collection_role }}" \
101+
-e COLLECTION_SCENARIO="${{ matrix.scenario }}"
102+
103+
scenarios:
104+
name: "${{ matrix.image }} / ${{ matrix.scenario }} / ${{ matrix.ansible-version }} / ${{ matrix.python_version }}"
105+
runs-on: ubuntu-22.04
106+
strategy:
107+
fail-fast: false
108+
matrix:
109+
image:
110+
- debian:12
111+
ansible-version:
112+
- '9.5'
113+
python_version:
114+
- '3.12'
115+
scenario:
116+
- backend-lmdb
117+
- backend-mysql
118+
- backend-sqlite
119+
collection_role:
120+
- pdns_records
121+
122+
steps:
123+
- name: check out the codebase.
124+
uses: actions/checkout@v4.2.2
125+
with:
126+
ref: ${{ github.event.workflow_run.head_branch }}
127+
128+
- name: 🐍 set up python
129+
uses: actions/setup-python@v5
130+
with:
131+
python-version: "${{ matrix.python_version }}"
132+
133+
- name: install dependencies
134+
run: |
135+
python -m pip install --upgrade pip
136+
pip install -r test-requirements.txt
137+
138+
- name: force reinstall of community.docker
139+
run: |
140+
mkdir -p /home/runner/.ansible/collections
141+
ansible-galaxy collection install community.docker --force
142+
143+
- name: Install collection
144+
run: |
145+
make \
146+
install
147+
148+
- name: test ${{ matrix.collection_role }} - ${{ matrix.scenario }}
149+
run: |
150+
make \
151+
test \
152+
-e TOX_ANSIBLE="ansible_${{ matrix.ansible-version }}" \
153+
-e DISTRIBUTION="${{ matrix.image }}" \
154+
-e COLLECTION_ROLE="${{ matrix.collection_role }}" \
155+
-e COLLECTION_SCENARIO="${{ matrix.scenario }}"

galaxy.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
namespace: bodsch
44
name: dns
55

6-
version: 1.1.0
6+
version: 1.1.1
77

88
readme: README.md
99

0 commit comments

Comments
 (0)