vagrant-libvirt 0.5.0 → 0.6.0
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.
- checksums.yaml +4 -4
- data/README.md +134 -23
- data/lib/vagrant-libvirt/action/clean_machine_folder.rb +4 -0
- data/lib/vagrant-libvirt/action/create_domain.rb +11 -3
- data/lib/vagrant-libvirt/action/create_domain_volume.rb +7 -2
- data/lib/vagrant-libvirt/action/create_network_interfaces.rb +8 -2
- data/lib/vagrant-libvirt/action/create_networks.rb +12 -8
- data/lib/vagrant-libvirt/action/destroy_domain.rb +2 -0
- data/lib/vagrant-libvirt/action/destroy_networks.rb +2 -0
- data/lib/vagrant-libvirt/action/forward_ports.rb +7 -5
- data/lib/vagrant-libvirt/action/halt_domain.rb +4 -34
- data/lib/vagrant-libvirt/action/handle_box_image.rb +18 -13
- data/lib/vagrant-libvirt/action/handle_storage_pool.rb +7 -1
- data/lib/vagrant-libvirt/action/is_created.rb +2 -0
- data/lib/vagrant-libvirt/action/is_running.rb +2 -0
- data/lib/vagrant-libvirt/action/is_suspended.rb +2 -0
- data/lib/vagrant-libvirt/action/message_already_created.rb +2 -0
- data/lib/vagrant-libvirt/action/message_not_created.rb +2 -0
- data/lib/vagrant-libvirt/action/message_not_running.rb +2 -0
- data/lib/vagrant-libvirt/action/message_not_suspended.rb +2 -0
- data/lib/vagrant-libvirt/action/message_will_not_destroy.rb +2 -0
- data/lib/vagrant-libvirt/action/package_domain.rb +133 -68
- data/lib/vagrant-libvirt/action/prepare_nfs_settings.rb +2 -0
- data/lib/vagrant-libvirt/action/prepare_nfs_valid_ids.rb +2 -0
- data/lib/vagrant-libvirt/action/prune_nfs_exports.rb +2 -0
- data/lib/vagrant-libvirt/action/read_mac_addresses.rb +2 -0
- data/lib/vagrant-libvirt/action/remove_libvirt_image.rb +2 -0
- data/lib/vagrant-libvirt/action/remove_stale_volume.rb +2 -0
- data/lib/vagrant-libvirt/action/resume_domain.rb +2 -0
- data/lib/vagrant-libvirt/action/set_boot_order.rb +8 -2
- data/lib/vagrant-libvirt/action/set_name_of_domain.rb +3 -1
- data/lib/vagrant-libvirt/action/share_folders.rb +2 -0
- data/lib/vagrant-libvirt/action/shutdown_domain.rb +49 -0
- data/lib/vagrant-libvirt/action/start_domain.rb +26 -17
- data/lib/vagrant-libvirt/action/suspend_domain.rb +2 -0
- data/lib/vagrant-libvirt/action/wait_till_up.rb +2 -0
- data/lib/vagrant-libvirt/action.rb +34 -4
- data/lib/vagrant-libvirt/cap/mount_9p.rb +2 -0
- data/lib/vagrant-libvirt/cap/mount_virtiofs.rb +2 -0
- data/lib/vagrant-libvirt/cap/nic_mac_addresses.rb +2 -0
- data/lib/vagrant-libvirt/cap/public_address.rb +2 -0
- data/lib/vagrant-libvirt/cap/synced_folder_9p.rb +5 -2
- data/lib/vagrant-libvirt/cap/synced_folder_virtiofs.rb +5 -2
- data/lib/vagrant-libvirt/config.rb +58 -24
- data/lib/vagrant-libvirt/driver.rb +67 -12
- data/lib/vagrant-libvirt/errors.rb +2 -0
- data/lib/vagrant-libvirt/plugin.rb +2 -0
- data/lib/vagrant-libvirt/provider.rb +2 -0
- data/lib/vagrant-libvirt/templates/domain.xml.erb +4 -2
- data/lib/vagrant-libvirt/templates/public_interface.xml.erb +1 -0
- data/lib/vagrant-libvirt/util/byte_number.rb +71 -0
- data/lib/vagrant-libvirt/util/collection.rb +2 -0
- data/lib/vagrant-libvirt/util/erb_template.rb +2 -0
- data/lib/vagrant-libvirt/util/error_codes.rb +2 -0
- data/lib/vagrant-libvirt/util/network_util.rb +3 -0
- data/lib/vagrant-libvirt/util/nfs.rb +2 -0
- data/lib/vagrant-libvirt/util/storage_util.rb +1 -0
- data/lib/vagrant-libvirt/util/timer.rb +2 -0
- data/lib/vagrant-libvirt/util/ui.rb +1 -0
- data/lib/vagrant-libvirt/util.rb +2 -0
- data/lib/vagrant-libvirt/version +1 -1
- data/lib/vagrant-libvirt/version.rb +2 -0
- data/lib/vagrant-libvirt.rb +2 -0
- data/locales/en.yml +2 -0
- data/spec/spec_helper.rb +2 -0
- data/spec/support/binding_proc.rb +2 -0
- data/spec/support/environment_helper.rb +2 -0
- data/spec/support/libvirt_context.rb +2 -0
- data/spec/support/matchers/have_file_content.rb +2 -0
- data/spec/support/sharedcontext.rb +3 -0
- data/spec/support/temporary_dir.rb +12 -0
- data/spec/unit/action/clean_machine_folder_spec.rb +16 -4
- data/spec/unit/action/create_domain_spec/additional_disks_domain.xml +61 -0
- data/spec/unit/action/create_domain_spec/default_domain.xml +55 -0
- data/spec/unit/action/create_domain_spec.rb +68 -32
- data/spec/unit/action/create_domain_volume_spec/one_disk_in_storage.xml +1 -1
- data/spec/unit/action/create_domain_volume_spec/three_disks_in_storage_disk_0.xml +1 -1
- data/spec/unit/action/create_domain_volume_spec/three_disks_in_storage_disk_1.xml +1 -1
- data/spec/unit/action/create_domain_volume_spec/three_disks_in_storage_disk_2.xml +1 -1
- data/spec/unit/action/create_domain_volume_spec.rb +10 -4
- data/spec/unit/action/destroy_domain_spec.rb +8 -2
- data/spec/unit/action/forward_ports_spec.rb +2 -0
- data/spec/unit/action/halt_domain_spec.rb +30 -57
- data/spec/unit/action/handle_box_image_spec.rb +104 -24
- data/spec/unit/action/package_domain_spec.rb +304 -0
- data/spec/unit/action/set_name_of_domain_spec.rb +2 -0
- data/spec/unit/action/shutdown_domain_spec.rb +131 -0
- data/spec/unit/action/start_domain_spec/existing.xml +62 -0
- data/spec/unit/action/start_domain_spec.rb +18 -28
- data/spec/unit/action/wait_till_up_spec.rb +2 -0
- data/spec/unit/action_spec.rb +96 -0
- data/spec/unit/config_spec.rb +56 -3
- data/spec/unit/driver_spec.rb +155 -0
- data/spec/unit/templates/domain_all_settings.xml +4 -0
- data/spec/unit/templates/domain_spec.rb +2 -0
- data/spec/unit/util/byte_number_spec.rb +28 -0
- metadata +59 -38
    
        metadata
    CHANGED
    
    | @@ -1,59 +1,60 @@ | |
| 1 1 | 
             
            --- !ruby/object:Gem::Specification
         | 
| 2 2 | 
             
            name: vagrant-libvirt
         | 
| 3 3 | 
             
            version: !ruby/object:Gem::Version
         | 
| 4 | 
            -
              version: 0. | 
| 4 | 
            +
              version: 0.6.0
         | 
| 5 5 | 
             
            platform: ruby
         | 
| 6 6 | 
             
            authors:
         | 
| 7 7 | 
             
            - Lukas Stanek
         | 
| 8 8 | 
             
            - Dima Vasilets
         | 
| 9 9 | 
             
            - Brian Pitts
         | 
| 10 | 
            +
            - Darragh Bailey
         | 
| 10 11 | 
             
            autorequire:
         | 
| 11 12 | 
             
            bindir: bin
         | 
| 12 13 | 
             
            cert_chain: []
         | 
| 13 | 
            -
            date: 2021- | 
| 14 | 
            +
            date: 2021-10-08 00:00:00.000000000 Z
         | 
| 14 15 | 
             
            dependencies:
         | 
| 15 16 | 
             
            - !ruby/object:Gem::Dependency
         | 
| 16 17 | 
             
              name: rspec-core
         | 
| 17 18 | 
             
              requirement: !ruby/object:Gem::Requirement
         | 
| 18 19 | 
             
                requirements:
         | 
| 19 | 
            -
                - - " | 
| 20 | 
            +
                - - ">="
         | 
| 20 21 | 
             
                  - !ruby/object:Gem::Version
         | 
| 21 | 
            -
                    version: 3.5 | 
| 22 | 
            +
                    version: '3.5'
         | 
| 22 23 | 
             
              type: :development
         | 
| 23 24 | 
             
              prerelease: false
         | 
| 24 25 | 
             
              version_requirements: !ruby/object:Gem::Requirement
         | 
| 25 26 | 
             
                requirements:
         | 
| 26 | 
            -
                - - " | 
| 27 | 
            +
                - - ">="
         | 
| 27 28 | 
             
                  - !ruby/object:Gem::Version
         | 
| 28 | 
            -
                    version: 3.5 | 
| 29 | 
            +
                    version: '3.5'
         | 
| 29 30 | 
             
            - !ruby/object:Gem::Dependency
         | 
| 30 31 | 
             
              name: rspec-expectations
         | 
| 31 32 | 
             
              requirement: !ruby/object:Gem::Requirement
         | 
| 32 33 | 
             
                requirements:
         | 
| 33 | 
            -
                - - " | 
| 34 | 
            +
                - - ">="
         | 
| 34 35 | 
             
                  - !ruby/object:Gem::Version
         | 
| 35 | 
            -
                    version: 3.5 | 
| 36 | 
            +
                    version: '3.5'
         | 
| 36 37 | 
             
              type: :development
         | 
| 37 38 | 
             
              prerelease: false
         | 
| 38 39 | 
             
              version_requirements: !ruby/object:Gem::Requirement
         | 
| 39 40 | 
             
                requirements:
         | 
| 40 | 
            -
                - - " | 
| 41 | 
            +
                - - ">="
         | 
| 41 42 | 
             
                  - !ruby/object:Gem::Version
         | 
| 42 | 
            -
                    version: 3.5 | 
| 43 | 
            +
                    version: '3.5'
         | 
| 43 44 | 
             
            - !ruby/object:Gem::Dependency
         | 
| 44 45 | 
             
              name: rspec-mocks
         | 
| 45 46 | 
             
              requirement: !ruby/object:Gem::Requirement
         | 
| 46 47 | 
             
                requirements:
         | 
| 47 | 
            -
                - - " | 
| 48 | 
            +
                - - ">="
         | 
| 48 49 | 
             
                  - !ruby/object:Gem::Version
         | 
| 49 | 
            -
                    version: 3.5 | 
| 50 | 
            +
                    version: '3.5'
         | 
| 50 51 | 
             
              type: :development
         | 
| 51 52 | 
             
              prerelease: false
         | 
| 52 53 | 
             
              version_requirements: !ruby/object:Gem::Requirement
         | 
| 53 54 | 
             
                requirements:
         | 
| 54 | 
            -
                - - " | 
| 55 | 
            +
                - - ">="
         | 
| 55 56 | 
             
                  - !ruby/object:Gem::Version
         | 
| 56 | 
            -
                    version: 3.5 | 
| 57 | 
            +
                    version: '3.5'
         | 
| 57 58 | 
             
            - !ruby/object:Gem::Dependency
         | 
| 58 59 | 
             
              name: simplecov
         | 
| 59 60 | 
             
              requirement: !ruby/object:Gem::Requirement
         | 
| @@ -157,6 +158,7 @@ email: | |
| 157 158 | 
             
            - ls@elostech.cz
         | 
| 158 159 | 
             
            - pronix.service@gmail.com
         | 
| 159 160 | 
             
            - brian@polibyte.com
         | 
| 161 | 
            +
            - daragh.bailey@gmail.com
         | 
| 160 162 | 
             
            executables: []
         | 
| 161 163 | 
             
            extensions: []
         | 
| 162 164 | 
             
            extra_rdoc_files: []
         | 
| @@ -195,6 +197,7 @@ files: | |
| 195 197 | 
             
            - lib/vagrant-libvirt/action/set_boot_order.rb
         | 
| 196 198 | 
             
            - lib/vagrant-libvirt/action/set_name_of_domain.rb
         | 
| 197 199 | 
             
            - lib/vagrant-libvirt/action/share_folders.rb
         | 
| 200 | 
            +
            - lib/vagrant-libvirt/action/shutdown_domain.rb
         | 
| 198 201 | 
             
            - lib/vagrant-libvirt/action/start_domain.rb
         | 
| 199 202 | 
             
            - lib/vagrant-libvirt/action/suspend_domain.rb
         | 
| 200 203 | 
             
            - lib/vagrant-libvirt/action/wait_till_up.rb
         | 
| @@ -214,6 +217,7 @@ files: | |
| 214 217 | 
             
            - lib/vagrant-libvirt/templates/private_network.xml.erb
         | 
| 215 218 | 
             
            - lib/vagrant-libvirt/templates/public_interface.xml.erb
         | 
| 216 219 | 
             
            - lib/vagrant-libvirt/util.rb
         | 
| 220 | 
            +
            - lib/vagrant-libvirt/util/byte_number.rb
         | 
| 217 221 | 
             
            - lib/vagrant-libvirt/util/collection.rb
         | 
| 218 222 | 
             
            - lib/vagrant-libvirt/util/erb_template.rb
         | 
| 219 223 | 
             
            - lib/vagrant-libvirt/util/error_codes.rb
         | 
| @@ -231,8 +235,11 @@ files: | |
| 231 235 | 
             
            - spec/support/libvirt_context.rb
         | 
| 232 236 | 
             
            - spec/support/matchers/have_file_content.rb
         | 
| 233 237 | 
             
            - spec/support/sharedcontext.rb
         | 
| 238 | 
            +
            - spec/support/temporary_dir.rb
         | 
| 234 239 | 
             
            - spec/unit/action/clean_machine_folder_spec.rb
         | 
| 235 240 | 
             
            - spec/unit/action/create_domain_spec.rb
         | 
| 241 | 
            +
            - spec/unit/action/create_domain_spec/additional_disks_domain.xml
         | 
| 242 | 
            +
            - spec/unit/action/create_domain_spec/default_domain.xml
         | 
| 236 243 | 
             
            - spec/unit/action/create_domain_spec/default_system_storage_pool.xml
         | 
| 237 244 | 
             
            - spec/unit/action/create_domain_spec/default_user_storage_pool.xml
         | 
| 238 245 | 
             
            - spec/unit/action/create_domain_volume_spec.rb
         | 
| @@ -244,14 +251,19 @@ files: | |
| 244 251 | 
             
            - spec/unit/action/forward_ports_spec.rb
         | 
| 245 252 | 
             
            - spec/unit/action/halt_domain_spec.rb
         | 
| 246 253 | 
             
            - spec/unit/action/handle_box_image_spec.rb
         | 
| 254 | 
            +
            - spec/unit/action/package_domain_spec.rb
         | 
| 247 255 | 
             
            - spec/unit/action/set_name_of_domain_spec.rb
         | 
| 256 | 
            +
            - spec/unit/action/shutdown_domain_spec.rb
         | 
| 248 257 | 
             
            - spec/unit/action/start_domain_spec.rb
         | 
| 249 258 | 
             
            - spec/unit/action/start_domain_spec/clock_timer_rtc.xml
         | 
| 250 259 | 
             
            - spec/unit/action/start_domain_spec/default.xml
         | 
| 251 260 | 
             
            - spec/unit/action/start_domain_spec/default_added_tpm_path.xml
         | 
| 252 261 | 
             
            - spec/unit/action/start_domain_spec/default_added_tpm_version.xml
         | 
| 262 | 
            +
            - spec/unit/action/start_domain_spec/existing.xml
         | 
| 253 263 | 
             
            - spec/unit/action/wait_till_up_spec.rb
         | 
| 264 | 
            +
            - spec/unit/action_spec.rb
         | 
| 254 265 | 
             
            - spec/unit/config_spec.rb
         | 
| 266 | 
            +
            - spec/unit/driver_spec.rb
         | 
| 255 267 | 
             
            - spec/unit/provider_spec.rb
         | 
| 256 268 | 
             
            - spec/unit/templates/domain_all_settings.xml
         | 
| 257 269 | 
             
            - spec/unit/templates/domain_custom_cpu_model.xml
         | 
| @@ -259,6 +271,7 @@ files: | |
| 259 271 | 
             
            - spec/unit/templates/domain_spec.rb
         | 
| 260 272 | 
             
            - spec/unit/templates/tpm/version_1.2.xml
         | 
| 261 273 | 
             
            - spec/unit/templates/tpm/version_2.0.xml
         | 
| 274 | 
            +
            - spec/unit/util/byte_number_spec.rb
         | 
| 262 275 | 
             
            homepage: https://github.com/vagrant-libvirt/vagrant-libvirt
         | 
| 263 276 | 
             
            licenses:
         | 
| 264 277 | 
             
            - MIT
         | 
| @@ -278,43 +291,51 @@ required_rubygems_version: !ruby/object:Gem::Requirement | |
| 278 291 | 
             
                - !ruby/object:Gem::Version
         | 
| 279 292 | 
             
                  version: '0'
         | 
| 280 293 | 
             
            requirements: []
         | 
| 281 | 
            -
             | 
| 282 | 
            -
            rubygems_version: 2.7.11
         | 
| 294 | 
            +
            rubygems_version: 3.0.9
         | 
| 283 295 | 
             
            signing_key:
         | 
| 284 296 | 
             
            specification_version: 4
         | 
| 285 297 | 
             
            summary: libvirt provider for Vagrant.
         | 
| 286 298 | 
             
            test_files:
         | 
| 287 | 
            -
            - spec/ | 
| 288 | 
            -
            - spec/ | 
| 289 | 
            -
            - spec/ | 
| 290 | 
            -
            - spec/ | 
| 291 | 
            -
            - spec/ | 
| 292 | 
            -
            - spec/ | 
| 299 | 
            +
            - spec/support/matchers/have_file_content.rb
         | 
| 300 | 
            +
            - spec/support/binding_proc.rb
         | 
| 301 | 
            +
            - spec/support/environment_helper.rb
         | 
| 302 | 
            +
            - spec/support/libvirt_context.rb
         | 
| 303 | 
            +
            - spec/support/temporary_dir.rb
         | 
| 304 | 
            +
            - spec/support/sharedcontext.rb
         | 
| 305 | 
            +
            - spec/unit/action/create_domain_spec/default_system_storage_pool.xml
         | 
| 306 | 
            +
            - spec/unit/action/create_domain_spec/default_user_storage_pool.xml
         | 
| 307 | 
            +
            - spec/unit/action/create_domain_spec/additional_disks_domain.xml
         | 
| 308 | 
            +
            - spec/unit/action/create_domain_spec/default_domain.xml
         | 
| 293 309 | 
             
            - spec/unit/action/create_domain_volume_spec/one_disk_in_storage.xml
         | 
| 294 | 
            -
            - spec/unit/action/create_domain_volume_spec/three_disks_in_storage_disk_1.xml
         | 
| 295 310 | 
             
            - spec/unit/action/create_domain_volume_spec/three_disks_in_storage_disk_0.xml
         | 
| 296 | 
            -
            - spec/unit/action/ | 
| 311 | 
            +
            - spec/unit/action/create_domain_volume_spec/three_disks_in_storage_disk_1.xml
         | 
| 312 | 
            +
            - spec/unit/action/create_domain_volume_spec/three_disks_in_storage_disk_2.xml
         | 
| 297 313 | 
             
            - spec/unit/action/start_domain_spec/clock_timer_rtc.xml
         | 
| 298 314 | 
             
            - spec/unit/action/start_domain_spec/default.xml
         | 
| 299 315 | 
             
            - spec/unit/action/start_domain_spec/default_added_tpm_path.xml
         | 
| 300 | 
            -
            - spec/unit/action/ | 
| 301 | 
            -
            - spec/unit/action/ | 
| 302 | 
            -
            - spec/unit/action/ | 
| 316 | 
            +
            - spec/unit/action/start_domain_spec/default_added_tpm_version.xml
         | 
| 317 | 
            +
            - spec/unit/action/start_domain_spec/existing.xml
         | 
| 318 | 
            +
            - spec/unit/action/clean_machine_folder_spec.rb
         | 
| 319 | 
            +
            - spec/unit/action/forward_ports_spec.rb
         | 
| 303 320 | 
             
            - spec/unit/action/handle_box_image_spec.rb
         | 
| 304 321 | 
             
            - spec/unit/action/set_name_of_domain_spec.rb
         | 
| 305 | 
            -
            - spec/unit/action/ | 
| 322 | 
            +
            - spec/unit/action/wait_till_up_spec.rb
         | 
| 306 323 | 
             
            - spec/unit/action/create_domain_volume_spec.rb
         | 
| 307 | 
            -
            - spec/unit/ | 
| 308 | 
            -
            - spec/unit/ | 
| 309 | 
            -
            - spec/unit/ | 
| 310 | 
            -
            - spec/unit/ | 
| 311 | 
            -
            - spec/unit/ | 
| 324 | 
            +
            - spec/unit/action/start_domain_spec.rb
         | 
| 325 | 
            +
            - spec/unit/action/destroy_domain_spec.rb
         | 
| 326 | 
            +
            - spec/unit/action/halt_domain_spec.rb
         | 
| 327 | 
            +
            - spec/unit/action/shutdown_domain_spec.rb
         | 
| 328 | 
            +
            - spec/unit/action/create_domain_spec.rb
         | 
| 329 | 
            +
            - spec/unit/action/package_domain_spec.rb
         | 
| 312 330 | 
             
            - spec/unit/templates/tpm/version_1.2.xml
         | 
| 313 331 | 
             
            - spec/unit/templates/tpm/version_2.0.xml
         | 
| 314 332 | 
             
            - spec/unit/templates/domain_custom_cpu_model.xml
         | 
| 315 | 
            -
            - spec/ | 
| 316 | 
            -
            - spec/ | 
| 317 | 
            -
            - spec/ | 
| 318 | 
            -
            - spec/ | 
| 319 | 
            -
            - spec/ | 
| 333 | 
            +
            - spec/unit/templates/domain_defaults.xml
         | 
| 334 | 
            +
            - spec/unit/templates/domain_spec.rb
         | 
| 335 | 
            +
            - spec/unit/templates/domain_all_settings.xml
         | 
| 336 | 
            +
            - spec/unit/util/byte_number_spec.rb
         | 
| 337 | 
            +
            - spec/unit/provider_spec.rb
         | 
| 338 | 
            +
            - spec/unit/action_spec.rb
         | 
| 339 | 
            +
            - spec/unit/config_spec.rb
         | 
| 340 | 
            +
            - spec/unit/driver_spec.rb
         | 
| 320 341 | 
             
            - spec/spec_helper.rb
         |