knife-linode 0.3.0 → 0.3.1

Sign up to get free protection for your applications and to get access to all the features.
data/README.md CHANGED
@@ -1,8 +1,5 @@
1
1
  ## Knife Linode
2
2
 
3
- #### Please bare with me while I get this plugin cleaned up! -[jesseadams](https://github.com/jesseadams) 07/28/2014
4
- #### Update 08/11/2014: Lots of big changes just got merged in. Please test master and submit issues/pull requests as necessary. Thanks!
5
-
6
3
  ### Description
7
4
 
8
5
  This is the official Opscode Knife plugin for Linode. This plugin gives knife
@@ -158,6 +158,11 @@ class Chef
158
158
  :description => "A file containing the secret key to use to encrypt data bag item values",
159
159
  :proc => Proc.new { |sf| Chef::Config[:knife][:secret_file] = sf }
160
160
 
161
+ option :display_group,
162
+ :short => "-G GROUP",
163
+ :long => "--display-group GROUP",
164
+ :description => "Specify a display group for linode web portal"
165
+
161
166
  def tcp_test_ssh(hostname)
162
167
  Chef::Log.debug("testing ssh connection to #{hostname}")
163
168
  tcp_socket = TCPSocket.new(hostname, 22)
@@ -221,6 +226,8 @@ class Chef
221
226
  :password => locate_config_value(:ssh_password)
222
227
  )
223
228
 
229
+ connection.linode_update(server.id, {:lpm_displaygroup => config[:display_group]}) if config[:display_group]
230
+
224
231
  fqdn = server.ips.select { |lip| !( lip.ip =~ /^192\.168\./ || lip.ip =~ /^10\./ || lip.ip =~ /^172\.(1[6-9]|2[0-9]|3[0-1])\./ ) }.first.ip
225
232
 
226
233
  msg_pair("Linode ID", server.id.to_s)
@@ -1,6 +1,6 @@
1
1
  module Knife
2
2
  module Linode
3
- VERSION = "0.3.0"
3
+ VERSION = "0.3.1"
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-linode
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.0
4
+ version: 0.3.1
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -11,7 +11,7 @@ authors:
11
11
  autorequire:
12
12
  bindir: bin
13
13
  cert_chain: []
14
- date: 2014-08-16 00:00:00.000000000 Z
14
+ date: 2014-09-30 00:00:00.000000000 Z
15
15
  dependencies:
16
16
  - !ruby/object:Gem::Dependency
17
17
  name: fog