Skip to content

Setup code.fmind.me with JupyterHub and nbgrader using Ansible

Notifications You must be signed in to change notification settings

fmind/code.fmind.me

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

code.fmind.me

The goal of this project is to setup code.fmind.me with JupyterHub and nbgrader using Ansible.

Server

This snippet must be run as root on the server before executing the playbook.

apt update && apt upgrade -y && apt install -y python
useradd fmind -m -G sudo -s /bin/bash
passwd fmind

Client

You must create a vault that contains secret information (between bracket):

---
ansible_become_pass: '<ROOT PASSWORD>'
# JUPYTER
hub_cook: '<HUB COOKIE SECRET>'
hub_salt: '<HUB WEB SITE SALT>'
hub_pass: '<HUB DATABASE PASS>'
# TEACHERS
teachers_courses:
  - 'bigdata'
teachers_users:
  - {'user': '{{me_user}}', 'course': 'bigdata'}
# STUDENTS
students_users:
  - {'user': 'bigtest', 'pass': '<TEST PASSWORD>', 'course': 'bigdata'}

This snippet must be run on your computer to configure the server.

ansible-playbook -i inventory.ini --ask-vault site.yml

Courses

Notes

  • You can deploy private courses from Github using Github deploy keys.
  • Jupyterhub must run as root to isolate student resources with systemd.
  • Student names and/or ID must be lowercased to be valid Linux user names.

About

Setup code.fmind.me with JupyterHub and nbgrader using Ansible

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages