abiquo-chef-agent 2.0.1 → 2.0.2

Sign up to get free protection for your applications and to get access to all the features.
data/Rakefile CHANGED
@@ -13,7 +13,7 @@ Jeweler::Tasks.new do |gem|
13
13
  gem.summary = %Q{Abiquo Chef Agent}
14
14
  gem.description = %Q{Abiquo Chef Agent}
15
15
  gem.email = "ruby-gems@abiquo.com"
16
- gem.authors = ["Salvador Girones", "Sergio Rubio", "Serafin Sedano"]
16
+ gem.authors = ["Salvador Girones", "Sergio Rubio", "Serafin Sedano", "Ignasi Barrera"]
17
17
  gem.add_runtime_dependency 'run-as-root'
18
18
  gem.add_runtime_dependency 'chef'
19
19
  gem.add_runtime_dependency 'daemons'
@@ -71,9 +71,9 @@ else
71
71
  #
72
72
  # Request node info from Abiquo API
73
73
  #
74
- log "Requesting Chef config from API #{leases[:abiquo_api_url]} OneTime #{leases[:abiquo_api_token]}"
74
+ log "Requesting Chef config from API #{leases[:abiquo_api_url]} OneTime #{leases[:abiquo_api_token]} Accept #{Abiquo::Chef::Config.bootstrap_mediatype}"
75
75
  begin
76
- xml = RestClient.get leases[:abiquo_api_url], :authorization => "OneTime #{leases[:abiquo_api_token]}", :accept => "application/vnd.abiquo.extended+xml"
76
+ xml = RestClient.get leases[:abiquo_api_url], :authorization => "OneTime #{leases[:abiquo_api_token]}", :accept => Abiquo::Chef::Config.bootstrap_mediatype
77
77
  rescue Exception => e
78
78
  log "Error requesting node info from API", :error
79
79
  log e.message, :error
@@ -5,7 +5,7 @@ require 'time'
5
5
  module Abiquo
6
6
  module Chef
7
7
 
8
- VERSION="2.0.1"
8
+ VERSION="2.0.2"
9
9
 
10
10
  class Config
11
11
  def self.chef_config_dir
@@ -32,6 +32,10 @@ module Abiquo
32
32
  '/etc/chef/validation.pem'
33
33
  end
34
34
 
35
+ def self.bootstrap_mediatype
36
+ 'application/vnd.abiquo.bootstrap+xml'
37
+ end
38
+
35
39
  end
36
40
 
37
41
  class BootstrapConfigParser
metadata CHANGED
@@ -1,20 +1,23 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: abiquo-chef-agent
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.1
4
+ version: 2.0.2
5
+ prerelease:
5
6
  platform: ruby
6
7
  authors:
7
8
  - Salvador Girones
8
9
  - Sergio Rubio
9
10
  - Serafin Sedano
11
+ - Ignasi Barrera
10
12
  autorequire:
11
13
  bindir: bin
12
14
  cert_chain: []
13
- date: 2014-05-23 00:00:00.000000000 Z
15
+ date: 2014-05-27 00:00:00.000000000 Z
14
16
  dependencies:
15
17
  - !ruby/object:Gem::Dependency
16
18
  name: rspec
17
19
  requirement: !ruby/object:Gem::Requirement
20
+ none: false
18
21
  requirements:
19
22
  - - ! '>='
20
23
  - !ruby/object:Gem::Version
@@ -22,6 +25,7 @@ dependencies:
22
25
  type: :development
23
26
  prerelease: false
24
27
  version_requirements: !ruby/object:Gem::Requirement
28
+ none: false
25
29
  requirements:
26
30
  - - ! '>='
27
31
  - !ruby/object:Gem::Version
@@ -29,6 +33,7 @@ dependencies:
29
33
  - !ruby/object:Gem::Dependency
30
34
  name: bundler
31
35
  requirement: !ruby/object:Gem::Requirement
36
+ none: false
32
37
  requirements:
33
38
  - - ~>
34
39
  - !ruby/object:Gem::Version
@@ -36,6 +41,7 @@ dependencies:
36
41
  type: :development
37
42
  prerelease: false
38
43
  version_requirements: !ruby/object:Gem::Requirement
44
+ none: false
39
45
  requirements:
40
46
  - - ~>
41
47
  - !ruby/object:Gem::Version
@@ -43,6 +49,7 @@ dependencies:
43
49
  - !ruby/object:Gem::Dependency
44
50
  name: jeweler
45
51
  requirement: !ruby/object:Gem::Requirement
52
+ none: false
46
53
  requirements:
47
54
  - - ! '>='
48
55
  - !ruby/object:Gem::Version
@@ -50,6 +57,7 @@ dependencies:
50
57
  type: :development
51
58
  prerelease: false
52
59
  version_requirements: !ruby/object:Gem::Requirement
60
+ none: false
53
61
  requirements:
54
62
  - - ! '>='
55
63
  - !ruby/object:Gem::Version
@@ -57,6 +65,7 @@ dependencies:
57
65
  - !ruby/object:Gem::Dependency
58
66
  name: simplecov
59
67
  requirement: !ruby/object:Gem::Requirement
68
+ none: false
60
69
  requirements:
61
70
  - - ! '>='
62
71
  - !ruby/object:Gem::Version
@@ -64,6 +73,7 @@ dependencies:
64
73
  type: :development
65
74
  prerelease: false
66
75
  version_requirements: !ruby/object:Gem::Requirement
76
+ none: false
67
77
  requirements:
68
78
  - - ! '>='
69
79
  - !ruby/object:Gem::Version
@@ -71,6 +81,7 @@ dependencies:
71
81
  - !ruby/object:Gem::Dependency
72
82
  name: run-as-root
73
83
  requirement: !ruby/object:Gem::Requirement
84
+ none: false
74
85
  requirements:
75
86
  - - ! '>='
76
87
  - !ruby/object:Gem::Version
@@ -78,6 +89,7 @@ dependencies:
78
89
  type: :runtime
79
90
  prerelease: false
80
91
  version_requirements: !ruby/object:Gem::Requirement
92
+ none: false
81
93
  requirements:
82
94
  - - ! '>='
83
95
  - !ruby/object:Gem::Version
@@ -85,6 +97,7 @@ dependencies:
85
97
  - !ruby/object:Gem::Dependency
86
98
  name: chef
87
99
  requirement: !ruby/object:Gem::Requirement
100
+ none: false
88
101
  requirements:
89
102
  - - ! '>='
90
103
  - !ruby/object:Gem::Version
@@ -92,6 +105,7 @@ dependencies:
92
105
  type: :runtime
93
106
  prerelease: false
94
107
  version_requirements: !ruby/object:Gem::Requirement
108
+ none: false
95
109
  requirements:
96
110
  - - ! '>='
97
111
  - !ruby/object:Gem::Version
@@ -99,6 +113,7 @@ dependencies:
99
113
  - !ruby/object:Gem::Dependency
100
114
  name: daemons
101
115
  requirement: !ruby/object:Gem::Requirement
116
+ none: false
102
117
  requirements:
103
118
  - - ! '>='
104
119
  - !ruby/object:Gem::Version
@@ -106,6 +121,7 @@ dependencies:
106
121
  type: :runtime
107
122
  prerelease: false
108
123
  version_requirements: !ruby/object:Gem::Requirement
124
+ none: false
109
125
  requirements:
110
126
  - - ! '>='
111
127
  - !ruby/object:Gem::Version
@@ -113,6 +129,7 @@ dependencies:
113
129
  - !ruby/object:Gem::Dependency
114
130
  name: rest-client
115
131
  requirement: !ruby/object:Gem::Requirement
132
+ none: false
116
133
  requirements:
117
134
  - - ! '>='
118
135
  - !ruby/object:Gem::Version
@@ -120,6 +137,7 @@ dependencies:
120
137
  type: :runtime
121
138
  prerelease: false
122
139
  version_requirements: !ruby/object:Gem::Requirement
140
+ none: false
123
141
  requirements:
124
142
  - - ! '>='
125
143
  - !ruby/object:Gem::Version
@@ -127,6 +145,7 @@ dependencies:
127
145
  - !ruby/object:Gem::Dependency
128
146
  name: xml-simple
129
147
  requirement: !ruby/object:Gem::Requirement
148
+ none: false
130
149
  requirements:
131
150
  - - ! '>='
132
151
  - !ruby/object:Gem::Version
@@ -134,6 +153,7 @@ dependencies:
134
153
  type: :runtime
135
154
  prerelease: false
136
155
  version_requirements: !ruby/object:Gem::Requirement
156
+ none: false
137
157
  requirements:
138
158
  - - ! '>='
139
159
  - !ruby/object:Gem::Version
@@ -179,25 +199,26 @@ files:
179
199
  homepage: http://github.com/abiquo/abiquo-chef-agent
180
200
  licenses:
181
201
  - MIT
182
- metadata: {}
183
202
  post_install_message:
184
203
  rdoc_options: []
185
204
  require_paths:
186
205
  - lib
187
206
  required_ruby_version: !ruby/object:Gem::Requirement
207
+ none: false
188
208
  requirements:
189
209
  - - ! '>='
190
210
  - !ruby/object:Gem::Version
191
211
  version: '0'
192
212
  required_rubygems_version: !ruby/object:Gem::Requirement
213
+ none: false
193
214
  requirements:
194
215
  - - ! '>='
195
216
  - !ruby/object:Gem::Version
196
217
  version: '0'
197
218
  requirements: []
198
219
  rubyforge_project:
199
- rubygems_version: 2.1.3
220
+ rubygems_version: 1.8.23
200
221
  signing_key:
201
- specification_version: 4
222
+ specification_version: 3
202
223
  summary: Abiquo Chef Agent
203
224
  test_files: []
checksums.yaml DELETED
@@ -1,15 +0,0 @@
1
- ---
2
- !binary "U0hBMQ==":
3
- metadata.gz: !binary |-
4
- ODdlYWYxZWQ3M2UyMTM2MDA0MjliZjBmMDE1ZWQ4N2Y3NGE3YjFjZA==
5
- data.tar.gz: !binary |-
6
- NTU3ZTEyZTMxNmJhZjNmOWQxYzg5Y2Y0ODFjNzA2ODhiNWViZTc2NQ==
7
- SHA512:
8
- metadata.gz: !binary |-
9
- YTZlZTY0ZWJjMjc4NDhkZjQ1ZWJlNTNkYTQ4MWE1OGIxMjJhODk2ZGE3M2Ri
10
- MDAxMzAyNmQwNTgyNGNiZjNkMWM2ZTI0Y2RiNWE0Y2I3YmUwZTBhZjMwN2I3
11
- MDAzYjRmNGQxNTBjZDFjOGM5NWFkNDU1ZmI2OWNjMGFkMzE1Zjc=
12
- data.tar.gz: !binary |-
13
- YzJiYjk4NGNhNTE3ZGI2N2I1OGI0ZTY0MGQ1NTg2OTFlODNkNGRiZjk1MDk4
14
- M2YzM2YyZDEyNDc2ZWRkOTkyMGM0YTA0NDE4NGU2NGJlN2IyMDRmODFiOGQ3
15
- NWMwYjdhNTlkMGIwZThiMWY5N2EyYjZiYzk5MTMyM2RiOWU2OWI=