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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 49df83d788f0a9af86cda7d1315148301d25a8b6
4
- data.tar.gz: d1b121f29a59c8d46bb9526ee4626aa2cb4ece7b
3
+ metadata.gz: 8a5f09710336f43f39cf4c6265ce3f586c6f82ac
4
+ data.tar.gz: 854c35c78538ce9aa3f78dbdfca8ec95117c8afc
5
5
  SHA512:
6
- metadata.gz: 9846f994432e915791d3fb7932530bee6ae3f55b71f432b9e82c9f5dba841ca9830643e307a33f86e43a1234b762a17e248aa5ffa3c313ab1735432750eb16ef
7
- data.tar.gz: 4236056d5bc84ba75a6b4735f70f763c1991cfea25e443d4e64590de93c79aace6da286261dc2063226807250e45ab3ec0369a8f6e6093b35c569b7361cfe47d
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.1.0 (2015-12-07)
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
@@ -1,6 +1,8 @@
1
1
  require 'bundler/gem_tasks'
2
2
  require 'rspec/core/rake_task'
3
+ require 'rubocop/rake_task'
3
4
 
4
5
  RSpec::Core::RakeTask.new(:spec)
6
+ RuboCop::RakeTask.new(:style)
5
7
 
6
- task default: :spec
8
+ task default: [ :spec, :style ]
@@ -25,4 +25,5 @@ Gem::Specification.new do |spec|
25
25
 
26
26
  spec.add_development_dependency 'bundler', '~> 1.7'
27
27
  spec.add_development_dependency 'rake', '~> 10.0'
28
+ spec.add_development_dependency 'rubocop', '~> 0.35'
28
29
  end
@@ -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',
@@ -17,5 +17,5 @@
17
17
  #
18
18
 
19
19
  module KnifeOracleCloud
20
- VERSION = '1.1.0'
20
+ VERSION = '1.2.0'
21
21
  end
@@ -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.1.0
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-07 00:00:00.000000000 Z
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