nixos/grafana: create directory for notifiers provisioning

This commit is contained in:
Milan Pässler 2021-03-03 20:04:32 +01:00
parent 535f4892fa
commit 507b66a5e5
No known key found for this signature in database
GPG Key ID: A6DC6A7CB0B97859

View File

@ -73,7 +73,7 @@ let
notifierFile = pkgs.writeText "notifier.yaml" (builtins.toJSON notifierConfiguration); notifierFile = pkgs.writeText "notifier.yaml" (builtins.toJSON notifierConfiguration);
provisionConfDir = pkgs.runCommand "grafana-provisioning" { } '' provisionConfDir = pkgs.runCommand "grafana-provisioning" { } ''
mkdir -p $out/{datasources,dashboards} mkdir -p $out/{datasources,dashboards,notifiers}
ln -sf ${datasourceFile} $out/datasources/datasource.yaml ln -sf ${datasourceFile} $out/datasources/datasource.yaml
ln -sf ${dashboardFile} $out/dashboards/dashboard.yaml ln -sf ${dashboardFile} $out/dashboards/dashboard.yaml
ln -sf ${notifierFile} $out/notifiers/notifier.yaml ln -sf ${notifierFile} $out/notifiers/notifier.yaml