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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 9783b50b32ad22099bd01c21caa5cceca1717a28
4
- data.tar.gz: e40480ac878ead9a2606bbe1e2f189d2347acc70
3
+ metadata.gz: e0ce7a89fa94074b99581849fae1bed30bd50e4b
4
+ data.tar.gz: 3b30a036cabd845e029038e553c5c2433371d164
5
5
  SHA512:
6
- metadata.gz: 42e5db01915d4693be9301d05b6ec80c6d2a337526ad2af145b7366ea9bb7caf2e51bd447cd38eafe3fd95a82ac08c8069201ab7a9fcbd39754af0f38820954c
7
- data.tar.gz: cf73a2525989a2dc5a16a6706f694c83f42e6d81f6a0be9d45b443ae2dd4f627513b4843c219458299ba4cf5b3677ac35c356d33f7700ad3cf1dbb6ab2feea66
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'])
@@ -1,6 +1,6 @@
1
1
  module Knife
2
2
  module Cloudstack
3
- VERSION = "0.6.0"
3
+ VERSION = "0.7.0.pre"
4
4
  MAJOR, MINOR, TINY = VERSION.split('.')
5
5
  end
6
6
  end
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.6.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-08-18 00:00:00.000000000 Z
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'
23
+ version: '1.24'
24
24
  - - ">="
25
25
  - !ruby/object:Gem::Version
26
- version: 1.23.0
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.23'
33
+ version: '1.24'
34
34
  - - ">="
35
35
  - !ruby/object:Gem::Version
36
- version: 1.23.0
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: '0'
130
+ version: 1.3.1
131
131
  requirements: []
132
132
  rubyforge_project:
133
- rubygems_version: 2.2.1
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