Skip to content
This repository was archived by the owner on Mar 6, 2023. It is now read-only.

Commit 0a9d99e

Browse files
Turgon37paulfantom
authored andcommitted
Allow empty value in config_flags_extra (#128)
[patch] Allow empty value in config_flags_extra
1 parent 8cc56e3 commit 0a9d99e

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

molecule/alternative/playbook.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
prometheus_storage_retention: "60d"
1414
prometheus_config_flags_extra:
1515
alertmanager.timeout: 10s
16+
web.enable-admin-api:
1617
prometheus_alertmanager_config:
1718
- scheme: https
1819
path_prefix: /alertmanager

templates/prometheus.service.j2

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ ExecStart=/usr/local/bin/prometheus \
1717
--web.console.templates={{ prometheus_config_dir }}/consoles \
1818
--web.listen-address={{ prometheus_web_listen_address }} \
1919
--web.external-url={{ prometheus_web_external_url }}{% for flag, flag_value in prometheus_config_flags_extra.items() %}\
20-
--{{ flag }}={{ flag_value }} {% endfor %}
20+
--{{ flag }}{% if flag_value %}={{ flag_value }}{% endif %} {% endfor %}
2121

2222
PrivateTmp=true
2323
PrivateDevices=true

0 commit comments

Comments
 (0)