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

Add support for running in socket mode #161

Merged
merged 4 commits into from
Jul 25, 2019

Conversation

RichardHeelin
Copy link
Contributor

To allow for configuring the server to be used in socket mode, normally when behind a proxy, we need to support checking for the socket file rather than a http/s connection, when checking that grafana is running.

Check for the presence of the socket when the server is in socket mode
Ensure that grafana can write to the directory the socket is in
mag: "You need to configure grafana_server.socket when grafana_server.protocol is set to 'socket'"
when:
- grafana_server.protocol is defined and grafana_server.protocol == 'socket'
- grafana_server.socket is undefined or grafana_server.socket == ''
Copy link
Member

Choose a reason for hiding this comment

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

Linter complains about lack of newline at the end of this file, could you add it?

Source: https://travis-ci.org/cloudalchemy/ansible-grafana/jobs/558913403#L556-L557

@paulfantom paulfantom merged commit a35c492 into cloudalchemy:master Jul 25, 2019
@paulfantom
Copy link
Member

Thanks! 👍

cosandr pushed a commit to cosandr/ansible-grafana that referenced this pull request Aug 12, 2020
* Added support for running the server in socket mode

Check for the presence of the socket when the server is in socket mode

* Manage the socket directory permissions

Ensure that grafana can write to the directory the socket is in

* Ensure newline at end of file

* Fixed typo
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

2 participants