vagrant-vcenter 0.2.0 → 0.2.1
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 +10 -33
- data/lib/vagrant-vcenter/action/build_vm.rb +2 -4
- data/lib/vagrant-vcenter/action/read_state.rb +1 -1
- data/lib/vagrant-vcenter/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: a731d05c6161ea3798d4aa008b342f0218573200
|
|
4
|
+
data.tar.gz: 18fe52e30641a7cc12bc0c64a1d7bdd7a18887c0
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
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.
|
|
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
|
-
|
|
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.
|
|
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
|
-
-
|
|
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
|
-
|
|
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
|
-
|
|
61
|
-
|
|
62
|
-
{ hostname: '
|
|
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
|
-
|
|
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?
|
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.
|
|
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-
|
|
11
|
+
date: 2014-07-28 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: vagrant-rbvmomi
|