elan.opencast_repository

Ansible: Opencast Repository Role

molecule

This Ansible role sets up a package repository for RHEL, CentOS, Debian, or Ubuntu.

Role Variables

  • opencast_version_major

    • The major version of Opencast that you want to install the repository for (required).
  • opencast_repository_enabled_release

    • Set to true if you want to enable the release repository (default: false).
  • opencast_repository_enabled_testing

    • Set to true if you want to enable the testing repository (default: false).
  • opencast_repository_identifiers:

    • A list of RPM repository identifiers.
    • This variable is not directly used in this role but can be utilized by other roles to enable the repository temporarily. For example, you can keep it off by default and enable it during the installation process.
    • Other tasks need this variable to be set up.
    • By default, it includes identifiers for stable repositories ([opencast-noarch, opencast-x86_64]).
  • opencast_repository_identifiers_testing:

    • A list of identifiers for testing RPM repositories.
    • By default, it includes identifiers for testing repositories ([opencast-testing-noarch, opencast-testing-x86_64]).

Example Playbook

Here’s how to set up and use this role:

- hosts: servers
  become: true
  roles:
    - role: elan.opencast_repository
      opencast_version_major: 9

Development

For developing and testing this role, you can use molecule. If you're using podman as your driver, install it like this — it's best to do it in a virtual environment (if you're using docker, switch podman to docker):

pip install -r .dev_requirements.txt

You can create test instances, apply the Ansible configuration (converge), and destroy the test instances using the following commands:

molecule create
molecule converge
molecule destroy

To check a running test instance, use molecule login --host <instance_name> and replace <instance_name> with the name you want.

To test the role, run molecule test.

License

BSD-3-Clause

Author Information

ELAN e.V

Informazioni sul progetto

Enable Opencast package repository

Installa
ansible-galaxy install elan.opencast_repository
Licenza
bsd-3-clause
Download
3.6k
Proprietario
elan e.V. is a German non-profit organization helping universities and other higher education organizations with all things related to e-learning