From c1009cf0041b65e4bd3abd1bd771c4aa0e1ca46c Mon Sep 17 00:00:00 2001 From: Matthew Hicks Date: Fri, 20 Jun 2008 21:31:14 -0400 Subject: Bug fixes in machine creation --- cloudmasterd/lib/cloudmasterd.rb | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'cloudmasterd/lib/cloudmasterd.rb') diff --git a/cloudmasterd/lib/cloudmasterd.rb b/cloudmasterd/lib/cloudmasterd.rb index bddba15..934ce5d 100644 --- a/cloudmasterd/lib/cloudmasterd.rb +++ b/cloudmasterd/lib/cloudmasterd.rb @@ -94,13 +94,15 @@ module Cloudmasterd::Controllers # run the appropriate koan command to create the given "fqdn" # on the given "host" and "vol_group" - def _koan(host, fqdn, repo) + def _koan(host, fqdn, repo, email) + puts "Creating machine for #{email}" + # Run the koan process func_cmd = "func \"#{host}\" call virt install #{repo} #{fqdn} True #{fqdn} /images" puts `#{func_cmd}` # Make the new host autostart - func_cmd = "func \"#{host}\" call command run \"ln -s /etc/xen/#{fqdn.split('.')[0]} /etc/xen/auto/\"" + func_cmd = "func \"#{host}\" call command run \"ln -s /etc/xen/#{fqdn} /etc/xen/auto/\"" puts `#{func_cmd}` end -- cgit