add consul

This commit is contained in:
Vivian 2021-11-03 22:55:03 +01:00
parent c73b736b57
commit ba144d2351
4 changed files with 62 additions and 21 deletions

View file

@ -11,7 +11,7 @@
../../common
];
networking.hostName = "vault";
networking.hostName = "consul";
# This value determines the NixOS release from which the default
# settings for stateful data, like file locations and database versions
@ -24,19 +24,5 @@
# Additional packages
environment.systemPackages = with pkgs; [ ];
# Vault
networking.firewall.allowedTCPPorts = [ 8200 ];
services.vault = {
enable = true;
# bin version includes the UI
package = pkgs.vault-bin;
address = "0.0.0.0:8200";
storageBackend = "file";
storagePath = "/var/lib/vault";
extraConfig = ''
api_addr = "10.42.42.6:8200"
ui = true
'';
};
networking.firewall.allowedTCPPorts = [ ];
}