CyVerse-Ansible.ansible_jupyterhub_docker
ansible jupyterhub
Diese Rolle installiert JupyterHub mit GitHub-Authentifizierung und Dockerspawner für Jupyter-Notebooks.
Momentan wird Ubuntu 20 unterstützt.
Anforderungen
Dies erfordert Docker.
Diese Rolle geht außerdem davon aus, dass die Community.docker-Sammlung installiert ist, d.h. ansible-galaxy collection install community.docker
.
Wenn Sie SwarmSpawner verwenden, sollte Docker und Docker Swarm vorher eingerichtet werden.
Rollenvariablen
- jupyterhub_system_config: das Verzeichnis, das die Jupyter-Konfiguration enthält (Standard: /etc/jupyterhub)
- jupyterhub_log: der Pfad zur JupyterHub-Protokolldatei (Standard: /var/log/jupyterhub.log)
- jupyterhub_dockerhost_ip: die Standard-Innen-IP des Docker-Hosts (Standard: 172.17.0.1)
- jupyterhub_docker_image: das Standard-Docker-Image für Jupyter-Notebooks (Standard: jupyter/datascience-notebook)
- jupyterhub_config_allowed_users: die Gruppe von Benutzern, die sich anmelden dürfen
- jupyterhub_config_admin_users: die Gruppe von Benutzern mit Administratorrechten (Standard: "set()" oder leer)
- jupyterhub_systemd_after: Einstellung für die systemd-Konfigurationsdatei. Beachten Sie, dass dies distributionsspezifisch ist.
- jupyterhub_mod_auth_cas_config_path: Standort des Apache-Modul-Konfigurationspfads
- jupyterhub_oauth2_callback_url: Callback-URL für diesen JupyterHub
- jupyterhub_oauth2_client_id: OAuth2-Client-ID
- jupyterhub_oauth2_client_secret: OAuth2-Client-Geheimnis
- jupyterhub_enable_swarmspawner: standardmäßig false
Abhängigkeiten
- Jede Rolle, die Docker CE installiert hat
Beispiel-Playbook
Ein Beispiel, wie Sie Ihre Rolle verwenden können (zum Beispiel mit übergebenen Variablen als Parameter) ist für die Benutzer immer schön:
- name: Dieses Playbook installiert JupyterHub
hosts: jupyterhub
roles:
- ansible-docker
- ansible-jupyterhub-docker
Lizenz
BSD
Autoreninformation
Für weitere Informationen kontaktieren Sie bitte Edwin Skidmore (edwin@cyverse.org)
Über das Projekt
This role will install jupyterhub with github authentication. Jupyterhub is configured to use dockerspawner.
Installieren
ansible-galaxy install CyVerse-Ansible.ansible_jupyterhub_docker
Lizenz
other
Downloads
515
Besitzer