diff options
author | Antoine Eiche <lewo@abesis.fr> | 2019-01-28 21:06:24 +0100 |
---|---|---|
committer | Antoine Eiche <lewo@abesis.fr> | 2019-02-11 20:58:45 +0100 |
commit | 78acac050ff27eb45332095935ab112de31d065d (patch) | |
tree | 523f41ff0716b9f0a1220453948191d9e459724f /nixos/modules/virtualisation/openstack-config.nix | |
parent | d190b204f001d1446807f56eed99a73f8b89e244 (diff) | |
download | nixpkgs-78acac050ff27eb45332095935ab112de31d065d.tar nixpkgs-78acac050ff27eb45332095935ab112de31d065d.tar.gz nixpkgs-78acac050ff27eb45332095935ab112de31d065d.tar.bz2 nixpkgs-78acac050ff27eb45332095935ab112de31d065d.tar.lz nixpkgs-78acac050ff27eb45332095935ab112de31d065d.tar.xz nixpkgs-78acac050ff27eb45332095935ab112de31d065d.tar.zst nixpkgs-78acac050ff27eb45332095935ab112de31d065d.zip |
nixos/openstackImage: default hostname is empty string
This is to let the `ec2-data.nix` module sets the hostname from the metadata API value.
Diffstat (limited to 'nixos/modules/virtualisation/openstack-config.nix')
-rw-r--r-- | nixos/modules/virtualisation/openstack-config.nix | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/nixos/modules/virtualisation/openstack-config.nix b/nixos/modules/virtualisation/openstack-config.nix index 7f4799d1719..9d8f2ac245d 100644 --- a/nixos/modules/virtualisation/openstack-config.nix +++ b/nixos/modules/virtualisation/openstack-config.nix @@ -29,6 +29,9 @@ with lib; passwordAuthentication = mkDefault false; }; + # Force getting the hostname from Openstack metadata. + networking.hostName = mkDefault ""; + systemd.services.openstack-init = { path = [ pkgs.wget ]; description = "Fetch Metadata on startup"; |