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
Boxiang Sun
slapos
Commits
76fbfb69
Commit
76fbfb69
authored
Sep 17, 2013
by
Marco Mariani
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
resdemo: 'do' extension for jinja2
parent
004107d6
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
2 deletions
+4
-2
software/resdemo/buildout.cfg
software/resdemo/buildout.cfg
+3
-1
software/resdemo/instance-resilient.cfg.jinja2
software/resdemo/instance-resilient.cfg.jinja2
+1
-1
No files found.
software/resdemo/buildout.cfg
View file @
76fbfb69
...
@@ -109,6 +109,7 @@ mode = 0644
...
@@ -109,6 +109,7 @@ mode = 0644
recipe = slapos.recipe.template:jinja2
recipe = slapos.recipe.template:jinja2
template = ${:_profile_base_location_}/apache/instance-apache-export.cfg.jinja2
template = ${:_profile_base_location_}/apache/instance-apache-export.cfg.jinja2
rendered = ${buildout:directory}/instance-apache-export.cfg
rendered = ${buildout:directory}/instance-apache-export.cfg
extensions = jinja2.ext.do
context = key templateapache instance-apache-php:output
context = key templateapache instance-apache-php:output
key templatepbsreadyexport pbsready-export:output
key templatepbsreadyexport pbsready-export:output
...
@@ -123,6 +124,7 @@ mode = 0644
...
@@ -123,6 +124,7 @@ mode = 0644
recipe = slapos.recipe.template:jinja2
recipe = slapos.recipe.template:jinja2
template = ${:_profile_base_location_}/instance-resilient.cfg.jinja2
template = ${:_profile_base_location_}/instance-resilient.cfg.jinja2
rendered = ${buildout:directory}/instance-resilient.cfg
rendered = ${buildout:directory}/instance-resilient.cfg
extensions = jinja2.ext.do
context = key buildout buildout:bin-directory
context = key buildout buildout:bin-directory
key develop_eggs_directory buildout:develop-eggs-directory
key develop_eggs_directory buildout:develop-eggs-directory
...
@@ -131,7 +133,7 @@ context = key buildout buildout:bin-directory
...
@@ -131,7 +133,7 @@ context = key buildout buildout:bin-directory
import-list = file parts template-parts:destination
import-list = file parts template-parts:destination
file replicated template-replicated:destination
file replicated template-replicated:destination
md5sum =
e8ad60d4b62c754c5d6730fbf9a64f0
0
md5sum =
6ff8c4b87c32b919e35147926925d03
0
mode = 0644
mode = 0644
...
...
software/resdemo/instance-resilient.cfg.jinja2
View file @
76fbfb69
...
@@ -13,7 +13,7 @@ parts +=
...
@@ -13,7 +13,7 @@ parts +=
{{ parts.replicate("apache", "3") }}
{{ parts.replicate("apache", "3") }}
publish-connection-informations
publish-connection-informations
{{ replicated.replicate("apache", "3", "apache-export", "apache-import") }}
{{ replicated.replicate("apache", "3", "apache-export", "apache-import"
, slapparameter_dict=slapparameter_dict
) }}
# Bubble up the parameters
# Bubble up the parameters
[request-apache]
[request-apache]
...
...
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