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