elan.opencast_repository

Ansible: Opencast リポジトリ ロール

molecule

この Ansible ロールは、RHEL、CentOS、Debian、または Ubuntu 用のパッケージリポジトリを有効にします。

ロール変数

  • opencast_version_major
    • リポジトリをインストールする Opencast のバージョン(必須)。
  • opencast_repository_enabled_release
    • リリースリポジトリを有効にするかどうか(デフォルト: false)。
  • opencast_repository_enabled_testing
    • テストリポジトリを有効にするかどうか(デフォルト: false)。
  • opencast_repository_identifiers:
    • RPM リポジトリの識別子のリスト。
    • この変数はこのロールでは実際には使用されませんが、他のロールでリポジトリを一時的に有効にするために使用できます。 例えば、デフォルトでは無効にしておき、インストールタスクで有効化することができます。
    • 他のタスクはこれが存在することに依存します。
    • デフォルトでは安定したリポジトリの識別子を含みます([opencast-noarch, opencast-x86_64])。
  • opencast_repository_identifiers_testing:
    • テスト用の RPM リポジトリの識別子のリスト。
    • デフォルトではテストリポジトリの識別子を含みます([opencast-testing-noarch, opencast-testing-x86_64])。

例プレイブック

ロールを設定して使用する方法の例:

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

開発

開発とテストには molecule を使用できます。 ドライバとして podman を使用する場合、次のようにインストールできます(docker を使用する場合は、podmandocker に置き換えてください):

pip install -r .dev_requirements.txt

その後、次のコマンドでテストインスタンスを 作成、Ansible 設定を適用 (converge)、テストインスタンスを 破棄 できます:

molecule create
molecule converge
molecule destroy

実行中のテストインスタンスを確認したい場合は、molecule login --host <instance_name>を使用します。ここで、<instance_name> を希望する値に置き換えます。

ロールをテストするには、molecule test を実行します。

ライセンス

BSD-3-Clause

著者情報

ELAN e.V

プロジェクトについて

Enable Opencast package repository

インストール
ansible-galaxy install elan.opencast_repository
ライセンス
bsd-3-clause
ダウンロード
3.6k
所有者
elan e.V. is a German non-profit organization helping universities and other higher education organizations with all things related to e-learning