Commit fc101bcc authored by Ivan Tyagov's avatar Ivan Tyagov

WIP.

parent df6b58d2
[instance-profile] [instance-profile]
filename = instance.cfg.in filename = instance.cfg.in
md5sum = 9ca5ddf6bed34861a17e3352dacc4813 md5sum = 0932355fef312f5d68f2270e5a929c58
...@@ -28,6 +28,16 @@ ...@@ -28,6 +28,16 @@
"type": "integer", "type": "integer",
"default": 0 "default": 0
}, },
"key": {
"description": "The SSL key for OPC UA server.",
"type": "string",
"default": ""
},
"cert": {
"description": "The SSL cert for OPC UA server.",
"type": "string",
"default": ""
},
"username": { "username": {
"description": "The username for OPC UA server.", "description": "The username for OPC UA server.",
"type": "string", "type": "string",
......
...@@ -19,7 +19,7 @@ recipe = slapos.cookbook:wrapper ...@@ -19,7 +19,7 @@ recipe = slapos.cookbook:wrapper
environment = environment =
LD_LIBRARY_PATH=$LD_LIBRARY_PATH:{{ open62541_location }}/lib:{{ mbedtls_location }}/lib LD_LIBRARY_PATH=$LD_LIBRARY_PATH:{{ open62541_location }}/lib:{{ mbedtls_location }}/lib
command-line = command-line =
{{ 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} -j ${instance-parameter:configuration.network_interface} {{ 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} -j ${instance-parameter:configuration.network_interface} -k ${instance-parameter:configuration.key} -c ${instance-parameter:configuration.cert}
wrapper-path = ${directory:service}/coupler-opc-ua wrapper-path = ${directory:service}/coupler-opc-ua
[instance-parameter] [instance-parameter]
...@@ -27,8 +27,6 @@ recipe = slapos.cookbook:slapconfiguration ...@@ -27,8 +27,6 @@ recipe = slapos.cookbook:slapconfiguration
computer = ${slap-connection:computer-id} computer = ${slap-connection:computer-id}
partition = ${slap-connection:partition-id} partition = ${slap-connection:partition-id}
url = ${slap-connection:server-url} url = ${slap-connection:server-url}
key = ${slap-connection:key-file}
cert = ${slap-connection:cert-file}
configuration.coupler_block_device = /dev/i2c-1 configuration.coupler_block_device = /dev/i2c-1
configuration.coupler_i2c_slave_list = 0x58 configuration.coupler_i2c_slave_list = 0x58
configuration.mode = 0 configuration.mode = 0
......
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