knife-oraclecloud 1.1.0 → 1.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.travis.yml +19 -0
- data/CHANGELOG.md +3 -1
- data/README.md +12 -0
- data/Rakefile +3 -1
- data/knife-oraclecloud.gemspec +1 -0
- data/lib/chef/knife/cloud/oraclecloud_service.rb +3 -1
- data/lib/chef/knife/cloud/oraclecloud_service_helpers.rb +1 -0
- data/lib/chef/knife/cloud/oraclecloud_service_options.rb +6 -0
- data/lib/knife-oraclecloud/version.rb +1 -1
- data/spec/unit/cloud/oraclecloud_service_helpers_spec.rb +2 -0
- metadata +17 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8a5f09710336f43f39cf4c6265ce3f586c6f82ac
|
4
|
+
data.tar.gz: 854c35c78538ce9aa3f78dbdfca8ec95117c8afc
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c0e1377013cd712f9bd5e7062d78f2ef62fee2d55c1dec6d49609dfbff901f4641a6a6f168a9a2d2481675b56c4770fff44029b1aeff3360413d4cc374e02027
|
7
|
+
data.tar.gz: 9c46f5d060b6ee32b9cc99cad405ff168ebcd9e045c250ce0350bc399e7589c212cfe972c15b92655acc60536c4b7125b94925928914014c63f6e5ba48a8a60b
|
data/.travis.yml
ADDED
@@ -0,0 +1,19 @@
|
|
1
|
+
language: ruby
|
2
|
+
cache: bundler
|
3
|
+
sudo: false
|
4
|
+
|
5
|
+
rvm:
|
6
|
+
- 2.0.0
|
7
|
+
- 2.1
|
8
|
+
- 2.2
|
9
|
+
|
10
|
+
branches:
|
11
|
+
only:
|
12
|
+
- master
|
13
|
+
|
14
|
+
notifications:
|
15
|
+
slack:
|
16
|
+
on_success: change
|
17
|
+
on_failure: always
|
18
|
+
rooms:
|
19
|
+
secure: iESaLLqy5RK9os0fB83vXF0DgmMaWE8/tuhEg6rL6m2YlHq+mHwT5Hoc+YIFHbzl4PXS07i99ICFpGiUXuyHSn0jrNrI4z4BRA+3EZ+DLmhHGis3znWZJ1SxrCjYCZazj0SFG49mwaZjeggQNafPm/++sqzVVI5zJuLx+92Dwuztr4sa20Oa2UOKtCsgkNojmNwTKNqlN+bh+/pX7IH5rVUDMkd3k8Sdrd8Jk0AblztGvXJO/Sn+L6Ud9NAb38bVkC7Pw8Zows6Icw4ioCIwH4tl/AI6NwfvHJu33UqoEZu/8aBkSvgjGi+hTaztcwK9xMpK70AZlYEqNS4bVTAw/otAbw+xnqWUQfL3Kc2MjSpxdiLDXhELtV9jV/VlnDwX3L79B0sICKFdcLHrG8I4tMgCDxYTNjUHY+UcccHrPsYwXn01lkCc6Pa7LZnCqS69/2vVfdb8i2LOaEvMvj9uLeeADu2EHeqM0VV1Y58dRCef7Ls8cOiOZEqghG24H1Cu26vHKamLUMZu0ctYOOmxGP159j1iwCkygb2k10BXTGdFuMch3GE3RfwaPFk8UZoY+0tQNP5OGiHhhLyLo16yxXQuDyHq5kkSMuhT/34kdY2cZuJAi8U79YJkNb29CGPUeBJ1QqXulYg/xPKW03FBWxpbkPjdPr9WTbpMGOlhBwc=
|
data/CHANGELOG.md
CHANGED
@@ -1,7 +1,9 @@
|
|
1
1
|
# knife-oraclecloud
|
2
2
|
|
3
|
-
## v1.
|
3
|
+
## v1.2.0 (2015-12-22)
|
4
|
+
* [pr#3](https://github.com/chef-partners/knife-oraclecloud/pull/3) Adding support for private cloud deployments
|
4
5
|
|
6
|
+
## v1.1.0 (2015-12-07)
|
5
7
|
* [pr#2](https://github.com/chef-partners/knife-oraclecloud/pull/2) Updated identity domain method calls to match recent changes in the underlying Oracle Cloud client library
|
6
8
|
|
7
9
|
## v1.0.0 (2015-10-15)
|
data/README.md
CHANGED
@@ -40,6 +40,18 @@ knife[:oraclecloud_domain] = 'my_identity_domain'
|
|
40
40
|
knife oraclecloud command --oraclecloud-username myuser ...
|
41
41
|
```
|
42
42
|
|
43
|
+
### Using with a Oracle Cloud private cloud endpoint
|
44
|
+
|
45
|
+
If you are running a deployment of Oracle Cloud behind your firewall, you need to indicate that the API endpoint is a private cloud endpoint. This is required due to the differences in how the identity domain is used in their public cloud vs. their private cloud.
|
46
|
+
|
47
|
+
To indicate you are using a private cloud, set the following in your knife.rb:
|
48
|
+
|
49
|
+
```ruby
|
50
|
+
knife[:oraclecloud_private_cloud] = true
|
51
|
+
```
|
52
|
+
|
53
|
+
... or simply pass `--oraclecloud-private-cloud` on the CLI.
|
54
|
+
|
43
55
|
## Usage
|
44
56
|
|
45
57
|
### knife oraclecloud server create (options)
|
data/Rakefile
CHANGED
data/knife-oraclecloud.gemspec
CHANGED
@@ -40,6 +40,7 @@ class Chef
|
|
40
40
|
@verify_ssl = options[:verify_ssl]
|
41
41
|
@wait_time = options[:wait_time]
|
42
42
|
@refresh_time = options[:refresh_time]
|
43
|
+
@private_cloud = options[:private_cloud]
|
43
44
|
end
|
44
45
|
|
45
46
|
def connection
|
@@ -48,7 +49,8 @@ class Chef
|
|
48
49
|
identity_domain: @identity_domain,
|
49
50
|
username: @username,
|
50
51
|
password: @password,
|
51
|
-
verify_ssl: @verify_ssl
|
52
|
+
verify_ssl: @verify_ssl,
|
53
|
+
private_cloud: @private_cloud
|
52
54
|
)
|
53
55
|
end
|
54
56
|
|
@@ -27,6 +27,7 @@ class Chef
|
|
27
27
|
identity_domain: locate_config_value(:oraclecloud_domain),
|
28
28
|
wait_time: locate_config_value(:wait_time),
|
29
29
|
refresh_time: locate_config_value(:request_refresh_rate),
|
30
|
+
private_cloud: locate_config_value(:oraclecloud_private_cloud),
|
30
31
|
verify_ssl: verify_ssl?)
|
31
32
|
end
|
32
33
|
|
@@ -45,6 +45,12 @@ class Chef
|
|
45
45
|
boolean: true,
|
46
46
|
default: false
|
47
47
|
|
48
|
+
option :oraclecloud_private_cloud,
|
49
|
+
long: '--oraclecloud-private-cloud',
|
50
|
+
description: 'Indicate the --oraclecloud-api-url is a private cloud endpoint',
|
51
|
+
boolean: true,
|
52
|
+
default: false
|
53
|
+
|
48
54
|
option :request_refresh_rate,
|
49
55
|
long: '--request-refresh-rate SECS',
|
50
56
|
description: 'Number of seconds to sleep between each check of the request status, defaults to 2',
|
@@ -41,6 +41,7 @@ describe 'Chef::Knife::Cloud::OraclecloudServiceHelpers' do
|
|
41
41
|
allow(tester).to receive(:locate_config_value).with(:oraclecloud_domain).and_return('test_domain')
|
42
42
|
allow(tester).to receive(:locate_config_value).with(:wait_time).and_return(300)
|
43
43
|
allow(tester).to receive(:locate_config_value).with(:request_refresh_rate).and_return(5)
|
44
|
+
allow(tester).to receive(:locate_config_value).with(:oraclecloud_private_cloud).and_return(false)
|
44
45
|
allow(tester).to receive(:verify_ssl?).and_return(true)
|
45
46
|
|
46
47
|
expect(Chef::Knife::Cloud::OraclecloudService).to receive(:new)
|
@@ -50,6 +51,7 @@ describe 'Chef::Knife::Cloud::OraclecloudServiceHelpers' do
|
|
50
51
|
identity_domain: 'test_domain',
|
51
52
|
wait_time: 300,
|
52
53
|
refresh_time: 5,
|
54
|
+
private_cloud: false,
|
53
55
|
verify_ssl: true)
|
54
56
|
|
55
57
|
tester.create_service_instance
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: knife-oraclecloud
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.2.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Chef Partner Engineering
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-12-
|
11
|
+
date: 2015-12-22 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: chef
|
@@ -80,6 +80,20 @@ dependencies:
|
|
80
80
|
- - "~>"
|
81
81
|
- !ruby/object:Gem::Version
|
82
82
|
version: '10.0'
|
83
|
+
- !ruby/object:Gem::Dependency
|
84
|
+
name: rubocop
|
85
|
+
requirement: !ruby/object:Gem::Requirement
|
86
|
+
requirements:
|
87
|
+
- - "~>"
|
88
|
+
- !ruby/object:Gem::Version
|
89
|
+
version: '0.35'
|
90
|
+
type: :development
|
91
|
+
prerelease: false
|
92
|
+
version_requirements: !ruby/object:Gem::Requirement
|
93
|
+
requirements:
|
94
|
+
- - "~>"
|
95
|
+
- !ruby/object:Gem::Version
|
96
|
+
version: '0.35'
|
83
97
|
description: Knife plugin to interact with Oracle Cloud.
|
84
98
|
email:
|
85
99
|
- partnereng@chef.io
|
@@ -90,6 +104,7 @@ files:
|
|
90
104
|
- ".gitignore"
|
91
105
|
- ".rspec"
|
92
106
|
- ".rubocop.yml"
|
107
|
+
- ".travis.yml"
|
93
108
|
- CHANGELOG.md
|
94
109
|
- Gemfile
|
95
110
|
- LICENSE.txt
|