Skip to content

Commit

Permalink
Merge calpolydatascience/jupyterhub-deploy-data301#5
Browse files Browse the repository at this point in the history
notes from a test deployment
  • Loading branch information
minrk committed Apr 25, 2016
2 parents 00e904c + cf3052e commit de7ae95
Show file tree
Hide file tree
Showing 6 changed files with 19 additions and 3 deletions.
7 changes: 6 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -63,8 +63,13 @@ End users of the deployment should be able to:
- Make sure there is a valid DNS entry for the server.
- If you not going to use letsencrypt, obtain a trusted SSL certificate and
key for the server at that FQDN.
- Install ansible ≥ 2.0, which has not been released as of January 2016.
To get ansible from master:

pip install git+https://github.com/ansible/ansible#egg=ansible

2. Edit the `./hosts` file to lists the FQDN's of the hosts in the jupyterhub_hosts
group.
group. See `./hosts.example` for an example.
2. For each host, create a file in `./host_vars` with the name of the host, starting
from `./host_vars/hostname.example`.
3. Create a `./security/cookie_secret` file by doing:
Expand Down
2 changes: 1 addition & 1 deletion host_vars/hostname.example
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
home_dir: /home

# The users that should be jupyterhub admins
jupyterhub_admins:
jupyterhub_admin_users:
- instructor

# The regular users able to use jupyterhub
Expand Down
2 changes: 2 additions & 0 deletions hosts.example
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
[jupyterhub_hosts]
fqdn.goes.here
5 changes: 5 additions & 0 deletions roles/common/tasks/hostname.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---

- name: set the hostname
hostname: name="{{inventory_hostname}}"
become: yes
3 changes: 2 additions & 1 deletion roles/common/tasks/main.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
---


- include: hostname.yml
- include: ntp.yml
- include: packages.yml
- include: mounts.yml
Expand Down
3 changes: 3 additions & 0 deletions roles/jupyterhub/tasks/supervisor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,6 @@
- name: install supervisor config for jupyterhub
template: src=jupyterhub.conf.j2 dest=/etc/supervisor/conf.d/jupyterhub.conf owner=root group=root mode=0600 backup=yes
become: true

- name: start jupyterhub with supervisor
supervisorctl: name=jupyterhub state=restarted

0 comments on commit de7ae95

Please sign in to comment.