Skip to content

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>'# JUPYTERhub_cook: '<HUB COOKIE SECRET>'hub_salt: '<HUB WEB SITE SALT>'hub_pass: '<HUB DATABASE PASS>'# TEACHERSteachers_courses:
- 'bigdata'teachers_users:
- {'user': '{{me_user}}', 'course': 'bigdata'}# STUDENTSstudents_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

0 stars

Watchers

2 watching

Forks

Releases

Packages

Contributors

Languages