user: use 1500 UID, let fleets override it

Signed-off-by: Jakub Sokołowski <jakub@status.im>
This commit is contained in:
Jakub Sokołowski 2023-09-26 11:01:40 +02:00
parent 42af0f6fa0
commit dcfc06f86c
No known key found for this signature in database
GPG Key ID: FE65CD384D5BF7B4
2 changed files with 4 additions and 5 deletions

View File

@ -1,9 +1,8 @@
---
github_webhook_service_user: 'github'
github_webhook_service_user_groups: ['www-data']
github_webhook_service_user_uid: 1500
github_webhook_service_name: '{{ github_webhook_service_user }}-webhook'
# Has to be the UID of Airflow user on the host.
github_webhook_service_user_uid: 150000
github_webhook_home: '/home/{{ github_webhook_service_user }}'
github_webhook_venv_path: '{{ github_webhook_home }}/venv'

View File

@ -2,7 +2,7 @@
- name: Create webhook group
group:
name: '{{ github_webhook_service_user }}'
gid: '{{ github_webhook_service_user_uid }}'
gid: '{{ github_webhook_service_user_uid }}'
- name: Create webhook user
user:
@ -15,7 +15,7 @@
- name: Create SSH config directory
file:
path: '{{ github_webhook_home }}/.ssh'
path: '{{ github_webhook_home }}/.ssh'
owner: '{{ github_webhook_service_user }}'
group: '{{ github_webhook_service_user }}'
state: 'directory'
@ -35,6 +35,6 @@
- name: Update give webhook user permission to directory
file:
path: '{{ github_webhook_dest_path }}'
path: '{{ github_webhook_dest_path }}'
owner: '{{ github_webhook_service_user }}'
group: '{{ github_webhook_service_user }}'