Luke Granger-Brown
57725ef3ec
git-subtree-dir: third_party/nixpkgs git-subtree-split: 76612b17c0ce71689921ca12d9ffdc9c23ce40b2
36 lines
686 B
Nix
36 lines
686 B
Nix
{ lib, ... }:
|
|
|
|
{
|
|
name = "glance";
|
|
|
|
nodes = {
|
|
machine_default =
|
|
{ pkgs, ... }:
|
|
{
|
|
services.glance = {
|
|
enable = true;
|
|
};
|
|
};
|
|
|
|
machine_custom_port =
|
|
{ pkgs, ... }:
|
|
{
|
|
services.glance = {
|
|
enable = true;
|
|
settings.server.port = 5678;
|
|
};
|
|
};
|
|
};
|
|
|
|
testScript = ''
|
|
machine_default.start()
|
|
machine_default.wait_for_unit("glance.service")
|
|
machine_default.wait_for_open_port(8080)
|
|
|
|
machine_custom_port.start()
|
|
machine_custom_port.wait_for_unit("glance.service")
|
|
machine_custom_port.wait_for_open_port(5678)
|
|
'';
|
|
|
|
meta.maintainers = [ lib.maintainers.drupol ];
|
|
}
|