diff --git a/ckan/ckan/defaults/main.yml b/ckan/ckan/defaults/main.yml index 8fb62c75..7390acdd 100644 --- a/ckan/ckan/defaults/main.yml +++ b/ckan/ckan/defaults/main.yml @@ -82,6 +82,8 @@ ckan_google_analytics_fixed_file: 'http://svn.research-infrastructures.eu/public ckan_ga_reports: False ckan_ga_reports_name: ga-report ckan_ga_reports_url: 'git+https://github.com/datagovuk/ckanext-ga-report.git#egg=ckanext-ga-report' +ckan_profiler: False +ckan_profiler_url: 'git+https://github.com/seanh/ckanext-profile.git#egg=ckanext-profile' # Needed to install some CKAN plugins diff --git a/ckan/ckan/tasks/ckan-plugins.yml b/ckan/ckan/tasks/ckan-plugins.yml index 5d256d79..27b46000 100644 --- a/ckan/ckan/tasks/ckan-plugins.yml +++ b/ckan/ckan/tasks/ckan-plugins.yml @@ -186,6 +186,12 @@ notify: Restart CKAN tags: [ 'ckan', 'ckan_google_analytics', 'ckan_ga_reports', 'ckan_plugins' ] + - name: Install the CKAN profiler plugin + pip: name='{{ ckan_profiler_url }}' virtualenv={{ ckan_virtenv }} state={{ ckan_plugins_state }} + when: ckan_profiler + notify: Restart CKAN + tags: [ 'ckan', 'ckan_profiler', 'ckan_plugins' ] + become: True become_user: '{{ ckan_shell_user }}' tags: [ 'ckan', 'ckan_plugins' ]