Commit c1e6c98a authored by Guillaume Hervier's avatar Guillaume Hervier Committed by Rafael Monnerat

re6stnet: Add port-redirection config file generation

parent a5c92346
......@@ -184,6 +184,16 @@ name = re6stnet
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
[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]
recipe = slapos.cookbook:check_port_listening
path = ${directory:promises}/re6st-registry
......@@ -221,7 +231,8 @@ parts =
apache-httpd
apache-httpd-graceful
publish
port-redirection
re6st-registry-promise
apache-registry-promise
monitor-base
......
......@@ -87,7 +87,7 @@ extra-context =
[template-re6stnet]
< = download-base
filename = instance-re6stnet.cfg.in
md5sum = 7d65efffeae3f9ae4e64699303a083b4
md5sum = 6f28b611a0e2415768238f5e8d29d36e
[template-apache-conf]
< = download-base
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment