@cryptotaxi247 / infra-1 / commits / 6915455f

svn path=/configurations/trunk/tud/; revision=24989

svn path=/configurations/trunk/tud/; revision=24989

Eelco Dolstra committed Dec 6, 2010 at 09:54 UTC 6915455f63236a288906e6419ea9c8e8a216b36d
1 file changed +17
mrhankey.nix
+17
@@ -1,5 +1,7 @@
1 { config, pkgs, ... }:
2
3 +with pkgs.lib;
4 +
5 {
6 require = [ ./common.nix ];
7
@@ -21,4 +23,19 @@
23 networking.hostName = "";
24
25 services.openssh.enable = true;
26 +
27 + environment.etc =
28 + flip map (range 0 9) (nr:
29 + { source = pkgs.writeText "agilecloud0${toString nr}"
30 + ''
31 + from xen.util.path import *
32 + memory = 512
33 + kernel = XENFIRMWAREDIR + '/pv-grub-x86_32.gz'
34 + extra = '(hd0)/boot/grub/menu.lst'
35 + disk = [ 'file:/vmdisks/agilecloud-0${toString nr}-root.img,xvda1,w' ]
36 + vif = [ 'mac=00:16:3e:00:34:0${toString nr}' ]
37 + '';
38 + target = "xen/agilecloud0${toString nr}";
39 + }
40 + );
41 }