Skip to content

Commit

Permalink
adds action with logrotate configuration for addtitional proftpd logs
Browse files Browse the repository at this point in the history
  • Loading branch information
martindemko committed Sep 16, 2024
1 parent 4c34b5f commit d3f510e
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions galaxy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -234,6 +234,7 @@
minute: "0"
hour: "0"
job: "GALAXY_LOG_DIR=/tmp/gxadmin/ GALAXY_ROOT={{ galaxy_root }}/server /usr/local/bin/gxadmin galaxy cleanup 60"

- name: Setup user - group association rutine
ansible.builtin.cron:
name: "Add E-infra users to E-infra group"
Expand All @@ -242,6 +243,7 @@
hour: "*"
job: "python3 {{ playbook_dir }}/add_group_users.py {{ inventory_hostname }} {{ api_key }}"
when: "'usegalaxy' in inventory_hostname"

- name: RE Galaxy instance patch in lib/galaxy/webapps/galaxy/api/job_files.py
replace:
path: "{{ galaxy_root }}/server/lib/galaxy/webapps/galaxy/api/job_files.py"
Expand Down Expand Up @@ -283,6 +285,15 @@
endscript
}
- name: Add lines to logrotate config of ProFTPd
lineinfile:
path: /etc/logrotate.d/proftpd-core
line: '{{ item }}'
insertbefore: BOF
with_items:
- /var/log/proftpd/tls.log
- /var/log/proftpd/sql.log

- name: Add galaxy user to docker group
ansible.builtin.user:
name: "{{ galaxy_user.name }}"
Expand Down

0 comments on commit d3f510e

Please sign in to comment.