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

Allow empty value in config_flags_extra #128

Merged
merged 2 commits into from
Jun 27, 2018
Merged

Allow empty value in config_flags_extra #128

merged 2 commits into from
Jun 27, 2018

Conversation

Turgon37
Copy link
Contributor

I wanted to enable administrative api endpoint using --web.enable-admin-api in prometheus service options but the operation failed because of the ansible mandatory "value" field.
the flag --web.enable-admin-api does not take any value.

According to https://prometheus.io/docs/operating/security/, I've made a fix to allow this

@paulfantom
Copy link
Member

@Turgon37 Could you also add a test case for this? Here is an alternative test playbook where you can add options to prometheus_config_flags_extra variable: https://github.com/cloudalchemy/ansible-prometheus/blob/master/molecule/alternative/playbook.yml#L14

@Turgon37
Copy link
Contributor Author

It's done :)

Copy link
Member

@paulfantom paulfantom left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm a little bit supprised that this YAML syntax works (YAML is strange sometimes), but it looks ok. @SuperQ wdyt?

@paulfantom paulfantom requested a review from SuperQ June 27, 2018 07:56
@SuperQ
Copy link
Collaborator

SuperQ commented Jun 27, 2018

Ahh, yea, handling bool flags like this seems ok.

Copy link
Collaborator

@SuperQ SuperQ left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@paulfantom paulfantom merged commit 0a9d99e into cloudalchemy:master Jun 27, 2018
slomo pushed a commit to slomo/ansible-prometheus that referenced this pull request Dec 12, 2018
[patch] Allow empty value in config_flags_extra
@lock
Copy link

lock bot commented Mar 24, 2019

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@lock lock bot locked and limited conversation to collaborators Mar 24, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants