A package of extensions for CKAN open data platform for storing resources on CloudStorage.
This extension was developed and tested under CKAN-2.2
For now extension supports only Amazon S3 Cloud storage. In order to use this extension you should have AWS account because AWS Key and AWS Secret Key are required for connection to Cloud.
To install CKAN CloudConnector:
Activate your CKAN virtual environment, for example:
$ . /usr/lib/ckan/default/bin/activate
Install the ckanext-cloudconnector Python package into your virtual environment:
$ cd /some/dir/ckanext-cloudconnector
$ python setup.py install
Add cloud_connector
to the ckan.plugins
setting in your CKAN
config file (by default the config file is located at
/etc/ckan/default/production.ini
).
Restart CKAN. For example if you’ve deployed CKAN with Apache on Ubuntu:
$ sudo service apache2 reload
This extension defines additional settings in config file
ckan.cloud_storage_enable=true|false //is connector enabled or not?
ckan.s3_aws_key=AWS_S3_KEY //customer key of your AWS instance
ckan.s3_secret_key=AWS_S3_SECRET //secret key of your AWS instance
ckan.cloud_failover=1|2 //1 - save file locally in case of fail, 2 - raise exception
This configs aren’t required and can be setted or changed under the ‘Cloud connector’ tab in admin settings section
To install CKAN CloudConnector for development, activate your CKAN virtualenv and do:
$ cd /some/dir/ckanext-cloudconnector
$ python setup.py develop
All dependencies will be installed automatically
This material is copyright © 2015 Link Web Services Pty Ltd
It is open and licensed under the GNU Affero General Public License (AGPL) v3.0 whose full text may be found at: