knife-cloudstack 0.0.18 → 0.0.19

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,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- NDExMjBmZjJkYTYxMzBlN2RiZmM0ZTFmMTg1YTgyMWEwN2UwNDljYg==
4
+ ZDIyMTZlZjRjY2UwM2QzYjJjYzE2NGZhOGY4NmM4MTNkMWJiYjVkMw==
5
5
  data.tar.gz: !binary |-
6
- ZDZkMDBkOTQyNjY5OTJlZGU1NTBiNjUxNmY5YjZkMmU1Mzg0NzdmMg==
6
+ NTIzMmNlYzhmMDEwOTc3NzgyN2I1MDdjODRjOWZhNDg3OGUxMzEzOA==
7
7
  SHA512:
8
8
  metadata.gz: !binary |-
9
- YTIyMjZhNmE2ZjQwNjI2OTcwN2U0M2JkYzA3MDJmNjIwZDdjNzk4ZmJiMmVi
10
- Mjk1ODM0ZDU5ZDZlN2U3ZDAzMjdlOWExMDFlYjBjOTA0NDVjNDE0YjU5ZTBk
11
- ZTVkODZlZmZlYjM0ZWJhMDM3OTQwYmYzYTFiZGViNzRjYTNmYzE=
9
+ NGI3YmZjYTA4NGFiMzM0MWNiMWZkNjY5YWIwZGRjZWE2YzdiMThhNTQzYzMz
10
+ YzNhOWNiYzVlNjNkNjA1NTBlZDEyYmI3NTFjZmNkYzY4MjIyYzYzNWY2NzRm
11
+ YzQ3MzNiMmM5NzllYzlkYWNmYTJjNjE3ZWFmNjc0NmFjN2UxZGQ=
12
12
  data.tar.gz: !binary |-
13
- NmE4YzFiOWJiYTUzNDk0MjQ0OTkxNTExNDYyNGEyNjJjYTFlMTdhNjM1NDdl
14
- NDFhYmE1ZjJmNjdjZjliYzUyODdkZjUwYThhMTQ3MTU3MGQ0ZDNhZWUxMzdh
15
- MDk2OGI2NjMzYTU3YWYwMGJlZWJlZjU0YzZjNTQ5YjMwNjNhZGE=
13
+ YmE3ZWM1YjdkY2EyMGQzNGY2Njg3NGY4NzExOTUzYWE3NzYwMjU4ZDM2N2Ew
14
+ ZWYyNzNkY2U2ZjM2NzVkZTBiNDA1NzExMTBhNmI3NTg1MDE1NmZlZjExNGEy
15
+ YmEzZGFhMGQ5ZTVhZDJkYmY2NGQxYjA5YTZiMzI1MjllNmZhOWM=
data/CHANGES.rdoc CHANGED
@@ -1,4 +1,7 @@
1
1
  = Changes
2
+ == 2015-03-19 (0.0.19)
3
+ * Added support for --boostrap-proxy for <tt>cs server create</tt> (Rutger Te Nijenhuis 19 Feb 2015)
4
+ * Bugfix: no implicit conversion of String into Integer error, if no Nic present (Frank Louwers 19 Mar 2015)
2
5
 
3
6
  == 2014-12-29 (0.0.18)
4
7
  * Chef 12 has been released and installation of the plugin fails on certain components while it tries to install the latest chef-gem.
@@ -235,13 +235,18 @@ module KnifeCloudstack
235
235
  :description => "Set the same server display name as Chef node name.",
236
236
  :boolean => true,
237
237
  :default => false
238
+
239
+ option :bootstrap_proxy,
240
+ :long => "--bootstrap-proxy PROXY_URL",
241
+ :description => "The proxy server for the node being bootstrapped",
242
+ :proc => Proc.new { |p| Chef::Config[:knife][:bootstrap_proxy] = p }
243
+
238
244
 
239
245
  option :bootstrap_wget_options,
240
246
  :long => "--bootstrap-wget-options OPTIONS",
241
247
  :description => "Add options to wget when installing chef-client",
242
248
  :proc => Proc.new { |wo| Chef::Config[:knife][:bootstrap_wget_options] = wo }
243
249
 
244
-
245
250
  def run
246
251
  validate_base_options
247
252
 
@@ -616,6 +621,7 @@ module KnifeCloudstack
616
621
  bootstrap.config[:first_boot_attributes] = locate_config_value(:first_boot_attributes)
617
622
  bootstrap.config[:environment] = locate_config_value(:environment)
618
623
  bootstrap.config[:bootstrap_wget_options] = locate_config_value(:bootstrap_wget_options)
624
+ bootstrap.config[:bootstrap_proxy] = locate_config_value(:bootstrap_proxy)
619
625
  bootstrap
620
626
  end
621
627
 
@@ -114,6 +114,9 @@ module CloudstackClient
114
114
  if ip_addr
115
115
  return ip_addr['ipaddress']
116
116
  end
117
+ if nic.empty?
118
+ return []
119
+ end
117
120
  nic['ipaddress'] || []
118
121
  end
119
122
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: knife-cloudstack
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.18
4
+ version: 0.0.19
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ryan Holmes
@@ -12,7 +12,7 @@ authors:
12
12
  autorequire:
13
13
  bindir: bin
14
14
  cert_chain: []
15
- date: 2014-12-29 00:00:00.000000000 Z
15
+ date: 2015-03-19 00:00:00.000000000 Z
16
16
  dependencies:
17
17
  - !ruby/object:Gem::Dependency
18
18
  name: chef
@@ -106,7 +106,8 @@ files:
106
106
  - lib/chef/knife/cs_project_list.rb
107
107
  - lib/knife-cloudstack/connection.rb
108
108
  homepage: http://cloudstack.org/
109
- licenses: []
109
+ licenses:
110
+ - Apache 2.0
110
111
  metadata: {}
111
112
  post_install_message:
112
113
  rdoc_options: []