-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
402 changed files
with
19,860 additions
and
10,665 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
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
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
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
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
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 |
---|---|---|
@@ -1,29 +1,6 @@ | ||
--- | ||
|
||
- name: Install Apache | ||
apt: pkg={{ item }} state=latest | ||
with_items: | ||
- apache2 | ||
- libapache2-mod-wsgi | ||
- libffi-dev | ||
|
||
- name: Disable Apache sites | ||
file: path=/etc/apache2/sites-enabled/{{ item }} state=absent | ||
with_items: | ||
- default | ||
- default-ssl | ||
- 000-default | ||
- ckan_default | ||
|
||
- name: Copy Apache configuration | ||
template: src={{ item.src }} dest={{ item.dest }} mode={{ item.mode }} owner={{ item.owner }} group={{ item.owner }} | ||
with_items: | ||
- { src: ports.conf.j2, dest: /etc/apache2/ports.conf, mode: "0644", owner: root} | ||
- { src: apache2.j2, dest: /etc/apache2/sites-available/ckan_catalog.conf, mode: "0644", owner: root} | ||
- { src: logrotate.apache2.conf, dest: /etc/logrotate.d/apache2, mode: "0644", owner: root} | ||
|
||
- name: Enable Apache configuration | ||
file: src=/etc/apache2/sites-available/ckan_catalog.conf dest=/etc/apache2/sites-enabled/ckan_catalog.conf state=link owner=root group=root | ||
|
||
- name: Restart Apache | ||
service: name=apache2 state=restarted | ||
- name: Ensure apache in removed | ||
apt: | ||
pkg: apache2 | ||
state: absent |
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
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
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
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,12 @@ | ||
# -*- coding: utf-8 -*- | ||
|
||
import os | ||
from ckan.config.middleware import make_app | ||
from ckan.cli import CKANConfigLoader | ||
from logging.config import fileConfig as loggingFileConfig | ||
config_filepath = os.path.join( | ||
os.path.dirname(os.path.abspath(__file__)), u'ckan.ini') | ||
abspath = os.path.join(os.path.dirname(os.path.abspath(__file__))) | ||
loggingFileConfig(config_filepath) | ||
config = CKANConfigLoader(config_filepath).get_config() | ||
application = make_app(config) |
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 |
---|---|---|
@@ -1,58 +1,58 @@ | ||
--- | ||
|
||
- name: Initialize CKAN database | ||
command: ckan db init | ||
command: ./bin/ckan "--config={{ ckan_ini }}" db init chdir={{ virtualenv }} | ||
ignore_errors: True | ||
|
||
- name: Upgrade CKAN database | ||
command: ckan db upgrade | ||
command: ./bin/ckan "--config={{ ckan_ini }}" db upgrade chdir={{ virtualenv }} | ||
ignore_errors: True | ||
|
||
- name: Upgrade CKAN filestore | ||
command: ./bin/paster --plugin=ckan db migrate-filestore "--config={{ ckan_ini }}" chdir={{ virtualenv }} | ||
command: ./bin/ckan "--config={{ ckan_ini }}" db migrate-filestore chdir={{ virtualenv }} | ||
ignore_errors: True | ||
|
||
- name: Create initial CKAN users | ||
command: ./bin/paster --plugin=ckan user add "{{ item.value.username }}" "password={{ item.value.password }}" "email={{ item.value.email }}" "--config={{ ckan_ini }}" chdir={{ virtualenv }} | ||
command: ./bin/ckan "--config={{ ckan_ini }}" user add "{{ item.value.username }}" "password={{ item.value.password }}" "email={{ item.value.email }}" chdir={{ virtualenv }} | ||
ignore_errors: True | ||
with_dict: "{{ ckan_users }}" | ||
|
||
- name: Set CKAN sysadmins | ||
command: ./bin/paster --plugin=ckan sysadmin add {{ item }} --config={{ ckan_ini }} chdir={{ virtualenv }} | ||
command: ./bin/ckan "--config={{ ckan_ini }}" sysadmin add {{ item }} chdir={{ virtualenv }} | ||
ignore_errors: True | ||
with_items: "{{ ckan_admins }}" | ||
|
||
- name: Initialize Harvest database | ||
command: ./bin/paster --plugin=ckanext-harvest harvester initdb "--config={{ ckan_ini }}" chdir={{ virtualenv }} | ||
when: "'ckanext-harvest' in ckan_extensions" | ||
#- name: Initialize Harvest database | ||
# command: ./bin/paster --plugin=ckanext-harvest harvester initdb "--config={{ ckan_ini }}" chdir={{ virtualenv }} | ||
# when: "'ckanext-harvest' in ckan_extensions" | ||
|
||
- name: Initialize archiver database | ||
command: ./bin/paster --plugin=ckanext-archiver archiver init "--config={{ ckan_ini }}" chdir={{ virtualenv }} | ||
#- name: Initialize archiver database | ||
# command: ./bin/paster --plugin=ckanext-archiver archiver init "--config={{ ckan_ini }}" chdir={{ virtualenv }} | ||
|
||
# This can be removed after run in all environments | ||
- name: Migrate archiver database | ||
command: ./bin/paster --plugin=ckanext-archiver archiver migrate "--config={{ ckan_ini }}" chdir={{ virtualenv }} | ||
#- name: Migrate archiver database | ||
# command: ./bin/paster --plugin=ckanext-archiver archiver migrate "--config={{ ckan_ini }}" chdir={{ virtualenv }} | ||
|
||
- name: Initialize report database | ||
command: ./bin/paster --plugin=ckanext-report report initdb "--config={{ ckan_ini }}" chdir={{ virtualenv }} | ||
#- name: Initialize report database | ||
# command: ./bin/paster --plugin=ckanext-report report initdb "--config={{ ckan_ini }}" chdir={{ virtualenv }} | ||
|
||
- name: Initialize QA database | ||
command: ./bin/paster --plugin=ckanext-qa qa init "--config={{ ckan_ini }}" chdir={{ virtualenv }} | ||
#- name: Initialize QA database | ||
# command: ./bin/paster --plugin=ckanext-qa qa init "--config={{ ckan_ini }}" chdir={{ virtualenv }} | ||
|
||
- name: Initialize Rating database | ||
command: ./bin/paster --plugin=ckanext-rating rating init "--config={{ ckan_ini }}" chdir={{ virtualenv }} | ||
#- name: Initialize Rating database | ||
# command: ./bin/paster --plugin=ckanext-rating rating init "--config={{ ckan_ini }}" chdir={{ virtualenv }} | ||
|
||
- name: Initialize Reminder database | ||
command: ./bin/paster --plugin=ckanext-reminder reminder init "--config={{ ckan_ini }}" chdir={{ virtualenv }} | ||
#- name: Initialize Reminder database | ||
# command: ./bin/paster --plugin=ckanext-reminder reminder init "--config={{ ckan_ini }}" chdir={{ virtualenv }} | ||
|
||
- name: Initialize ckanext-googleanalytics database | ||
command: ./bin/paster --plugin=ckanext-googleanalytics initdb "--config={{ ckan_ini }}" chdir={{ virtualenv }} | ||
when: "'ckanext-googleanalytics' in ckan_extensions" | ||
#- name: Initialize ckanext-googleanalytics database | ||
# command: ./bin/paster --plugin=ckanext-googleanalytics initdb "--config={{ ckan_ini }}" chdir={{ virtualenv }} | ||
# when: "'ckanext-googleanalytics' in ckan_extensions" | ||
|
||
- name: Initialize ckanext-ga-report database | ||
command: ./bin/paster --plugin=ckanext-ga-report initdb "--config={{ ckan_ini }}" chdir={{ virtualenv }} | ||
when: "'ckanext-ga-report' in ckan_extensions" | ||
#- name: Initialize ckanext-ga-report database | ||
# command: ./bin/paster --plugin=ckanext-ga-report initdb "--config={{ ckan_ini }}" chdir={{ virtualenv }} | ||
# when: "'ckanext-ga-report' in ckan_extensions" | ||
|
||
- name: Initialize ckanext-cloudstorage database | ||
command: ./bin/paster --plugin=ckanext-cloudstorage cloudstorage initdb "--config={{ ckan_ini }}" chdir={{ virtualenv }} | ||
when: AWS.enabled | ||
#- name: Initialize ckanext-cloudstorage database | ||
# command: ./bin/paster --plugin=ckanext-cloudstorage cloudstorage initdb "--config={{ ckan_ini }}" chdir={{ virtualenv }} | ||
# when: AWS.enabled |
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
15 changes: 0 additions & 15 deletions
15
ansible/roles/ckan-install-patches/files/patches/change_meta_strings_to_booleans.patch
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
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
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,17 @@ | ||
[uwsgi] | ||
|
||
http = 127.0.0.1:8080 | ||
uid = www-data | ||
guid = www-data | ||
wsgi-file = /etc/ckan/default/wsgi.py | ||
virtualenv = /usr/lib/ckan/default | ||
chdir = /etc/ckan/default | ||
mount = /data=wsgi:application | ||
manage-script-name = true | ||
master = true | ||
pidfile = /tmp/%n.pid | ||
harakiri = 50 | ||
max-requests = 5000 | ||
vacuum = true | ||
callable = application | ||
buffer-size = 32768 |
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 |
---|---|---|
@@ -1 +1 @@ | ||
setuptools==36.1 | ||
setuptools==44.1.0 |
Oops, something went wrong.