Commit aa62308e authored by Nirina Malard's avatar Nirina Malard

software/html5as-base:add title parameter

parent b63c96b0
......@@ -10,8 +10,8 @@ offline = true
nginx_location = {{ nginx_location }}
dash_location = {{ dash_location }}
template_nginx_conf = {{ template_nginx_conf_target }}
template_mime_types = {{ template_mime_types_target }}
template_launcher = {{ template_launcher_target }}
template_mime_types = {{ template_mime_types_target }}
template_launcher = {{ template_launcher_target }}
[instance-html5as]
recipe = slapos.recipe.template:jinja2
......@@ -23,6 +23,13 @@ context =
section parameter_list profile-common
# partition_ipv6 is the random ipv6 allocated to the local partition
key partition_ipv6 slap-configuration:ipv6-random
# slapparameter_dict: dictionary of all parameters
key slapparameter_dict slap-configuration:configuration
jsonkey default_parameter_dict :default-parameters
default-parameters =
{
"title": "Tutorial html5as"
}
[switch-softwaretype]
recipe = slapos.cookbook:switch-softwaretype
......
......@@ -3,6 +3,10 @@
# Deploy html5as instance
#
#############################
# parameter_dict: a dictionary with the default parameters from instance.cfg.in
# replaces the values with the parameters of the instance request if there are any
{% set parameter_dict = dict(default_parameter_dict, **slapparameter_dict) %}
[buildout]
parts =
nginx_conf
......@@ -128,3 +132,4 @@ command = rm -r ${html5as:docroot}/*; echo "Hello World!" > ${html5as:docroot}/
[publish-connection-information]
recipe = slapos.cookbook:publish
server_url = ${html5as:access_url}
title = Title {{ parameter_dict['title'] }}!
......@@ -27,7 +27,7 @@ recipe = slapos.recipe.template:jinja2
output = ${buildout:directory}/template.cfg
url = ${:_profile_base_location_}/${:filename}
filename = instance.cfg.in
md5sum = 861e7ce5d65252067d31c7325c97917d
md5sum = 3ccb7ac5e72e61e29a7fd20a6a1946c7
context =
section buildout buildout
key nginx_location nginx:location
......@@ -42,7 +42,7 @@ context =
recipe = slapos.recipe.build:download
url = ${:_profile_base_location_}/${:_update_hash_filename_}
_update_hash_filename_ = instance_html5as.cfg.in
md5sum = 2c2bcd723694bc88df13c139c96e8bad
md5sum = b6dda2a6ced314f146d1dc88bcfa7b8c
[template_nginx_conf]
recipe = slapos.recipe.build: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