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
Alain Takoudjou
slapos
Commits
c1e6c98a
Commit
c1e6c98a
authored
Jun 29, 2018
by
Guillaume Hervier
Committed by
Rafael Monnerat
Jul 03, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
re6stnet: Add port-redirection config file generation
parent
a5c92346
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
2 deletions
+13
-2
software/re6stnet/instance-re6stnet.cfg.in
software/re6stnet/instance-re6stnet.cfg.in
+12
-1
software/re6stnet/software.cfg
software/re6stnet/software.cfg
+1
-1
No files found.
software/re6stnet/instance-re6stnet.cfg.in
View file @
c1e6c98a
...
@@ -184,6 +184,16 @@ name = re6stnet
...
@@ -184,6 +184,16 @@ name = re6stnet
log = ${re6st-registry-conf-dict:logfile}
log = ${re6st-registry-conf-dict:logfile}
post = test ! -s ${re6st-registry-wrapper:pid-file} || {{ parameter_dict['bin-directory'] }}/slapos-kill --pidfile ${re6st-registry-wrapper:pid-file} -s USR1
post = test ! -s ${re6st-registry-wrapper:pid-file} || {{ parameter_dict['bin-directory'] }}/slapos-kill --pidfile ${re6st-registry-wrapper:pid-file} -s USR1
[port-redirection]
recipe = slapos.recipe.template:jinja2
template = inline:
{%- raw %}
[{"srcPort": 9201, "destPort": 9201, "destAddress": "{{ parameter_dict['ipv4'] }}"}]
{% endraw -%}
rendered = ${buildout:directory}/.slapos-port-redirect
context =
section parameter_dict re6st-registry-conf-dict
[re6st-registry-promise]
[re6st-registry-promise]
recipe = slapos.cookbook:check_port_listening
recipe = slapos.cookbook:check_port_listening
path = ${directory:promises}/re6st-registry
path = ${directory:promises}/re6st-registry
...
@@ -221,7 +231,8 @@ parts =
...
@@ -221,7 +231,8 @@ parts =
apache-httpd
apache-httpd
apache-httpd-graceful
apache-httpd-graceful
publish
publish
port-redirection
re6st-registry-promise
re6st-registry-promise
apache-registry-promise
apache-registry-promise
monitor-base
monitor-base
...
...
software/re6stnet/software.cfg
View file @
c1e6c98a
...
@@ -87,7 +87,7 @@ extra-context =
...
@@ -87,7 +87,7 @@ extra-context =
[template-re6stnet]
[template-re6stnet]
< = download-base
< = download-base
filename = instance-re6stnet.cfg.in
filename = instance-re6stnet.cfg.in
md5sum =
7d65efffeae3f9ae4e64699303a083b4
md5sum =
6f28b611a0e2415768238f5e8d29d36e
[template-apache-conf]
[template-apache-conf]
< = download-base
< = download-base
...
...
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