As expected by backend
[p5sagit/Oyster.git] / lib / Dist / Zilla / App / Command / provision.pm
index 001edad..3df6420 100644 (file)
@@ -35,14 +35,15 @@ sub execute {
     
   my %hash = @hashes > 1 ? %{ merge( @hashes ) } : $hashes[0];
 
-  $hash{provision_backend} = delete $hash{type} || 'Rackspace';
+  $hash{provision_backend} = delete $hash{type} || 'Oyster::Provision::Rackspace';
   $hash{pub_ssh} ||= "$ENV{HOME}/.ssh/id_rsa.pub";
-  $hash{size}    ||= 128;
-  $hash{image}   ||= 'meerkat'; # TODO, should this be determined on backend?
+  $hash{size}    ||= 1;  # id 1 - ram 256 MiB - disk 10 GiB
+  $hash{image}   ||= 69; # id 69 - Ubuntu 10.10 (meerkat)
 
   use Oyster::Provision;
   my $server = Oyster::Provision->new(
         name => $name,
+        config => \%hash,
         %hash,
   );
   $server->create;