add consul
This commit is contained in:
parent
c73b736b57
commit
ba144d2351
4 changed files with 62 additions and 21 deletions
|
@ -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 = [ ];
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue