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
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Tatuya Kamada
slapos
Commits
4b4f9b3d
Commit
4b4f9b3d
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
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
34 additions
and
18 deletions
+34
-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
+25
-1
software/resdemo/software.cfg
software/resdemo/software.cfg
+8
-16
No files found.
software/resdemo/instance-resilient.cfg.jinja2
View file @
4b4f9b3d
# 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 @
4b4f9b3d
...
...
@@ -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,27 @@ apache-export = ${instance-apache-export:rendered}
frozen = ${instance-frozen:output}
pull-backup = ${template-pull-backup:output}
[slap-configuration]
recipe = slapos.cookbook:slapconfiguration.serialised
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}
[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
mode = 0644
software/resdemo/software.cfg
View file @
4b4f9b3d
...
...
@@ -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 =
81a98c2d479287361b068a43060ae5f1
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