Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ldap_cfg prints the json in random worder #69

Open
cristifalcas opened this issue Jan 7, 2016 · 3 comments
Open

ldap_cfg prints the json in random worder #69

cristifalcas opened this issue Jan 7, 2016 · 3 comments

Comments

@cristifalcas
Copy link
Contributor

As commented also in #50, the toml gem is rendering the /etc/grafana/ldap.toml file in random order. Which means that if [[servers]] is not set to be the first node, then grafana will not start.

I don't think that the gem can take care of that, as this is the nature of json: no ordering of nodes.

The entire inline_template configuration should be moved to a proper template.

@cristifalcas
Copy link
Contributor Author

I wanted to refer to hash on the above comment

@mikeridley
Copy link

Also having this problem - ldap.toml file is output with sections in arbitrary order, causing parsing failure when starting grafana.

@AshtonDavis
Copy link

The issue here is that hashes are unordered data sets. There's no arbitrary id assigned to each field, so an order is not possible. You can tell it to sort, but I can't think of a way to sort so that [server] ends up on top. I'm going to look into this for my own purposes.

bastelfreak pushed a commit to bastelfreak/puppet-grafana that referenced this issue Oct 12, 2017
fix typo in metadata (redhat 6 twice vs 6/7)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants