Skip to content

Commit 2efd08a

Browse files
authored
Merge pull request #482 from Normo/monitoring-whitelist-order
Ensure stable order in gitlab_rails monitoring_whitelist
2 parents aeab960 + c7cf830 commit 2efd08a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

roles/gitlab/templates/gitlab.rb.j2

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ gitlab_rails['redis_sentinels'] = [
2828
gitlab_rails['redis_sentinels_password'] = "{{ gitlab_redis_sentinel_password }}"
2929
{% endif %}
3030
{% endif %}
31-
gitlab_rails['monitoring_whitelist'] = [{{ gitlab_rails_monitoring_whitelist | map('to_json') | join(', ') }}]
31+
gitlab_rails['monitoring_whitelist'] = [{{ (gitlab_rails_monitoring_whitelist | list | unique | sort) | map('to_json') | join(', ') }}]
3232

3333
{% if gitlab_use_internal_gitaly %}
3434
{% if not __gitaly_configuration_exists %}

0 commit comments

Comments
 (0)