knife-xenserver 1.3.2 → 1.4.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 090f199cfe6cd8ea09bc91dcfb7b14ead0d8f4a6
4
- data.tar.gz: 9273f0d8638bb288a65dd4291299a9d7d499a09b
3
+ metadata.gz: f06c04f06a99fe9e3007cc1fe7140f52aca54313
4
+ data.tar.gz: 5f26f1dbb0f76f746a8f75a0cf8e1603b137eaa7
5
5
  SHA512:
6
- metadata.gz: 686edfdb34a424c6e51c057afb56b5fd14e502c53f1f5ca7db2645e20bca623c825bede2a6d0c8cd0fe9136358d48690f8071e726b0ad14fffe135fea46bd3ce
7
- data.tar.gz: c1b9920bb2bf136df3feb3ef11e82ce6e21b9be1f64f5ccd5b8995131795307e37976095ac047734c724f4e0490f77c800fe5600747ac14b68af2fcabf6db1cf
6
+ metadata.gz: 02f12d5c0c9cd1fc74a2c9af14fd77eb2706e4a3a2bd705d0449df084769d0fc00bb8b2e1adf394675d8a08c5a3f3c97c2b217024d6bce3a33b19fcca40fe14d
7
+ data.tar.gz: 2e4e77dd3e528fc801d8ae93910ab7f1c68d8b888c7e7799a02e36952eeb1b60e813923c4ddbcc2a569f5924e2b4772382f0dee25854842ba82f99098cabe294
@@ -6,9 +6,9 @@ Gem::Specification.new do |s|
6
6
  s.name = "knife-xenserver"
7
7
  s.version = Knife::XenServer::VERSION
8
8
  s.has_rdoc = true
9
- s.authors = ["Sergio Rubio"]
10
- s.email = ["rubiojr@frameos.org","rubiojr@frameos.org"]
11
- s.homepage = "http://github.com/rubiojr/knife-xenserver"
9
+ s.authors = ["Sergio Rubio", "Pedro Perez"]
10
+ s.email = ["info@bvox.net"]
11
+ s.homepage = "http://github.com/bvox/knife-xenserver"
12
12
  s.summary = "XenServer Support for Chef's Knife Command"
13
13
  s.description = s.summary
14
14
  s.extra_rdoc_files = ["README.md", "LICENSE" ]
@@ -17,8 +17,8 @@ Gem::Specification.new do |s|
17
17
  s.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
18
18
  s.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
19
19
  s.add_dependency "terminal-table"
20
- s.add_dependency "chef", ">= 0.10"
21
- s.add_dependency "fog", ">= 1.4"
20
+ s.add_dependency "chef", ">= 0.11"
21
+ s.add_dependency "fog", ">= 1.13"
22
22
  ## Fog 1.3.1 deps. We'll need to remove them
23
23
  # when using fog upstream
24
24
  s.add_dependency('colored')
@@ -55,7 +55,7 @@ class Chef
55
55
  utilisation = sr.physical_utilisation
56
56
  else
57
57
  if sr.physical_size.to_i > 0
58
- utilisation = (sr.physical_utilisation.to_i * 100)/sr.physical_size.to_f * 100
58
+ utilisation = (sr.physical_utilisation.to_i * 100)/sr.physical_size.to_f
59
59
  utilisation = "%.2f%" % utilisation
60
60
  else
61
61
  utilisation = "100%"
@@ -85,6 +85,13 @@ class Chef
85
85
  :description => "Comma separated list of roles/recipes to apply",
86
86
  :proc => lambda { |o| o.split(/[\s,]+/) },
87
87
  :default => []
88
+
89
+ option :first_boot_attributes,
90
+ :short => "-j JSON_ATTRIBS",
91
+ :long => "--json-attributes",
92
+ :description => "A JSON string to be added to the first run of chef-client",
93
+ :proc => lambda { |o| JSON.parse(o) },
94
+ :default => {}
88
95
 
89
96
  option :ssh_user,
90
97
  :short => "-x USERNAME",
@@ -325,6 +332,7 @@ class Chef
325
332
  bootstrap = Chef::Knife::Bootstrap.new
326
333
  bootstrap.name_args = [@ssh_ip]
327
334
  bootstrap.config[:run_list] = config[:run_list]
335
+ bootstrap.config[:first_boot_attributes] = config[:first_boot_attributes]
328
336
  bootstrap.config[:ssh_user] = config[:ssh_user]
329
337
  bootstrap.config[:identity_file] = config[:identity_file]
330
338
  bootstrap.config[:chef_node_name] = config[:chef_node_name] || vm.name
@@ -1,6 +1,6 @@
1
1
  module Knife
2
2
  module XenServer
3
- VERSION = "1.3.2"
3
+ VERSION = "1.4.1"
4
4
  MAJOR, MINOR, TINY = VERSION.split('.')
5
5
  end
6
6
  end
metadata CHANGED
@@ -1,14 +1,15 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: knife-xenserver
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.3.2
4
+ version: 1.4.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sergio Rubio
8
+ - Pedro Perez
8
9
  autorequire:
9
10
  bindir: bin
10
11
  cert_chain: []
11
- date: 2013-06-18 00:00:00.000000000 Z
12
+ date: 2013-09-10 00:00:00.000000000 Z
12
13
  dependencies:
13
14
  - !ruby/object:Gem::Dependency
14
15
  name: terminal-table
@@ -30,28 +31,28 @@ dependencies:
30
31
  requirements:
31
32
  - - '>='
32
33
  - !ruby/object:Gem::Version
33
- version: '0.10'
34
+ version: '0.11'
34
35
  type: :runtime
35
36
  prerelease: false
36
37
  version_requirements: !ruby/object:Gem::Requirement
37
38
  requirements:
38
39
  - - '>='
39
40
  - !ruby/object:Gem::Version
40
- version: '0.10'
41
+ version: '0.11'
41
42
  - !ruby/object:Gem::Dependency
42
43
  name: fog
43
44
  requirement: !ruby/object:Gem::Requirement
44
45
  requirements:
45
46
  - - '>='
46
47
  - !ruby/object:Gem::Version
47
- version: '1.4'
48
+ version: '1.13'
48
49
  type: :runtime
49
50
  prerelease: false
50
51
  version_requirements: !ruby/object:Gem::Requirement
51
52
  requirements:
52
53
  - - '>='
53
54
  - !ruby/object:Gem::Version
54
- version: '1.4'
55
+ version: '1.13'
55
56
  - !ruby/object:Gem::Dependency
56
57
  name: colored
57
58
  requirement: !ruby/object:Gem::Requirement
@@ -82,8 +83,7 @@ dependencies:
82
83
  version: '0'
83
84
  description: XenServer Support for Chef's Knife Command
84
85
  email:
85
- - rubiojr@frameos.org
86
- - rubiojr@frameos.org
86
+ - info@bvox.net
87
87
  executables: []
88
88
  extensions: []
89
89
  extra_rdoc_files:
@@ -109,7 +109,7 @@ files:
109
109
  - lib/chef/knife/xenserver_vm_poweron.rb
110
110
  - lib/knife-xenserver/version.rb
111
111
  - vendor/fog/lib/fog/xenserver/requests/compute/add_attribute.rb
112
- homepage: http://github.com/rubiojr/knife-xenserver
112
+ homepage: http://github.com/bvox/knife-xenserver
113
113
  licenses: []
114
114
  metadata: {}
115
115
  post_install_message:
@@ -128,9 +128,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
128
128
  version: '0'
129
129
  requirements: []
130
130
  rubyforge_project:
131
- rubygems_version: 2.0.2
131
+ rubygems_version: 2.0.3
132
132
  signing_key:
133
133
  specification_version: 4
134
134
  summary: XenServer Support for Chef's Knife Command
135
135
  test_files: []
136
- has_rdoc: true