Commit 2ff9b784 authored by Ayush Tiwari's avatar Ayush Tiwari Committed by Kirill Smelkov

IPython Notebook: Add dynamic-template-base section for common jinja related...

IPython Notebook: Add dynamic-template-base section for common jinja related file section and extend them with this section
parent fbfaaef8
...@@ -46,6 +46,10 @@ key_file = ${generate-certificate:key_file} ...@@ -46,6 +46,10 @@ key_file = ${generate-certificate:key_file}
logfile = ${directory:log}/ipython_notebook.log logfile = ${directory:log}/ipython_notebook.log
notebook_dir = ${directory:notebook_dir} notebook_dir = ${directory:notebook_dir}
[dynamic-jinja2-template-base]
recipe = slapos.recipe.template:jinja2
mode = 0644
[generate-certificate] [generate-certificate]
; TODO: there is a slapos recipe to generate certificates. Use it instead ; TODO: there is a slapos recipe to generate certificates. Use it instead
recipe = plone.recipe.command recipe = plone.recipe.command
...@@ -79,7 +83,7 @@ wrapper-path = ${directory:service}/ipython_notebook ...@@ -79,7 +83,7 @@ wrapper-path = ${directory:service}/ipython_notebook
parameters-extra = true parameters-extra = true
[ipython-notebook-config] [ipython-notebook-config]
recipe = slapos.recipe.template:jinja2 <= dynamic-jinja2-template-base
template = {{ ipython_notebook_config_location }}/{{ ipython_notebook_config_filename }} template = {{ ipython_notebook_config_location }}/{{ ipython_notebook_config_filename }}
rendered = ${directory:etc}/ipython_notebook_config.py rendered = ${directory:etc}/ipython_notebook_config.py
mode = 0744 mode = 0744
...@@ -91,7 +95,7 @@ context = ...@@ -91,7 +95,7 @@ context =
source = ${instance-parameter:logfile} source = ${instance-parameter:logfile}
[monitor-deploy-set-password-cgi] [monitor-deploy-set-password-cgi]
recipe = slapos.recipe.template:jinja2 <= dynamic-jinja2-template-base
template = {{ ipython_notebook_set_password_location }}/{{ ipython_notebook_set_password_filename }} template = {{ ipython_notebook_set_password_location }}/{{ ipython_notebook_set_password_filename }}
rendered = ${monitor-directory:knowledge0-cgi}/${:filename} rendered = ${monitor-directory:knowledge0-cgi}/${:filename}
filename = ipython-notebook-password.cgi filename = ipython-notebook-password.cgi
......
...@@ -44,7 +44,7 @@ recipe = slapos.recipe.template:jinja2 ...@@ -44,7 +44,7 @@ recipe = slapos.recipe.template:jinja2
template = ${:_profile_base_location_}/instance.cfg.in template = ${:_profile_base_location_}/instance.cfg.in
rendered = ${buildout:directory}/template.cfg rendered = ${buildout:directory}/template.cfg
mode = 0644 mode = 0644
md5sum = 817291fe3e26a12440292bfa3ae9bcc0 md5sum = 3cf8e0d61d4eb17201164239571f247a
context = context =
key bin_directory buildout:bin-directory key bin_directory buildout:bin-directory
key develop_eggs_directory buildout:develop-eggs-directory key develop_eggs_directory buildout:develop-eggs-directory
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment