Fix permissions for files created on repo server

If wheels or requirements files are created on a secondary
repo server these cannot be modified/deleted by the primary
repo server when it comes back online as this uses rsync as the
'nginx' user. This patch allows the owner of the created files
to be set explicitly to avoid this issue.

Depends-On: https://review.opendev.org/c/openstack/ansible-role-python_venv_build/+/804073
Change-Id: Ifdbac876013068855cd4405ca1bbacd262ec4d74
This commit is contained in:
Andrew Bonney 2021-08-10 13:25:40 +01:00
parent 164dec02f2
commit a332bda378

View File

@ -144,3 +144,9 @@ venv_build_global_constraints: >-
deployment_extra_facts_subset: hardware
deployment_extra_facts_filter: ansible_processor_*
# Set permissions for repo server and files built on it
repo_service_user_name: nginx
repo_service_group_name: www-data
venv_build_host_user_name: "{{ repo_service_user_name }}"
venv_build_host_group_name: "{{ repo_service_group_name }}"