Skip to content
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

wip: add archlinux test-scenario as platform #164

Merged
merged 8 commits into from
Aug 3, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 0 additions & 19 deletions .github/workflows/galaxy_release.yml

This file was deleted.

6 changes: 2 additions & 4 deletions .github/workflows/molecule.yml
Original file line number Diff line number Diff line change
Expand Up @@ -69,9 +69,7 @@ jobs:
fail-fast: false
matrix:
scenario:
- archlinux
distros:
- archlinux
- default
releases:
- stable
- beta
Expand All @@ -90,9 +88,9 @@ jobs:
- name: molecule
uses: robertdebock/molecule-action@6.0.1
env:
MOLECULE_DISTRO: "${{ matrix.distros }}"
TEST_RELEASE: "${{ matrix.releases }}"
TEST_VERSION: "${{ matrix.versions }}"
MOLECULE_PLATFORM_NAME: rclone-archlinux
with:
scenario: ${{ matrix.scenario }}
release:
Expand Down
18 changes: 0 additions & 18 deletions molecule/archlinux/converge.yml

This file was deleted.

26 changes: 0 additions & 26 deletions molecule/archlinux/molecule.yml

This file was deleted.

28 changes: 0 additions & 28 deletions molecule/archlinux/verify.yml

This file was deleted.

10 changes: 9 additions & 1 deletion molecule/default/converge.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,20 @@

pre_tasks:

- name: Update apt cache.
- name: Update apt cache on Debian Linux.
ansible.builtin.apt:
update_cache: True
cache_valid_time: 600
when: ansible_facts.os_family == 'Debian'

- name: Update repositories cache on Archlinux.
community.general.pacman:
update_cache: true
when: ansible_facts.os_family == 'Archlinux'
register: pacman_result
changed_when: pacman_result.cache_updated
become: true

- name: Wait for systemd to complete initialization. # noqa command-instead-of-module
ansible.builtin.command: systemctl is-system-running
register: systemctl_status
Expand Down
23 changes: 21 additions & 2 deletions molecule/default/molecule.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,31 @@ lint: |
yamllint .
ansible-lint
platforms:
- name: "rclone-${image:-debian11}-${tag:-latest}-${TOX_ENVNAME}"
image: "geerlingguy/docker-${MOLECULE_DISTRO:-debian11}-ansible:latest"
- name: "rclone-${image:-debian12}-${tag:-latest}-${TOX_ENVNAME}"
image: "geerlingguy/docker-${MOLECULE_DISTRO:-debian12}-ansible:latest"
command: ${MOLECULE_DOCKER_COMMAND:-""}
volumes:
- /sys/fs/cgroup:/sys/fs/cgroup:rw
tmpfs:
- /run
- /tmp
cgroupns_mode: host
privileged: true
pre_build_image: true
# - name: "rclone-${image:-archlinux}-${tag:-latest}-${TOX_ENVNAME}"
- name: "rclone-archlinux"
image: "carlodepieri/docker-archlinux-ansible"
command: ${MOLECULE_DOCKER_COMMAND:-""}
volumes:
- /sys/fs/cgroup:/sys/fs/cgroup:rw
tmpfs:
- /run
- /tmp
cgroupns_mode: host
privileged: true
pre_build_image: true
ulimits:
- nofile:65535:65535
provisioner:
name: ansible
playbooks:
Expand All @@ -25,3 +42,5 @@ provisioner:
instance:
rclone_release: ${TEST_RELEASE:-stable}
rclone_version: ${TEST_VERSION:-''}
rclone-archlinux:
ansible_user: ansible