From 238cf85410f926e154855bb7dd2c3666e23c8a65 Mon Sep 17 00:00:00 2001 From: Emerson Rocha Luiz Date: Sun, 19 Apr 2020 17:08:00 -0300 Subject: [PATCH] ckan (#5), ckan-docker (#9): deprecate use of docker-compose to deploy CKAN (closes #9) --- ansible/playbooks/ckan-setup.yml | 7 +++++++ ansible/playbooks/docker-ckan-stack-start.yml | 5 +++-- ansible/playbooks/roles/ckan/tasks/main.yml | 3 +++ docker/README.md | 7 ++++++- docker/ckan-stack/docker-compose.yml | 3 +++ 5 files changed, 22 insertions(+), 3 deletions(-) diff --git a/ansible/playbooks/ckan-setup.yml b/ansible/playbooks/ckan-setup.yml index da1afb6..d44fa21 100644 --- a/ansible/playbooks/ckan-setup.yml +++ b/ansible/playbooks/ckan-setup.yml @@ -9,3 +9,10 @@ - hosts: all roles: - ckan + + post_tasks: + - name: "CKAN | Stop/disable startup of NGinx (it is installed by default when using official deb packages)" + service: + name: nginx + enabled: no + state: stopped diff --git a/ansible/playbooks/docker-ckan-stack-start.yml b/ansible/playbooks/docker-ckan-stack-start.yml index 06fe7e1..a8b1dcc 100644 --- a/ansible/playbooks/docker-ckan-stack-start.yml +++ b/ansible/playbooks/docker-ckan-stack-start.yml @@ -1,9 +1,10 @@ --- # FILE: playbooks/docker-ckan-stack-start.yml # LICENSE: Public Domain -# DESCRIPTION: +# DESCRIPTION: Install CKAN with docker-compose # -# REQUIRES: pip install docker +# DEPRECATED: WARNING! This file is deprecated and not used. It will +# stay here just as reference (fititnt, 2020-04-12 16:02 BRT) # ansible-playbook -i inventories/etica.dev playbooks/docker-ckan-stack-start.yml diff --git a/ansible/playbooks/roles/ckan/tasks/main.yml b/ansible/playbooks/roles/ckan/tasks/main.yml index 8bd9177..8241bf7 100644 --- a/ansible/playbooks/roles/ckan/tasks/main.yml +++ b/ansible/playbooks/roles/ckan/tasks/main.yml @@ -4,6 +4,9 @@ # SEE: https://docs.ckan.org/en/2.8/maintaining/installing/install-from-package.html # SEE: https://docs.ckan.org/en/2.8/maintaining/installing/install-from-source.html +# tail -f /var/log/apache2/ckan_default.error.log +# vim /etc/ckan/default/production.ini + - name: Ubuntu? fail: msg: "This role as designed to only Ubuntu 18.04. Please look for other alternatives" diff --git a/docker/README.md b/docker/README.md index cdb6e0d..fabdb9d 100644 --- a/docker/README.md +++ b/docker/README.md @@ -1,6 +1,11 @@ # docker -> @TODO: implement this part (fititnt, 2020-04-05 08:28 BRT) +See [full-stack/docker-compose.yml](full-stack/docker-compose.yml) for the HXL +main stack. + +Note: the [ckan-stack/docker-compose.yml](ckan-stack/docker-compose.yml), with +softwares related to CKAN installed inside docker containers, was a draft and +not used. ## Uninstall diff --git a/docker/ckan-stack/docker-compose.yml b/docker/ckan-stack/docker-compose.yml index 30a29a1..12ffae6 100644 --- a/docker/ckan-stack/docker-compose.yml +++ b/docker/ckan-stack/docker-compose.yml @@ -1,6 +1,9 @@ --- # FILE: docker/full-stack/docker-compose.yml # LICENSE: Public Domain +# +# DEPRECATED: WARNING! This file is deprecated and not used. It will +# stay here just as reference (fititnt, 2020-04-12 16:02 BRT) version: "3"