vagrant-vcenter 0.2.0 → 0.2.1

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: edba3fb939369de58d2a7fa6db6ebbf2313a6c7f
4
- data.tar.gz: 5695a7cf151d13558582e1da68bda7c116864e0d
3
+ metadata.gz: a731d05c6161ea3798d4aa008b342f0218573200
4
+ data.tar.gz: 18fe52e30641a7cc12bc0c64a1d7bdd7a18887c0
5
5
  SHA512:
6
- metadata.gz: b1baa1ccf7c60fed8482746d6f3260082b2f72680b4e54973d2c195a54c381f2acd561168da9787e7fb0f2376b972aee8297140f7544eefcad2d9f8307cd1a39
7
- data.tar.gz: 96e30c3bd5a0a92b04f58a085c70fda683f37217812371f2cbd7257e9f81274e339420112083d2a4aa93a7d55667b0c30fdcbd43e0060aac2b8c67bc371cecd1
6
+ metadata.gz: 706e271d99817aecd3c1f17155db4f7d61794265ab860c7b0fd5f3e05f1cb7b8cbd34a7fd76c027e507cc2b3940a32797157f2041634c3c96b5bf0a3f24bac6b
7
+ data.tar.gz: e48ac89c3049e4f6c329c070c77a718a2e8f7e31a82cc9d8add57019811e63a54d5b689238b92fbf1e03be4140a0f9edbc94d8fd7718a2f5620ce3395b9a391b
data/README.md CHANGED
@@ -1,34 +1,21 @@
1
1
  [Vagrant](http://www.vagrantup.com) provider for VMware vCenter®
2
2
  =============
3
3
 
4
- [Version 0.2.0](../../releases/tag/v0.2.0) has been released!
4
+ [Version 0.2.1](../../releases/tag/v0.2.1) has been released!
5
5
  -------------
6
6
 
7
7
  Please note that this software is still Alpha/Beta quality and is not recommended for production usage.
8
8
 
9
- Right now a [Precise32](http://vagrant.gosddc.com/boxes/precise32-vcenter.box) is available for use, or you can roll your own as you please, make sure to install VMware tools in it.
9
+ We have a wide array of boxes available at [Vagrant Cloud](https://vagrantcloud.com/gosddc) you can use them directly or you can roll your own as you please, make sure to install VMware tools in it.
10
10
 
11
- Changes in [version 0.2.0](../../releases/tag/v0.2.0) include:
12
-
13
- New Features
14
-
15
- - Add option to set the actual vm name
16
- - Set some options in the vm via linux prep
17
- - Static networking
18
- - Hostname
19
- - Add option to set vmnetwork name and backing
20
- - Vagrant now uses builtin ```SyncedFolders``` helper to synchronize folders
11
+ Changes in [version 0.2.1](../../releases/tag/v0.2.1) include:
21
12
 
22
13
  Fixes
23
14
 
24
- - Fix the read_ssh_info if the vm doesn't have a network yet at first try the later ssh's wont forever fail
25
-
26
- Many thanks to @BarnacleBob for submitting PR #4 with all these new features!
15
+ - Hostname using linux prep needs to be hostname and domain not fqdn on both.
16
+ - Checking the power state at that spot can cause ruby exceptions to be thrown.
27
17
 
28
- Changes in [version 0.1.1](../../releases/tag/v0.1.1) include:
29
-
30
- - Support for ```vagrant share``` [Fixes [#2](../../issues/2)]
31
- - Support for [Vagrant Cloud](http://vagrantcloud.com) boxes [Fixes [#1](../../issues/1)]
18
+ Thanks to [Karl Pietri](https://github.com/BarnacleBob) for this PR.
32
19
 
33
20
  Install
34
21
  -------------
@@ -53,21 +40,11 @@ Configuration
53
40
  Here's a sample Multi-VM Vagrantfile:
54
41
 
55
42
  ```ruby
56
- precise32_box_url = 'http://vagrant.gosddc.com/boxes/precise32-vcenter.box'
57
-
58
43
  nodes = [
59
- { hostname: 'web-vm',
60
- box: 'precise32',
61
- box_url: precise32_box_url },
62
- { hostname: 'ssh-vm',
63
- box: 'precise32',
64
- box_url: precise32_box_url },
65
- { hostname: 'sql-vm',
66
- box: 'precise32',
67
- box_url: precise32_box_url },
68
- { hostname: 'lb-vm',
69
- box: 'precise32',
70
- box_url: precise32_box_url }
44
+ { hostname: 'web-vm', box: 'gosddc/precise32' },
45
+ { hostname: 'ssh-vm', box: 'gosddc/precise32' },
46
+ { hostname: 'sql-vm', box: 'gosddc/precise32' },
47
+ { hostname: 'lb-vm', box: 'gosddc/precise32' }
71
48
  ]
72
49
 
73
50
  Vagrant.configure('2') do |config|
@@ -112,8 +112,6 @@ module VagrantPlugins
112
112
  :portgroupKey => network.key)
113
113
  card.backing = RbVmomi::VIM.VirtualEthernetCardDistributedVirtualPortBackingInfo(
114
114
  :port => switch_port)
115
- else
116
- abort "vm network type of #{config.vm_network_type} is unknown"
117
115
  end
118
116
  dev_spec = RbVmomi::VIM.VirtualDeviceConfigSpec(:device => card, :operation => "edit")
119
117
  config_spec.deviceChange = [dev_spec]
@@ -128,9 +126,9 @@ module VagrantPlugins
128
126
  :dnsSuffixList => config.dns_suffix_list)
129
127
 
130
128
  prep = RbVmomi::VIM.CustomizationLinuxPrep(
131
- :domain => env[:machine].name,
129
+ :domain => env[:machine].name.to_s.sub(/^[^.]+\./,''),
132
130
  :hostName => RbVmomi::VIM.CustomizationFixedName(
133
- :name => env[:machine].name))
131
+ :name => env[:machine].name.to_s.split('.')[0]))
134
132
 
135
133
  adapter = RbVmomi::VIM.CustomizationIPSettings(
136
134
  :gateway => [config.gateway],
@@ -27,7 +27,7 @@ module VagrantPlugins
27
27
 
28
28
  vm = root_vm_folder.findByUuid(env[:machine].id)
29
29
 
30
- @logger.debug("Current power state: #{vm.runtime.powerState}")
30
+ #@logger.debug("Current power state: #{vm.runtime.powerState}")
31
31
  vm_name = env[:machine].name
32
32
 
33
33
  if env[:machine].id.nil?
@@ -1,6 +1,6 @@
1
1
  module VagrantPlugins
2
2
  # Set version for vagrant-vcenter gem.
3
3
  module VCenter
4
- VERSION = '0.2.0'
4
+ VERSION = '0.2.1'
5
5
  end
6
6
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: vagrant-vcenter
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Fabio Rapposelli
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-06-16 00:00:00.000000000 Z
11
+ date: 2014-07-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: vagrant-rbvmomi