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 ++++-- cloudmasterd/lib/cloudmasterd/version.rb | 2 +- 2 files changed, 5 insertions(+), 3 deletions(-) (limited to 'cloudmasterd/lib') 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 diff --git a/cloudmasterd/lib/cloudmasterd/version.rb b/cloudmasterd/lib/cloudmasterd/version.rb index ec2eb9c..05f6cf3 100644 --- a/cloudmasterd/lib/cloudmasterd/version.rb +++ b/cloudmasterd/lib/cloudmasterd/version.rb @@ -2,7 +2,7 @@ module Cloudmasterd #:nodoc: module VERSION #:nodoc: MAJOR = 0 MINOR = 1 - TINY = 1 + TINY = 2 STRING = [MAJOR, MINOR, TINY].join('.') end -- cgit