amazon-image: enable configure-from-userdata and the corresponding VM test

This commit is contained in:
Dan Peebles 2015-12-30 04:58:29 +00:00
parent 878544e4f6
commit cd7612b841
3 changed files with 2 additions and 3 deletions

View File

@ -11,7 +11,7 @@ with lib;
let cfg = config.ec2; in let cfg = config.ec2; in
{ {
imports = [ ../profiles/headless.nix ./ec2-data.nix ./amazon-grow-partition.nix ]; imports = [ ../profiles/headless.nix ./ec2-data.nix ./amazon-grow-partition.nix ./amazon-init.nix ];
config = { config = {

View File

@ -44,7 +44,6 @@ let
nixos-rebuild switch nixos-rebuild switch
''; '';
in { in {
imports = [ "${modulesPath}/virtualisation/amazon-image.nix" ];
boot.postBootCommands = '' boot.postBootCommands = ''
${bootScript} & ${bootScript} &
''; '';

View File

@ -223,7 +223,7 @@ in rec {
tests.dockerRegistry = hydraJob (import tests/docker-registry.nix { system = "x86_64-linux"; }); tests.dockerRegistry = hydraJob (import tests/docker-registry.nix { system = "x86_64-linux"; });
tests.etcd = hydraJob (import tests/etcd.nix { system = "x86_64-linux"; }); tests.etcd = hydraJob (import tests/etcd.nix { system = "x86_64-linux"; });
tests.ec2-nixops = hydraJob (import tests/ec2.nix { system = "x86_64-linux"; }).boot-ec2-nixops; tests.ec2-nixops = hydraJob (import tests/ec2.nix { system = "x86_64-linux"; }).boot-ec2-nixops;
#tests.ec2-config = hydraJob (import tests/ec2.nix { system = "x86_64-linux"; }).boot-ec2-config; tests.ec2-config = hydraJob (import tests/ec2.nix { system = "x86_64-linux"; }).boot-ec2-config;
tests.firefox = callTest tests/firefox.nix {}; tests.firefox = callTest tests/firefox.nix {};
tests.firewall = callTest tests/firewall.nix {}; tests.firewall = callTest tests/firewall.nix {};
tests.fleet = hydraJob (import tests/fleet.nix { system = "x86_64-linux"; }); tests.fleet = hydraJob (import tests/fleet.nix { system = "x86_64-linux"; });