Compare commits
6 commits
7e5fcb446c
...
9893c5f059
Author | SHA1 | Date | |
---|---|---|---|
9893c5f059 | |||
b8413e1e51 | |||
2b556f7129 | |||
7e2add6d36 | |||
e03f6428bf | |||
32dcdf6601 |
1 changed files with 8 additions and 2 deletions
|
@ -26,10 +26,16 @@ testers.runNixOSTest {
|
||||||
in {
|
in {
|
||||||
imports = [
|
imports = [
|
||||||
nixosModules.ascensions
|
nixosModules.ascensions
|
||||||
|
nixosModules.port-magic
|
||||||
nixosModules.systemd-extras
|
nixosModules.systemd-extras
|
||||||
nixosModules.consul-distributed-services
|
nixosModules.consul-distributed-services
|
||||||
cluster.config.services.consul.nixos.ready
|
cluster.config.services.consul.nixos.ready
|
||||||
];
|
];
|
||||||
|
links.consulAgent = {
|
||||||
|
protocol = "http";
|
||||||
|
hostname = "consul";
|
||||||
|
port = 8500;
|
||||||
|
};
|
||||||
systemd.services = {
|
systemd.services = {
|
||||||
create-file = {
|
create-file = {
|
||||||
serviceConfig.Type = "oneshot";
|
serviceConfig.Type = "oneshot";
|
||||||
|
@ -48,10 +54,10 @@ testers.runNixOSTest {
|
||||||
consul kv put ${kvPath.${hostName}} ${hostName}
|
consul kv put ${kvPath.${hostName}} ${hostName}
|
||||||
fi
|
fi
|
||||||
'';
|
'';
|
||||||
environment.CONSUL_HTTP_ADDR = "consul:8500";
|
environment.CONSUL_HTTP_ADDR = config.links.consulAgent.tuple;
|
||||||
};
|
};
|
||||||
ascend-create-kv = {
|
ascend-create-kv = {
|
||||||
environment.CONSUL_HTTP_ADDR = "consul:8500";
|
environment.CONSUL_HTTP_ADDR = config.links.consulAgent.tuple;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
system.ascensions = {
|
system.ascensions = {
|
||||||
|
|
Loading…
Add table
Reference in a new issue