Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
SlapOS Develop
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
Eric Zheng
SlapOS Develop
Commits
e4a438bc
Commit
e4a438bc
authored
Sep 26, 2013
by
Marco Mariani
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
resdemo: render resilient template within the instance, with SLA
parent
ae35b01a
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
28 additions
and
18 deletions
+28
-18
software/resdemo/instance-resilient.cfg.jinja2
software/resdemo/instance-resilient.cfg.jinja2
+1
-1
software/resdemo/instance.cfg.in
software/resdemo/instance.cfg.in
+19
-1
software/resdemo/software.cfg
software/resdemo/software.cfg
+8
-16
No files found.
software/resdemo/instance-resilient.cfg.jinja2
View file @
e4a438bc
# vim: set ft=cfg:
{% import 'parts' as parts %}
{% import 'replicated' as replicated %}
{% import 'replicated' as replicated
with context
%}
[buildout]
eggs-directory = {{ eggs_directory }}
...
...
software/resdemo/instance.cfg.in
View file @
e4a438bc
...
...
@@ -10,7 +10,7 @@ offline = true
[switch_softwaretype]
recipe = slapos.cookbook:softwaretype
default = ${instance-apache-php:output}
resilient = $
{instanc
e-resilient:rendered}
resilient = $
${dynamic-templat
e-resilient:rendered}
apache-import = ${instance-apache-import:output}
apache-export = ${instance-apache-export:rendered}
...
...
@@ -19,3 +19,21 @@ apache-export = ${instance-apache-export:rendered}
frozen = ${instance-frozen:output}
pull-backup = ${template-pull-backup:output}
[dynamic-template-resilient]
recipe = slapos.recipe.template:jinja2
template = ${template-resilient:location}/instance-resilient.cfg.jinja2
rendered = $${buildout:directory}/template-resilient.cfg
extensions = jinja2.ext.do
context =
key buildout buildout:bin-directory
key develop_eggs_directory buildout:develop-eggs-directory
key eggs_directory buildout:eggs-directory
key slapparameter_dict slap-configuration:configuration
template-parts-destination = ${template-parts:destination}
template-replicated-destination = ${template-replicated:destination}
import-list = file parts :template-parts-destination
file replicated :template-replicated-destination
md5sum = 6ff8c4b87c32b919e35147926925d030
mode = 0644
software/resdemo/software.cfg
View file @
e4a438bc
...
...
@@ -97,7 +97,7 @@ strip-top-level-dir = true
recipe = slapos.recipe.template
url = ${:_profile_base_location_}/instance.cfg.in
output = ${buildout:directory}/instance.cfg
md5sum =
7c43cd86aace6a0df1375ae1f68c2fb6
md5sum =
b4791d368f59452abcb339479b6fcd41
mode = 0644
[instance-apache-php]
...
...
@@ -129,21 +129,13 @@ import-list = file parts template-parts:destination
md5sum = 0df9f940fcdb50d9697a9e59cdee566c
mode = 0644
[instance-resilient]
recipe = slapos.recipe.template:jinja2
template = ${:_profile_base_location_}/instance-resilient.cfg.jinja2
rendered = ${buildout:directory}/instance-resilient.cfg
extensions = jinja2.ext.do
context = key buildout buildout:bin-directory
key develop_eggs_directory buildout:develop-eggs-directory
key eggs_directory buildout:eggs-directory
import-list = file parts template-parts:destination
file replicated template-replicated:destination
md5sum = 6ff8c4b87c32b919e35147926925d030
mode = 0644
[template-resilient]
recipe = hexagonit.recipe.download
url = ${:_profile_base_location_}/instance-resilient.cfg.jinja2
mode = 644
md5sum = 79ff4b0959dc00461c5a4e02550423d9
download-only = true
on-update = true
#----------------
...
...
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