girder.celery

girder.celery

Apache 2.0

CeleryワーカーをインストールするためのAnsibleロールです。

要件

Ubuntu 20.04以上。

Celeryを使用するプロジェクトにはいくつかの要件があります:

  • Gitリポジトリからインストール可能でなければなりません。
  • pipでインストール可能でなければなりません。
  • requirements.txtファイルが含まれている場合、それにはプロジェクト自体をインストールするための 要件「.」がリストされている必要があります。
  • celeryが要件として含まれている必要があります。
  • インポート可能な場所に Celeryアプリインスタンスを含む必要があります。

ロール変数

パラメータ 必須 デフォルト コメント
celery_app はい -A--app に渡されるCeleryプロジェクトのアプリのインポートパスです。
celery_repository_url はい Celeryプロジェクトを含むGitリポジトリのHTTP URLです。
celery_repository_ref いいえ HEAD リポジトリをクローンする際にチェックアウトするGitリファレンスです。
celery_environment いいえ {} Celeryワーカーの実行時環境変数を持つマッピングです。

例プレイブック

このロールを使用する典型的なプレイブックは次のようになります:

- name: Celeryワーカーのデプロイ
  hosts: all
  vars:
    ansible_python_interpreter: auto
  roles:
    - role: girder.celery
      vars:
        celery_app: test_project.celery
        celery_repository_url: https://github.com/girder/ansible-role-girder-celery.git
        celery_environment:
          DJANGO_STORAGE_BUCKET_NAME: "my-bucket"

典型的な Ansible Galaxyのrequirements.ymlファイルは次のようになります:

- src: girder.celery
  version: master

ライセンス

Apache 2.0

プロジェクトについて

Install a Celery worker.

インストール
ansible-galaxy install girder.celery
ライセンス
apache-2.0
ダウンロード
936
所有者
This organization contains repositories related to the Girder project, a data management toolkit developed and maintained by Kitware.