CyVerse-Ansible.ansible_jupyterhub_docker
ansible jupyterhub
此角色将安装 jupyterhub,并使用 GitHub 进行身份验证以及使用 dockerspawner 运行 jupyter 笔记本。
当前支持 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