Skip to content

Introduce parameter for disabling user config #81

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion files/jupyterhub_config.json
Original file line number Diff line number Diff line change
@@ -13,7 +13,6 @@
"service" : "jupyterhub-login"
},
"Spawner": {
"disable_user_config": true,
"args": [
"--KernelSpecManager.ensure_native_kernel=False"
]
5 changes: 4 additions & 1 deletion manifests/init.pp
Original file line number Diff line number Diff line change
@@ -3,12 +3,13 @@
# @param slurm_home Path to Slurm installation folder
# @param bind_url Public facing URL of the whole JupyterHub application
# @param spawner_class Class name for authenticating users.
# @param authenticator_class Class to use for spawning single-user servers
# @param authenticator_class Class to use for spawning single-user servers
# @param idle_timeout Time in seconds after which an inactive notebook is culled
# @param traefik_version Version of traefik to install on the hub instance
# @param admin_groups List of user groups that can act as JupyterHub admin
# @param blocked_users List of users that cannot login and that jupyterhub can't sudo as
# @param jupyterhub_config_hash Custom hash merged to JupyterHub JSON main hash
# @param disable_user_config Disable per-user configuration of single-user servers
# @param prometheus_token Token that Prometheus can use to scrape JupyterHub's metrics
class jupyterhub (
Stdlib::Absolutepath $prefix = '/opt/jupyterhub',
@@ -21,6 +22,7 @@
Array[String] $admin_groups = [],
Array[String] $blocked_users = ['root', 'toor', 'admin', 'centos', 'slurm'],
Hash $jupyterhub_config_hash = {},
Boolean $disable_user_config = true,
Optional[String] $prometheus_token = undef,
) {
ensure_resource('class', 'jupyterhub::base', { 'prefix' => $prefix })
@@ -195,6 +197,7 @@
'blocked_users' => $blocked_users,
},
'Spawner' => {
'disable_user_config' => $disable_user_config,
'cmd' => "${node_prefix}/bin/jupyterhub-singleuser",
},
'BatchSpawnerBase' => {