Commit 76550efa authored by Ayush Tiwari's avatar Ayush Tiwari

IPython Notebook: Added software type default and notebook for notebook software release

parent 029b9b28
[buildout] [buildout]
extends = parts =
${template-ipythonnotebook:output} request-ipythonnotebook
publish-connection-parameter
eggs-directory = ${buildout:eggs-directory}
develop-eggs-directory = ${buildout:develop-eggs-directory}
offline = true
[request-ipythonnotebook] [request-ipythonnotebook]
<= slap-connection <= slap-connection
...@@ -9,3 +14,8 @@ name = IPython Notebook ...@@ -9,3 +14,8 @@ name = IPython Notebook
software-url = $${slap-connection:software-release-url} software-url = $${slap-connection:software-release-url}
software-type = notebook software-type = notebook
return = url return = url
sla-computer_guid = $${slap-connection:computer-id}
[publish-connection-parameter]
recipe = slapos.cookbook:publish
notebook_url = $${request-ipythonnotebook:connection-url}
\ No newline at end of file
...@@ -32,15 +32,6 @@ eggs-directory = ${buildout:eggs-directory} ...@@ -32,15 +32,6 @@ eggs-directory = ${buildout:eggs-directory}
develop-eggs-directory = ${buildout:develop-eggs-directory} develop-eggs-directory = ${buildout:develop-eggs-directory}
offline = true offline = true
[slapconfiguration]
recipe = slapos.cookbook:slapconfiguration
computer = $${slap-connection:computer-id}
partition = $${slap-connection:partition-id}
url = $${slap-connection:server-url}
key = $${slap-connection:key-file}
cert = $${slap-connection:cert-file}
configuration.erp5_url = https://softinst60318.host.vifib.net/erp5/Base_executePython
[jinja2-template-base] [jinja2-template-base]
recipe = slapos.recipe.template:jinja2 recipe = slapos.recipe.template:jinja2
rendered = $${buildout:directory}/$${:filename} rendered = $${buildout:directory}/$${:filename}
...@@ -54,6 +45,15 @@ context = ...@@ -54,6 +45,15 @@ context =
key slave_instance_list slap-parameters:slave-instance-list key slave_instance_list slap-parameters:slave-instance-list
$${:extra-context} $${:extra-context}
[slapconfiguration]
recipe = slapos.cookbook:slapconfiguration
computer = $${slap-connection:computer-id}
partition = $${slap-connection:partition-id}
url = $${slap-connection:server-url}
key = $${slap-connection:key-file}
cert = $${slap-connection:cert-file}
configuration.erp5_url = https://softinst60318.host.vifib.net/erp5/Base_executePython
[instance-parameter] [instance-parameter]
port = 8888 port = 8888
host = $${slapconfiguration:ipv6-random} host = $${slapconfiguration:ipv6-random}
......
[buildout] [buildout]
parts = parts =
switch-softwaretype switch-softwaretype
...@@ -8,5 +9,5 @@ offline = true ...@@ -8,5 +9,5 @@ offline = true
[switch-softwaretype] [switch-softwaretype]
recipe = slapos.cookbook:softwaretype recipe = slapos.cookbook:softwaretype
default = ${default-template-ipythonnotebook:output} default = ${instance-default:output}
notebook = ${template-ipythonnotebook:output} notebook = ${instance-notebook:output}
\ No newline at end of file \ No newline at end of file
...@@ -15,8 +15,8 @@ parts = ...@@ -15,8 +15,8 @@ parts =
ipython_notebook ipython_notebook
ipython_notebook_set_password ipython_notebook_set_password
instance instance
template-ipythonnotebook instance-notebook
default-template-ipythonnotebook instance-default
[ipython_notebook] [ipython_notebook]
; In the ipython notebook software, we use more eggs than in the minimal ; In the ipython notebook software, we use more eggs than in the minimal
...@@ -53,19 +53,15 @@ recipe = slapos.recipe.template ...@@ -53,19 +53,15 @@ recipe = slapos.recipe.template
url = ${:_profile_base_location_}/instance.cfg url = ${:_profile_base_location_}/instance.cfg
output = ${buildout:directory}/instance.cfg output = ${buildout:directory}/instance.cfg
[template-ipythonnotebook] [instance-default]
recipe = slapos.recipe.template recipe = slapos.recipe.template
url = ${:_profile_base_location_}/instance-ipython-notebook.cfg.in url = ${:_profile_base_location_}/instance-default.cfg.in
md5sum = 5ba2484c3550a3254d14fcf1ed5fa6f4 output = ${buildout:directory}/template-default.cfg
output = ${buildout:directory}/template-ipython-notebook.cfg
mode = 0644
[default-template-ipythonnotebook] [instance-notebook]
recipe = slapos.recipe.template recipe = slapos.recipe.template
url = ${:_profile_base_location_}/instance-ipython-default.cfg.in url = ${:_profile_base_location_}/instance-notebook.cfg.in
md5sum = 9150cb3e60dddcde8060d04911e82323 output = ${buildout:directory}/template-notebook.cfg
output = ${buildout:directory}/temlate-ipython-default.cfg.in
mode = 0644
[erp5-kernel] [erp5-kernel]
recipe = hexagonit.recipe.download recipe = hexagonit.recipe.download
......
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