Set grafana.ini owner to root with packages
This is what the package has by default. Since grafana can still read the file, this should not be an issue. I noticed that after an apt upgrade Puppet changed the owner again. This prevents needsless restarts.
Useful when your configuration contains passwords you don't want to expose in your puppet logs and reports.
Merge pull request #280 from alexjfisher/sensitive_cfg
Accept `Sensitive` `cfg`
Remove outdated Integer note from README
This hasn't been the case since Puppet 3.
Merge pull request #281 from alexjfisher/integer
Remove outdated `Integer note` from README
Similar to 04fcd91 this commit adds support for `Sensitive` to the `ldap_cfg` parameter. I've also fixed the LDAP examples `email` attibute to be `mail` which is correct for Active Directory (where `username` is `sAMAccountName`)
Merge pull request #282 from alexjfisher/sensitive_ldap_cfg
Accept `Sensitive` `ldap_cfg`
Fix grafana_user and switch to using flush
Previously `save_user` was being called once per changed property and calls were also being made to update user properties, password and the admin flag regardless of whether these properties needed updating. Using `flush` is more efficient. * `full_name` is fixed (it was previously a parameter instead of a property). * When a user is created, `is_admin` is correctly set in a single Puppet run. * Properties can be managed individually. * Instead of making `password` mandatory, (when creating a user), if `password` isn't specified, a random one is used. Fixes #121
Merge pull request #283 from alexjfisher/issue_121
Fix `grafana_user` and switch to using `flush`
Fix performance of grafana_user
Previously, the number of API calls to look up the details of a single user was equal to `1 + the number of existing users`. This made managing multiple users exponentially slow. The way the types in this module are written, (with the Grafana API user credentials being parameters of each resource), we can't implement `prefetch` to fetch all users just once; but we can change the implementation to directly lookup the user we're trying to manage. This is _much_ faster!
Merge pull request #285 from alexjfisher/user_performance
Fix performance of `grafana_user`
Remove address param from grafana_organization
Organization Info (ie. its address) was removed from the Grafana UI in grafana/grafana@21a7f57 According to https://grafana.com/docs/grafana/v8.4/http_api/org/#update-organization the API was not fully implemented, so I'm unconvinced this ever worked. The property `id` is also removed as it's internal to grafana and not something you could ever update. Updating a `grafana_organization` never worked as `save_organization` only implemented POSTs, (and would actually explode if you tried to update `address`)
Merge pull request #284 from alexjfisher/orgs_refactor
Remove `address` param from `grafana_organization`
Merge pull request #286 from alexjfisher/user_orgs
Add `organizations` property to `grafana_user`
This disables testing on Arch Linux. The acceptance tests never worked. The goal is to merge this PR, rebase the modulesync PR and merge it, afterwards create a new PR which readds Arch Linux and fixes the tests.
Merge pull request #292 from bastelfreak/arch2
Disable Arch Linux testing
Merge pull request #277 from voxpupuli/modulesync
modulesync 5.3.0
Add support for custom repository URL
Merge pull request #291 from SimonHoenscheid/shoenscheid_custom_repo
Add support for custom repository URL
Switch documentation to puppet strings
Merge pull request #294 from SimonHoenscheid/shoenscheid_puppet_strings
Switch documentation to puppet strings