Skip to content

Commit

Permalink
Allow to add more groups to github_webhook_service_user
Browse files Browse the repository at this point in the history
Signed-off-by: Alexis Pentori <alexis@status.im>
  • Loading branch information
apentori committed Jun 2, 2023
1 parent 2a5482f commit 81e93a5
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 1 deletion.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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`.
2 changes: 2 additions & 0 deletions defaults/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,3 +28,5 @@ github_webhook_dependencies:
#github_webhook_repo_url: ~
#github_webhook_repo_branch: ~

github_wehbook_user_additional_group:
- 'www-data'
2 changes: 1 addition & 1 deletion tasks/user.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down

0 comments on commit 81e93a5

Please sign in to comment.