abiquo-etk 0.4.18 → 0.4.19
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/VERSION +1 -1
- data/abiquo-etk.gemspec +1 -1
- data/lib/abicli/commands/instant-deploy.rb +25 -10
- metadata +3 -3
data/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
0.4.
|
|
1
|
+
0.4.19
|
data/abiquo-etk.gemspec
CHANGED
|
@@ -138,22 +138,37 @@ if ARGV[0] == 'instant-deploy'
|
|
|
138
138
|
end
|
|
139
139
|
`/usr/bin/qemu-img create -f qcow2 #{disk_file} 20GB`
|
|
140
140
|
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
141
|
+
|
|
142
|
+
if iso_url =~ /http:\/\//
|
|
143
|
+
# Download the iso
|
|
144
|
+
downloader = HTTPDownloader.new
|
|
145
|
+
puts "Downloading Abiquo ISO..."
|
|
146
|
+
cdrom = ""
|
|
147
|
+
begin
|
|
148
|
+
downloader.download! iso_url, File.new(target_dir + '/instant-deploy.iso', 'w')
|
|
149
|
+
cdrom = target_dir + '/instant-deploy.iso'
|
|
150
|
+
rescue Exception
|
|
151
|
+
$stderr.puts "Error downloading Abiquo ISO. Aborting."
|
|
152
|
+
exit
|
|
153
|
+
end
|
|
154
|
+
else
|
|
155
|
+
if iso_url =~ /file:/
|
|
156
|
+
iso_url.gsub!('file://','')
|
|
157
|
+
end
|
|
158
|
+
if not File.exist? iso_url
|
|
159
|
+
$stderr.puts "The ISO file specified does not exist."
|
|
160
|
+
exit 1
|
|
161
|
+
else
|
|
162
|
+
cdrom = iso_url
|
|
163
|
+
end
|
|
149
164
|
end
|
|
150
165
|
|
|
151
|
-
puts "\nBooting the Installer...\n\n"
|
|
152
166
|
# Boot
|
|
153
167
|
puts "\nAfter the install process, open the browser and type:\n"
|
|
154
168
|
puts "\nhttp://127.0.0.1:8980/client-premium\n\n"
|
|
155
169
|
puts "To open the Abiquo Web Console."
|
|
156
|
-
|
|
170
|
+
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 `
|
|
157
172
|
end
|
|
158
173
|
|
|
159
174
|
target_dir = "abiquo-instant-deploy-#{Time.now.strftime "%s"}"
|
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:
|
|
4
|
+
hash: 41
|
|
5
5
|
prerelease: false
|
|
6
6
|
segments:
|
|
7
7
|
- 0
|
|
8
8
|
- 4
|
|
9
|
-
-
|
|
10
|
-
version: 0.4.
|
|
9
|
+
- 19
|
|
10
|
+
version: 0.4.19
|
|
11
11
|
platform: ruby
|
|
12
12
|
authors:
|
|
13
13
|
- Sergio Rubio
|