voxpupuli / puppet-grafana

Puppet module to manage Grafana
Apache License 2.0
15 stars 106 forks source link

Create subpaths for provisioning_datasources #362

Closed sebastianrakel closed 3 months ago

sebastianrakel commented 3 months ago

The tests are not failing @bastelfreak and me are thinks that a test task already created the folders.

but if you ran an basic example on a real machine you will get:

Could not set 'file' on ensure: No such file or directory - A directory component in /etc/grafana/provisioning/datasources/puppetprovisioned.yaml20240607-2077526-prxolk.lock does not exist or is a dangling symbolic link (file: …/grafana/manifests/config.pp, line: 164)
Wrapped exception:
No such file or directory - A directory component in /etc/grafana/provisioning/datasources/puppetprovisioned.yaml20240607-2077526-prxolk.lock does not exist or is a dangling symbolic link

after a look into that system the /etc/grafana/provisioning/datasources/ doesn't exists.

this PR should fix that and create the folder