Commit 6723899b authored by Ivan Tyagov's avatar Ivan Tyagov

WIP: try to have conditional statement

parent db979522
[instance-profile] [instance-profile]
filename = instance.cfg.in filename = instance.cfg.in
md5sum = b6a9ac23e2bd0779408464f6fbf4a321 md5sum = a748457950cd29b572d1f35826112f3e
...@@ -8,12 +8,23 @@ parts = ...@@ -8,12 +8,23 @@ parts =
directory directory
publish-connection-parameter publish-connection-parameter
coupler-opc-ua coupler-opc-ua
coupler-opc-ua-new
eggs-directory = {{ buildout['eggs-directory'] }} eggs-directory = {{ buildout['eggs-directory'] }}
develop-eggs-directory = {{ buildout['develop-eggs-directory'] }} develop-eggs-directory = {{ buildout['develop-eggs-directory'] }}
offline = true offline = true
extends = {{ template_monitor }} extends = {{ template_monitor }}
[coupler-opc-ua-new]
recipe = slapos.recipe.template
output = ${directory:service}/coupler-opc-ua-new
inline =
{% raw %}
#!/bin/bash
export LD_LIBRARY_PATH='$LD_LIBRARY_PATH:{{ open62541_location }}/lib:{{ mbedtls_location }}/lib'
exec {{ coupler_location }}server -d ${instance-parameter:configuration.coupler_block_device} -s ${instance-parameter:configuration.coupler_i2c_slave_list} -p ${instance-parameter:configuration.opc_ua_port} -u ${instance-parameter:configuration.username} -w ${instance-parameter:configuration.password} -b ${instance-parameter:configuration.heart_beat} -t ${instance-parameter:configuration.heart_beat_interval} -l ${instance-parameter:configuration.heart_beat_id_list} -n ${instance-parameter:configuration.network_address_url_data_type} -o ${instance-parameter:configuration.heart_beat_timeout_interval} -i ${instance-parameter:configuration.id} -m ${instance-parameter:configuration.mode} {%if ${instance-parameter:configuration.network_interface} %} -j ${instance-parameter:configuration.network_interface} {% endif %}
{%- endraw %}
[coupler-opc-ua] [coupler-opc-ua]
recipe = slapos.cookbook:wrapper recipe = slapos.cookbook:wrapper
environment = environment =
......
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