and now?
This commit is contained in:
parent
c88320ba9a
commit
1525aacc48
|
@ -6,7 +6,7 @@ let
|
||||||
text = cfg.prometheusCa;
|
text = cfg.prometheusCa;
|
||||||
};
|
};
|
||||||
yaml = pkgs.formats.yaml { };
|
yaml = pkgs.formats.yaml { };
|
||||||
nodeWebConfig = yaml.generate "prometheus-node-exporter-webconfig.yml" lib.mkMerge [
|
nodeWebConfig = yaml.generate "prometheus-node-exporter-webconfig.yml" (lib.mkMerge [
|
||||||
({
|
({
|
||||||
tls_server_config = {
|
tls_server_config = {
|
||||||
client_ca_file = prometheusCaFile;
|
client_ca_file = prometheusCaFile;
|
||||||
|
@ -18,7 +18,7 @@ let
|
||||||
(lib.mkIf (cfg.prometheusNodeExporterAllowScrapperSans != null) {
|
(lib.mkIf (cfg.prometheusNodeExporterAllowScrapperSans != null) {
|
||||||
tls_server_config.client_allowed_sans = cfg.prometheusNodeExporterAllowScrapperSans;
|
tls_server_config.client_allowed_sans = cfg.prometheusNodeExporterAllowScrapperSans;
|
||||||
})
|
})
|
||||||
];
|
]);
|
||||||
in {
|
in {
|
||||||
options.services.ppNodeExporter = {
|
options.services.ppNodeExporter = {
|
||||||
prometheusCa = lib.mkOption {
|
prometheusCa = lib.mkOption {
|
||||||
|
|
Loading…
Reference in a new issue