Skip to content

feature: Add support for OpenWrt system #60

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Draft
wants to merge 228 commits into
base: master
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
228 commits
Select commit Hold shift + click to select a range
de5cdfc
Updated lock requests version
xiaoyao9184 Mar 23, 2025
26d8b2e
Added vscode launch for molecule debug
xiaoyao9184 Mar 23, 2025
1ed405a
Added vscode tasks for molecule test
xiaoyao9184 Mar 23, 2025
6e0b17d
Updated rename molecule test on cgroup v1 host
xiaoyao9184 Mar 23, 2025
8eec68e
Added molecule test on cgroup v2 host
xiaoyao9184 Mar 23, 2025
68dcc91
Updated vscode task for molecule test on cgroup v1 host
xiaoyao9184 Mar 23, 2025
ff4f6a2
Updated vscode launch for molecule test on cgroup v1 host
xiaoyao9184 Mar 23, 2025
d523e3c
Updated vscode task for molecule test on cgroup v2 host
xiaoyao9184 Mar 23, 2025
1b57914
Updated vscode launch for molecule test on cgroup v2 host
xiaoyao9184 Mar 23, 2025
c51474b
Updated GitHub workflow for molecule test on cgroup v2 host
xiaoyao9184 Mar 23, 2025
d84412d
Fixed molecule test on cgroupv2 by enable dependency update
xiaoyao9184 Mar 23, 2025
1ccfd2d
Renamed molecule test working directory and include_role name
xiaoyao9184 Mar 23, 2025
e6c7ad6
Updated README for molecule test
xiaoyao9184 Mar 23, 2025
46e7aba
Bump pre-commit version
xiaoyao9184 Mar 23, 2025
4f1322d
Removed pre-commit pip installed on GitHub workflow
xiaoyao9184 Mar 23, 2025
adab337
Added ignore for tox
xiaoyao9184 Mar 23, 2025
b3e960f
Add tox.ini
xiaoyao9184 Mar 23, 2025
822319c
Updated tox for change envdir
xiaoyao9184 Mar 23, 2025
e3d6c64
Added tox ansible with basepython matrix
xiaoyao9184 Mar 23, 2025
94b67a8
Bump tox-ansible 1.9.0
xiaoyao9184 Mar 23, 2025
e77e5eb
Bump tox 3.28.0 match tox.ini
xiaoyao9184 Mar 23, 2025
117c9a5
Updated pre-commit black versions match pyproject
xiaoyao9184 Mar 23, 2025
db0de3f
Updated vscode launch for tox test
xiaoyao9184 Mar 23, 2025
550ea9d
Updated vscode task for tox test
xiaoyao9184 Mar 23, 2025
e118d3f
Added GitHub workflow for tox test
xiaoyao9184 Mar 23, 2025
6399bb8
Added tox-ansible matrix export bash script
xiaoyao9184 Mar 23, 2025
4b6db30
Updated tox-ansible matrix export bash script skip cgroup v1
xiaoyao9184 Mar 23, 2025
cf42b07
Updated tox-ansible matrix export bash script support skip and set
xiaoyao9184 Mar 23, 2025
a25fdf5
Updated tox-ansible bash script support run and output matrix json sa…
xiaoyao9184 Mar 23, 2025
1688839
Updated vscode task for tox-ansible bash script
xiaoyao9184 Mar 23, 2025
e8d1c08
Updated GitHub workflow for tox test matrix
xiaoyao9184 Mar 23, 2025
8bb2516
Fixed py3.5 invalid certificate on GitHub workflow
xiaoyao9184 Mar 23, 2025
b94d3ec
Fixed ansible3 galaxy import on tox test
xiaoyao9184 Mar 23, 2025
55e5dcd
Fixed ansible-base version on tox test
xiaoyao9184 Mar 23, 2025
633f6d4
Fixed ansible 3.x dependency too old with cgroup v1 on molecule test
xiaoyao9184 Mar 23, 2025
a92e596
Updated README for tox test
xiaoyao9184 Mar 23, 2025
6080cde
Updated README for tox test
xiaoyao9184 Mar 23, 2025
a0f9155
Bump tox-ansible version 2.0.0
xiaoyao9184 Mar 24, 2025
4890db1
Added fake galaxy.yml for tox-ansible v2
xiaoyao9184 Mar 24, 2025
aad13ab
Added tox-ansible v2 file
xiaoyao9184 Mar 24, 2025
c9e6d29
Added tox-ansible2 integration test for molecule
xiaoyao9184 Mar 24, 2025
597c301
Removed requirements.txt for tox-ansible2 test
xiaoyao9184 Mar 24, 2025
64e665f
Updated disable poetry package-mode
xiaoyao9184 Mar 24, 2025
f4d13dc
Added deps for integration test molecule
xiaoyao9184 Mar 24, 2025
572c4e4
Updated tox molecule support skip directory target and cgroup incompa…
xiaoyao9184 Mar 24, 2025
3e92b60
Updated vscode launch for tox-ansible v2 debug
xiaoyao9184 Mar 24, 2025
8cd6d97
Updated vscode task for tox-ansible v2 run
xiaoyao9184 Mar 24, 2025
28d553e
Updated tox-ansible bash script for tox-ansible v2
xiaoyao9184 Mar 24, 2025
1cece72
Updated Github workflow tox test for v2
xiaoyao9184 Mar 24, 2025
90f934d
Updated README for tox-ansible v2
xiaoyao9184 Mar 24, 2025
b236353
Fixed tox-ansible v2 deps override auto generated
xiaoyao9184 Mar 24, 2025
06c5ba5
Fixed fake galaxy.yml stop ansible-compat role installed
xiaoyao9184 Mar 24, 2025
1bdb050
Fixed tox test molecule version compatibility issue
xiaoyao9184 Mar 24, 2025
4b60d58
Fixed community.docker compatibility on ansible 2.9
xiaoyao9184 Mar 24, 2025
b3b6b9d
Fixed ansible-compat cache path when >= 25.0.0
xiaoyao9184 Mar 24, 2025
8816abd
Fixed miss flake8 ansible-lint on tox molecule test
xiaoyao9184 Mar 24, 2025
6739fd9
Update tox-ansible bash script support skip cgroup
xiaoyao9184 Mar 24, 2025
2a8f04b
Added tox.ini for tox-ansible missing molecule
xiaoyao9184 Mar 24, 2025
48e2c9e
Removed python 3.5 3.6 3.7 tox4 env
xiaoyao9184 Mar 24, 2025
f74b99b
Updated vscode launch for tox4 debug
xiaoyao9184 Mar 24, 2025
f313c66
Updated vscode task for tox4 run
xiaoyao9184 Mar 24, 2025
fdff89a
Updated tox-ansible bash script for tox4
xiaoyao9184 Mar 24, 2025
317cf2a
Updated tox.init support skip cgroup
xiaoyao9184 Mar 24, 2025
56c2ccb
Fiexd Github workflow tox test for tox4 mix tox-ansible v2
xiaoyao9184 Mar 24, 2025
a0a3572
Updated tox-ansible bash script for skip duplicate molecule test
xiaoyao9184 Mar 24, 2025
337af6e
Fixed ansible210 on py3.9 molecule compatibility issue
xiaoyao9184 Mar 24, 2025
d1d7fd4
Updated tox4 command use bash script for molecule test with filter
xiaoyao9184 Mar 25, 2025
3d810a0
Updated README for molecule test with filter
xiaoyao9184 Mar 25, 2025
5be6473
Updated poetry py env group
xiaoyao9184 Mar 25, 2025
ffb4414
Updated Github workflow use dependency-groups
xiaoyao9184 Mar 25, 2025
12682ef
Updated README for dependency-groups
xiaoyao9184 Mar 25, 2025
9028b9c
Updated tox-ansible bash script for target whitelist test
xiaoyao9184 Mar 25, 2025
97913cf
Updated tox-ansible/tox for target whitelist test
xiaoyao9184 Mar 25, 2025
be249e7
Updated vscode task for molecule test with filter
xiaoyao9184 Mar 25, 2025
9becd8d
Updated README for new target whitelist test
xiaoyao9184 Mar 25, 2025
4f1ace4
Updated tox-ansible bash script for show extra test summary info
xiaoyao9184 Mar 25, 2025
70b4014
Updated tox4 command use bash script for show extra test summary info
xiaoyao9184 Mar 25, 2025
1b416d5
Fixed ansible-collection version conflicts
xiaoyao9184 Mar 25, 2025
ad1fbdd
Updated Github workflow for show extra test summary info
xiaoyao9184 Mar 25, 2025
3a14f02
Fixed tox4 command use bash script molecule list output format
xiaoyao9184 Mar 25, 2025
2fcc144
Fixed Github workflow molecule test pre-commit order
xiaoyao9184 Mar 25, 2025
b6d6355
Fixed pre-commit ansible-lint version compatibility issue
xiaoyao9184 Mar 25, 2025
ce42a3f
Fixed Github workflow molecule test install role project
xiaoyao9184 Mar 25, 2025
339b71f
Fixed ansible-collection version conflicts
xiaoyao9184 Mar 26, 2025
c641555
Updated fake galaxy.yml role installer force remove conflict role
xiaoyao9184 Mar 26, 2025
051b2b6
Updated Github workflow molecule test only oldest version
xiaoyao9184 Mar 27, 2025
c4a4029
Fixed molecule test bash script exit code not work with failed test
xiaoyao9184 Mar 27, 2025
adaaf87
Updated project version
xiaoyao9184 Apr 5, 2025
fe4e5cf
Renamed var to docker_debian_set_grub_memory_limit
xiaoyao9184 Mar 27, 2025
557d901
Renamed var to docker_debian_apt_repo_info
xiaoyao9184 Mar 27, 2025
be4d60b
Added functionality to skip apt-key add on Debian
xiaoyao9184 Mar 27, 2025
c0a69dc
Added functionality to skip apt-repo add on Debian
xiaoyao9184 Mar 27, 2025
f8e5198
Cleaning up code
xiaoyao9184 Mar 27, 2025
40aa351
Fixed image present missing source
xiaoyao9184 Mar 27, 2025
82920c6
Added functionality to skip config daemon and default file
xiaoyao9184 Mar 27, 2025
8f1c689
Updated to support custom service name
xiaoyao9184 Mar 27, 2025
58db2b8
Cleaning up code
xiaoyao9184 Mar 27, 2025
5b782a9
Added support for custom apt pre-requisites
xiaoyao9184 Mar 27, 2025
4f02eb2
Added support for deb822
xiaoyao9184 Mar 27, 2025
9e5e1cd
Cleaning up code
xiaoyao9184 Mar 27, 2025
803ba20
Added support for custom apt absent packages
xiaoyao9184 Mar 28, 2025
1f615b6
Added support for custom apt check package name
xiaoyao9184 Mar 28, 2025
91413d4
Added support for custom apt package install
xiaoyao9184 Mar 28, 2025
0b69f35
Fixed ansible fact distribution version is n/a
xiaoyao9184 Mar 28, 2025
2fcb9b0
Added support docker_opts evaluable assert
xiaoyao9184 Mar 28, 2025
2ad5c49
Added support debian11
xiaoyao9184 Mar 28, 2025
d9ef041
Added support debian12
xiaoyao9184 Mar 28, 2025
664b8d2
Added support debian13
xiaoyao9184 Mar 28, 2025
4acbbea
Added load OS-specific vars for support Debian 13
xiaoyao9184 Mar 28, 2025
abbd55e
Added support overriding OS-specific vars file
xiaoyao9184 Mar 28, 2025
5528b96
Added support ubuntu2204
xiaoyao9184 Mar 28, 2025
7b3fdfd
Added support ubuntu2404
xiaoyao9184 Mar 28, 2025
e1e76de
Updated meta platforms
xiaoyao9184 Mar 28, 2025
a1a43b0
Added molecule config-service test
xiaoyao9184 Mar 28, 2025
72b5615
Code cleanup for jinja[spacing]
xiaoyao9184 Mar 28, 2025
0dbf67a
Code cleanup for name[casing]
xiaoyao9184 Mar 28, 2025
8cc601e
Code cleanup for name[play]
xiaoyao9184 Mar 28, 2025
1864b39
Code cleanup for fqcn[action-core]
xiaoyao9184 Mar 28, 2025
bf8fb8c
Code cleanup for fqcn[action]
xiaoyao9184 Mar 28, 2025
9c597b6
Updated new noqa format
xiaoyao9184 Mar 28, 2025
456d1a9
Code cleanup for no-changed-when
xiaoyao9184 Mar 28, 2025
cc44af6
Updated ignore .ansible
xiaoyao9184 Mar 28, 2025
143e03d
Fixed notify listen name
xiaoyao9184 Mar 28, 2025
9cbc1a7
Fixed ansible core 2.9 missing ansible.posix
xiaoyao9184 Mar 28, 2025
e170100
Code cleanup for jinja[spacing]
xiaoyao9184 Mar 29, 2025
891b8c0
Add support Rocky use Centos repo
xiaoyao9184 Mar 29, 2025
c3ee9e1
Added support rockylinux8
xiaoyao9184 Mar 29, 2025
c2209dc
Added support rockylinux9
xiaoyao9184 Mar 29, 2025
fd65dc4
Added support almalinux8
xiaoyao9184 Mar 29, 2025
7d37713
Added support almalinux9
xiaoyao9184 Mar 29, 2025
626e3b6
Added suse os family support
xiaoyao9184 Mar 30, 2025
7a8bc0e
Added support opensuseleap15
xiaoyao9184 Mar 30, 2025
c655e3b
Fixed suse zypper use ansible.builtin collection
xiaoyao9184 Mar 31, 2025
905beb5
Fixed tox-ansible integration test missing ansible package
xiaoyao9184 Mar 31, 2025
3733525
Updated molecule test prepare print distribution facts
xiaoyao9184 Mar 31, 2025
af4bfc9
Added support for custom redhat absent packages
xiaoyao9184 Mar 31, 2025
22e23f1
Added support for custom redhat package install
xiaoyao9184 Mar 31, 2025
65da4be
Updated redhat separate yum and fedora>=31 installation methods
xiaoyao9184 Mar 31, 2025
fa484bb
Added support for redhat amazon package install
xiaoyao9184 Mar 31, 2025
8ccf7cc
Added support amazonlinux2
xiaoyao9184 Mar 31, 2025
15caa48
Added support amazonlinux2023
xiaoyao9184 Mar 31, 2025
b22c314
Fixed CentOS 7 absent packages failed molecule idempotence test
xiaoyao9184 Mar 31, 2025
5435b5c
Fixed amazon 2 installing docker failed molecule idempotence test
xiaoyao9184 Mar 31, 2025
cd7e7c1
Added support for custom alpine package install
xiaoyao9184 Mar 31, 2025
a2eda43
Fixed alpine apk use ansible.builtin collection
xiaoyao9184 Mar 31, 2025
691f37f
Added support alpine317
xiaoyao9184 Mar 31, 2025
f77b99f
Added support alpine318
xiaoyao9184 Mar 31, 2025
687d418
Added support alpine319
xiaoyao9184 Mar 31, 2025
f55bb85
Added support alpine320
xiaoyao9184 Mar 31, 2025
cb81dff
Added support alpine321
xiaoyao9184 Mar 31, 2025
61fff54
Updated Fedora distribution vars
xiaoyao9184 Mar 31, 2025
1ee2ef2
Added support fedora24
xiaoyao9184 Mar 31, 2025
76bb93d
Added support fedora27
xiaoyao9184 Mar 31, 2025
8a3254c
Added support fedora29
xiaoyao9184 Mar 31, 2025
8b0322b
Added support fedora30
xiaoyao9184 Mar 31, 2025
016236a
Added support fedora31
xiaoyao9184 Mar 31, 2025
4209366
Fixed docker 1809 systemd start failed
xiaoyao9184 Apr 2, 2025
49a5953
Removed redhat fedora31 task use yum to install
xiaoyao9184 Apr 2, 2025
3ca7634
Added support fedora32
xiaoyao9184 Apr 2, 2025
f52a902
Added support fedora33
xiaoyao9184 Apr 2, 2025
cea58fc
Added support fedora34
xiaoyao9184 Apr 2, 2025
dbe20df
Added support fedora35
xiaoyao9184 Apr 2, 2025
154ff59
Added support fedora36
xiaoyao9184 Apr 2, 2025
f118902
Added support fedora37
xiaoyao9184 Apr 2, 2025
b2b7486
Added support fedora38
xiaoyao9184 Apr 2, 2025
874c4d6
Added support fedora39
xiaoyao9184 Apr 2, 2025
b0d9d2c
Added support fedora40
xiaoyao9184 Apr 2, 2025
df35463
Added support fedora41
xiaoyao9184 Apr 2, 2025
4a0c0e6
Fixed fedora idempotence test failed
xiaoyao9184 Apr 2, 2025
2880a60
Updated yum repo info vars replace centos docker.repo template
xiaoyao9184 Apr 2, 2025
538f45b
Updated cleanup prune docker unused data on GitHub Action
xiaoyao9184 Apr 3, 2025
feac919
Fixed GITHUB_ACTIONS env not pass to tox test
xiaoyao9184 Apr 3, 2025
1d33c95
Updated use yum repository module
xiaoyao9184 Apr 3, 2025
0b9197f
Updated include OS-specific vars support path with enable flag
xiaoyao9184 Apr 3, 2025
8e482ec
Updated include OS-specific vars support clean order name
xiaoyao9184 Apr 3, 2025
1d6595e
Updated alpine support skip if existing when use `any` docker_version
xiaoyao9184 Apr 3, 2025
59bcde5
Updated debian support skip if existing when use `any` docker_version
xiaoyao9184 Apr 3, 2025
a0070ca
Updated redhat support skip if existing when use `any` docker_version
xiaoyao9184 Apr 3, 2025
3867eab
Updated suse support skip if existing when usea `any` docker_version
xiaoyao9184 Apr 3, 2025
b656382
Fixed bug of dnf
xiaoyao9184 Apr 3, 2025
1ed7d1c
Added bash script for generating RHEL packages version JSON
xiaoyao9184 Apr 4, 2025
a4dd2fc
Added bash script for generating CentOS packages version JSON
xiaoyao9184 Apr 4, 2025
5179d81
Added bash script for generating Fedora packages version JSON
xiaoyao9184 Apr 4, 2025
f507a87
Added bash script for generating SLES packages version JSON
xiaoyao9184 Apr 4, 2025
fc898f3
Added bash script for generating Raspberry Pi OS packages version JSON
xiaoyao9184 Apr 4, 2025
aa6156d
Added bash script for generating Debian packages version JSON
xiaoyao9184 Apr 4, 2025
a809dcf
Added bash script for generating Ubuntu packages version JSON
xiaoyao9184 Apr 4, 2025
ca96507
Added docker_architecture var
xiaoyao9184 Apr 5, 2025
492d28c
Updated support docker version to pkg version
xiaoyao9184 Apr 5, 2025
194b0b8
Fixed redhat check docker info use rpm
xiaoyao9184 Apr 5, 2025
9f6da55
Add version-centos7 molecule test
xiaoyao9184 Apr 5, 2025
439ed7e
Add version-fedora24 molecule test
xiaoyao9184 Apr 5, 2025
d0e63c2
Added docker codename support debian codename mapping
xiaoyao9184 Apr 5, 2025
0456e49
Add version-debian9 molecule test
xiaoyao9184 Apr 5, 2025
bc07ff4
Add version-ubuntu1604 molecule test
xiaoyao9184 Apr 5, 2025
6708b4f
Added support centos-stream8
xiaoyao9184 Apr 6, 2025
f77e058
Added support centos-stream9
xiaoyao9184 Apr 6, 2025
7b44e42
Added support centos-stream10
xiaoyao9184 Apr 6, 2025
58ec44d
Updated meta for new platforms
xiaoyao9184 Apr 5, 2025
67c30fe
Updated version file for centos 9 10
xiaoyao9184 Apr 6, 2025
d68c974
Added bash script for generating DSM packages version JSON
xiaoyao9184 Apr 7, 2025
49588e4
Added support dsm
xiaoyao9184 Apr 6, 2025
79077e4
Added dsm 6.2 molecule test
xiaoyao9184 Apr 7, 2025
4f8c29d
Added dsm 7.0 molecule test
xiaoyao9184 Apr 7, 2025
88699f0
Added dsm 7.1 molecule test
xiaoyao9184 Apr 7, 2025
ce8693b
Added dsm 7.2 molecule test
xiaoyao9184 Apr 7, 2025
4f16d93
Renamed task to fact_pkg
xiaoyao9184 Apr 7, 2025
929c671
Fixed skip service start/restart on DSM 6.2
xiaoyao9184 Apr 8, 2025
7f6b241
Fixed synopkg version querying failure when not using become
xiaoyao9184 Apr 8, 2025
4abbacb
Fixed dsm*-converge verify sequence
xiaoyao9184 Apr 8, 2025
d0c4e7a
Renamed to *-container@any *-test@any for DSM test
xiaoyao9184 Apr 8, 2025
a9f5477
Updated README for manual test
xiaoyao9184 Apr 8, 2025
9b8a0ed
Updated vscode task for DSM molecule test
xiaoyao9184 Apr 8, 2025
63b42f6
Updated role meta for Synology platforms
xiaoyao9184 Apr 8, 2025
1f339bc
Removed duplicate include
xiaoyao9184 Apr 8, 2025
74d7e67
Fixed error while evaluating conditional
xiaoyao9184 Apr 8, 2025
12884e4
Removed not used template
xiaoyao9184 Apr 8, 2025
c07e8d6
Fixed bash script for generating apt packages version JSON missing ep…
xiaoyao9184 Apr 8, 2025
f5ee41d
Fixed Github workflow deprecation Ubuntu 20.04
xiaoyao9184 Apr 9, 2025
56f2e0a
Fixed invalid molecule driver
xiaoyao9184 Apr 10, 2025
363bf50
Fixed molecule default driver name break change
xiaoyao9184 Apr 26, 2025
bdf45cf
Fixed debian apt package unable locate
xiaoyao9184 Apr 26, 2025
25eb69d
Added installed counter status
xiaoyao9184 Apr 26, 2025
6f7b3ec
Code cleanup for fqcn[action-core]
xiaoyao9184 Apr 26, 2025
b84bc84
Cleanup for README
xiaoyao9184 Apr 26, 2025
6556709
Updated fallback to var version when version file is missing
xiaoyao9184 Apr 26, 2025
a3b60c1
Added support openwrt
xiaoyao9184 Apr 26, 2025
260e5df
Added openwrt 24 molecule test
xiaoyao9184 Apr 26, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
2 changes: 1 addition & 1 deletion .flake8
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
[flake8]
exclude = .venv/
exclude = .venv/, .tox/
max-line-length = 88
27 changes: 18 additions & 9 deletions .github/workflows/release-galaxy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,26 +19,35 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: [3.8]
python-version:
- "3.8"
include:
- python-version: "3.8"
group-python: "py38"
group-ansible: "ansible211"

steps:
- uses: actions/checkout@v2
with:
submodules: recursive
- name: Checkout
uses: actions/checkout@v2

- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- uses: actions/cache@v4

- name: Cache
uses: actions/cache@v4
with:
path: ~/.cache/pip
key: ${{ runner.os }}-pip-${{ hashFiles('**/requirements*.txt') }}
key: ${{ runner.os }}-pip-${{ matrix.group-python }}
restore-keys: |
${{ runner.os }}-pip-
${{ runner.os }}-pip-${{ matrix.group-python }}

- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt -r requirements-dev.txt
pip install pre-commit
pip install -r requirements-${{ matrix.group-python }}.txt
pip-install-dependency-groups requests ${{ matrix.group-ansible }}

- name: Trigger a new import on Galaxy.
run: ansible-galaxy role import --api-key ${{ secrets.GALAXY_API_KEY }} $(echo ${{ github.repository }} | cut -d/ -f1) $(echo ${{ github.repository }} | cut -d/ -f2)
Loading