abiquo-etk 0.4.20 → 0.4.22

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
data/Rakefile CHANGED
@@ -12,6 +12,7 @@ begin
12
12
  gem.authors = ["Sergio Rubio"]
13
13
  gem.version = File.read 'VERSION'
14
14
  gem.add_dependency(%q<nokogiri>, [">= 1.3"])
15
+ gem.add_dependency(%q<rpm-utils>, [">= 0.1"])
15
16
  gem.add_dependency(%q<term-ansicolor>, [">= 1.0"])
16
17
  gem.add_dependency(%q<mixlib-cli>, [">= 1.2"])
17
18
  gem.files.include %w(
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.4.20
1
+ 0.4.22
data/abiquo-etk.gemspec CHANGED
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{abiquo-etk}
8
- s.version = "0.4.20"
8
+ s.version = "0.4.22"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Sergio Rubio"]
12
- s.date = %q{2010-10-21}
12
+ s.date = %q{2010-10-22}
13
13
  s.description = %q{Tools to troubleshoot your Abiquo installation}
14
14
  s.email = %q{srubio@abiquo.com}
15
15
  s.executables = ["abiquo-check-16-install", "aetk-setup-rs", "aetk-setup-v2v", "abicli", "aetk-setup-server"]
@@ -562,15 +562,18 @@ Gem::Specification.new do |s|
562
562
 
563
563
  if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
564
564
  s.add_runtime_dependency(%q<nokogiri>, [">= 1.3"])
565
+ s.add_runtime_dependency(%q<rpm-utils>, [">= 0.1"])
565
566
  s.add_runtime_dependency(%q<term-ansicolor>, [">= 1.0"])
566
567
  s.add_runtime_dependency(%q<mixlib-cli>, [">= 1.2"])
567
568
  else
568
569
  s.add_dependency(%q<nokogiri>, [">= 1.3"])
570
+ s.add_dependency(%q<rpm-utils>, [">= 0.1"])
569
571
  s.add_dependency(%q<term-ansicolor>, [">= 1.0"])
570
572
  s.add_dependency(%q<mixlib-cli>, [">= 1.2"])
571
573
  end
572
574
  else
573
575
  s.add_dependency(%q<nokogiri>, [">= 1.3"])
576
+ s.add_dependency(%q<rpm-utils>, [">= 0.1"])
574
577
  s.add_dependency(%q<term-ansicolor>, [">= 1.0"])
575
578
  s.add_dependency(%q<mixlib-cli>, [">= 1.2"])
576
579
  end
data/abiquo-etk.spec CHANGED
@@ -5,7 +5,7 @@
5
5
 
6
6
  Summary: Abiquo Elite Toolkit
7
7
  Name: rubygem-%{gemname}
8
- Version: 0.4.14
8
+ Version: 0.4.20
9
9
  Release: 1%{?dist}
10
10
  Group: Development/Languages
11
11
  License: GPLv2+ or Ruby
@@ -57,6 +57,9 @@ rm -rf %{buildroot}
57
57
 
58
58
 
59
59
  %changelog
60
+ * Thu Oct 21 2010 : Sergio Rubio <srubio@abiquo.com> - 0.4.20-1
61
+ - Updated to upstream 0.4.20
62
+
60
63
  * Wed Oct 20 2010 : Sergio Rubio <srubio@abiquo.com> - 0.4.14-1
61
64
  - Updated to upstream 0.4.14
62
65
 
@@ -77,6 +77,11 @@ if ARGV[0] == 'instant-deploy'
77
77
  option :iso_url,
78
78
  :long => '--iso-url URL',
79
79
  :description => 'Abiquo ISO URL'
80
+
81
+ option :mem,
82
+ :long => '--mem MEM',
83
+ :description => 'Virtual Machine memory (in bytes)',
84
+ :default => '512'
80
85
 
81
86
  option :help,
82
87
  :short => "-h",
@@ -124,6 +129,7 @@ if ARGV[0] == 'instant-deploy'
124
129
  target_dir = params[:target_dir] || "abiquo-instant-deploy-#{Time.now.strftime "%s"}"
125
130
  disk_file = params[:disk_file] || "#{target_dir}/abiquo.qcow2"
126
131
  iso_url = params[:iso_url]
132
+ mem = params[:mem]
127
133
  # Create target directory
128
134
  begin
129
135
  FileUtils.mkdir(target_dir)
@@ -168,7 +174,25 @@ if ARGV[0] == 'instant-deploy'
168
174
  puts "\nhttp://127.0.0.1:8980/client-premium\n\n"
169
175
  puts "To open the Abiquo Web Console."
170
176
  puts "\nBooting the Installer...\n\n"
171
- `kvm -m 1024 -drive file=#{disk_file},if=scsi,boot=on -net user,hostfwd=tcp:127.0.0.1:8980-:8080,hostfwd=tcp:127.0.0.1:2300-:22 -net nic -cdrom #{cdrom} -boot once=d > /dev/null 2>&1 `
177
+ File.open(target_dir + '/run.sh', 'w') do |f|
178
+ f.puts "#!/bin/sh"
179
+ f.puts "MEM=#{mem}"
180
+ f.puts "kvm -m #{mem} -drive file=#{File.basename(disk_file)} -net user,hostfwd=tcp:127.0.0.1:8980-:8080,hostfwd=tcp:127.0.0.1:2300-:22 -net nic -boot order=c > /dev/null 2>&1"
181
+ end
182
+ boot_vm :disk_file => disk_file, :cdrom => cdrom, :mem => mem
183
+ end
184
+
185
+ def distribution_version
186
+ /DISTRIB_DESCRIPTION="(.*)"/.match File.read('/etc/lsb-release')
187
+ version = $1.splitp[1] || '0'
188
+ version
189
+ end
190
+
191
+ def boot_vm(params = {})
192
+ disk_file = params[:disk_file]
193
+ cdrom = params[:cdrom]
194
+ mem = params[:mem]
195
+ `kvm -m 1024 -drive file=#{disk_file} -net user,hostfwd=tcp:127.0.0.1:8980-:8080,hostfwd=tcp:127.0.0.1:2300-:22 -net nic -drive file=#{cdrom},media=cdrom -boot order=cd -boot once=d > /dev/null 2>&1 `
172
196
  end
173
197
 
174
198
  target_dir = "abiquo-instant-deploy-#{Time.now.strftime "%s"}"
@@ -189,6 +213,6 @@ if ARGV[0] == 'instant-deploy'
189
213
  print "Abiquo Instant Deploy: ".bold
190
214
  puts "One Command Cloud Builder\n\n"
191
215
  puts "Building the cloud into #{target_dir.bold} directory..."
192
- install_iso(:target_dir => target_dir, :iso_url => url)
216
+ install_iso(:target_dir => target_dir, :iso_url => url, :mem => cli.config[:mem])
193
217
 
194
218
  end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: abiquo-etk
3
3
  version: !ruby/object:Gem::Version
4
- hash: 39
4
+ hash: 35
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
8
  - 4
9
- - 20
10
- version: 0.4.20
9
+ - 22
10
+ version: 0.4.22
11
11
  platform: ruby
12
12
  authors:
13
13
  - Sergio Rubio
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2010-10-21 00:00:00 +02:00
18
+ date: 2010-10-22 00:00:00 +02:00
19
19
  default_executable:
20
20
  dependencies:
21
21
  - !ruby/object:Gem::Dependency
@@ -34,9 +34,24 @@ dependencies:
34
34
  type: :runtime
35
35
  version_requirements: *id001
36
36
  - !ruby/object:Gem::Dependency
37
- name: term-ansicolor
37
+ name: rpm-utils
38
38
  prerelease: false
39
39
  requirement: &id002 !ruby/object:Gem::Requirement
40
+ none: false
41
+ requirements:
42
+ - - ">="
43
+ - !ruby/object:Gem::Version
44
+ hash: 9
45
+ segments:
46
+ - 0
47
+ - 1
48
+ version: "0.1"
49
+ type: :runtime
50
+ version_requirements: *id002
51
+ - !ruby/object:Gem::Dependency
52
+ name: term-ansicolor
53
+ prerelease: false
54
+ requirement: &id003 !ruby/object:Gem::Requirement
40
55
  none: false
41
56
  requirements:
42
57
  - - ">="
@@ -47,11 +62,11 @@ dependencies:
47
62
  - 0
48
63
  version: "1.0"
49
64
  type: :runtime
50
- version_requirements: *id002
65
+ version_requirements: *id003
51
66
  - !ruby/object:Gem::Dependency
52
67
  name: mixlib-cli
53
68
  prerelease: false
54
- requirement: &id003 !ruby/object:Gem::Requirement
69
+ requirement: &id004 !ruby/object:Gem::Requirement
55
70
  none: false
56
71
  requirements:
57
72
  - - ">="
@@ -62,7 +77,7 @@ dependencies:
62
77
  - 2
63
78
  version: "1.2"
64
79
  type: :runtime
65
- version_requirements: *id003
80
+ version_requirements: *id004
66
81
  description: Tools to troubleshoot your Abiquo installation
67
82
  email: srubio@abiquo.com
68
83
  executables: