Merge pull request #51661 from eonpatapon/testing-hosts

test: set machines fqdn in /etc/hosts
This commit is contained in:
Silvan Mosberger 2019-01-12 20:41:13 +01:00 committed by GitHub
commit 497e6f1705
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -83,6 +83,8 @@ rec {
(m': let config = (getAttr m' nodes).config; in (m': let config = (getAttr m' nodes).config; in
optionalString (config.networking.primaryIPAddress != "") optionalString (config.networking.primaryIPAddress != "")
("${config.networking.primaryIPAddress} " + ("${config.networking.primaryIPAddress} " +
optionalString (config.networking.domain != null)
"${config.networking.hostName}.${config.networking.domain} " +
"${config.networking.hostName}\n")); "${config.networking.hostName}\n"));
virtualisation.qemu.options = virtualisation.qemu.options =