diff options
| author | Matthew Hicks <mhicks@mhicks-host.usersys.redhat.com> | 2008-06-20 21:31:14 -0400 |
|---|---|---|
| committer | Matthew Hicks <mhicks@mhicks-host.usersys.redhat.com> | 2008-06-20 21:31:14 -0400 |
| commit | c1009cf0041b65e4bd3abd1bd771c4aa0e1ca46c (patch) | |
| tree | 43e10fc596fd5530cc6c506401388f39c88356fd /cloudmasterd/lib/cloudmasterd.rb | |
| parent | 4bc7c33ef758712a8ffc584a1d704e5c7b54ed0e (diff) | |
Bug fixes in machine creation
Diffstat (limited to 'cloudmasterd/lib/cloudmasterd.rb')
| -rw-r--r-- | cloudmasterd/lib/cloudmasterd.rb | 6 |
1 files changed, 4 insertions, 2 deletions
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 |
