From e25843d01c511410228c5746da59bfab43dca876 Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Thu, 16 Jun 2011 14:14:50 +0000 Subject: [PATCH] * Add an option to distinguish between EC2 and Nova targets. svn path=/nixos/trunk/; revision=27482 --- modules/misc/deployment.nix | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/modules/misc/deployment.nix b/modules/misc/deployment.nix index d8d3f28e42e..93ae8c97e98 100644 --- a/modules/misc/deployment.nix +++ b/modules/misc/deployment.nix @@ -38,6 +38,16 @@ with pkgs.lib; # EC2/Nova/Eucalyptus-specific options. + deployment.ec2.type = mkOption { + default = "ec2"; + example = "nova"; + description = '' + Specifies the type of cloud. This affects the machine + configuration. Current values are "ec2" + and "nova". + ''; + }; + deployment.ec2.controller = mkOption { example = https://ec2.eu-west-1.amazonaws.com:443/; description = ''