knife-bluebox 0.6.0 → 0.6.1
Sign up to get free protection for your applications and to get access to all the features.
@@ -6,9 +6,9 @@
|
|
6
6
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
7
7
|
# you may not use this file except in compliance with the License.
|
8
8
|
# You may obtain a copy of the License at
|
9
|
-
#
|
9
|
+
#
|
10
10
|
# http://www.apache.org/licenses/LICENSE-2.0
|
11
|
-
#
|
11
|
+
#
|
12
12
|
# Unless required by applicable law or agreed to in writing, software
|
13
13
|
# distributed under the License is distributed on an "AS IS" BASIS,
|
14
14
|
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
@@ -95,7 +95,7 @@ class Chef
|
|
95
95
|
|
96
96
|
def run
|
97
97
|
$stdout.sync = true
|
98
|
-
|
98
|
+
|
99
99
|
if Chef::Config[:knife][:identity_file].nil? && config[:identity_file].nil?
|
100
100
|
ui.error('You have not provided a SSH identity file. This is required to create a Blue Box server.')
|
101
101
|
exit 1
|
@@ -103,7 +103,7 @@ class Chef
|
|
103
103
|
public_key = File.read(Chef::Config[:knife][:identity_file]).chomp
|
104
104
|
else public_key = File.read(config[:identity_file]).chomp
|
105
105
|
end
|
106
|
-
|
106
|
+
|
107
107
|
bluebox = Fog::Compute::Bluebox.new(
|
108
108
|
:bluebox_customer_id => Chef::Config[:knife][:bluebox_customer_id],
|
109
109
|
:bluebox_api_key => Chef::Config[:knife][:bluebox_api_key]
|
@@ -166,7 +166,7 @@ class Chef
|
|
166
166
|
bootstrap = Chef::Knife::Bootstrap.new
|
167
167
|
bootstrap.name_args = [ server.ips[0]['address'] ]
|
168
168
|
bootstrap.config[:run_list] = @name_args
|
169
|
-
bootstrap.config[:password] = password unless config[:password].
|
169
|
+
bootstrap.config[:password] = password unless config[:password].empty?
|
170
170
|
bootstrap.config[:ssh_user] = config[:username]
|
171
171
|
bootstrap.config[:identity_file] = config[:identity_file]
|
172
172
|
bootstrap.config[:chef_node_name] = config[:chef_node_name] || server.hostname
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: knife-bluebox
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.6.
|
4
|
+
version: 0.6.1
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -10,11 +10,11 @@ authors:
|
|
10
10
|
autorequire:
|
11
11
|
bindir: bin
|
12
12
|
cert_chain: []
|
13
|
-
date: 2012-
|
13
|
+
date: 2012-09-28 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: chef
|
17
|
-
requirement:
|
17
|
+
requirement: !ruby/object:Gem::Requirement
|
18
18
|
none: false
|
19
19
|
requirements:
|
20
20
|
- - ! '>='
|
@@ -22,10 +22,15 @@ dependencies:
|
|
22
22
|
version: 0.9.14
|
23
23
|
type: :runtime
|
24
24
|
prerelease: false
|
25
|
-
version_requirements:
|
25
|
+
version_requirements: !ruby/object:Gem::Requirement
|
26
|
+
none: false
|
27
|
+
requirements:
|
28
|
+
- - ! '>='
|
29
|
+
- !ruby/object:Gem::Version
|
30
|
+
version: 0.9.14
|
26
31
|
- !ruby/object:Gem::Dependency
|
27
32
|
name: fog
|
28
|
-
requirement:
|
33
|
+
requirement: !ruby/object:Gem::Requirement
|
29
34
|
none: false
|
30
35
|
requirements:
|
31
36
|
- - ~>
|
@@ -33,7 +38,12 @@ dependencies:
|
|
33
38
|
version: 1.1.2
|
34
39
|
type: :runtime
|
35
40
|
prerelease: false
|
36
|
-
version_requirements:
|
41
|
+
version_requirements: !ruby/object:Gem::Requirement
|
42
|
+
none: false
|
43
|
+
requirements:
|
44
|
+
- - ~>
|
45
|
+
- !ruby/object:Gem::Version
|
46
|
+
version: 1.1.2
|
37
47
|
description: Blue Box support for Chef's Knife command
|
38
48
|
email: support@bluebox.net
|
39
49
|
executables: []
|
@@ -69,7 +79,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
69
79
|
version: '0'
|
70
80
|
requirements: []
|
71
81
|
rubyforge_project:
|
72
|
-
rubygems_version: 1.8.
|
82
|
+
rubygems_version: 1.8.24
|
73
83
|
signing_key:
|
74
84
|
specification_version: 3
|
75
85
|
summary: Blue Box support for Chef's Knife command
|