Adjust the group ownership and mode of the pagure.cf in /etc/pagure

This is required to allow the milter to load the configuration file
and thus be able to access the DB
This commit is contained in:
Pierre-Yves Chibon 2015-05-19 17:06:09 +02:00
parent 6c124824fc
commit 751afb19e3

View file

@ -188,10 +188,10 @@
- name: Install all the configuration files of pagure
template: src={{ item.file }}
dest={{ item.location }}/{{ item.file }}
owner={{ item.user }} group={{ item.user }} mode=0600
owner={{ item.user }} group={{ item.group }} mode={{ item.mode }}
with_items:
- { file: pagure.cfg, location: /etc/pagure, user: git }
- { file: pagure.conf, location: /etc/httpd/conf.d, user: apache }
- { file: pagure.cfg, location: /etc/pagure, user: git, group: postfix, mode=640 }
- { file: pagure.conf, location: /etc/httpd/conf.d, user: apache, group: apache, mode=600 }
tags:
- config
- web