mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-22 15:03:28 +00:00
nixos/prometheus-exporters: fix assertions declared in exporter modules
And it turns out, the test was using a removed option all along 🙃
This commit is contained in:
parent
4d262e749f
commit
4980a7d938
@ -230,6 +230,7 @@ let
|
|||||||
in
|
in
|
||||||
mkIf conf.enable {
|
mkIf conf.enable {
|
||||||
warnings = conf.warnings or [];
|
warnings = conf.warnings or [];
|
||||||
|
assertions = conf.assertions or [];
|
||||||
users.users."${name}-exporter" = (mkIf (conf.user == "${name}-exporter" && !enableDynamicUser) {
|
users.users."${name}-exporter" = (mkIf (conf.user == "${name}-exporter" && !enableDynamicUser) {
|
||||||
description = "Prometheus ${name} exporter service user";
|
description = "Prometheus ${name} exporter service user";
|
||||||
isSystemUser = true;
|
isSystemUser = true;
|
||||||
|
@ -482,7 +482,6 @@ let
|
|||||||
json = {
|
json = {
|
||||||
exporterConfig = {
|
exporterConfig = {
|
||||||
enable = true;
|
enable = true;
|
||||||
url = "http://localhost";
|
|
||||||
configFile = pkgs.writeText "json-exporter-conf.json" (builtins.toJSON {
|
configFile = pkgs.writeText "json-exporter-conf.json" (builtins.toJSON {
|
||||||
modules = {
|
modules = {
|
||||||
default = {
|
default = {
|
||||||
|
Loading…
Reference in New Issue
Block a user