mirror of
https://github.com/iiab/iiab.git
synced 2025-03-09 15:40:17 +00:00
remove creation of notebook, spawner puts in /var/lib/private
This commit is contained in:
parent
def835205b
commit
94f5d14c9a
3 changed files with 18 additions and 12 deletions
|
@ -23,3 +23,19 @@
|
||||||
when: not jupyter_enabled
|
when: not jupyter_enabled
|
||||||
|
|
||||||
|
|
||||||
|
- name: Put the nginx config file in place
|
||||||
|
template:
|
||||||
|
src: jupyter-nginx.conf
|
||||||
|
dest: "{{ nginx_conf_dir }}/"
|
||||||
|
when: jupyter_enabled
|
||||||
|
|
||||||
|
- name: Disable jupyterhub
|
||||||
|
file:
|
||||||
|
path: "{{ nginx_conf_dir }}/jupyter-nginx.conf"
|
||||||
|
state: absent
|
||||||
|
when: not jupyter_enabled
|
||||||
|
|
||||||
|
- name: Restart 'nginx' systemd service
|
||||||
|
systemd:
|
||||||
|
name: nginx
|
||||||
|
state: restarted
|
||||||
|
|
|
@ -1,8 +1,3 @@
|
||||||
- name: We need a non-privileged user to write all the notebooks
|
|
||||||
ansible.builtin.user:
|
|
||||||
name: web-user
|
|
||||||
home: /opt/iiab/notebooks
|
|
||||||
|
|
||||||
- name: Make the directories to hold jupyter config
|
- name: Make the directories to hold jupyter config
|
||||||
file:
|
file:
|
||||||
state: directory
|
state: directory
|
||||||
|
@ -12,12 +7,6 @@
|
||||||
- '{{ jupyter_venv }}/etc/jupyterhub'
|
- '{{ jupyter_venv }}/etc/jupyterhub'
|
||||||
- '{{ jupyter_venv }}/etc/systemd'
|
- '{{ jupyter_venv }}/etc/systemd'
|
||||||
|
|
||||||
- name: Make a directory to hold notebooks
|
|
||||||
file:
|
|
||||||
state: directory
|
|
||||||
path: /opt/iiab/notebooks
|
|
||||||
owner: web-user
|
|
||||||
|
|
||||||
- name: "Set 'nodejs_install: True' and 'nodejs_enabled: True'"
|
- name: "Set 'nodejs_install: True' and 'nodejs_enabled: True'"
|
||||||
set_fact:
|
set_fact:
|
||||||
nodejs_install: True
|
nodejs_install: True
|
||||||
|
@ -59,6 +48,7 @@
|
||||||
template:
|
template:
|
||||||
src: jupyterhub_config.py
|
src: jupyterhub_config.py
|
||||||
dest: '{{ jupyter_venv }}/etc/jupyterhub/'
|
dest: '{{ jupyter_venv }}/etc/jupyterhub/'
|
||||||
|
|
||||||
- name: Use systemd to start jupyterhub
|
- name: Use systemd to start jupyterhub
|
||||||
template:
|
template:
|
||||||
src: jupyter.service
|
src: jupyter.service
|
||||||
|
|
|
@ -1057,7 +1057,7 @@ c.JupyterHub.spawner_class = 'systemdspawner.SystemdSpawner'
|
||||||
#
|
#
|
||||||
# Defaults to an empty set, in which case no user has admin access.
|
# Defaults to an empty set, in which case no user has admin access.
|
||||||
# Default: set()
|
# Default: set()
|
||||||
c.Authenticator.admin_users = set('iiab-admin')
|
c.Authenticator.admin_users = set('iiab-admin')
|
||||||
|
|
||||||
## Set of usernames that are allowed to log in.
|
## Set of usernames that are allowed to log in.
|
||||||
#
|
#
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue