Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

alloy: Support configurable retry_count and delay_duration variables #243

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions roles/alloy/defaults/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,3 +46,6 @@ config: |

# Configurable user groups that the Grafana Alloy can be put in so that it can access logs.
alloy_user_groups: []

retry_count: 3
delay_duration: 5
4 changes: 2 additions & 2 deletions roles/alloy/tasks/ga-started.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@
register: _result
failed_when: false
until: _result.status == 200
retries: 3
delay: 5
retries: "{{ retry_count }}"
delay: "{{ delay_duration }}"
changed_when: false
when: not ansible_check_mode

Expand Down