Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
slapos
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Paul Graydon
slapos
Commits
c5736521
Commit
c5736521
authored
Jun 23, 2021
by
Lisa Casino
Committed by
Xavier Thompson
Oct 22, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
software/html5as-base: add title parameter
parent
17bc6687
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
14 additions
and
2 deletions
+14
-2
software/html5as-base/instance.cfg.in
software/html5as-base/instance.cfg.in
+7
-0
software/html5as-base/instance_html5as.cfg.in
software/html5as-base/instance_html5as.cfg.in
+5
-0
software/html5as-base/software.cfg
software/html5as-base/software.cfg
+2
-2
No files found.
software/html5as-base/instance.cfg.in
View file @
c5736521
...
...
@@ -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
...
...
software/html5as-base/instance_html5as.cfg.in
View file @
c5736521
...
...
@@ -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
...
...
@@ -129,3 +133,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'] }}!
software/html5as-base/software.cfg
View file @
c5736521
...
...
@@ -27,7 +27,7 @@ recipe = slapos.recipe.template:jinja2
rendered = ${buildout:directory}/template.cfg
template = ${:_profile_base_location_}/${:filename}
filename = instance.cfg.in
md5sum =
310aab063704794065ee3bc8f81fdc70
md5sum =
d6627ddb46e3a60e0ee246ed5a5d5d72
mode = 0644
context =
section buildout buildout
...
...
@@ -43,7 +43,7 @@ context =
recipe = slapos.recipe.build:download
url = ${:_profile_base_location_}/${:_update_hash_filename_}
_update_hash_filename_ = instance_html5as.cfg.in
md5sum =
9b7ed68551cac5967915979383238669
md5sum =
e51dbd14717a9499fba02e338fc3451d
mode = 0644
[template_nginx_conf]
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment