d4science-ghn-cluster/group_vars/ckan_dev/all.yml: Enable the CKAN harvester on the dev instance.

library/roles/ckan/ckan: Set the /var/lib/ckan permissions.
This commit is contained in:
Andrea Dell'Amico 2016-08-05 15:33:44 +02:00
parent 159fcdbac2
commit cf2128c092
2 changed files with 7 additions and 2 deletions

View File

@ -15,7 +15,8 @@ ckan_package_url: 'http://packaging.ckan.org/{{ ckan_deb_file }}'
ckan_libdir: /usr/lib/ckan ckan_libdir: /usr/lib/ckan
ckan_confdir: /etc/ckan/default ckan_confdir: /etc/ckan/default
ckan_virtenv: '{{ ckan_libdir }}/default' ckan_virtenv: '{{ ckan_libdir }}/default'
ckan_file_storage_dir: /var/lib/ckan/dev ckan_file_harvesting_dir: /var/lib/ckan
ckan_file_storage_dir: '{{ ckan_file_harvesting_dir }}/dev'
ckan_config_file: '{{ ckan_confdir }}/production.ini' ckan_config_file: '{{ ckan_confdir }}/production.ini'
ckan_webapp_port: 8080 ckan_webapp_port: 8080
ckan_solr_port: 8983 ckan_solr_port: 8983

View File

@ -15,7 +15,11 @@
tags: [ 'ckan', 'ckan_ini' ] tags: [ 'ckan', 'ckan_ini' ]
- name: Create the base directory for the CKAN file storage - name: Create the base directory for the CKAN file storage
file: dest={{ ckan_file_storage_dir }} state=directory owner={{ apache_user }} mode=0700 file: dest={{ ckan_file_storage_dir }} state=directory owner={{ apache_user }} group={{ ckan_shell_user }} mode=2770
tags: ckan
- name: Fix the CKAN harvesting storage permissions
file: dest={{ ckan_file_harvesting_dir }} state=directory owner={{ apache_user }} group={{ ckan_shell_user }} mode=2770 recurse=yes
tags: ckan tags: ckan
- name: authorization file for the psql command, if the database is on a remote server - name: authorization file for the psql command, if the database is on a remote server