Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
osie
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
Nikola Balog
osie
Commits
86d25055
Commit
86d25055
authored
May 17, 2024
by
Philipp
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add new file
parent
b599d565
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
68 additions
and
0 deletions
+68
-0
slapos/software/opcua-server-fhi/instance.cfg.in
slapos/software/opcua-server-fhi/instance.cfg.in
+68
-0
No files found.
slapos/software/opcua-server-fhi/instance.cfg.in
0 → 100644
View file @
86d25055
[buildout]
parts =
promises
directory
opcua-xml-url
opcua-to-http-gw-service
publish-connection-parameter
eggs-directory = {{ buildout["eggs-directory"] }}
develop-eggs-directory = {{ buildout["develop-eggs-directory"] }}
offline = true
[check-port-listening-promise]
recipe = slapos.cookbook:check_port_listening
path = ${directory:promise}/${:_buildout_section_name_}
[directory]
recipe = slapos.cookbook:mkdirectory
home = ${buildout:directory}
etc = ${:home}/etc
var = ${:home}/var
script = ${:etc}/run/
service = ${:etc}/service
promise = ${:etc}/promise/
log = ${:var}/log
bin = ${:home}/bin
[instance-parameter]
recipe = slapos.cookbook:slapconfiguration
computer = ${slap-connection:computer-id}
partition = ${slap-connection:partition-id}
url = ${slap-connection:server-url}
key = ${slap-connection:key-file}
cert = ${slap-connection:cert-file}
configuration.opcua-port = 4840
configuration.opcua-xml-url = slapparameter_dict.get('opcua-xml-url')
configuration.erp5-url = slapparameter_dict.get('erp5-url')
configuration.erp5-username = slapparameter_dict.get('erp5-username')
configuration.erp5-password = slapparameter_dict.get('erp5-password')
# configuration.ipv6-enabled = slapparameter_dict.get('ipv6-enabled')
configuration.ipv6-enabled = '1'
ipv6-random = slapparameter_dict.get('ipv6-random')
[opcua-xml-url]
recipe = slapos.recipe.build:download
url = ${instance-parameter:configuration.opcua-xml-url}
offline = false
destination = ${directory:etc}/schema.xml
[opcua-to-http-gw-service]
recipe = slapos.cookbook:wrapper
command-line = {{ interpreter_location }}/py {{ osie_repository_location }}/opcua-to-http-gw/opcua-to-http-gw.py --xml ${opcua-xml-url:destination} --erp5-url ${instance-parameter:configuration.erp5-url} --erp5-username ${instance-parameter:configuration.erp5-username} --erp5-password ${instance-parameter:configuration.erp5-password} --port ${instance-parameter:configuration.opcua-port} --ipv6 ${instance-parameter:ipv6-random} --ipv6-enabled ${instance-parameter:configuration.ipv6-enabled}
wrapper-path = ${directory:service}/opcua-to-http-gw-service
output = $${:wrapper-path}
[opcua-to-http-gw-listen-promise-ipv6]
<= check-port-listening-promise
hostname = ${instance-parameter:ipv6-random}
port = ${instance-parameter:configuration.opcua-port}
[promises]
recipe =
instance-promises =
${opcua-to-http-gw-listen-promise-ipv6:path}
[publish-connection-parameter]
recipe = slapos.cookbook:publish
ipv6 = ${instance-parameter:ipv6-random}
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