vagrant-vcenter 0.0.2.pre.dev → 0.1.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/.gitignore +6 -1
- data/README.md +88 -3
- data/lib/vagrant-vcenter/action.rb +0 -1
- data/lib/vagrant-vcenter/action/build_vm.rb +2 -0
- data/lib/vagrant-vcenter/version.rb +1 -1
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f190d95ac55ca75fe0c142093303e9ddadec651f
|
4
|
+
data.tar.gz: 9ca4acd548c2cfd7d9d30049daddba701a683ed4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 360703f5547238533291f5f608fc27fc1363aa1de72d53aa98820b4cf8eff43ee8c7017f7080005555b782692cf182a3a60d1bf96d64ae78fb4b1c74f755bbb1
|
7
|
+
data.tar.gz: 527b43a8073220b8466be2c57bad4398e09e43331e0adbf6cbc8d52f27c6beea25bff6e086ae6b50d27e93ab2f8b440e05ca7c25d0d437c45e36ec355a5524f3
|
data/.gitignore
CHANGED
data/README.md
CHANGED
@@ -1,5 +1,90 @@
|
|
1
|
-
|
1
|
+
[Vagrant](http://www.vagrantup.com) provider for VMware vCenter®
|
2
|
+
=============
|
2
3
|
|
3
|
-
|
4
|
+
[Version 0.1.0](../../releases/tag/v0.1.0) has been released!
|
5
|
+
-------------
|
4
6
|
|
5
|
-
Please note that this is
|
7
|
+
Please note that this software is still Alpha/Beta quality and is not recommended for production usage.
|
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.
|
10
|
+
|
11
|
+
Install
|
12
|
+
-------------
|
13
|
+
|
14
|
+
Latest version can be easily installed by running the following command:
|
15
|
+
|
16
|
+
```vagrant plugin install vagrant-vcenter```
|
17
|
+
|
18
|
+
Vagrant will download all the required gems during the installation process.
|
19
|
+
|
20
|
+
After the install has completed a ```vagrant up --provider=vcenter``` will trigger the newly installed provider.
|
21
|
+
|
22
|
+
Configuration
|
23
|
+
-------------
|
24
|
+
|
25
|
+
Here's a sample Multi-VM Vagrantfile:
|
26
|
+
|
27
|
+
```ruby
|
28
|
+
precise32_box_url = 'http://vagrant.tsugliani.fr/precise32-vcenter.box'
|
29
|
+
|
30
|
+
nodes = [
|
31
|
+
{ hostname: 'web-vm',
|
32
|
+
box: 'precise32',
|
33
|
+
box_url: precise32_box_url },
|
34
|
+
{ hostname: 'ssh-vm',
|
35
|
+
box: 'precise32',
|
36
|
+
box_url: precise32_box_url },
|
37
|
+
{ hostname: 'sql-vm',
|
38
|
+
box: 'precise32',
|
39
|
+
box_url: precise32_box_url },
|
40
|
+
{ hostname: 'lb-vm',
|
41
|
+
box: 'precise32',
|
42
|
+
box_url: precise32_box_url }
|
43
|
+
]
|
44
|
+
|
45
|
+
Vagrant.configure('2') do |config|
|
46
|
+
|
47
|
+
config.vm.provider :vcenter do |vcenter|
|
48
|
+
vcenter.hostname = 'my.vcenter.hostname'
|
49
|
+
vcenter.username = 'myUsername'
|
50
|
+
vcenter.password = 'myPassword'
|
51
|
+
vcenter.folder_name = 'myFolderName'
|
52
|
+
vcenter.datacenter_name = 'MyDatacenterName'
|
53
|
+
vcenter.computer_name = 'MyHostOrCluster'
|
54
|
+
vcenter.datastore_name = 'MyDatastore'
|
55
|
+
vcenter.template_folder_name = 'My/Template/Folder/Path'
|
56
|
+
vcenter.network_name = 'myNetworkName'
|
57
|
+
# If you want to use linked clones, set this to true
|
58
|
+
vcenter.linked_clones = true
|
59
|
+
end
|
60
|
+
|
61
|
+
# Go through nodes and configure each of them.j
|
62
|
+
nodes.each do |node|
|
63
|
+
config.vm.define node[:hostname] do |node_config|
|
64
|
+
node_config.vm.box = node[:box]
|
65
|
+
node_config.vm.hostname = node[:hostname]
|
66
|
+
node_config.vm.box_url = node[:box_url]
|
67
|
+
# node_config.vm.provision :puppet do |puppet|
|
68
|
+
# puppet.manifests_path = 'puppet/manifests'
|
69
|
+
# puppet.manifest_file = 'site.pp'
|
70
|
+
# puppet.module_path = 'puppet/modules'
|
71
|
+
# puppet.options = "--verbose --debug"
|
72
|
+
# end
|
73
|
+
end
|
74
|
+
end
|
75
|
+
end
|
76
|
+
```
|
77
|
+
|
78
|
+
Contribute
|
79
|
+
-------------
|
80
|
+
|
81
|
+
What is still missing:
|
82
|
+
|
83
|
+
- TEST SUITES! (working on that).
|
84
|
+
- Speed, the code is definitely not optimized.
|
85
|
+
- Thorough testing.
|
86
|
+
- Error checking is absymal.
|
87
|
+
- Some spaghetti code here and there.
|
88
|
+
- Bugs, bugs and BUGS!.
|
89
|
+
|
90
|
+
If you're a developer and want to lend us a hand, head over to our ```develop``` branch and send us PRs!
|
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.0
|
4
|
+
version: 0.1.0
|
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-05-
|
11
|
+
date: 2014-05-27 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: vagrant-rbvmomi
|
@@ -181,9 +181,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
181
181
|
version: '0'
|
182
182
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
183
183
|
requirements:
|
184
|
-
- - '
|
184
|
+
- - '>='
|
185
185
|
- !ruby/object:Gem::Version
|
186
|
-
version:
|
186
|
+
version: '0'
|
187
187
|
requirements: []
|
188
188
|
rubyforge_project:
|
189
189
|
rubygems_version: 2.1.8
|