diff --git a/dev_playbook.yml b/dev_playbook.yml
index 07560399d..e596ad863 100644
--- a/dev_playbook.yml
+++ b/dev_playbook.yml
@@ -11,6 +11,7 @@
- secret_group_vars/stats_server_vault
- secret_group_vars/dev_secrets
- secret_group_vars/sentry_vault
+ - secret_group_vars/history_mailer_vault
pre_tasks:
- name: Attach volume to instance
include_role:
@@ -44,68 +45,69 @@
enabled: false
state: stopped
roles:
- - galaxyproject.repos
- - common
- - mounts
- - install-tpv
- - geerlingguy.pip
- - gantsign.golang
- - cyverse-ansible.singularity
- - galaxyproject.galaxy
- - role: galaxyproject.miniconda
- become: true
- become_user: galaxy
- - usegalaxy_eu.galaxy_subdomains
- - webhooks
- - nginx-upload-module
- - galaxyproject.nginx
- - galaxyproject.tusd
- - geerlingguy.nfs
- - galaxyproject.slurm
- # - galaxyproject.s3fs
- - galaxyproject.cvmfs
- - galaxyproject.gxadmin
- - pg-post-tasks
- - remote-pulsar-cron
- - galaxy-pg-cleanup
- #- galaxyproject.tiaas2 # broken in galaxy release_23.1 - missing static/style/base.css
- - geerlingguy.docker
- - dj-wasabi.telegraf
- - postfix-mail-relay
- #- login-override
- - acl-on-startup
- post_tasks:
- - name: Ensure object store paths exist
- file:
- state: directory
- path: "{{ item }}"
- owner: galaxy
- group: galaxy
- with_items:
- - /mnt/galaxy/data
- - /mnt/galaxy/data-2
- - /mnt/galaxy/data-3
- - name: Make local_tool directory group-writable by machine users
- file:
- path: /mnt/galaxy/local_tools
- owner: root
- group: devs
- mode: 0775
- state: directory
- - name: Install slurm-drmaa
- package:
- name: slurm-drmaa1
- - name: Uninstall the existing web-dav-client
- pip:
- name: "webdavclient3"
- virtualenv: "{{ galaxy_venv_dir }}"
- state: absent
- - name: Workaround content-length header bug in webdav through forcible update to newer version
- pip:
- name: "webdavclient3@git+https://github.com/ezhov-evgeny/webdav-client-python-3@0f17fa7946e66f7963db367d0d6b2e7f940ebeb8"
- virtualenv: "{{ galaxy_venv_dir }}"
- - name: Reload exportfs
- command: exportfs -ra
- become: yes
- become_user: root
+ # - galaxyproject.repos
+ # - common
+ # - mounts
+ # - install-tpv
+ # - geerlingguy.pip
+ # - gantsign.golang
+ # - cyverse-ansible.singularity
+ # - galaxyproject.galaxy
+ # - role: galaxyproject.miniconda
+ # become: true
+ # become_user: galaxy
+ # - usegalaxy_eu.galaxy_subdomains
+ # - webhooks
+ # - nginx-upload-module
+ # - galaxyproject.nginx
+ # - galaxyproject.tusd
+ # - geerlingguy.nfs
+ # - galaxyproject.slurm
+ # # - galaxyproject.s3fs
+ # - galaxyproject.cvmfs
+ # - galaxyproject.gxadmin
+ # - pg-post-tasks
+ # - remote-pulsar-cron
+ # - galaxy-pg-cleanup
+ # #- galaxyproject.tiaas2 # broken in galaxy release_23.1 - missing static/style/base.css
+ # - geerlingguy.docker
+ # - dj-wasabi.telegraf
+ # - postfix-mail-relay
+ # #- login-override
+ # - acl-on-startup
+ - usegalaxy-au.history_mailer
+ # post_tasks:
+ # - name: Ensure object store paths exist
+ # file:
+ # state: directory
+ # path: "{{ item }}"
+ # owner: galaxy
+ # group: galaxy
+ # with_items:
+ # - /mnt/galaxy/data
+ # - /mnt/galaxy/data-2
+ # - /mnt/galaxy/data-3
+ # - name: Make local_tool directory group-writable by machine users
+ # file:
+ # path: /mnt/galaxy/local_tools
+ # owner: root
+ # group: devs
+ # mode: 0775
+ # state: directory
+ # - name: Install slurm-drmaa
+ # package:
+ # name: slurm-drmaa1
+ # - name: Uninstall the existing web-dav-client
+ # pip:
+ # name: "webdavclient3"
+ # virtualenv: "{{ galaxy_venv_dir }}"
+ # state: absent
+ # - name: Workaround content-length header bug in webdav through forcible update to newer version
+ # pip:
+ # name: "webdavclient3@git+https://github.com/ezhov-evgeny/webdav-client-python-3@0f17fa7946e66f7963db367d0d6b2e7f940ebeb8"
+ # virtualenv: "{{ galaxy_venv_dir }}"
+ # - name: Reload exportfs
+ # command: exportfs -ra
+ # become: yes
+ # become_user: root
diff --git a/galaxy-backup_playbook.yml b/galaxy-backup_playbook.yml
index 5a335a58c..e4a0296d4 100644
--- a/galaxy-backup_playbook.yml
+++ b/galaxy-backup_playbook.yml
@@ -6,6 +6,7 @@
- group_vars/VAULT
- host_vars/galaxy-backup.yml
- secret_group_vars/stats_server_vault
+ - secret_group_vars/history_mailer_vault
- secret_group_vars/ubuntu_maintenance_key
pre_tasks:
- name: Attach volume to instance
@@ -18,6 +19,7 @@
- common
- geerlingguy.pip
- slg.db-backup
+ - usegalaxy-au.history_mailer
- dj-wasabi.telegraf
post_tasks:
- name: Ensure desired version of ansible is installed
diff --git a/galaxy-db_playbook.yml b/galaxy-db_playbook.yml
index 7cf3c4663..0d6305ed2 100644
--- a/galaxy-db_playbook.yml
+++ b/galaxy-db_playbook.yml
@@ -7,6 +7,7 @@
- group_vars/dbservers.yml
- host_vars/galaxy-db.usegalaxy.org.au.yml
- secret_group_vars/stats_server_vault
+ - secret_group_vars/history_mailer_vault
- secret_group_vars/ubuntu_maintenance_key
pre_tasks:
- name: Attach volume to instance
diff --git a/group_vars/all.yml b/group_vars/all.yml
index 42f04438a..09f15b829 100644
--- a/group_vars/all.yml
+++ b/group_vars/all.yml
@@ -158,6 +158,8 @@ common_packages:
- fail2ban
- software-properties-common
- pigz
+ - sqlite3
+ - iotop
#Set pip to be pip3 by default - see roles/geerlingguy.pip/defaults/main.yml
pip_package: python3-pip
diff --git a/host_vars/dev.gvl.org.au.yml b/host_vars/dev.gvl.org.au.yml
index 8e0c8e80d..732684d69 100644
--- a/host_vars/dev.gvl.org.au.yml
+++ b/host_vars/dev.gvl.org.au.yml
@@ -416,3 +416,61 @@ webhook_plugins:
- demo
- gtn
- news
+
+### History mailer
+
+# config
+history_mailer_warn_days: 365
+history_mailer_delete_days: 379
+history_mailer_email_days_threshold: 14
+history_mailer_purge_days_threshold: 6
+
+history_mailer_galaxy_url: https://dev.gvl.org.au
+history_mailer_galaxy_api_key: "{{ vault_jenkins_bot_dev_api_key }}" # TODO: add this!
+
+history_mailer_galaxy_keeplist_group: "History Retention Keeplist"
+
+# history_mailer_postal_base_url: "https://mail.usegalaxy.org.au/api/v1/"
+# history_mailer_postal_api_key: "{{ vault_history_mailer_postal_api_key }}"
+
+# history_mailer_email_template_warning: "{{ history_mailer_email_template_dir }}/email_warning.html"
+# history_mailer_email_template_deletion: "{{ history_mailer_email_template_dir }}/email_deletion.html"
+
+# history_mailer_mail_from: "Galaxy Australia Dear {{ username }}, You are receiving this email as one or more of your histories on Galaxy Australia have not been updated for {{ delete_weeks }} weeks or more and have now been marked as deleted. They and their associated data will be purged from our disk in 5 days time (from the date of this email).
+
+ Please see the {% if histories|length > 1 %}histories{% else %}history{% endif %} in question below:
+
+
+
+ {% for h in histories %}
+ History Name Date last updated Size
+ {% endfor %}
+ {{ h['name'] }} {{ h['h_update_time'] }} {{ h['h_size'] }}
If you have any queries regarding this email, please don't hesitate to reply to: help@genome.edu.au
+ Yours, +Dear {{ username }},
+You are receiving this email as one or more of your histories on Galaxy Australia have not been updated for {{ warn_weeks }} weeks or more. They will be beyond the User Data Storage time limits soon ({{ delete_weeks }} weeks). Displayed next to each history in the table below is the date that it will be deleted. If you do not run a job in that history or update it before that date, it will be automatically deleted and then purged from disk.
+ +You should download any files you wish to keep from each history before the date specified. Instructions for doing so can be found at:
+ +Galaxy Training Material - Downloading and Deleting Data
+ +Please note that if you have received a warning email in the past, new histories could have been added to the following table and they will have a different scheduled deletion date.
+ +Please see the {% if histories|length > 1 %}histories{% else %}history{% endif %} in question below:
++
History Name | Date last updated | Size | Deletion Date |
---|---|---|---|
{{ h['name'] }} | {{ h['h_update_time'] }} | {{ h['h_size'] }} | {{ h['h_del_time'] }} |
Galaxy Australia is a data analysis platform and stores data in accordance with the User Data Storage Policy
+If you have any queries regarding this email, please don't hesitate to contact us at: help@genome.edu.au
+ Yours, +