knife-vcair 0.6.1 → 0.7.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/README.md +21 -18
- data/knife-vcair.gemspec +1 -1
- data/lib/chef/knife/cloud/vcair_service.rb +3 -2
- data/lib/chef/knife/cloud/vcair_service_options.rb +7 -2
- data/lib/knife-vcair/version.rb +1 -1
- metadata +13 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 199066f3714ad9369bf2d91bb8e4ac713a3c79fa
|
4
|
+
data.tar.gz: 8ad35c187f1daa6d90c52199a2f3a5642377fee8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 634f1a0bfd8af10368833a76caa22daa54c79558fc1669994956252aaf01a73d726c27162f858b99f9c33b4c5b23fd287d350ec0ba707193cd5697af16175e90
|
7
|
+
data.tar.gz: 4ab56fa22e838aa95f10c009633d12e365756feb8ed7928a72a70771aa68a134d97ed7ef6e8d1ab966f40f9fdddb29fd56aa14ab6e05959159a170bb843164f5
|
data/README.md
CHANGED
@@ -7,19 +7,6 @@ Please refer to the [CHANGELOG](CHANGELOG.md) for version history and known issu
|
|
7
7
|
|
8
8
|
# Installation #
|
9
9
|
|
10
|
-
## Current Source Build Instructions: ##
|
11
|
-
|
12
|
-
Then build and install this gem, run:
|
13
|
-
|
14
|
-
$ gem build knife-vcair.gemspec
|
15
|
-
$ gem install knife-vcair-0.6.X.gem
|
16
|
-
|
17
|
-
or if you are using the Chef Development Kit (Chef DK), to install it run:
|
18
|
-
|
19
|
-
$ chef gem install knife-vcair-0.X.0.gem
|
20
|
-
|
21
|
-
## Future Rubygems Instructions: ##
|
22
|
-
|
23
10
|
This plugin is distributed as a Ruby Gem. To install it, run:
|
24
11
|
|
25
12
|
$ gem install knife-vcair
|
@@ -43,12 +30,12 @@ easiest way to accomplish this is to create these entries in your
|
|
43
30
|
If your knife.rb file will be checked into a SCM system (ie readable
|
44
31
|
by others) you may want to read the values from environment variables.
|
45
32
|
|
46
|
-
knife[:vcair_api_host] =
|
47
|
-
knife[:vcair_username] =
|
48
|
-
knife[:vcair_password] =
|
49
|
-
knife[:vcair_org] =
|
33
|
+
knife[:vcair_api_host] = ENV['VCAIR_API_URL']
|
34
|
+
knife[:vcair_username] = ENV['VCAIR_USERNAME']
|
35
|
+
knife[:vcair_password] = ENV['VCAIR_PASSWORD']
|
36
|
+
knife[:vcair_org] = ENV['VCAIR_ORG']
|
50
37
|
|
51
|
-
## VMware
|
38
|
+
## VMware vCloud Air - Subscription ##
|
52
39
|
|
53
40
|
If you are using VMware's hosted vcair the API URL is found by logging
|
54
41
|
into the https://vchs.vmware.com, and clicking on your Dashboard's
|
@@ -65,6 +52,22 @@ https://vchs.vmware.com login, giving us the values:
|
|
65
52
|
knife[:vcair_password] = 'VCAIRSECRET'
|
66
53
|
knife[:vcair_org] = 'M511664989-4904'
|
67
54
|
|
55
|
+
## VMware vCloud Air - OnDemand ##
|
56
|
+
|
57
|
+
Your Org ID is commonly a UUID-formatted string and can be found in the URL
|
58
|
+
after you log in to vCloud Air OnDemand (for example:
|
59
|
+
https://us-virginia-1-4....?orgName=SOME_UUID_HERE) or it will be displayed
|
60
|
+
next to your name in the upper-left corner of the vCloud Director web UI. You
|
61
|
+
can also ascertain your Org ID by following [these instructions](http://pubs.vmware.com/vca/index.jsp#com.vmware.vcloud.api.tenant.doc_511/GUID-D902143B-CF49-4508-99CA-2715B448F5E8.html).
|
62
|
+
|
63
|
+
Additionally, you will need to override the API path as the API path between
|
64
|
+
the subscription service and the OnDemand service are different. You will need
|
65
|
+
to set the following entry in your `knife.rb` file:
|
66
|
+
|
67
|
+
knife[:vcair_api_path] = '/api/compute/api'
|
68
|
+
|
69
|
+
... or you may pass it in on the CLI using `--vcair-api-path`.
|
70
|
+
|
68
71
|
# knife vcair subcommands #
|
69
72
|
|
70
73
|
This plugin provides the following Knife subcommands. Specific command
|
data/knife-vcair.gemspec
CHANGED
@@ -8,7 +8,7 @@ Gem::Specification.new do |s|
|
|
8
8
|
s.platform = Gem::Platform::RUBY
|
9
9
|
s.has_rdoc = true
|
10
10
|
s.extra_rdoc_files = ["README.md", "LICENSE" ]
|
11
|
-
s.authors = ["Matt Ray", "Chris McClimans", "Taylor Carpenter", "Wavell Watson", "
|
11
|
+
s.authors = ["Matt Ray", "Chris McClimans", "Taylor Carpenter", "Wavell Watson", "Seth Thomas"]
|
12
12
|
s.email = ["matt@chef.io", "wolfpack@vulk.co", "sthomas@chef.io"]
|
13
13
|
s.homepage = "https://github.com/chef-partners/knife-vcair"
|
14
14
|
s.summary = %q{VMware vcair support for Chef's Knife command}
|
@@ -27,6 +27,7 @@ class Chef
|
|
27
27
|
Chef::Log.debug("vcair_username #{Chef::Config[:knife][:vcair_username]}")
|
28
28
|
Chef::Log.debug("vcair_org #{Chef::Config[:knife][:vcair_org]}")
|
29
29
|
Chef::Log.debug("vcair_api_host #{Chef::Config[:knife][:vcair_api_host]}")
|
30
|
+
Chef::Log.debug("vcair_api_path #{Chef::Config[:knife][:vcair_api_path]}")
|
30
31
|
Chef::Log.debug("vcair_api_version #{Chef::Config[:knife][:vcair_api_version]}")
|
31
32
|
Chef::Log.debug("vcair_show_progress #{Chef::Config[:knife][:vcair_show_progress]}")
|
32
33
|
|
@@ -42,7 +43,8 @@ class Chef
|
|
42
43
|
:vcloud_director_password => Chef::Config[:knife][:vcair_password],
|
43
44
|
:vcloud_director_host => Chef::Config[:knife][:vcair_api_host],
|
44
45
|
:vcloud_director_api_version => Chef::Config[:knife][:vcair_api_version],
|
45
|
-
:vcloud_director_show_progress => false
|
46
|
+
:vcloud_director_show_progress => false,
|
47
|
+
:path => Chef::Config[:knife][:vcair_api_path]
|
46
48
|
}
|
47
49
|
}))
|
48
50
|
end
|
@@ -50,7 +52,6 @@ class Chef
|
|
50
52
|
def add_api_endpoint
|
51
53
|
@auth_params.merge!({:vcair_api_host => Chef::Config[:knife][:vcair_api_host]}) unless Chef::Config[:knife][:api_endpoint].nil?
|
52
54
|
end
|
53
|
-
|
54
55
|
end
|
55
56
|
end
|
56
57
|
end
|
@@ -39,7 +39,12 @@ class Chef
|
|
39
39
|
:long => "--vcair-api-host HOST",
|
40
40
|
:description => "The VCAIR API endpoint",
|
41
41
|
:proc => Proc.new { |u| Chef::Config[:knife][:vcair_api_host] = u }
|
42
|
-
|
42
|
+
|
43
|
+
option :vcair_api_path,
|
44
|
+
:long => '--vcair-api-path PATH',
|
45
|
+
:description => 'The API service endpoint path, if different from the default "/api"',
|
46
|
+
:proc => Proc.new { |path| Chef::Config[:knife][:vcair_api_path] = path}
|
47
|
+
|
43
48
|
option :vcair_org,
|
44
49
|
:short => "-O ORG",
|
45
50
|
:long => "--vcair-org ORG",
|
@@ -68,7 +73,7 @@ class Chef
|
|
68
73
|
:long => "--vcair-show-progress BOOL",
|
69
74
|
:description => "Show VCAIR API Progress",
|
70
75
|
:default => false
|
71
|
-
|
76
|
+
|
72
77
|
end
|
73
78
|
end
|
74
79
|
end
|
data/lib/knife-vcair/version.rb
CHANGED
metadata
CHANGED
@@ -1,18 +1,18 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: knife-vcair
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.7.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Matt Ray
|
8
8
|
- Chris McClimans
|
9
9
|
- Taylor Carpenter
|
10
10
|
- Wavell Watson
|
11
|
-
-
|
11
|
+
- Seth Thomas
|
12
12
|
autorequire:
|
13
13
|
bindir: bin
|
14
14
|
cert_chain: []
|
15
|
-
date: 2015-
|
15
|
+
date: 2015-08-12 00:00:00.000000000 Z
|
16
16
|
dependencies:
|
17
17
|
- !ruby/object:Gem::Dependency
|
18
18
|
name: fog
|
@@ -250,8 +250,16 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
250
250
|
version: '0'
|
251
251
|
requirements: []
|
252
252
|
rubyforge_project:
|
253
|
-
rubygems_version: 2.
|
253
|
+
rubygems_version: 2.4.4
|
254
254
|
signing_key:
|
255
255
|
specification_version: 4
|
256
256
|
summary: VMware vcair support for Chef's Knife command
|
257
|
-
test_files:
|
257
|
+
test_files:
|
258
|
+
- spec/integration/config/knife.rb
|
259
|
+
- spec/integration/config/validation.pem
|
260
|
+
- spec/integration/vchs_spec.rb
|
261
|
+
- spec/spec_helper.rb
|
262
|
+
- spec/unit/lib/chef/knife/vcair_server_create_spec.rb
|
263
|
+
- spec/utils/knifeutils.rb
|
264
|
+
- spec/utils/matchers.rb
|
265
|
+
has_rdoc: true
|