Skip to content

Commit

Permalink
Update roles/pushgateway/defaults/main.yml
Browse files Browse the repository at this point in the history
Co-authored-by: Ben Kochie <[email protected]>
Signed-off-by: Waldek Maleska <[email protected]>
  • Loading branch information
2 people authored and weakcamel committed Jul 31, 2024
1 parent 63a5d95 commit 7e453fe
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion roles/pushgateway/defaults/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ pushgateway_web_external_url: ""

# Optional extra flags to be passed to pushgateway binary, e.g.
# ['--log.level=debug', '--log.format=json', '--web.enable-admin-api']
pushgateway_cli_extra_flags: []
pushgateway_config_flags_extra: []

pushgateway_tls_server_config: {}

Expand Down
2 changes: 1 addition & 1 deletion roles/pushgateway/meta/argument_specs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ argument_specs:
External address on which pushgateway is available.
Useful when behind reverse proxy, e.g.: https://example.org/pushgateway
default: ""
pushgateway_cli_extra_flags:
pushgateway_config_flags_extra:
description: >
Optional extra flags to be passed to pushgateway binary, e.g.
['--log.level=debug', '--log.format=json', '--web.enable-admin-api']
Expand Down
10 changes: 5 additions & 5 deletions roles/pushgateway/templates/pushgateway.service.j2
Original file line number Diff line number Diff line change
Expand Up @@ -29,11 +29,11 @@ ExecStart={{ pushgateway_binary_install_dir }}/pushgateway \
{% if pushgateway_web_external_url %}
'--web.external-url={{ pushgateway_web_external_url }}' \
{% endif %}
{% if pushgateway_cli_extra_flags and
pushgateway_cli_extra_flags is iterable and
pushgateway_cli_extra_flags is not mapping and
pushgateway_cli_extra_flags is not string %}
{% for extra_flag in pushgateway_cli_extra_flags %}
{% if pushgateway_config_flags_extra and
pushgateway_config_flags_extra is iterable and
pushgateway_config_flags_extra is not mapping and
pushgateway_config_flags_extra is not string %}
{% for extra_flag in pushgateway_config_flags_extra %}
'{{ extra_flag }}' \
{% endfor %}
{% endif %}
Expand Down

0 comments on commit 7e453fe

Please sign in to comment.