Allow to add more groups to github_webhook_service_user

Signed-off-by: Alexis Pentori <alexis@status.im>
This commit is contained in:
Alexis Pentori 2023-06-02 11:35:19 +02:00
parent 2a5482f230
commit 81e93a58df
No known key found for this signature in database
GPG Key ID: 65250D2801E47A10
3 changed files with 5 additions and 1 deletions

View File

@ -21,3 +21,5 @@ github_webhook_repo_branch:
The `github_webhook_secret` is generated when configuring the webhook in the repository.
The public key associated to `github_webhook_ssh_key` has to be added as a Deploy key in the repository setting.
The user `github_webhook_service_user` can be added to additional group by overriding the list `github_webhook_user_additional_group`.

View File

@ -28,3 +28,5 @@ github_webhook_dependencies:
#github_webhook_repo_url: ~
#github_webhook_repo_branch: ~
github_wehbook_user_additional_group:
- 'www-data'

View File

@ -8,7 +8,7 @@
user:
name: '{{ github_webhook_service_user }}'
group: '{{ github_webhook_service_user }}'
groups: ['www-data']
groups: '{{ github_webhook_user_addtional_group }}'
uid: '{{ github_webhook_service_user_uid }}'
create_home: true
comment: 'Airflow Webhook User'