vagrant-libvirt 0.8.1 → 0.8.2

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
  SHA256:
3
- metadata.gz: 222341781630e6677eb79c302c0d658e9684ff55c9ebc596de959e32186de2d7
4
- data.tar.gz: ae974712832e934acf1d696365db7c42b5efb53521f8ebd7227bf9be3891f8cd
3
+ metadata.gz: c7f252cbd53f8459e02a21e94449e6fef1ce762f1d053433970015fad9d00fef
4
+ data.tar.gz: 54af8a7a564e8ffdd0f18d3d3eca44367ac7613fb4892af995c5d202d8e429ea
5
5
  SHA512:
6
- metadata.gz: 7d839a81423674ae57497e45265d839b19477988074f86f98c421fc7da182f5fdfd8f5314fc6282f27a4454bab0979fd0b4b118d660ab6a92a26ad0ee40707a2
7
- data.tar.gz: 2c424318fd5c566512f0237a5b00eae03ff0a89dd8186188870a89f82afd0989640f7367fdad3ee45e1d97f331cab20618a27c4bf019c7e7a84cb4f7e628aba9
6
+ metadata.gz: 00c708fba6fb82cec02b0b68730da87975964584b8b189bfcd77857b3b386ff81609bd135423872dcd04cd7e071f10f1cf7806d97b28565ed27464d2b2021857
7
+ data.tar.gz: abbbe10ad322fec1a49b9f3463fa7a50c9e46bce93c8c6aa505ca3c4fbd5e6a3b4bfa248e912d0608e5aefdd3427ce819e6bff9f0807da187a187c2e9085d13e
data/README.md CHANGED
@@ -353,11 +353,11 @@ into_srpm.sh -d c8s
353
353
  cd SRPMS
354
354
 
355
355
  # common commands (make sure to adjust verison accordingly)
356
- rpm2cpio libssh-0.9.0-5.fc30.src.rpm | cpio -imdV
357
- tar xf libssh-0.9.0.tar.xz
356
+ rpm2cpio libssh-0.9.4-1c8s.src.rpm | cpio -imdV
357
+ tar xf libssh-0.9.4.tar.xz
358
358
  mkdir build
359
359
  cd build
360
- cmake ../libssh-0.9.0 -DOPENSSL_ROOT_DIR=/opt/vagrant/embedded/
360
+ cmake ../libssh-0.9.4 -DOPENSSL_ROOT_DIR=/opt/vagrant/embedded/
361
361
  make
362
362
  sudo cp lib/libssh* /opt/vagrant/embedded/lib64
363
363
  ```
@@ -376,18 +376,21 @@ dnf download --source krb5-libs
376
376
 
377
377
  # centos 8 stream, doesn't provide source RPMs, so you need to download like so
378
378
  git clone https://git.centos.org/centos-git-common
379
+ # make get_sources.sh executable as it is needed in krb5
380
+ chmod +x centos-git-common/get_sources.sh
379
381
  # centos-git-common needs its tools in PATH
380
382
  export PATH=$(readlink -f ./centos-git-common):$PATH
381
383
  git clone https://git.centos.org/rpms/krb5
382
384
  cd krb5
383
385
  git checkout imports/c8s/krb5-1.18.2-8.el8
386
+ get_sources.sh
384
387
  into_srpm.sh -d c8s
385
388
  cd SRPMS
386
389
 
387
390
  # common commands (make sure to adjust verison accordingly)
388
- rpm2cpio krb5-1.18-1.fc32.src.rpm | cpio -imdV
389
- tar xf krb5-1.18.tar.gz
390
- cd krb5-1.18/src
391
+ rpm2cpio krb5-1.18.2-8c8s.src.rpm | cpio -imdV
392
+ tar xf krb5-1.18.2.tar.gz
393
+ cd krb5-1.18.2/src
391
394
  ./configure
392
395
  make
393
396
  sudo cp -P lib/crypto/libk5crypto.* /opt/vagrant/embedded/lib64/
@@ -48,15 +48,12 @@ module VagrantPlugins
48
48
  autoload :TimedProvision, action_root.join('timed_provision')
49
49
  autoload :WaitTillUp, action_root.join('wait_till_up')
50
50
 
51
- autoload :HandleBox, 'vagrant/action/builtin/handle_box'
52
51
  autoload :Package, 'vagrant/action/general/package'
53
52
  autoload :PackageSetupFiles, 'vagrant/action/general/package_setup_files'
54
53
  autoload :PackageSetupFolders, 'vagrant/action/general/package_setup_folders'
55
54
  autoload :ProvisionerCleanup, 'vagrant/action/builtin/provisioner_cleanup'
56
55
  autoload :SSHRun, 'vagrant/action/builtin/ssh_run'
57
56
  autoload :SyncedFolderCleanup, 'vagrant/action/builtin/synced_folder_cleanup'
58
- autoload :SyncedFolders, 'vagrant/action/builtin/synced_folders'
59
- autoload :WaitForCommunicator, 'vagrant/action/builtin/wait_for_communicator'
60
57
 
61
58
  # Include the built-in & general modules so we can use them as top-level things.
62
59
  include Vagrant::Action::Builtin
@@ -93,6 +90,7 @@ module VagrantPlugins
93
90
  b2.use SetupComplete
94
91
  else
95
92
  b2.use HandleStoragePool
93
+ require 'vagrant/action/builtin/handle_box'
96
94
  b2.use HandleBox
97
95
  b2.use HandleBoxImage
98
96
  b2.use CreateDomainVolume
@@ -144,6 +142,7 @@ module VagrantPlugins
144
142
  # VM is not running or suspended.
145
143
  b3.use PrepareNFSValidIds
146
144
  b3.use SyncedFolderCleanup
145
+ require 'vagrant/action/builtin/synced_folders'
147
146
  b3.use SyncedFolders
148
147
  b3.use PrepareNFSSettings
149
148
  b3.use ShareFolders
@@ -156,6 +155,7 @@ module VagrantPlugins
156
155
  # Machine should gain IP address when comming up,
157
156
  # so wait for dhcp lease and store IP into machines data_dir.
158
157
  b3.use WaitTillUp
158
+ require 'vagrant/action/builtin/wait_for_communicator'
159
159
  b3.use WaitForCommunicator, [:running]
160
160
 
161
161
  b3.use ForwardPorts
@@ -213,6 +213,7 @@ module VagrantPlugins
213
213
  end
214
214
 
215
215
  b2.use ConfigValidate
216
+ b2.use Provision
216
217
  b2.use action_halt
217
218
  b2.use action_start
218
219
  end
@@ -353,6 +354,7 @@ module VagrantPlugins
353
354
  b3.use CreateNetworks
354
355
  b3.use ResumeDomain
355
356
  b3.use Provision
357
+ require 'vagrant/action/builtin/wait_for_communicator'
356
358
  b3.use WaitForCommunicator, [:running]
357
359
  end
358
360
  end
@@ -528,10 +528,14 @@ module VagrantPlugins
528
528
  pci_domain = options[:domain]
529
529
  end
530
530
 
531
- @pcis.push(domain: pci_domain,
532
- bus: options[:bus],
533
- slot: options[:slot],
534
- function: options[:function])
531
+ @pcis.push(domain: pci_domain,
532
+ bus: options[:bus],
533
+ slot: options[:slot],
534
+ function: options[:function],
535
+ guest_domain: options[:guest_domain],
536
+ guest_bus: options[:guest_bus],
537
+ guest_slot: options[:guest_slot],
538
+ guest_function: options[:guest_function])
535
539
  end
536
540
 
537
541
  def watchdog(options = {})
@@ -230,15 +230,20 @@
230
230
  <backend model='random'>/dev/random</backend>
231
231
  </rng>
232
232
  <%- end -%>
233
- <%- @pcis.each do |pci| -%>
233
+ <%-
234
+ @pcis.each do |pci|
235
+ pci = pci.reject { |k,v| v.nil? }
236
+ guest_prefix = "guest_"
237
+ pci_host = pci.select { |k,_| !k.to_s.start_with?(guest_prefix) }
238
+ pci_guest = pci.select { |k,_| k.to_s.start_with?(guest_prefix) }
239
+ -%>
234
240
  <hostdev mode='subsystem' type='pci' managed='yes'>
235
241
  <source>
236
- <address <%= pci.select { |k,_| [:domain, :bus, :slot, :function].include? k }
237
- .reject { |k,v| v.nil? }
238
- .map { |k,v| "#{k.to_s}='#{v}'" }
239
- .join(' ')
240
- -%>/>
242
+ <address <%= pci_host.map { |k,v| "#{k.to_s}='#{v}'" } .join(' ') -%>/>
241
243
  </source>
244
+ <%- if !pci_guest.empty? -%>
245
+ <address type='pci' <%= pci_guest.map { |k,v| "#{k.to_s[guest_prefix.length..-1]}='#{v}'" } .join(' ') -%>/>
246
+ <%- end -%>
242
247
  </hostdev>
243
248
  <%- end -%>
244
249
  <%- @usbs.each do |usb| -%>
@@ -1 +1 @@
1
- 0.8.1
1
+ 0.8.2
@@ -107,7 +107,7 @@
107
107
  </rng>
108
108
  <hostdev mode='subsystem' type='pci' managed='yes'>
109
109
  <source>
110
- <address domain='0x0000' bus='0x06' slot='0x12' function='0x5'/>
110
+ <address domain='0x0000' bus='0x06' slot='0x12' function='0x5'/>
111
111
  </source>
112
112
  </hostdev>
113
113
  <hostdev mode='subsystem' type='pci' managed='yes'>
@@ -115,6 +115,12 @@
115
115
  <address domain='0x0001' bus='0x03' slot='0x00' function='0x0'/>
116
116
  </source>
117
117
  </hostdev>
118
+ <hostdev mode='subsystem' type='pci' managed='yes'>
119
+ <source>
120
+ <address domain='0x0002' bus='0x04' slot='0x00' function='0x0'/>
121
+ </source>
122
+ <address type='pci' domain='0x0000' bus='0x01' slot='0x01' function='0x0'/>
123
+ </hostdev>
118
124
  <hostdev mode='subsystem' type='usb'>
119
125
  <source startupPolicy='mandatory'>
120
126
  <vendor id='0x1234'/>
@@ -92,6 +92,7 @@ describe 'templates/domain' do
92
92
  domain.serial(:type => 'file', :source => {:path => '/var/log/vm_consoles/machine.log'})
93
93
  domain.pci(bus: '0x06', slot: '0x12', function: '0x5')
94
94
  domain.pci(domain: '0x0001', bus: '0x03', slot: '0x00', function: '0x0')
95
+ domain.pci(domain: '0x0002', bus: '0x04', slot: '0x00', function: '0x0', guest_domain: '0x0000', guest_bus: '0x01', guest_slot: '0x01', guest_function: '0x0')
95
96
  domain.usb_controller(model: 'nec-xhci', ports: '4')
96
97
  domain.usb(bus: '1', device: '2', vendor: '0x1234', product: '0xabcd')
97
98
  domain.redirdev(type: 'tcp', host: 'localhost', port: '4000')
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: vagrant-libvirt
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.8.1
4
+ version: 0.8.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Lukas Stanek
@@ -11,7 +11,7 @@ authors:
11
11
  autorequire:
12
12
  bindir: bin
13
13
  cert_chain: []
14
- date: 2022-04-21 00:00:00.000000000 Z
14
+ date: 2022-05-04 00:00:00.000000000 Z
15
15
  dependencies:
16
16
  - !ruby/object:Gem::Dependency
17
17
  name: rspec-core
@@ -75,14 +75,14 @@ dependencies:
75
75
  requirements:
76
76
  - - "~>"
77
77
  - !ruby/object:Gem::Version
78
- version: '2.1'
78
+ version: '2'
79
79
  type: :runtime
80
80
  prerelease: false
81
81
  version_requirements: !ruby/object:Gem::Requirement
82
82
  requirements:
83
83
  - - "~>"
84
84
  - !ruby/object:Gem::Version
85
- version: '2.1'
85
+ version: '2'
86
86
  - !ruby/object:Gem::Dependency
87
87
  name: rexml
88
88
  requirement: !ruby/object:Gem::Requirement
@@ -326,10 +326,10 @@ test_files:
326
326
  - spec/unit/action/forward_ports_spec.rb
327
327
  - spec/unit/templates/tpm/version_1.2.xml
328
328
  - spec/unit/templates/tpm/version_2.0.xml
329
- - spec/unit/templates/domain_all_settings.xml
330
329
  - spec/unit/templates/domain_cpu_mode_passthrough.xml
331
330
  - spec/unit/templates/domain_custom_cpu_model.xml
332
331
  - spec/unit/templates/domain_defaults.xml
332
+ - spec/unit/templates/domain_all_settings.xml
333
333
  - spec/unit/templates/domain_spec.rb
334
334
  - spec/unit/util/byte_number_spec.rb
335
335
  - spec/unit/util/resolvers_spec.rb