Skip to content

Commit

Permalink
Removed CKAN upload ansible deployment
Browse files Browse the repository at this point in the history
  • Loading branch information
inghamn committed Aug 16, 2019
1 parent 8f7f1bd commit f154e01
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 18 deletions.
5 changes: 0 additions & 5 deletions ansible/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -103,11 +103,6 @@
dest: /etc/cron.daily/backup.d/onboard.cnf
mode: 0400

- name: "Install CKAN export configuration"
template:
src: "ckan_config.inc"
dest: "{{ onboard_site_home }}/ckan_config.inc"

- name: "Update directory ownership"
command: "chown -R www-data:staff {{ item }}"
args:
Expand Down
15 changes: 2 additions & 13 deletions ansible/templates/cron.sh
Original file line number Diff line number Diff line change
@@ -1,25 +1,14 @@
#!/bin/bash
# @copyright Copyright 2011-2018 City of Bloomington, Indiana
# @license http://www.gnu.org/copyleft/gpl.html GNU/GPL, see LICENSE.txt
# @copyright Copyright 2011-2019 City of Bloomington, Indiana
# @license http://www.gnu.org/copyleft/gpl.html GNU/GPL, see LICENSE
APPLICATION_NAME="onboard"
PHP="/usr/bin/php"
MYSQLDUMP="/usr/bin/mysqldump"
MYSQL_DBNAME="{{ onboard_db.name }}"
MYSQL_CREDENTIALS="/etc/cron.daily/backup.d/${APPLICATION_NAME}.cnf"
BACKUP_DIR="{{ onboard_backup_path }}"
APPLICATION_HOME="{{ onboard_install_path }}"
SITE_HOME="{{ onboard_site_home }}"

#----------------------------------------------------------
# Data Warehouse export
#----------------------------------------------------------
export SITE_HOME=$SITE_HOME
{% if onboard_proxy %}
# Set this if your OnBoard install lives behind a reverse proxy
export HTTP_X_FORWARDED_HOST={{ onboard_proxy }}
{% endif %}
$PHP $APPLICATION_HOME/scripts/Ckan/updateCkan.php

#----------------------------------------------------------
# Backup
# Creates a tarball containing a full snapshot of the data in the site
Expand Down

0 comments on commit f154e01

Please sign in to comment.