Commit 35cf7722 authored by Boxiang Sun's avatar Boxiang Sun

erp5testnode: port fixup

parent be859e9a
......@@ -18,4 +18,4 @@ md5sum = a0e249bc3e0af5c23c85c3b31314be5f
[template-default]
filename = instance-default.cfg.jinja.in
md5sum = 96fb2221c8a91fb44dc5b931c29e0af9
md5sum = 4cb714e4293b36bd325ddb26ccf7491d
......@@ -32,6 +32,12 @@ log-frontend-url = $${testnode-log-frontend:connection-secure_access}
recipe = slapos.cookbook:generate.password
storage-path = $${buildout:directory}/.password
[httpd-address]
recipe = slapos.cookbook:free_port
minimum = 9080
maximum = 9180
ip = {{ partition_ipv6 }}
[testnode]
recipe = slapos.cookbook:erp5testnode
slapos-directory = $${directory:slapos}
......@@ -64,8 +70,8 @@ httpd-pid-file = $${basedirectory:run}/httpd.pid
httpd-lock-file = $${basedirectory:run}/httpd.lock
httpd-conf-file = $${rootdirectory:etc}/httpd.conf
httpd-wrapper = $${rootdirectory:bin}/httpd
httpd-port = 9080
httpd-software-access-port = 9081
httpd-port = $${httpd-address:port}
httpd-software-access-port = $${httpd-address:port} + 1
httpd-ip = {{ partition_ipv6 }}
httpd-log-directory = $${basedirectory:log}
httpd-software-directory = $${directory:software}
......@@ -124,6 +130,12 @@ location =
$${:cert-file}
ipv6 = {{ partition_ipv6 }}
[shellinabox-frontend-address]
recipe = slapos.cookbook:free_port
minimum = 8080
maximum = 8180
ip = $${shellinabox-frontend-certificate:ipv6}
[shellinabox-frontend-config]
recipe = slapos.recipe.template:jinja2
url = ${stack-haproxy-default-backend-config:target}
......@@ -145,7 +157,7 @@ content =
ipv6 = $${shellinabox-frontend-certificate:ipv6}
hostname = [$${:ipv6}]
port = 8080
port = $${shellinabox-frontend-address:port}
username = testnode
passwd = $${pwgen:passwd}
cert-file = $${directory:shellinabox}/public.crt
......
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