vagrant-zones 0.1.73 → 0.1.76

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 1db5834991b56f5766c88f90ff5f227e3dd26bd77d48df861b9983807bf24432
4
- data.tar.gz: 58146a70bed428cd95df64bc3df9bf4766d1090a4003aea6e22fbcfa4255f1a4
3
+ metadata.gz: 1dab425b6690300af387e357ac70a9582012231cd24a0e42e0b2c1efc063bb83
4
+ data.tar.gz: bb354c70334e6a60edb4f0db444380b189cc14378ba5d0de4e02d69117f2f71a
5
5
  SHA512:
6
- metadata.gz: 37f9361e1db8bb106ff23499263f98e182a6b8d2470956000e66e2db77ecca7bdf6f066f4da72a5ee1c27fab41dd84aac61e18ff1b337dcbad1fcd0702ff18e9
7
- data.tar.gz: 430adac41fa0b0ae65a98d8d3156b4da11b552b19d3130bc6246a6f4492314c18fa792ad963fbc88573bb057b2c2616538db7bff50cfd60a60d1575072ab2f61
6
+ metadata.gz: 1802d96944997330e489f88800b6b156b7850acb6eb9e40febbec600e3eafa0fcb0a5f4875443b9818dee6b4dd700df7d7fc8e583d08f1515eeb3c6c0ec3716d
7
+ data.tar.gz: e4a2a9f1cd7d5b8799edacce7bfec549caeaf052ec2e6066a378f8168cc05e2eaea9c24d2c40b166360c6a770d5ceaeef6ca8426c1729347be0b1e7b7ad6cf9d
data/.rubocop.yml CHANGED
@@ -43,7 +43,7 @@ Style/LineEndConcatenation:
43
43
  Layout/LineLength:
44
44
  Description: 'Limit lines to 139 characters.'
45
45
  Enabled: true
46
- Max: 139
46
+ Max: 200
47
47
 
48
48
  Metrics/CyclomaticComplexity:
49
49
  Description: 'Avoid complex methods.'
data/CHANGELOG.md CHANGED
@@ -1,5 +1,28 @@
1
1
  # Changelog
2
2
 
3
+ ## [0.1.76](https://github.com/STARTcloud/vagrant-zones/compare/v0.1.75...v0.1.76) (2023-11-27)
4
+
5
+
6
+ ### Bug Fixes
7
+
8
+ * forgot to add to config.rb ([5a98934](https://github.com/STARTcloud/vagrant-zones/commit/5a98934851f78e3ec9f1a1c0580aeb3d50cab66b))
9
+
10
+ ## [0.1.75](https://github.com/STARTcloud/vagrant-zones/compare/v0.1.74...v0.1.75) (2023-11-27)
11
+
12
+
13
+ ### Bug Fixes
14
+
15
+ * increase rubocop linelength limit ([653a94f](https://github.com/STARTcloud/vagrant-zones/commit/653a94fd85efe5e2f850fdf7a76e0867be87f96b))
16
+
17
+ ## [0.1.74](https://github.com/STARTcloud/vagrant-zones/compare/v0.1.73...v0.1.74) (2023-11-27)
18
+
19
+
20
+ ### Bug Fixes
21
+
22
+ * on-deman vnics ([80c8a42](https://github.com/STARTcloud/vagrant-zones/commit/80c8a429ed9a8e3ad624b3f52fc8b4873803a417))
23
+ * rubocop lint adjustments ([fb22b4f](https://github.com/STARTcloud/vagrant-zones/commit/fb22b4f7fb80b3eb76aa351e67b18f3b4271cf43))
24
+ * ruby lint syntax, doesn't like not ([eebf699](https://github.com/STARTcloud/vagrant-zones/commit/eebf6992cbae1e372cf3d859c0ee039691a0be92))
25
+
3
26
  ## [0.1.73](https://github.com/STARTcloud/vagrant-zones/compare/v0.1.72...v0.1.73) (2023-08-19)
4
27
 
5
28
 
@@ -7,7 +7,7 @@ module VagrantPlugins
7
7
  # This is used define the variables for the project
8
8
  class Config < Vagrant.plugin('2', :config)
9
9
  # rubocop:disable Layout/LineLength
10
- attr_accessor :brand, :autoboot, :setup_method, :safe_restart, :allowed_address, :safe_shutdown, :boxshortname, :kernel, :debug, :debug_boot, :private_network, :winalcheck, :winlcheck, :lcheck, :alcheck, :snapshot_script, :diskif, :netif, :cdroms, :disk1path, :disk1size, :cpus, :cpu_configuration, :boot, :complex_cpu_conf, :memory, :vagrant_user, :vagrant_user_private_key_path, :setup_wait, :clean_shutdown_time, :dhcp4, :vagrant_user_pass, :firmware_type, :vm_type, :partition_id, :shared_disk_enabled, :shared_dir, :acpi, :os_type, :console, :consolehost, :consoleport, :console_onboot, :hostbridge, :sshport, :rdpport, :override, :additional_disks, :cloud_init_resolvers, :cloud_init_enabled, :cloud_init_dnsdomain, :cloud_init_password, :cloud_init_sshkey, :cloud_init_conf, :dns, :box, :vagrant_cloud_creator, :winbooted_string, :booted_string, :zunlockbootkey, :zunlockboot, :xhci_enabled, :login_wait
10
+ attr_accessor :brand, :autoboot, :setup_method, :safe_restart, :allowed_address, :safe_shutdown, :boxshortname, :kernel, :debug, :debug_boot, :private_network, :winalcheck, :winlcheck, :lcheck, :alcheck, :snapshot_script, :diskif, :netif, :cdroms, :disk1path, :disk1size, :cpus, :cpu_configuration, :boot, :complex_cpu_conf, :memory, :vagrant_user, :vagrant_user_private_key_path, :setup_wait, :on_demand_vnics, :clean_shutdown_time, :dhcp4, :vagrant_user_pass, :firmware_type, :vm_type, :partition_id, :shared_disk_enabled, :shared_dir, :acpi, :os_type, :console, :consolehost, :consoleport, :console_onboot, :hostbridge, :sshport, :rdpport, :override, :additional_disks, :cloud_init_resolvers, :cloud_init_enabled, :cloud_init_dnsdomain, :cloud_init_password, :cloud_init_sshkey, :cloud_init_conf, :dns, :box, :vagrant_cloud_creator, :winbooted_string, :booted_string, :zunlockbootkey, :zunlockboot, :xhci_enabled, :login_wait
11
11
 
12
12
  # rubocop:enable Layout/LineLength
13
13
 
@@ -49,6 +49,7 @@ module VagrantPlugins
49
49
  @hostbridge = 'i440fx'
50
50
  @acpi = 'on'
51
51
  @setup_wait = 90
52
+ @on_demand_vnics = 'true'
52
53
  @box = UNSET_VALUE
53
54
  @clean_shutdown_time = 300
54
55
  @vmtype = 'production'
@@ -322,7 +322,7 @@ module VagrantPlugins
322
322
  when 'public_network'
323
323
  zonenicdel(uii, opts) if state == 'delete'
324
324
  zonecfgnicconfig(uii, opts) if state == 'config'
325
- zoneniccreate(uii, opts) if state == 'create'
325
+ zoneniccreate(uii, opts) if state == 'create' && !config.on_demand_vnics
326
326
  zonenicstpzloginsetup(uii, opts, config) if state == 'setup' && config.setup_method == 'zlogin'
327
327
  when 'private_network'
328
328
  zonenicdel(uii, opts) if state == 'delete'
@@ -332,7 +332,7 @@ module VagrantPlugins
332
332
  etherstubdelete(uii, opts) if state == 'delete'
333
333
  natnicconfig(uii, opts) if state == 'config'
334
334
  etherstub = etherstubcreate(uii, opts) if state == 'create'
335
- zonenatniccreate(uii, opts, etherstub) if state == 'create'
335
+ zonenatniccreate(uii, opts, etherstub) if state == 'create' && !config.on_demand_vnics
336
336
  etherstubcreatehvnic(uii, opts, etherstub) if state == 'create'
337
337
  zonenatforward(uii, opts) if state == 'create'
338
338
  zonenatentries(uii, opts) if state == 'create'
@@ -1062,9 +1062,19 @@ module VagrantPlugins
1062
1062
  shrtstr2 = %(add property (name=ips,value="#{allowed_address}"); add property (name=primary,value="true"); end;)
1063
1063
  execute(false, %(#{strt}set global-nic=auto; #{shrtstr1} #{shrtstr2}"))
1064
1064
  when 'bhyve'
1065
- execute(false, %(#{strt}"add net; set physical=#{vnic_name}; end;")) unless cie
1066
- execute(false, %(#{strt}"add net; set physical=#{vnic_name}; set allowed-address=#{allowed_address}; end;")) if cie && aa
1067
- execute(false, %(#{strt}"add net; set physical=#{vnic_name}; end;")) if cie && !aa
1065
+ if config.on_demand_vnics && opts[:vlan].nil?
1066
+ execute(false, %(#{strt}"add net; set physical=#{vnic_name}; set global-nic=#{opts[:bridge]}; end;")) unless cie
1067
+ execute(false, %(#{strt}"add net; set physical=#{vnic_name}; set global-nic=#{opts[:bridge]}; set allowed-address=#{allowed_address}; end;")) if cie && aa
1068
+ execute(false, %(#{strt}"add net; set physical=#{vnic_name}; set global-nic=#{opts[:bridge]}; end;")) if cie && !aa
1069
+ elsif config.on_demand_vnics && !opts[:vlan].nil?
1070
+ execute(false, %(#{strt}"add net; set physical=#{vnic_name}; set vlan-id=#{opts[:vlan]}; set global-nic=#{opts[:bridge]}; end;")) unless cie
1071
+ execute(false, %(#{strt}"add net; set physical=#{vnic_name}; set vlan-id=#{opts[:vlan]}; set global-nic=#{opts[:bridge]}; set allowed-address=#{allowed_address}; end;")) if cie && aa
1072
+ execute(false, %(#{strt}"add net; set physical=#{vnic_name}; set vlan-id=#{opts[:vlan]}; set global-nic=#{opts[:bridge]}; end;")) if cie && !aa
1073
+ elsif !config.on_demand_vnics
1074
+ execute(false, %(#{strt}"add net; set physical=#{vnic_name}; end;")) unless cie
1075
+ execute(false, %(#{strt}"add net; set physical=#{vnic_name}; set allowed-address=#{allowed_address}; end;")) if cie && aa
1076
+ execute(false, %(#{strt}"add net; set physical=#{vnic_name}; end;")) if cie && !aa
1077
+ end
1068
1078
  end
1069
1079
  end
1070
1080
 
@@ -2,7 +2,7 @@
2
2
 
3
3
  module VagrantPlugins
4
4
  module ProviderZone
5
- VERSION = '0.1.73'
5
+ VERSION = '0.1.76'
6
6
  NAME = 'vagrant-zones'
7
7
  end
8
8
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: vagrant-zones
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.73
4
+ version: 0.1.76
5
5
  platform: ruby
6
6
  authors:
7
7
  - Mark Gilbert
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-08-19 00:00:00.000000000 Z
11
+ date: 2023-11-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: i18n