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 | |
| parent | 4bc7c33ef758712a8ffc584a1d704e5c7b54ed0e (diff) | |
| download | tools-c1009cf0041b65e4bd3abd1bd771c4aa0e1ca46c.tar.gz tools-c1009cf0041b65e4bd3abd1bd771c4aa0e1ca46c.tar.xz tools-c1009cf0041b65e4bd3abd1bd771c4aa0e1ca46c.zip | |
Bug fixes in machine creation
| -rw-r--r-- | cloudmasterd/extra/cloudmasterd.spec | 2 | ||||
| -rw-r--r-- | cloudmasterd/lib/cloudmasterd.rb | 6 | ||||
| -rw-r--r-- | cloudmasterd/lib/cloudmasterd/version.rb | 2 |
3 files changed, 6 insertions, 4 deletions
diff --git a/cloudmasterd/extra/cloudmasterd.spec b/cloudmasterd/extra/cloudmasterd.spec index 704c618..1f9265d 100644 --- a/cloudmasterd/extra/cloudmasterd.spec +++ b/cloudmasterd/extra/cloudmasterd.spec @@ -6,7 +6,7 @@ Summary: daemon for machine configuration Name: rubygem-%{gemname} -Version: 0.1.1 +Version: 0.1.2 Release: 6%{?dist} Group: Development/Languages License: GPLv2+ or Ruby 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 |
