Compare commits

...

12 Commits

Author SHA1 Message Date
Mike Holloway
ddec4cedb5 Resolving cascading boot error in alma9.8 that results from acl boot option 2026-07-31 11:21:05 -04:00
Mike Holloway
b16224334f Add acl option to root mount in fstab 2025-11-28 00:59:20 -05:00
Mike Holloway
0fcfdd4bbc Move certain packages to role instead of linode CI
All checks were successful
Gitea Actions - molecule test work / Explore-terraform-molecule-Gitea-Action (push) Successful in 7m20s
2025-01-07 22:42:24 -05:00
Mike Holloway
d7a553f1dd Move certain packages to role instead of CI
All checks were successful
Gitea Actions - molecule test work / Explore-molecule-Gitea-Action (push) Successful in 2m56s
2025-01-07 22:32:36 -05:00
Mike Holloway
0b1a8fef37 Switch single platform via env var, syntax check
All checks were successful
Gitea Actions - molecule test work / Explore-molecule-Gitea-Action (push) Successful in 2m43s
2025-01-07 22:27:05 -05:00
Mike Holloway
08d64e1cb1 Switch single platform via env var
Some checks failed
Gitea Actions - molecule test work / Explore-molecule-Gitea-Action (push) Failing after 23s
2025-01-07 22:23:18 -05:00
Mike Holloway
3094dea795 CI platform packages update, dnf_packages list for targets
Some checks failed
Gitea Actions - molecule test work / Explore-molecule-Gitea-Action (push) Failing after 3m24s
2025-01-07 21:49:42 -05:00
Mike Holloway
2ef9c930cb fedora39 platform added
Some checks failed
Gitea Actions - molecule test work / Explore-molecule-Gitea-Action (push) Failing after 2m34s
2025-01-07 21:26:13 -05:00
Mike Holloway
77bbbc8ffb Revert "tags: - 'molecule-notest'"
All checks were successful
Gitea Actions - molecule test work / Explore-terraform-molecule-Gitea-Action (push) Successful in 7m36s
Gitea Actions - molecule test work / Explore-molecule-Gitea-Action (push) Successful in 2m59s
Reason:

  Running on linode instances, /etc/hosts file changes are worth
testing.

This reverts commit f51c228573.
2025-01-07 20:46:57 -05:00
Mike Holloway
7d46ec7d7d requirements.yml
All checks were successful
Gitea Actions - molecule test work / Explore-terraform-molecule-Gitea-Action (push) Successful in 7m15s
2025-01-07 20:33:26 -05:00
Mike Holloway
af221cb741 Use linode hosts
All checks were successful
Gitea Actions - molecule test work / Explore-terraform-molecule-Gitea-Action (push) Successful in 5m26s
2025-01-07 20:27:19 -05:00
Mike Holloway
a49e672ec0 First draft linode scenario converge, destroy steps
All checks were successful
Gitea Actions - molecule test work / Explore-terraform-molecule-Gitea-Action (push) Successful in 5m31s
2025-01-07 20:12:07 -05:00
7 changed files with 51 additions and 32 deletions

View File

@ -91,9 +91,9 @@
gather_facts: false gather_facts: false
tasks: tasks:
- name: Packages openssh-server, python3-policycoreutils - name: Package procps-ng
ansible.builtin.dnf: ansible.builtin.dnf:
name: ['openssh-server', 'python3-policycoreutils'] name: procps-ng
state: present state: present
- name: systemd PID - name: systemd PID

View File

@ -9,7 +9,7 @@ driver:
ansible_connection: docker ansible_connection: docker
platforms: platforms:
- name: instance - name: instance
image: geerlingguy/docker-rockylinux9-ansible:latest image: geerlingguy/docker-${MOLECULE_DISTRO:-rockylinux9}-ansible:latest
command: "/sbin/init" command: "/sbin/init"
volumes: volumes:
- /sys/fs/cgroup:/sys/fs/cgroup:ro - /sys/fs/cgroup:/sys/fs/cgroup:ro

View File

@ -1,8 +1,26 @@
--- ---
- name: Converge - name: Fail if linode group is missing
hosts: all hosts: localhost
gather_facts: false
tasks: tasks:
- name: Replace this task with one that validates your content - name: Print some info
ansible.builtin.debug: ansible.builtin.debug:
msg: "This is the effective test" msg: "{{ groups }}"
- name: Assert group existence
ansible.builtin.assert:
that: "'linode' in groups"
fail_msg: |
linode group was not found inside inventory groups: {{ groups }}
- name: Converge
hosts: linode
# We disable gather facts because it would fail due to our container not
# having python installed. This will not prevent use from running 'raw'
# commands. Most molecule users are expected to use containers that already
# have python installed in order to avoid notable delays installing it.
tasks:
- name: Apply podman-host Role
include_role:
name: podman-host
# ansible.builtin.assert:
# that: result.stdout | regex_search("^Linux")

View File

@ -98,9 +98,9 @@
gather_facts: false gather_facts: false
tasks: tasks:
- name: Packages openssh-server, python3-policycoreutils - name: Package procps-ng
ansible.builtin.dnf: ansible.builtin.dnf:
name: ['openssh-server', 'python3-policycoreutils'] name: procps-ng
state: present state: present
- name: systemd PID - name: systemd PID

View File

@ -5,20 +5,11 @@
gather_facts: false gather_facts: false
# no_log: "{{ molecule_no_log }}" # no_log: "{{ molecule_no_log }}"
tasks: tasks:
# Developer must implement. - name: Remove dynamic molecule inventory
hosts: localhost
# Mandatory configuration for Molecule to function. gather_facts: false
tasks:
- name: Populate instance config - name: Remove dynamic inventory file
ansible.builtin.set_fact: ansible.builtin.file:
instance_conf: {} path: "{{ molecule_ephemeral_directory }}/inventory/molecule_inventory.yml"
state: absent # Developer must implement.
- name: Dump instance config
ansible.builtin.copy:
content: |
# Molecule managed
{{ instance_conf | to_json | from_json | to_yaml }}
dest: "{{ molecule_instance_config }}"
mode: "0600"
when: server.changed | default(false) | bool # noqa no-handler

View File

@ -0,0 +1,2 @@
collections:
- community.general

View File

@ -1,8 +1,17 @@
- import_tasks: include-vars.yml - import_tasks: include-vars.yml
- name: Install podman, podman networking plugins, and python support packages - name: Install podman, podman networking plugins, and python support packages
vars:
dnf_packages:
- 'openssh-server'
- 'podman'
- 'podman-plugins'
- 'systemd-container'
- 'containernetworking-plugins'
- 'python3-pip'
- 'python3-policycoreutils'
dnf: dnf:
name: ['podman', 'containernetworking-plugins', 'podman-plugins', 'python3-pip', 'systemd-container'] name: "{{ dnf_packages }}"
state: present state: present
- name: Install podman-compose pip Package - name: Install podman-compose pip Package
@ -21,6 +30,7 @@
- "{{ service_users }}" - "{{ service_users }}"
- name: Create service folders - name: Create service folders
become: yes
become_user: "{{ item.0.name }}" become_user: "{{ item.0.name }}"
file: file:
path: "/home/{{ item.0.name }}/{{ item.1 }}" path: "/home/{{ item.0.name }}/{{ item.1 }}"
@ -101,8 +111,7 @@
owner: root owner: root
group: root group: root
mode: 0644 mode: 0644
tags: when: '"molecule" not in group_names'
- 'molecule-notest'
- lineinfile: - lineinfile:
path: /etc/hosts path: /etc/hosts
@ -111,8 +120,7 @@
owner: root owner: root
group: root group: root
mode: 0644 mode: 0644
tags: when: '"molecule" not in group_names'
- 'molecule-notest'
# - name: Copy cni networking driver config into place # - name: Copy cni networking driver config into place
# blockinfile: # blockinfile:
# name: "/etc/cni/net.d/podman.conflist" # name: "/etc/cni/net.d/podman.conflist"