From 1476724437705c464cee7312bf153c2989ba4a51 Mon Sep 17 00:00:00 2001 From: Andrea Dell'Amico Date: Fri, 1 Apr 2016 14:41:30 +0200 Subject: [PATCH] library/roles/ckan/tasks/main.yml: Disable the tasks that change some python modules. Authentication against the geonetwork servers will be managed in a different way. --- ckan/defaults/main.yml | 10 ++++++++++ ckan/tasks/main.yml | 33 ++++++++++++--------------------- 2 files changed, 22 insertions(+), 21 deletions(-) diff --git a/ckan/defaults/main.yml b/ckan/defaults/main.yml index 78bf150c..8adc2e5f 100644 --- a/ckan/defaults/main.yml +++ b/ckan/defaults/main.yml @@ -1,4 +1,14 @@ --- +# To create the first sysadmin user: +# . /usr/lib/ckan/default/bin/activate +# cd /usr/lib/ckan/default/src/ckan +# You have to create your first CKAN sysadmin user from the command line. For example, to create a user called seanh and make him a # sysadmin: + +# paster sysadmin add seanh -c /etc/ckan/default/production.ini +# +# To create some test data: +# paster create-test-data -c /etc/ckan/default/production.ini + ckan_version: 2.5 ckan_deb_file: 'python-ckan_{{ ckan_version }}-{{ ansible_distribution_release }}_amd64.deb' ckan_package_url: 'http://packaging.ckan.org/{{ ckan_deb_file }}' diff --git a/ckan/tasks/main.yml b/ckan/tasks/main.yml index 8aad47d7..78401bbb 100644 --- a/ckan/tasks/main.yml +++ b/ckan/tasks/main.yml @@ -159,20 +159,20 @@ notify: Restart CKAN tags: [ 'ckan', 'ckan_pages', 'ckan_plugins' ] -- name: Overwrite the base.py ckanext-spatial plugin file to enable authentication against the Geonetwork nodes - copy: src=base.py dest=/usr/lib/ckan/default/src/ckanext-spatial/ckanext/spatial/harvesters/base.py owner={{ ckan_shell_user }} group={{ ckan_shell_user }} mode=0644 backup=yes - notify: Restart CKAN - tags: [ 'ckan', 'ckan_pages', 'ckan_plugins', 'ckan_geo_auth' ] +# - name: Overwrite the base.py ckanext-spatial plugin file to enable authentication against the Geonetwork nodes +# copy: src=base.py dest=/usr/lib/ckan/default/src/ckanext-spatial/ckanext/spatial/harvesters/base.py owner={{ ckan_shell_user }} group={{ ckan_shell_user }} mode=0644 backup=yes +# notify: Restart CKAN +# tags: [ 'ckan', 'ckan_pages', 'ckan_plugins', 'ckan_geo_auth' ] -- name: Overwrite the ckanharvester.py ckanext plugin file to remove the authentication data from URLs - copy: src=ckanharvester.py dest=/usr/lib/ckan/default/src/ckanext-harvest/ckanext/harvest/harvesters/ckanharvester.py owner={{ ckan_shell_user }} group={{ ckan_shell_user }} mode=0644 backup=yes - notify: Restart CKAN - tags: [ 'ckan', 'ckan_pages', 'ckan_plugins', 'ckan_ckanharvester' ] +# - name: Overwrite the ckanharvester.py ckanext plugin file to remove the authentication data from URLs +# copy: src=ckanharvester.py dest=/usr/lib/ckan/default/src/ckanext-harvest/ckanext/harvest/harvesters/ckanharvester.py owner={{ ckan_shell_user }} group={{ ckan_shell_user }} mode=0644 backup=yes +# notify: Restart CKAN +# tags: [ 'ckan', 'ckan_pages', 'ckan_plugins', 'ckan_ckanharvester' ] -- name: Overwrite the csw.py ckanext-spatial plugin file to remove the authentication data from URLs - copy: src=csw.py dest=/usr/lib/ckan/default/src/ckanext-spatial/ckanext/spatial/harvesters/csw.py owner={{ ckan_shell_user }} group={{ ckan_shell_user }} mode=0644 backup=yes - notify: Restart CKAN - tags: [ 'ckan', 'ckan_pages', 'ckan_plugins', 'ckan_ckanext_spatial' ] +# - name: Overwrite the csw.py ckanext-spatial plugin file to remove the authentication data from URLs +# copy: src=csw.py dest=/usr/lib/ckan/default/src/ckanext-spatial/ckanext/spatial/harvesters/csw.py owner={{ ckan_shell_user }} group={{ ckan_shell_user }} mode=0644 backup=yes +# notify: Restart CKAN +# tags: [ 'ckan', 'ckan_pages', 'ckan_plugins', 'ckan_ckanext_spatial' ] - name: Restart apache service: name=apache state=restarted enabled=yes @@ -184,12 +184,3 @@ when: ( ckan_install | changed ) tags: ckan -# To create the first sysadmin user: -# . /usr/lib/ckan/default/bin/activate -# cd /usr/lib/ckan/default/src/ckan -# You have to create your first CKAN sysadmin user from the command line. For example, to create a user called seanh and make him a # sysadmin: - -# paster sysadmin add seanh -c /etc/ckan/default/production.ini -# -# To create some test data: -# paster create-test-data -c /etc/ckan/default/production.ini