knife-cloudstack-fog 0.6.0 → 0.7.0.pre
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/lib/chef/knife/cloudstack_server_create.rb +20 -0
- data/lib/knife-cloudstack-fog/version.rb +1 -1
- metadata +9 -9
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: e0ce7a89fa94074b99581849fae1bed30bd50e4b
|
|
4
|
+
data.tar.gz: 3b30a036cabd845e029038e553c5c2433371d164
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: ef0d0a7c4db9d2ec8748e5b6cba75a25373731d69d60dca9523cf3706f795191a078fa1ef50cd57b7941ff2f5ed3a3913f2bed4b7ea6639c002ac8fdb0e95e7e
|
|
7
|
+
data.tar.gz: 637879d26730e410d31c218ee1549e39e689ae828bf8e131a174ead1ac68cd59b602be6303616f63e3be335e95a17548479e191016b47662ef30cff4b0107c36
|
|
@@ -158,6 +158,17 @@ class Chef
|
|
|
158
158
|
:long => "--hypervisor HYPERVISOR",
|
|
159
159
|
:description => "the hypervisor on which to deploy the virtual machine",
|
|
160
160
|
:default => nil
|
|
161
|
+
|
|
162
|
+
|
|
163
|
+
option :secret_file,
|
|
164
|
+
:long => "--secret-file FILE",
|
|
165
|
+
:description => "the path to the file that contains the encryption key",
|
|
166
|
+
:default => nil
|
|
167
|
+
|
|
168
|
+
option :use_primary_network,
|
|
169
|
+
:long => "--use-primary-network",
|
|
170
|
+
:description => "use the first network in networkids to connect",
|
|
171
|
+
:default => nil
|
|
161
172
|
|
|
162
173
|
# def bootstrap_for_node(host, user, password)
|
|
163
174
|
def bootstrap_for_node(server, ssh_host)
|
|
@@ -181,6 +192,7 @@ class Chef
|
|
|
181
192
|
bootstrap.config[:use_sudo] = true
|
|
182
193
|
bootstrap.config[:template_file] = locate_config_value(:template_file)
|
|
183
194
|
bootstrap.config[:environment] = config[:environment]
|
|
195
|
+
bootstrap.config[:secret_file] = locate_config_value(:secret_file)
|
|
184
196
|
# may be needed for vpc_mode
|
|
185
197
|
bootstrap.config[:no_host_key_verify] = config[:no_host_key_verify]
|
|
186
198
|
begin
|
|
@@ -438,6 +450,14 @@ class Chef
|
|
|
438
450
|
if @server['nic'].size > 0
|
|
439
451
|
@primary_ip = @server['nic'].first['ipaddress']
|
|
440
452
|
end
|
|
453
|
+
# if the instance has multiple interfaces, use one within first network
|
|
454
|
+
# ID specified by --networkids. this is an annoying bug in cs 2.2.x.
|
|
455
|
+
# it returns an array of NICs but the order is random.
|
|
456
|
+
if locate_config_value(:use_primary_network) != nil && ! locate_config_value(:cloudstack_networkids).empty?
|
|
457
|
+
primary_networkid = locate_config_value(:cloudstack_networkids).first
|
|
458
|
+
possible_nics = @server['nic'].select { |x| x['networkid'] == primary_networkid.to_i }
|
|
459
|
+
@primary_ip = possible_nics.first['ipaddress']
|
|
460
|
+
end
|
|
441
461
|
|
|
442
462
|
if locate_config_value(:random_ssh_port) != nil
|
|
443
463
|
public_ips = connection.list_public_ip_addresses("associatednetworkid" => @server['nic'][0]['networkid'])
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: knife-cloudstack-fog
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.
|
|
4
|
+
version: 0.7.0.pre
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Chirag Jog (chiragjog)
|
|
@@ -12,7 +12,7 @@ authors:
|
|
|
12
12
|
autorequire:
|
|
13
13
|
bindir: bin
|
|
14
14
|
cert_chain: []
|
|
15
|
-
date: 2014-
|
|
15
|
+
date: 2014-10-09 00:00:00.000000000 Z
|
|
16
16
|
dependencies:
|
|
17
17
|
- !ruby/object:Gem::Dependency
|
|
18
18
|
name: fog
|
|
@@ -20,20 +20,20 @@ dependencies:
|
|
|
20
20
|
requirements:
|
|
21
21
|
- - "~>"
|
|
22
22
|
- !ruby/object:Gem::Version
|
|
23
|
-
version: '1.
|
|
23
|
+
version: '1.24'
|
|
24
24
|
- - ">="
|
|
25
25
|
- !ruby/object:Gem::Version
|
|
26
|
-
version: 1.
|
|
26
|
+
version: 1.24.0
|
|
27
27
|
type: :runtime
|
|
28
28
|
prerelease: false
|
|
29
29
|
version_requirements: !ruby/object:Gem::Requirement
|
|
30
30
|
requirements:
|
|
31
31
|
- - "~>"
|
|
32
32
|
- !ruby/object:Gem::Version
|
|
33
|
-
version: '1.
|
|
33
|
+
version: '1.24'
|
|
34
34
|
- - ">="
|
|
35
35
|
- !ruby/object:Gem::Version
|
|
36
|
-
version: 1.
|
|
36
|
+
version: 1.24.0
|
|
37
37
|
- !ruby/object:Gem::Dependency
|
|
38
38
|
name: chef
|
|
39
39
|
requirement: !ruby/object:Gem::Requirement
|
|
@@ -125,12 +125,12 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
|
125
125
|
version: '0'
|
|
126
126
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
127
127
|
requirements:
|
|
128
|
-
- - "
|
|
128
|
+
- - ">"
|
|
129
129
|
- !ruby/object:Gem::Version
|
|
130
|
-
version:
|
|
130
|
+
version: 1.3.1
|
|
131
131
|
requirements: []
|
|
132
132
|
rubyforge_project:
|
|
133
|
-
rubygems_version: 2.2.
|
|
133
|
+
rubygems_version: 2.2.2
|
|
134
134
|
signing_key:
|
|
135
135
|
specification_version: 4
|
|
136
136
|
summary: Cloudstack Compute Support for Chef's Knife Command
|