Skip to content

Commit 640b477

Browse files
committed
nix: add controller-host-entry.nix
Previously, a user not using the testing modules had to set the hosts entry himself, while with the new module we get an error if that controller host is not configured. On-behalf-of: SAP stefan.kober@sap.com
1 parent f19affe commit 640b477

1 file changed

Lines changed: 19 additions & 0 deletions

File tree

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
{ lib, config, ... }:
2+
with lib;
3+
{
4+
options.openstack = {
5+
controllerIP = mkOption {
6+
type = types.str;
7+
description = ''
8+
IP address of the controller. Will be used to make a /etc/hosts entry
9+
to make the controller available via "controller".
10+
'';
11+
};
12+
};
13+
14+
config = {
15+
networking.extraHosts = ''
16+
${config.openstack.controllerIP} controller controller.local
17+
'';
18+
};
19+
}

0 commit comments

Comments
 (0)