Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
slapos
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Ivan Tyagov
slapos
Commits
6723899b
Commit
6723899b
authored
Feb 20, 2023
by
Ivan Tyagov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
WIP: try to have conditional statement
parent
db979522
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
1 deletion
+12
-1
software/osie-coupler/buildout.hash.cfg
software/osie-coupler/buildout.hash.cfg
+1
-1
software/osie-coupler/instance.cfg.in
software/osie-coupler/instance.cfg.in
+11
-0
No files found.
software/osie-coupler/buildout.hash.cfg
View file @
6723899b
[instance-profile]
filename = instance.cfg.in
md5sum =
b6a9ac23e2bd0779408464f6fbf4a321
md5sum =
a748457950cd29b572d1f35826112f3e
software/osie-coupler/instance.cfg.in
View file @
6723899b
...
...
@@ -8,12 +8,23 @@ parts =
directory
publish-connection-parameter
coupler-opc-ua
coupler-opc-ua-new
eggs-directory = {{ buildout['eggs-directory'] }}
develop-eggs-directory = {{ buildout['develop-eggs-directory'] }}
offline = true
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]
recipe = slapos.cookbook:wrapper
environment =
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment