vagrant-libvirt 0.0.39 → 0.0.40
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 82b8df833b98cd137bfccda94b2544f25ae7d533
|
4
|
+
data.tar.gz: 40ddebef29dac353a3b1a50a2a7f1b732aa9edbb
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7b57a1a6d97c1b3135a3bde03708ab1f31ab0e40841bcbd2316719d4022604ac742294aed1600993c58beddcf3b013f2bc51f13fef7251caed6ab6504b9384a8
|
7
|
+
data.tar.gz: 0cad0fec5c4cb8c657505acb2d166b28cd4d1096fc9117be9887101d01920dbaa57f1146aaaeac98814058b94df8113d5318d1eb253bb4117ad76039b87d46f7
|
@@ -102,9 +102,6 @@ module VagrantPlugins
|
|
102
102
|
# smartcard device
|
103
103
|
@smartcard_dev = config.smartcard_dev
|
104
104
|
|
105
|
-
# qemuargs
|
106
|
-
@qemuargs = config.qemuargs
|
107
|
-
|
108
105
|
# RNG device passthrough
|
109
106
|
@rng = config.rng
|
110
107
|
|
@@ -283,15 +280,16 @@ module VagrantPlugins
|
|
283
280
|
env[:ui].info(" -- smartcard device: mode=#{@smartcard_dev[:mode]}, type=#{@smartcard_dev[:type]}")
|
284
281
|
end
|
285
282
|
|
286
|
-
|
283
|
+
@qargs = config.qemu_args
|
284
|
+
if not @qargs.empty?
|
287
285
|
env[:ui].info(' -- Command line args: ')
|
288
|
-
@
|
286
|
+
@qargs.each do |arg|
|
289
287
|
msg = " -> value=#{arg[:value]}, "
|
290
288
|
env[:ui].info(msg)
|
291
289
|
end
|
292
290
|
end
|
293
291
|
|
294
|
-
env[:ui].info(" -- Command line : #{@cmd_line}")
|
292
|
+
env[:ui].info(" -- Command line : #{@cmd_line}") unless @cmd_line.empty?
|
295
293
|
|
296
294
|
# Create libvirt domain.
|
297
295
|
# Is there a way to tell fog to create new domain with already
|
@@ -142,7 +142,7 @@ module VagrantPlugins
|
|
142
142
|
attr_accessor :mgmt_attach
|
143
143
|
|
144
144
|
# Additional qemuargs arguments
|
145
|
-
attr_accessor :
|
145
|
+
attr_accessor :qemu_args
|
146
146
|
|
147
147
|
def initialize
|
148
148
|
@uri = UNSET_VALUE
|
@@ -242,7 +242,7 @@ module VagrantPlugins
|
|
242
242
|
# Attach mgmt network
|
243
243
|
@mgmt_attach = UNSET_VALUE
|
244
244
|
|
245
|
-
@
|
245
|
+
@qemu_args = []
|
246
246
|
end
|
247
247
|
|
248
248
|
def boot(device)
|
@@ -495,8 +495,7 @@ module VagrantPlugins
|
|
495
495
|
end
|
496
496
|
|
497
497
|
def qemuargs(options = {})
|
498
|
-
@
|
499
|
-
@qemuargs.push(value: options[:value])
|
498
|
+
@qemu_args << options if options[:value]
|
500
499
|
end
|
501
500
|
|
502
501
|
# code to generate URI from a config moved out of the connect action
|
@@ -662,7 +661,7 @@ module VagrantPlugins
|
|
662
661
|
# Attach mgmt network
|
663
662
|
@mgmt_attach = true if @mgmt_attach == UNSET_VALUE
|
664
663
|
|
665
|
-
@
|
664
|
+
@qemu_args = [] if @qemu_args == UNSET_VALUE
|
666
665
|
end
|
667
666
|
|
668
667
|
def validate(machine)
|
@@ -692,10 +691,6 @@ module VagrantPlugins
|
|
692
691
|
c = cdroms.dup
|
693
692
|
c += other.cdroms
|
694
693
|
result.cdroms = c
|
695
|
-
|
696
|
-
c = qemuargs.dup
|
697
|
-
c += other.qemuargs
|
698
|
-
result.qemuargs = c
|
699
694
|
end
|
700
695
|
end
|
701
696
|
end
|
@@ -219,9 +219,9 @@
|
|
219
219
|
<% end -%>
|
220
220
|
</devices>
|
221
221
|
|
222
|
-
<% unless @
|
222
|
+
<% unless @qargs.empty? %>
|
223
223
|
<qemu:commandline>
|
224
|
-
<% @
|
224
|
+
<% @qargs.each do |arg| %>
|
225
225
|
<qemu:arg value='<%= arg[:value] %>'/>
|
226
226
|
<% end %>
|
227
227
|
</qemu:commandline>
|