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
Levin Zimmermann
slapos
Commits
5f8dc534
Commit
5f8dc534
authored
Mar 09, 2023
by
Levin Zimmermann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
stack/erp5: add global opcua-server configuration
parent
c2abc67d
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
113 additions
and
5 deletions
+113
-5
stack/erp5/buildout.cfg
stack/erp5/buildout.cfg
+4
-0
stack/erp5/buildout.hash.cfg
stack/erp5/buildout.hash.cfg
+6
-2
stack/erp5/instance-opcua-server.cfg.in
stack/erp5/instance-opcua-server.cfg.in
+2
-1
stack/erp5/instance.cfg.in
stack/erp5/instance.cfg.in
+4
-2
stack/erp5/opcua-server-config.xml
stack/erp5/opcua-server-config.xml
+97
-0
No files found.
stack/erp5/buildout.cfg
View file @
5f8dc534
...
...
@@ -226,6 +226,7 @@ context =
key template_postfix_master_cf template-postfix-master-cf:target
key instance_wcfs_cfg_in instance-wcfs.cfg.in:target
key instance_opcua_server_cfg_in instance-opcua-server.cfg.in:target
key opcua_server_config_xml opcua-server-config.xml:target
key template_zeo template-zeo:target
key template_zodb_base template-zodb-base:target
key template_zope template-zope:target
...
...
@@ -301,6 +302,9 @@ fontconfig-includes =
[instance-opcua-server.cfg.in]
<= download-base
[opcua-server-config.xml]
<= download-base
[erp5-bin]
<= erp5
repository = https://lab.nexedi.com/nexedi/erp5-bin.git
...
...
stack/erp5/buildout.hash.cfg
View file @
5f8dc534
...
...
@@ -70,7 +70,7 @@ md5sum = b95084ae9eed95a68eada45e28ef0c04
[template]
filename = instance.cfg.in
md5sum = e
08141edfda8d4159e26898000e991f3
md5sum = e
acf1b6a5ab577100660b441bcccd397
[template-erp5]
filename = instance-erp5.cfg.in
...
...
@@ -106,4 +106,8 @@ md5sum = eb4be2669a9a56187cc4366272e11d18
[instance-opcua-server.cfg.in]
filename = instance-opcua-server.cfg.in
md5sum = 207b458e52de1a038af807274345b5ff
md5sum = 2786edfcd1c720d08dd624dfee4840ff
[opcua-server-config.xml]
filename = opcua-server-config.xml
md5sum = 09f5d87b8bd5b508458ac24e4f541767
stack/erp5/instance-opcua-server.cfg.in
View file @
5f8dc534
{% set ipv4 = (ipv4_set | list)[0] -%}
{# port is hard coded here + in stack/erp5/haproxy.cfg.in #}
{% set port = 2262 %}
{% set opcua_server_config = parameter_dict["opcua_server_config_xml"] %}
[buildout]
extends = {{ template_monitor }}
...
...
@@ -21,5 +22,5 @@ var = ${buildout:directory}/var
[opcua-server]
recipe = slapos.cookbook:wrapper
command-line =
{{ bin_directory }}/opcua-server --ip {{ ipv4 }} --port {{ port }}
{{ bin_directory }}/opcua-server --ip {{ ipv4 }} --port {{ port }}
--xml {{ opcua_server_config }}
wrapper-path = ${directory:service-on-watch}/opcua-server
stack/erp5/instance.cfg.in
View file @
5f8dc534
...
...
@@ -209,13 +209,15 @@ extra-context =
import-list =
file instance_zodb_base context:template-zodb-base
[dynamic-template-opcua-server-parameters]
opcua_server_config_xml = {{ opcua_server_config_xml }}
[dynamic-template-opcua-server]
<= jinja2-template-base
url = {{ instance_opcua_server_cfg_in }}
filename = instance_opcua_server.cfg
extra-context =
section parameter_dict dynamic-template-zope-parameters
section parameter_dict dynamic-template-opcua-server-parameters
[switch-softwaretype]
recipe = slapos.cookbook:switch-softwaretype
...
...
stack/erp5/opcua-server-config.xml
0 → 100644
View file @
5f8dc534
<?xml version='1.0' encoding='utf-8'?>
<UANodeSet
xmlns:xsi=
"http://www.w3.org/2001/XMLSchema-instance"
xmlns:uax=
"http://opcfoundation.org/UA/2008/02/Types.xsd"
xmlns:xsd=
"http://www.w3.org/2001/XMLSchema"
xmlns=
"http://opcfoundation.org/UA/2011/03/UANodeSet.xsd"
>
<NamespaceUris>
<Uri>
http://erp5.com
</Uri>
</NamespaceUris>
<Aliases>
<Alias
Alias=
"Int64"
>
i=8
</Alias>
<Alias
Alias=
"Organizes"
>
i=35
</Alias>
<Alias
Alias=
"HasTypeDefinition"
>
i=40
</Alias>
<Alias
Alias=
"HasComponent"
>
i=47
</Alias>
</Aliases>
<UAObject
NodeId=
"ns=1;i=1"
BrowseName=
"1:erp5-test-object-0"
ParentNodeId=
"i=85"
>
<DisplayName>
erp5-test-object-0
</DisplayName>
<Description>
erp5-test-object-0
</Description>
<References>
<Reference
ReferenceType=
"Organizes"
IsForward=
"false"
>
i=85
</Reference>
<Reference
ReferenceType=
"HasTypeDefinition"
>
i=58
</Reference>
<Reference
ReferenceType=
"HasComponent"
>
ns=1;i=2
</Reference>
</References>
</UAObject>
<UAVariable
NodeId=
"ns=1;i=2"
BrowseName=
"1:erp5-variable"
ParentNodeId=
"ns=1;i=1"
DataType=
"Int64"
AccessLevel=
"3"
UserAccessLevel=
"3"
>
<DisplayName>
erp5-variable
</DisplayName>
<Description>
erp5-variable
</Description>
<References>
<Reference
ReferenceType=
"HasComponent"
IsForward=
"false"
>
ns=1;i=1
</Reference>
<Reference
ReferenceType=
"HasTypeDefinition"
>
i=63
</Reference>
</References>
</UAVariable>
<UAObject
NodeId=
"ns=1;i=3"
BrowseName=
"1:erp5-test-object-1"
ParentNodeId=
"i=85"
>
<DisplayName>
erp5-test-object-1
</DisplayName>
<Description>
erp5-test-object-1
</Description>
<References>
<Reference
ReferenceType=
"Organizes"
IsForward=
"false"
>
i=85
</Reference>
<Reference
ReferenceType=
"HasTypeDefinition"
>
i=58
</Reference>
<Reference
ReferenceType=
"HasComponent"
>
ns=1;i=4
</Reference>
</References>
</UAObject>
<UAVariable
NodeId=
"ns=1;i=4"
BrowseName=
"1:erp5-variable"
ParentNodeId=
"ns=1;i=3"
DataType=
"Int64"
AccessLevel=
"3"
UserAccessLevel=
"3"
>
<DisplayName>
erp5-variable
</DisplayName>
<Description>
erp5-variable
</Description>
<References>
<Reference
ReferenceType=
"HasComponent"
IsForward=
"false"
>
ns=1;i=3
</Reference>
<Reference
ReferenceType=
"HasTypeDefinition"
>
i=63
</Reference>
</References>
</UAVariable>
<UAObject
NodeId=
"ns=1;i=5"
BrowseName=
"1:erp5-test-object-2"
ParentNodeId=
"i=85"
>
<DisplayName>
erp5-test-object-2
</DisplayName>
<Description>
erp5-test-object-2
</Description>
<References>
<Reference
ReferenceType=
"Organizes"
IsForward=
"false"
>
i=85
</Reference>
<Reference
ReferenceType=
"HasTypeDefinition"
>
i=58
</Reference>
<Reference
ReferenceType=
"HasComponent"
>
ns=1;i=6
</Reference>
</References>
</UAObject>
<UAVariable
NodeId=
"ns=1;i=6"
BrowseName=
"1:erp5-variable"
ParentNodeId=
"ns=1;i=5"
DataType=
"Int64"
AccessLevel=
"3"
UserAccessLevel=
"3"
>
<DisplayName>
erp5-variable
</DisplayName>
<Description>
erp5-variable
</Description>
<References>
<Reference
ReferenceType=
"HasComponent"
IsForward=
"false"
>
ns=1;i=5
</Reference>
<Reference
ReferenceType=
"HasTypeDefinition"
>
i=63
</Reference>
</References>
</UAVariable>
<UAObject
NodeId=
"ns=1;i=7"
BrowseName=
"1:erp5-test-object-3"
ParentNodeId=
"i=85"
>
<DisplayName>
erp5-test-object-3
</DisplayName>
<Description>
erp5-test-object-3
</Description>
<References>
<Reference
ReferenceType=
"Organizes"
IsForward=
"false"
>
i=85
</Reference>
<Reference
ReferenceType=
"HasTypeDefinition"
>
i=58
</Reference>
<Reference
ReferenceType=
"HasComponent"
>
ns=1;i=8
</Reference>
</References>
</UAObject>
<UAVariable
NodeId=
"ns=1;i=8"
BrowseName=
"1:erp5-variable"
ParentNodeId=
"ns=1;i=7"
DataType=
"Int64"
AccessLevel=
"3"
UserAccessLevel=
"3"
>
<DisplayName>
erp5-variable
</DisplayName>
<Description>
erp5-variable
</Description>
<References>
<Reference
ReferenceType=
"HasComponent"
IsForward=
"false"
>
ns=1;i=7
</Reference>
<Reference
ReferenceType=
"HasTypeDefinition"
>
i=63
</Reference>
</References>
</UAVariable>
<UAObject
NodeId=
"ns=1;i=9"
BrowseName=
"1:erp5-test-object-4"
ParentNodeId=
"i=85"
>
<DisplayName>
erp5-test-object-4
</DisplayName>
<Description>
erp5-test-object-4
</Description>
<References>
<Reference
ReferenceType=
"Organizes"
IsForward=
"false"
>
i=85
</Reference>
<Reference
ReferenceType=
"HasTypeDefinition"
>
i=58
</Reference>
<Reference
ReferenceType=
"HasComponent"
>
ns=1;i=10
</Reference>
</References>
</UAObject>
<UAVariable
NodeId=
"ns=1;i=10"
BrowseName=
"1:erp5-variable"
ParentNodeId=
"ns=1;i=9"
DataType=
"Int64"
AccessLevel=
"3"
UserAccessLevel=
"3"
>
<DisplayName>
erp5-variable
</DisplayName>
<Description>
erp5-variable
</Description>
<References>
<Reference
ReferenceType=
"HasComponent"
IsForward=
"false"
>
ns=1;i=9
</Reference>
<Reference
ReferenceType=
"HasTypeDefinition"
>
i=63
</Reference>
</References>
</UAVariable>
</UANodeSet>
\ No newline at end of file
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