From f1a5412acce1d9ef2f206e292b1ed97f3547c77b Mon Sep 17 00:00:00 2001 From: Patrick Uiterwijk Date: Wed, 24 May 2017 10:33:01 +0000 Subject: [PATCH] Create Pagure attachments folder Signed-off-by: Patrick Uiterwijk --- roles/pagure/frontend/tasks/main.yml | 7 +++++++ roles/pagure/frontend/templates/pagure.cfg | 3 +++ 2 files changed, 10 insertions(+) diff --git a/roles/pagure/frontend/tasks/main.yml b/roles/pagure/frontend/tasks/main.yml index df0f438bc9..fc993175d6 100644 --- a/roles/pagure/frontend/tasks/main.yml +++ b/roles/pagure/frontend/tasks/main.yml @@ -83,6 +83,13 @@ - gitolite - pagure +- name: create the /attachments folder + file: state=diretory + path=/srv/attachments + owner=git group=git mode=0775 + tags: + - pagure + - name: Adjust owner of /srv/git file: name=/srv/git state=directory recurse=yes owner=git group=git tags: diff --git a/roles/pagure/frontend/templates/pagure.cfg b/roles/pagure/frontend/templates/pagure.cfg index bc18c69434..601340e493 100644 --- a/roles/pagure/frontend/templates/pagure.cfg +++ b/roles/pagure/frontend/templates/pagure.cfg @@ -108,6 +108,9 @@ TICKETS_FOLDER = '/srv/git/repositories/tickets' ### Folder containing the clones of the remotes git repo REMOTE_GIT_FOLDER = '/srv/git/remotes' +### Folder containing out-of-git attachments cache +ATTACHMENTS_FOLDER = '/srv/attachments' + ### Configuration file for gitolite GITOLITE_CONFIG = '/srv/git/.gitolite/conf/gitolite.conf'