bosh_vcloud_cpi 0.4.8
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.
- data/README +26 -0
- data/Rakefile +50 -0
- data/lib/cloud/vcloud/cloud.rb +633 -0
- data/lib/cloud/vcloud/const.rb +27 -0
- data/lib/cloud/vcloud/util.rb +21 -0
- data/lib/cloud/vcloud/version.rb +7 -0
- data/lib/cloud/vcloud.rb +30 -0
- data/spec/assets/test-deployment-manifest.yml +183 -0
- data/spec/assets/test-director-config.yml +73 -0
- data/spec/assets/valid_stemcell.tgz +0 -0
- data/spec/spec_helper.rb +135 -0
- data/spec/unit/cloud_spec.rb +506 -0
- metadata +131 -0
data/README
ADDED
@@ -0,0 +1,26 @@
|
|
1
|
+
BOSH vCloud Cloud Provider
|
2
|
+
|
3
|
+
A BOSH CPI implementation for a vCloud Director backed infrastructure cloud.
|
4
|
+
|
5
|
+
Use the vSphere MICRO BOSH and BOSH stemcells when targetting vCloud Director.
|
6
|
+
|
7
|
+
In order to target a vCloud Director instance, BOSH must be set to use
|
8
|
+
the vCloud plugin configuration as shown below. Follow the same process
|
9
|
+
as when targetting vSphere but replacing the cloud plugin configuration.
|
10
|
+
|
11
|
+
-------------------------------------------------------------
|
12
|
+
plugin: vcloud
|
13
|
+
vcds:
|
14
|
+
- url: <VCD url> (e.g. http://1.2.3.4)
|
15
|
+
user: <VCD user> (e.g. orgadmin)
|
16
|
+
password: <>
|
17
|
+
entities:
|
18
|
+
organization: <Organization name>
|
19
|
+
virtual_datacenter: <VDC name>
|
20
|
+
vapp_catalog: <Organization catalog name>
|
21
|
+
media_catalog: <Organization catalog name>
|
22
|
+
vm_metadata_key: cf-agent-env
|
23
|
+
description: <Text associated with Cloud Foundry VMs>
|
24
|
+
-------------------------------------------------------------
|
25
|
+
|
26
|
+
BOSH requires vCloud Director version 5.1 or newer.
|
data/Rakefile
ADDED
@@ -0,0 +1,50 @@
|
|
1
|
+
# Copyright (c) 2009-2012 VMware, Inc.
|
2
|
+
|
3
|
+
$:.unshift(File.expand_path("../../rake", __FILE__))
|
4
|
+
|
5
|
+
ENV["BUNDLE_GEMFILE"] ||= File.expand_path("../Gemfile", __FILE__)
|
6
|
+
|
7
|
+
require "rubygems"
|
8
|
+
require "bundler"
|
9
|
+
Bundler.setup(:default, :test)
|
10
|
+
|
11
|
+
require "rake"
|
12
|
+
begin
|
13
|
+
require "rspec/core/rake_task"
|
14
|
+
rescue LoadError
|
15
|
+
end
|
16
|
+
|
17
|
+
require "bundler_task"
|
18
|
+
require "ci_task"
|
19
|
+
|
20
|
+
gem_helper = Bundler::GemHelper.new(Dir.pwd)
|
21
|
+
|
22
|
+
desc "Build vCloud CPI gem into the pkg directory"
|
23
|
+
task "build" do
|
24
|
+
gem_helper.build_gem
|
25
|
+
end
|
26
|
+
|
27
|
+
desc "Build and install vCloud CPI into system gems"
|
28
|
+
task "install" do
|
29
|
+
Rake::Task["bundler:install"].invoke
|
30
|
+
gem_helper.install_gem
|
31
|
+
end
|
32
|
+
|
33
|
+
BundlerTask.new
|
34
|
+
|
35
|
+
if defined?(RSpec)
|
36
|
+
namespace :spec do
|
37
|
+
desc "Run Unit Tests"
|
38
|
+
rspec_task = RSpec::Core::RakeTask.new(:unit) do |t|
|
39
|
+
t.pattern = "spec/unit/**/*_spec.rb"
|
40
|
+
t.rspec_opts = %w(--format progress --colour)
|
41
|
+
end
|
42
|
+
|
43
|
+
CiTask.new do |task|
|
44
|
+
task.rspec_task = rspec_task
|
45
|
+
end
|
46
|
+
end
|
47
|
+
|
48
|
+
desc "Run tests"
|
49
|
+
task :spec => %w(spec:unit)
|
50
|
+
end
|