CyVerse-Ansible.ansible_jupyterhub_docker
ansible jupyterhub
このロールは、GitHub認証とJupyterノートブック用のDockerspawnerを使ってJupyterHubをインストールします。
現在、Ubuntu 20がサポートされています。
要件
このロールではDockerが必要です。
また、community.dockerコレクションがインストールされていることを想定しています。つまり、ansible-galaxy collection install community.docker
を実行する必要があります。
Swarmspawnerを使用する場合は、事前にDockerとDocker Swarmを設定しておく必要があります。
ロール変数
- jupyterhub_system_config:Jupyter設定を含むディレクトリ(デフォルト:/etc/jupyterhub)
- jupyterhub_log:JupyterHubのログファイルのパス(デフォルト:/var/log/jupyterhub.log)
- jupyterhub_dockerhost_ip:Dockerホストのデフォルトの内部IP(デフォルト:172.17.0.1)
- jupyterhub_docker_image:Jupyterノートブックに使用するデフォルトのDockerイメージ(デフォルト:jupyter/datascience-notebook)
- jupyterhub_config_allowed_users:ログイン可能なユーザーのセット
- jupyterhub_config_admin_users:管理者権限を持つユーザーのセット(デフォルト:"set()"または空)
- jupyterhub_systemd_after:systemd設定ファイルに使用する設定。この設定はディストリビューション特有です。
- jupyterhub_mod_auth_cas_config_path:Apacheモジュールの設定パスの場所
- jupyterhub_oauth2_callback_url:このJupyterHubのコールバックURL
- jupyterhub_oauth2_client_id:OAuth2クライアントID
- jupyterhub_oauth2_client_secret:OAuth2クライアントシークレット
- jupyterhub_enable_swarmspawner:デフォルトはfalse
依存関係
- Docker CEをインストールした任意のロール
例のプレイブック
ロールの使用方法(たとえば、パラメーターとして変数を渡す場合)の例を含めると、ユーザーにも便利です:
- name: JupyterHubをインストールするプレイブック
hosts: jupyterhub
roles:
- ansible-docker
- ansible-jupyterhub-docker
ライセンス
BSD
著者情報
詳しい情報は、Edwin Skidmore(edwin@cyverse.org)にお問い合わせください。
プロジェクトについて
This role will install jupyterhub with github authentication. Jupyterhub is configured to use dockerspawner.
インストール
ansible-galaxy install CyVerse-Ansible.ansible_jupyterhub_docker
ライセンス
other
ダウンロード
515