vagrant-vcenter 0.0.2.pre.dev → 0.1.0

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: c733695318829ceed21eafa83e10faa309ccc6ef
4
- data.tar.gz: 95a52dd729748fcdb3ea944f3674361568620d07
3
+ metadata.gz: f190d95ac55ca75fe0c142093303e9ddadec651f
4
+ data.tar.gz: 9ca4acd548c2cfd7d9d30049daddba701a683ed4
5
5
  SHA512:
6
- metadata.gz: 3135b7e6ed6c775bde2f1176c795f9614250497bfe64469309338d94a29341c4395779807ff569d6e0dab0144ba373fd418fb8d23a19c873b1b2c7e32c65ceb5
7
- data.tar.gz: db2a1fb9232ee85ec4b315372995861ebc01629efdda358196fdfc2204335db83efc84c50285408b87fa0c084fe3882d63ae92b54b146bb954ea4e8ff31fe04a
6
+ metadata.gz: 360703f5547238533291f5f608fc27fc1363aa1de72d53aa98820b4cf8eff43ee8c7017f7080005555b782692cf182a3a60d1bf96d64ae78fb4b1c74f755bbb1
7
+ data.tar.gz: 527b43a8073220b8466be2c57bad4398e09e43331e0adbf6cbc8d52f27c6beea25bff6e086ae6b50d27e93ab2f8b440e05ca7c25d0d437c45e36ec355a5524f3
data/.gitignore CHANGED
@@ -1,4 +1,9 @@
1
1
  .vagrant/*
2
2
  pkg/*
3
3
  Gemfile.lock
4
- test-*
4
+ test-*
5
+ .yardoc/*
6
+ doc/*
7
+ Vagrantfile
8
+ puppet/*
9
+ *.gem
data/README.md CHANGED
@@ -1,5 +1,90 @@
1
- # vagrant-vcenter
1
+ [Vagrant](http://www.vagrantup.com) provider for VMware vCenter®
2
+ =============
2
3
 
3
- Vagrant provider for VMware vCenter ®
4
+ [Version 0.1.0](../../releases/tag/v0.1.0) has been released!
5
+ -------------
4
6
 
5
- Please note that this is NOT WORKING yet.
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!
@@ -179,7 +179,6 @@ module VagrantPlugins
179
179
  b2.use BuildVM unless env[:result]
180
180
  end
181
181
  b.use action_start
182
- b.use DisconnectvCenter
183
182
  end
184
183
  end
185
184
 
@@ -105,6 +105,8 @@ module VagrantPlugins
105
105
  end
106
106
  @logger.debug("folder for VM: #{vm_folder}")
107
107
 
108
+ env[:ui].info('Creating VM...')
109
+
108
110
  template.CloneVM_Task(
109
111
  :folder => vm_folder,
110
112
  :name => vm_target,
@@ -1,6 +1,6 @@
1
1
  module VagrantPlugins
2
2
  # Set version for vagrant-vcenter gem.
3
3
  module VCenter
4
- VERSION = '0.0.2-dev'
4
+ VERSION = '0.1.0'
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.0.2.pre.dev
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-05 00:00:00.000000000 Z
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: 1.3.1
186
+ version: '0'
187
187
  requirements: []
188
188
  rubyforge_project:
189
189
  rubygems_version: 2.1.8