Commit 109a7b84 authored by Ivan Tyagov's avatar Ivan Tyagov

Fix promise.

parent fade0011
[instance-profile] [instance-profile]
filename = instance.cfg.in filename = instance.cfg.in
md5sum = e294bb63de03a643d1c0bb297d9e1bb7 md5sum = b0efa23802f4fa545eaa4e67c83f0b7d
...@@ -36,6 +36,7 @@ cert = ${slap-connection:cert-file} ...@@ -36,6 +36,7 @@ cert = ${slap-connection:cert-file}
# specify it. # specify it.
# All possible parameters should have a default. # All possible parameters should have a default.
# In our use case, we are expecting from the user to specify one (optional) parameter: "name". We put the default value here if he doesn't specify it, so that it doesn't crash. # In our use case, we are expecting from the user to specify one (optional) parameter: "name". We put the default value here if he doesn't specify it, so that it doesn't crash.
configuration.interface = 0.0.0.0
configuration.port = 1502 configuration.port = 1502
# If our use case requires that the user can specify a mail address so that his instance can mail to him (for example), we can do: # If our use case requires that the user can specify a mail address so that his instance can mail to him (for example), we can do:
# configuration.mail-address = # configuration.mail-address =
...@@ -101,8 +102,8 @@ port = {{ port }} ...@@ -101,8 +102,8 @@ port = {{ port }}
[helloweb-{{ kind }}-promise] [helloweb-{{ kind }}-promise]
<= helloweb-promise <= helloweb-promise
kind = {{ kind }} kind = {{ kind }}
config-hostname= ${helloweb-{{ kind }}:ipv6} config-hostname= ${instance-parameter:configuration.interface}
config-port = {{ port }} config-port = ${instance-parameter:configuration.port}
{% endmacro %} {% endmacro %}
# services instantiation # services instantiation
...@@ -124,3 +125,4 @@ parts += ...@@ -124,3 +125,4 @@ parts +=
[publish-connection-parameter] [publish-connection-parameter]
recipe = slapos.cookbook:publish recipe = slapos.cookbook:publish
port = ${instance-parameter:configuration.port} port = ${instance-parameter:configuration.port}
interface = ${instance-parameter:configuration.interface}
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