Skip to content

Commit

Permalink
user: use 1500 UID, let fleets override it
Browse files Browse the repository at this point in the history
Signed-off-by: Jakub Sokołowski <jakub@status.im>
  • Loading branch information
jakubgs committed Sep 27, 2023
1 parent 42af0f6 commit dcfc06f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
3 changes: 1 addition & 2 deletions defaults/main.yml
Original file line number Diff line number Diff line change
@@ -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'
Expand Down
6 changes: 3 additions & 3 deletions tasks/user.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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'
Expand All @@ -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 }}'

0 comments on commit dcfc06f

Please sign in to comment.