forked from openhab/openhab-addons
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixes configuring dynamodb and influxdb using the UI
* Update config.xml file paths * Add missing annotations to DynamoDBPersistenceService * Remove required configuration policy from DynamoDBPersistenceService causing the component to be not instantiated See: openhab#5275 (comment) Signed-off-by: Wouter Born <[email protected]>
- Loading branch information
Showing
5 changed files
with
130 additions
and
119 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
117 changes: 0 additions & 117 deletions
117
bundles/org.openhab.persistence.dynamodb/ESH-INF/config/config.xml
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
118 changes: 118 additions & 0 deletions
118
bundles/org.openhab.persistence.dynamodb/src/main/resources/OH-INF/config/config.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,118 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<config-description:config-descriptions | ||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | ||
xmlns:config-description="https://openhab.org/schemas/config-description/v1.0.0" | ||
xsi:schemaLocation="https://openhab.org/schemas/config-description/v1.0.0 | ||
https://openhab.org/schemas/config-description-1.0.0.xsd"> | ||
|
||
<config-description uri="persistence:dynamodb"> | ||
|
||
<!-- | ||
############################ Amazon DynamoDB Persistence Service ################################## | ||
# | ||
# The following parameters are used to configure Amazon DynamoDB Persistence. | ||
# | ||
# Further details at https://docs.openhab.org/addons/persistence/dynamodb/readme.html | ||
# | ||
# | ||
# CONNECTION SETTINGS (follow OPTION 1 or OPTION 2) | ||
# | ||
# OPTION 1 (using accessKey and secretKey) | ||
#accessKey=AKIAIOSFODNN7EXAMPLE | ||
#secretKey=3+AAAAABBBbbbCCCCCCdddddd+7mnbIOLH | ||
#region=eu-west-1 | ||
# OPTION 2 (using profilesConfigFile and profile) | ||
# where profilesConfigFile points to AWS credentials file | ||
#profilesConfigFile=/etc/openhab2/aws_creds | ||
#profile=fooprofile | ||
#region=eu-west-1 | ||
# Credentials file example: | ||
# | ||
# [fooprofile] | ||
# aws_access_key_id=AKIAIOSFODNN7EXAMPLE | ||
# aws_secret_access_key=3+AAAAABBBbbbCCCCCCdddddd+7mnbIOLH | ||
# | ||
# ADVANCED CONFIGURATION (OPTIONAL) | ||
# | ||
# read capacity for the created tables | ||
#readCapacityUnits=1 | ||
# write capacity for the created tables | ||
#writeCapacityUnits=1 | ||
# table prefix used in the name of created tables | ||
#tablePrefix=openhab- | ||
--> | ||
|
||
<parameter name="region" type="text" required="true"> | ||
<label>AWS region ID</label> | ||
<description><![CDATA[AWS region ID as described in Step 2 in Setting up Amazon account.<br /> | ||
The region needs to match the region of the AWS user that will access Amazon DynamoDB.<br /> | ||
For example, eu-west-1.]]></description> | ||
</parameter> | ||
|
||
<parameter name="accessKey" type="text" required="false"> | ||
<label>AWS access key</label> | ||
<description><![CDATA[AWS access key of the AWS user that will access Amazon DynamoDB. | ||
<br /> | ||
Give either 1) access key and secret key, or 2) credentials file and profile name. | ||
]]></description> | ||
</parameter> | ||
|
||
<parameter name="secretKey" type="text" required="false"> | ||
<label>AWS secret key</label> | ||
<description><![CDATA[AWS secret key of the AWS user that will access Amazon DynamoDB. | ||
<br /> | ||
Give either 1) access key and secret key, or 2) credentials file and profile name. | ||
]]></description> | ||
</parameter> | ||
|
||
|
||
<parameter name="profilesConfigFile" type="text" required="false"> | ||
<label>AWS credentials file</label> | ||
<description><![CDATA[Path to the AWS credentials file. <br /> | ||
For example, /etc/openhab2/aws_creds. | ||
Please note that the user that runs openHAB must have approriate read rights to the credential file. | ||
<br /> | ||
Give either 1) access key and secret key, or 2) credentials file and profile name. | ||
]]></description> | ||
</parameter> | ||
|
||
<parameter name="profile" type="text" required="false"> | ||
<label>Profile name</label> | ||
<description><![CDATA[Name of the profile to use in AWS credentials file | ||
<br /> | ||
Give either 1) access key and secret key, or 2) credentials file and profile name. | ||
]]></description> | ||
</parameter> | ||
|
||
|
||
|
||
<parameter name="readCapacityUnits" type="integer" required="false" min="1"> | ||
<description>Read capacity for the created tables. Default is 1.</description> | ||
<label>Read capacity</label> | ||
<advanced>true</advanced> | ||
</parameter> | ||
|
||
<parameter name="writeCapacityUnits" type="integer" required="false" min="1"> | ||
<label>Write capacity</label> | ||
<description>Write capacity for the created tables. Default is 1.</description> | ||
<advanced>true</advanced> | ||
</parameter> | ||
|
||
<parameter name="tablePrefix" type="text" required="false"> | ||
<label>Table prefix</label> | ||
<description>Table prefix used in the name of created tables. Default is openhab-</description> | ||
<advanced>true</advanced> | ||
</parameter> | ||
|
||
</config-description> | ||
|
||
</config-description:config-descriptions> |
File renamed without changes.