diff --git a/data/common.yaml b/data/common.yaml index 81621e1..0ec6d4f 100644 --- a/data/common.yaml +++ b/data/common.yaml @@ -1,5 +1,6 @@ # jupyterhub/data/common.yaml --- +jupyterhub::notebook::version: 6.0.3 jupyterhub::jupyterhub::version: 1.1.0 jupyterhub::batchspawner::url: https://github.com/jupyterhub/batchspawner/archive/v1.0.0.zip jupyterhub::slurmformspawner::version: 2.2.0 diff --git a/manifests/node.pp b/manifests/node.pp index a2bbecf..49935c6 100644 --- a/manifests/node.pp +++ b/manifests/node.pp @@ -23,8 +23,11 @@ } class jupyterhub::node::install (Stdlib::Absolutepath $prefix) { + + $notebook_version = lookup('jupyterhub::notebook::version') + exec { 'pip_notebook': - command => "${prefix}/bin/pip install --no-cache-dir notebook", + command => "${prefix}/bin/pip install --no-cache-dir notebook==${notebook_version}", creates => "${prefix}/lib/python3.6/site-packages/notebook/", require => Exec['jupyterhub_venv'] }