-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Debian plattform support and Molecule tests
- Loading branch information
Showing
14 changed files
with
143 additions
and
67 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
--- | ||
name: molecule | ||
|
||
on: # yamllint disable-line rule:truthy | ||
- push | ||
- pull_request | ||
|
||
jobs: | ||
molecule: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
- name: install dependencies | ||
run: pip install -r requirements.txt | ||
|
||
- name: install Ansbile dependencies | ||
run: ansible-galaxy install -r requirements.yml | ||
|
||
- name: test playbook | ||
run: molecule test | ||
env: | ||
PY_COLORS: '1' |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
FROM {{ item.image }} | ||
|
||
# Install dependencies | ||
{% if "el" in (item.name | lower) %} | ||
RUN dnf install --refresh -y systemd | ||
{% else %} | ||
RUN apt-get update && apt-get install -y ca-certificates gpg init python3 && apt-get clean | ||
{% endif %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
--- | ||
- name: Converge | ||
hosts: all | ||
vars: | ||
opencast_version_major: 15 | ||
opencast_repository_enabled_release: true | ||
opencast_opensearch_heap_size: 100m | ||
tasks: | ||
- name: Include opensearch role | ||
ansible.builtin.include_role: | ||
name: "opencast_opensearch" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
--- | ||
driver: | ||
name: containers | ||
dependency: | ||
name: galaxy | ||
enabled: false | ||
platforms: | ||
# GH Action for EL8 fails | ||
# - name: el8 | ||
# image: quay.io/rockylinux/rockylinux:8 | ||
# pre_build_image: false | ||
# command: /sbin/init | ||
# tmpfs: | ||
# "/tmp": "exec" | ||
# "/run": "rw,noexec,nosuid,nodev" | ||
# volumes: | ||
# - /sys/fs/cgroup:/sys/fs/cgroup:ro | ||
- name: opensearch_el9 | ||
image: quay.io/centos/centos:stream9 | ||
pre_build_image: false | ||
command: /sbin/init | ||
tmpfs: | ||
"/tmp": "exec" | ||
"/run": "rw,noexec,nosuid,nodev" | ||
volumes: | ||
- /sys/fs/cgroup:/sys/fs/cgroup:ro | ||
- name: opensearch_debian | ||
image: docker.io/debian:stable | ||
pre_build_image: false | ||
command: /sbin/init | ||
tmpfs: | ||
"/tmp": "exec" | ||
"/run": "rw,noexec,nosuid,nodev" | ||
volumes: | ||
- /sys/fs/cgroup:/sys/fs/cgroup:ro | ||
- name: opensearch_ubuntu | ||
image: docker.io/ubuntu:latest | ||
pre_build_image: false | ||
command: /sbin/init | ||
tmpfs: | ||
"/tmp": "exec" | ||
"/run": "rw,noexec,nosuid,nodev" | ||
volumes: | ||
- /sys/fs/cgroup:/sys/fs/cgroup:ro | ||
lint: | | ||
set -e | ||
yamllint -c .yamllint . | ||
ansible-lint | ||
provisioner: | ||
name: ansible | ||
verifier: | ||
name: ansible |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
--- | ||
|
||
- name: Verify | ||
hosts: all | ||
gather_facts: false | ||
tasks: | ||
- name: Stat Opensearch configuration directory | ||
ansible.builtin.stat: | ||
path: /etc/opensearch | ||
register: os_conf_dir | ||
|
||
- name: Test Opensearch configuration directory exists | ||
ansible.builtin.assert: | ||
that: os_conf_dir.stat.exists |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
ansible |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
--- | ||
|
||
roles: | ||
- name: elan.opencast_repository |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters