close firewall on prometheus
This commit is contained in:
parent
054b18e763
commit
5c5202f4d7
1 changed files with 3 additions and 3 deletions
|
|
@ -161,8 +161,8 @@ in
|
|||
(x: {
|
||||
services.prometheus.exporters.${x} = {
|
||||
enable = (builtins.elem hostName cfg.exporters.${x}.hosts);
|
||||
openFirewall = (hostName != cfg.master.hostname);
|
||||
firewallFilter = if (hostName != cfg.master.hostname) then "-p tcp -s ${cfg.master.ip} -m tcp --dport ${toString config.services.prometheus.exporters.${x}.port}" else null;
|
||||
#openFirewall = (hostName != cfg.master.hostname);
|
||||
#firewallFilter = if (hostName != cfg.master.hostname) then "-p tcp -s ${cfg.master.ip} -m tcp --dport ${toString config.services.prometheus.exporters.${x}.port}" else null;
|
||||
};
|
||||
})
|
||||
(builtins.attrNames cfg.exporters))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue