diff options
author | Antoine Eiche <lewo@abesis.fr> | 2019-01-28 14:44:41 +0100 |
---|---|---|
committer | Antoine Eiche <lewo@abesis.fr> | 2019-01-28 14:44:41 +0100 |
commit | 849460f8789943b9758c6e782d1cc0bb8a8bd950 (patch) | |
tree | 45a3a7f3c724eed8eb0d5bb40ae01b901cb52e5a /nixos/modules/virtualisation | |
parent | 2858b35100c8cc350b8f162227fbb767c8c2173e (diff) | |
download | nixlib-849460f8789943b9758c6e782d1cc0bb8a8bd950.tar nixlib-849460f8789943b9758c6e782d1cc0bb8a8bd950.tar.gz nixlib-849460f8789943b9758c6e782d1cc0bb8a8bd950.tar.bz2 nixlib-849460f8789943b9758c6e782d1cc0bb8a8bd950.tar.lz nixlib-849460f8789943b9758c6e782d1cc0bb8a8bd950.tar.xz nixlib-849460f8789943b9758c6e782d1cc0bb8a8bd950.tar.zst nixlib-849460f8789943b9758c6e782d1cc0bb8a8bd950.zip |
nova-image: add amazon-init module to the nova image
This allows the VM to provide a `configuration.nix` file to the VM. The test doesn't work in sandbox because it needs Internet (however it works interactively).
Diffstat (limited to 'nixos/modules/virtualisation')
-rw-r--r-- | nixos/modules/virtualisation/nova-config.nix | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/nixos/modules/virtualisation/nova-config.nix b/nixos/modules/virtualisation/nova-config.nix index fef20d498e97..c944fff96a85 100644 --- a/nixos/modules/virtualisation/nova-config.nix +++ b/nixos/modules/virtualisation/nova-config.nix @@ -8,6 +8,7 @@ with lib; ../profiles/headless.nix # The Openstack Metadata service exposes data on an EC2 API also. ./ec2-data.nix + ./amazon-init.nix ]; config = { @@ -32,7 +33,7 @@ with lib; path = [ pkgs.wget ]; description = "Fetch Metadata on startup"; wantedBy = [ "multi-user.target" ]; - before = [ "apply-ec2-data.service" ]; + before = [ "apply-ec2-data.service" "amazon-init.service"]; wants = [ "network-online.target" ]; after = [ "network-online.target" ]; script = |