vagrant-em-demos 0.1.3 → 0.1.4

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: f4a5fd66288ee40ae7d33f431cddf6fb61c3774a245819b2283787da1fe41703
4
- data.tar.gz: ea221549e9633223c828483fd03bb47d1122de446c6c2065f7a8343f5fb22413
3
+ metadata.gz: d93441ea0a868529a8c1a23ca4a1e707eae1b6f9b5e876444a0c3fc307f5b5a6
4
+ data.tar.gz: fd57329ddbdd16ac09af4ddc27c9490527861372f2180d2f6ea2d414dbe07b26
5
5
  SHA512:
6
- metadata.gz: ebd25994d52628f7e8ba12888575f0f50028a9223b5e691deeceb20deb52737f535286b803a611c8ca9bf24018867f7316f8e6eecb7dc9b09340a0f2d352ab8f
7
- data.tar.gz: e3307eb2d5d9038c2fa97055f48d2659f3566d1a1fd853806750b15692693eab3bc4fa4f5c2cb0204a81e01d970417f4ea5561539ff4097166c0ffe7075024c0
6
+ metadata.gz: f444b085abd617f086ff33f7cf07f08922150d33e2738464f9205c7762ec485681a0f5ef59eb1ed655586b352868b00c52a41acb4b8125c6eb296237032109d1
7
+ data.tar.gz: dc56f114fbccfba673747ebb869fd356683f3d6a35615142954d68f643e4d78b99a95a766cde4d9c4655f2154d834bab7ce365e2f9dc263725504732d6f53f65
@@ -4,6 +4,7 @@ module Vagrant
4
4
  class ConfigReader
5
5
  VALID_KEYS = [
6
6
  "dhcp_fix",
7
+ "own_dns"
7
8
  "public_ip",
8
9
  "private_ip",
9
10
  "domain_name",
@@ -13,6 +13,7 @@ defaults:
13
13
  virtualboxorafix: false
14
14
  required_plugins: []
15
15
  run_r10k: true
16
+ own_dns: false
16
17
  custom_facts:
17
18
  deployment_zone: vagrant
18
19
  #
@@ -33,7 +33,7 @@ module Vagrant
33
33
  :protocol, :disks, :additional_hosts, :custom_facts,
34
34
  :required_plugins, :software_files, :needs_storage,
35
35
  :virtualboxorafix, :dhcp_fix, :cluster, :run_r10k, :mount_uid,
36
- :mount_gid, :prefix, :ip_start_address, :ipaddress
36
+ :mount_gid, :prefix, :ip_start_address, :ipaddress, :own_dns
37
37
  ]
38
38
  attr_reader(*ATTRIBUTES)
39
39
  attr_accessor :generated_ip, :index, :vmname
@@ -51,13 +51,13 @@ module Vagrant
51
51
  end
52
52
  @name = name
53
53
  @index = index
54
- if ip_start_address
54
+ if public_ip
55
+ @ipaddress = @public_ip
56
+ else
57
+ fail "public_ip or ip_start_address is required for #{name}" unless ip_start_address
55
58
  adress_manager = VagrantPlugins::AdressManager.instance(ip_start_address)
56
59
  @generated_ip = adress_manager.register_node(fqdn)
57
60
  @ipaddress = @generated_ip
58
- else
59
- fail "priate_ip or ip_start_address is required"
60
- @ipaddress = @private_ip
61
61
  end
62
62
 
63
63
  initialize_disks(attributes["disks"])
@@ -134,6 +134,17 @@ module Vagrant
134
134
  end
135
135
  end
136
136
 
137
+ # Fix setup for Oracle applications
138
+ def virtualboxorafix(vb)
139
+ vb.customize ['setextradata', :id, 'VBoxInternal/CPUM/HostCPUID/Cache/Leaf', '0x4']
140
+ vb.customize ['setextradata', :id, 'VBoxInternal/CPUM/HostCPUID/Cache/SubLeaf', '0x4']
141
+ vb.customize ['setextradata', :id, 'VBoxInternal/CPUM/HostCPUID/Cache/eax', '0']
142
+ vb.customize ['setextradata', :id, 'VBoxInternal/CPUM/HostCPUID/Cache/ebx', '0']
143
+ vb.customize ['setextradata', :id, 'VBoxInternal/CPUM/HostCPUID/Cache/ecx', '0']
144
+ vb.customize ['setextradata', :id, 'VBoxInternal/CPUM/HostCPUID/Cache/edx', '0']
145
+ vb.customize ['setextradata', :id, 'VBoxInternal/CPUM/HostCPUID/Cache/SubLeafMask', '0xffffffff']
146
+ end
147
+
137
148
  # Configure VirtualBox disks attached to the virtual machine
138
149
  def configure_disks(vb, model)
139
150
  vminfo = vm_info(model.name)
@@ -298,10 +309,15 @@ module Vagrant
298
309
  vb.cpus = model.cpucount || 1
299
310
  vb.memory = model.ram || 4096
300
311
  vb.name = model.vmname
301
- vb.auto_nat_dns_proxy = false
302
- vb.customize ["modifyvm", :id, "--natdnsproxy1", "on"]
303
- vb.customize ["modifyvm", :id, "--natdnshostresolver1", "on"]
304
-
312
+ if model.own_dns
313
+ vb.auto_nat_dns_proxy = false
314
+ vb.customize ["modifyvm", :id, "--natdnsproxy1", "off"]
315
+ vb.customize ["modifyvm", :id, "--natdnshostresolver1", "off"]
316
+ else
317
+ vb.auto_nat_dns_proxy = true
318
+ vb.customize ["modifyvm", :id, "--natdnsproxy1", "on"]
319
+ vb.customize ["modifyvm", :id, "--natdnshostresolver1", "on"]
320
+ end
305
321
  virtualboxorafix(vb) if model.virtualboxorafix
306
322
 
307
323
  configure_disks(vb, model) if model.needs_storage
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: vagrant-em-demos
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.3
4
+ version: 0.1.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Enterprise Modules