Commit 10d54920 authored by Philipp's avatar Philipp

Adding via jinja2 default paramters for instance-parameters. Adding the...

    Adding via jinja2 default paramters for instance-parameters. Adding the functionality to parse parameters via request
parent 9868050f
{% set parameter_dict = dict(default_parameter_dict) %}
[buildout]
parts =
directory
......@@ -31,17 +32,20 @@ partition = ${slap-connection:partition-id}
url = ${slap-connection:server-url}
key = ${slap-connection:key-file}
cert = ${slap-connection:cert-file}
configuration.opcua-xml-url = "https://lab.nexedi.com/Demonkey/osie/raw/philipp_opcua/opcua-to-http-gw/opcua-server-config.xml"
# Default parameters
configuration.ipv6-enabled = {{ parameter_dict['ipv6-enabled'] }}
configuration.opcua-port = {{ parameter_dict['opcua-port'] }}
[opcua-xml-url]
recipe = slapos.recipe.build:download
url = https://lab.nexedi.com/Demonkey/osie/raw/philipp_opcua/opcua-to-http-gw/opcua-server-config.xml
url = {{ parameter_dict['opcua-xml-url'] }}
offline = false
destination = ${directory:etc}/schema.xml
[opcua-server-fhi-service]
recipe = slapos.cookbook:wrapper
command-line = {{ interpreter_location }}/py {{ osie_repository_location }}/opcua-server-fhi/minimal-server.py --xml ${opcua-xml-url:destination} --port '4840' --ipv6 ${instance-parameter:ipv6-random} --ipv6-enabled '1'
command-line = /srv/slapgrid/slappart91/srv/runner/software/ef6615b72430cf04ea42cb6699d18493/bin/py /srv/slapgrid/slappart91/srv/project/slapos/software/osie/opcua-server-fhi/minimal-server.py --xml ${opcua-xml-url:destination} --port ${instance-parameter:configuration.opcua-port} --ipv6 ${instance-parameter:ipv6-random} --ipv6-enabled ${instance-parameter:configuration.ipv6-enabled}
wrapper-path = ${directory:service}/opcua-server-fhi-service
output = $${:wrapper-path}
......
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