mirror of
https://github.com/sstent/nixos-cluster.git
synced 2026-02-04 11:32:18 +00:00
finish nomad, add consul, sops
This commit is contained in:
@@ -20,18 +20,22 @@
|
||||
# myPkg = oldpkgs.consul;
|
||||
in {
|
||||
# virtualisation.docker.enable = true;
|
||||
sops.secrets.consul_encrypt = {};
|
||||
sops.secrets.consul_encrypt_json = {
|
||||
sopsFile = "${secretstore}/consul_encrypt.json";
|
||||
device_json.format = "binary";
|
||||
};
|
||||
|
||||
|
||||
services.consul = {
|
||||
# package = myPkg;
|
||||
enable = true;
|
||||
webUi = true;
|
||||
interface.bind = "end0";
|
||||
|
||||
extraConfigFiles = [ sops.secrets.consul_encrypt_json.path ]
|
||||
extraConfig = {
|
||||
bootstrap = false;
|
||||
server = true;
|
||||
bootstrap_expect = 3;
|
||||
encrypt = config.sops.secrets.consul_encrypt;
|
||||
performance = {
|
||||
raft_multiplier = 5;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user