packer-config 0.0.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (58) hide show
  1. checksums.yaml +7 -0
  2. data/.gitignore +36 -0
  3. data/.rubocop.yml +340 -0
  4. data/.travis.yml +6 -0
  5. data/Gemfile +17 -0
  6. data/LICENSE +176 -0
  7. data/README.md +107 -0
  8. data/Rakefile +47 -0
  9. data/TODO.md +8 -0
  10. data/lib/packer-config.rb +181 -0
  11. data/lib/packer/builder.rb +65 -0
  12. data/lib/packer/builders/all.rb +17 -0
  13. data/lib/packer/builders/amazon.rb +214 -0
  14. data/lib/packer/builders/docker.rb +47 -0
  15. data/lib/packer/builders/virtualbox.rb +169 -0
  16. data/lib/packer/dataobject.rb +128 -0
  17. data/lib/packer/envvar.rb +27 -0
  18. data/lib/packer/macro.rb +28 -0
  19. data/lib/packer/postprocessor.rb +77 -0
  20. data/lib/packer/postprocessors/all.rb +16 -0
  21. data/lib/packer/postprocessors/docker.rb +35 -0
  22. data/lib/packer/postprocessors/vagrant.rb +47 -0
  23. data/lib/packer/provisioner.rb +86 -0
  24. data/lib/packer/provisioners/all.rb +16 -0
  25. data/lib/packer/provisioners/file.rb +36 -0
  26. data/lib/packer/provisioners/shell.rb +60 -0
  27. data/packer-config.gemspec +46 -0
  28. data/spec/integration/README.md +14 -0
  29. data/spec/integration/builds/.gitignore +4 -0
  30. data/spec/integration/centos_vagrant_spec.rb +76 -0
  31. data/spec/integration/packer_cache/.gitignore +4 -0
  32. data/spec/integration/scripts/chef.sh +199 -0
  33. data/spec/integration/scripts/cleanup.sh +17 -0
  34. data/spec/integration/scripts/fix-slow-dns.sh +13 -0
  35. data/spec/integration/scripts/hello.sh +3 -0
  36. data/spec/integration/scripts/kickstart/centos-6.5-ks.cfg +71 -0
  37. data/spec/integration/scripts/minimize.sh +9 -0
  38. data/spec/integration/scripts/sshd.sh +6 -0
  39. data/spec/integration/scripts/vagrant.sh +10 -0
  40. data/spec/integration/scripts/vmtools.sh +39 -0
  41. data/spec/packer/builder_spec.rb +39 -0
  42. data/spec/packer/builders/amazon_spec.rb +88 -0
  43. data/spec/packer/builders/docker_spec.rb +25 -0
  44. data/spec/packer/builders/virtualbox_spec.rb +44 -0
  45. data/spec/packer/dataobject_spec.rb +239 -0
  46. data/spec/packer/envvar_spec.rb +38 -0
  47. data/spec/packer/macro_spec.rb +38 -0
  48. data/spec/packer/postprocessor_spec.rb +72 -0
  49. data/spec/packer/postprocessors/docker_import_spec.rb +27 -0
  50. data/spec/packer/postprocessors/docker_push_spec.rb +27 -0
  51. data/spec/packer/postprocessors/vagrant_spec.rb +27 -0
  52. data/spec/packer/provisioner_spec.rb +78 -0
  53. data/spec/packer/provisioners/file_spec.rb +63 -0
  54. data/spec/packer/provisioners/shell_spec.rb +116 -0
  55. data/spec/packer_config_spec.rb +197 -0
  56. data/spec/spec_helper.rb +19 -0
  57. data/spec/unit_helper.rb +15 -0
  58. metadata +220 -0
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: a8d09aa2bf43904d51a9b8b86374a20ae71fd6fd
4
+ data.tar.gz: a84431fb5cbe4c2d2fd0dde6a694402af91cf153
5
+ SHA512:
6
+ metadata.gz: df285e99eeb101df9a5020399f53fc45edbb9f288c99b9cd50d62826e45be6a5c20f925a6c916960acd5923f4c876d615a1399916dfcd697df68d7ac9c39ebbb
7
+ data.tar.gz: e818223bcf70f201073a711ea7102e7b96a15f197b860a7c9b355b66e758fb0a1bea977391126f53c9d711a40448253a38c8c60301b986e4c3d9b50dacaf7644
data/.gitignore ADDED
@@ -0,0 +1,36 @@
1
+ .DS_Store
2
+ *.gem
3
+ *.rbc
4
+ /.config
5
+ /coverage/
6
+ /InstalledFiles
7
+ /pkg/
8
+ /spec/reports/
9
+ /spec/integration/*.json
10
+ /test/tmp/
11
+ /test/version_tmp/
12
+ /tmp/
13
+
14
+ ## Specific to RubyMotion:
15
+ .dat*
16
+ .repl_history
17
+ build/
18
+
19
+ ## Documentation cache and generated files:
20
+ /.yardoc/
21
+ /_yardoc/
22
+ /doc/
23
+ /rdoc/
24
+
25
+ ## Environment normalisation:
26
+ /.bundle/
27
+ /lib/bundler/man/
28
+
29
+ # for a library or gem, you might want to ignore these files since the code is
30
+ # intended to run in multiple environments; otherwise, check them in:
31
+ Gemfile.lock
32
+ .ruby-version
33
+ .ruby-gemset
34
+
35
+ # unless supporting rvm < 1.11.0 or doing something fancy, ignore this:
36
+ .rvmrc
data/.rubocop.yml ADDED
@@ -0,0 +1,340 @@
1
+ # This configuration was generated by `rubocop --auto-gen-config`
2
+ # on 2014-05-14 11:00:31 -0400 using RuboCop version 0.21.0.
3
+ # The point is for the user to remove these configuration records
4
+ # one by one as the offenses are removed from the code base.
5
+ # Note that changes in the inspected code, or installation of new
6
+ # versions of RuboCop, may require this file to be generated again.
7
+
8
+ # Offense count: 6
9
+ AmbiguousOperator:
10
+ Enabled: false
11
+
12
+ # Offense count: 22
13
+ AmbiguousRegexpLiteral:
14
+ Enabled: false
15
+
16
+ # Offense count: 5
17
+ # Configuration parameters: EnforcedStyle, SupportedStyles.
18
+ ClassAndModuleChildren:
19
+ Enabled: false
20
+
21
+ # Turn this on eventually
22
+ ClassLength:
23
+ Enabled: false
24
+
25
+ # Offense count: 57
26
+ # Cop supports --auto-correct.
27
+ DeprecatedClassMethods:
28
+ Enabled: false
29
+
30
+ # Offense count: 19
31
+ # Cop supports --auto-correct.
32
+ DeprecatedHashMethods:
33
+ Enabled: false
34
+
35
+ Documentation:
36
+ Enabled: false
37
+
38
+ # Offense count: 1
39
+ DoubleNegation:
40
+ Enabled: false
41
+
42
+ # Offense count: 8
43
+ # Configuration parameters: Exclude.
44
+ FileName:
45
+ Enabled: false
46
+
47
+ # Offense count: 3
48
+ # Configuration parameters: EnforcedStyle, SupportedStyles.
49
+ FormatString:
50
+ Enabled: false
51
+
52
+ # Offense count: 9
53
+ # Cop supports --auto-correct.
54
+ IndentArray:
55
+ Enabled: false
56
+
57
+ # Offense count: 261
58
+ # Cop supports --auto-correct.
59
+ # Configuration parameters: EnforcedStyle, SupportedStyles.
60
+ IndentHash:
61
+ Enabled: false
62
+
63
+ # Offense count: 3
64
+ # Cop supports --auto-correct.
65
+ IndentationConsistency:
66
+ Enabled: false
67
+
68
+ LeadingCommentSpace:
69
+ Enabled: false
70
+
71
+ # Offense count: 32
72
+ # Cop supports --auto-correct.
73
+ LineEndConcatenation:
74
+ Enabled: false
75
+
76
+ LineLength:
77
+ Enabled: false
78
+
79
+ # We'll turn this on eventually
80
+ MethodLength:
81
+ Enabled: false
82
+
83
+ # Offense count: 9
84
+ # Cop supports --auto-correct.
85
+ NegatedIf:
86
+ Enabled: false
87
+
88
+ # Offense count: 7
89
+ # Cop supports --auto-correct.
90
+ NegatedWhile:
91
+ Enabled: false
92
+
93
+ # Offense count: 11
94
+ # Cop supports --auto-correct.
95
+ NonNilCheck:
96
+ Enabled: false
97
+
98
+ # Offense count: 110
99
+ # Cop supports --auto-correct.
100
+ # Configuration parameters: PreferredDelimiters.
101
+ PercentLiteralDelimiters:
102
+ Enabled: false
103
+
104
+ # Offense count: 3
105
+ SelfAssignment:
106
+ Enabled: false
107
+
108
+ SignalException:
109
+ Enabled: false
110
+
111
+ # Offense count: 53
112
+ # Cop supports --auto-correct.
113
+ SingleSpaceBeforeFirstArg:
114
+ Enabled: false
115
+
116
+ SpaceAroundOperators:
117
+ Enabled: false
118
+
119
+ # Offense count: 382
120
+ # Cop supports --auto-correct.
121
+ # Configuration parameters: EnforcedStyle, SupportedStyles.
122
+ SpaceBeforeBlockBraces:
123
+ Enabled: false
124
+
125
+ # Offense count: 784
126
+ # Cop supports --auto-correct.
127
+ # Configuration parameters: EnforcedStyle, SupportedStyles, EnforcedStyleForEmptyBraces, SpaceBeforeBlockParameters.
128
+ SpaceInsideBlockBraces:
129
+ Enabled: false
130
+
131
+ # Don't care enough about this one
132
+ SpaceInsideHashLiteralBraces:
133
+ Enabled: false
134
+
135
+ # Using $CHILD_STATUS instead of $?, etc
136
+ SpecialGlobalVars:
137
+ Enabled: false
138
+
139
+ # Offense count: 5
140
+ # Cop supports --auto-correct.
141
+ StringConversionInInterpolation:
142
+ Enabled: false
143
+
144
+ StringLiterals:
145
+ Description: Checks if uses of quotes match the configured preference.
146
+ Enabled: false
147
+ EnforcedStyle: single_quotes
148
+ SupportedStyles:
149
+ - single_quotes
150
+ - double_quotes
151
+
152
+ # disabling a bunch of style linters
153
+ Lint/BlockAlignment:
154
+ Enabled: false
155
+
156
+ Lint/EndAlignment:
157
+ Enabled: false
158
+
159
+ Lint/Loop:
160
+ Enabled: false
161
+
162
+ Lint/Void:
163
+ Exclude:
164
+ - dashboard/spec/**/*
165
+
166
+ Style/AccessModifierIndentation:
167
+ Enabled: false
168
+
169
+ Style/AccessorMethodName:
170
+ Enabled: false
171
+
172
+ Style/AlignArray:
173
+ Enabled: false
174
+
175
+ Style/AlignHash:
176
+ Enabled: false
177
+
178
+ Style/AlignParameters:
179
+ Enabled: false
180
+
181
+ Style/BlockNesting:
182
+ Enabled: false
183
+
184
+ Style/BracesAroundHashParameters:
185
+ Enabled: false
186
+
187
+ Style/CaseIndentation:
188
+ Enabled: false
189
+
190
+ Style/CollectionMethods:
191
+ Enabled: false
192
+
193
+ Style/CommentAnnotation:
194
+ Enabled: false
195
+
196
+ Style/CommentIndentation:
197
+ Enabled: false
198
+
199
+ Style/DefWithParentheses:
200
+ Enabled: false
201
+
202
+ Style/DotPosition:
203
+ Enabled: false
204
+
205
+ Style/EachWithObject:
206
+ Enabled: false
207
+
208
+ Style/EmptyLineBetweenDefs:
209
+ Enabled: false
210
+
211
+ Style/EmptyLines:
212
+ Enabled: false
213
+
214
+ Style/EmptyLinesAroundAccessModifier:
215
+ Enabled: false
216
+
217
+ Style/EmptyLinesAroundBody:
218
+ Enabled: false
219
+
220
+ Style/GuardClause:
221
+ Enabled: false
222
+
223
+ Style/HashSyntax:
224
+ Enabled: false
225
+
226
+ Style/IfUnlessModifier:
227
+ Enabled: false
228
+
229
+ Style/IndentationWidth:
230
+ Enabled: false
231
+
232
+ Style/Lambda:
233
+ Enabled: false
234
+
235
+ Style/MultilineBlockChain:
236
+ Enabled: false
237
+
238
+ Style/MethodCallParentheses:
239
+ Enabled: false
240
+
241
+ Style/MultilineIfThen:
242
+ Enabled: false
243
+
244
+ Style/MultilineTernaryOperator:
245
+ Enabled: false
246
+
247
+ Style/MultilineTernaryOperator:
248
+ Enabled: false
249
+
250
+ Style/NilComparison:
251
+ Enabled: false
252
+
253
+ Style/PredicateName:
254
+ Enabled: false
255
+
256
+ Style/RaiseArgs:
257
+ Enabled: false
258
+
259
+ Style/RedundantBegin:
260
+ Enabled: false
261
+
262
+ Style/RedundantSelf:
263
+ Enabled: false
264
+
265
+ Style/RegexpLiteral:
266
+ Enabled: false
267
+
268
+ Style/SingleLineMethods:
269
+ Enabled: false
270
+
271
+ Style/SpaceAfterComma:
272
+ Enabled: false
273
+
274
+ Style/SpaceAfterNot:
275
+ Enabled: false
276
+
277
+ Style/SpaceAroundEqualsInParameterDefault:
278
+ Enabled: false
279
+
280
+ Style/SpaceInsideBrackets:
281
+ Enabled: false
282
+
283
+ Style/SpaceInsideParens:
284
+ Enabled: false
285
+
286
+ Style/TrailingBlankLines:
287
+ Enabled: false
288
+
289
+ Style/TrivialAccessors:
290
+ Enabled: false
291
+
292
+ Style/WhileUntilDo:
293
+ Enabled: false
294
+
295
+ Style/WhileUntilModifier:
296
+ Enabled: false
297
+
298
+
299
+ # Things that are off but we should turn on eventually
300
+
301
+ Style/Next:
302
+ Enabled: false
303
+
304
+ Style/NumericLiterals:
305
+ Enabled: false
306
+
307
+ Style/ParameterLists:
308
+ Enabled: false
309
+
310
+ Style/TrailingComma:
311
+ # EnforcedStyleForMultiline: comma
312
+ Enabled: false
313
+
314
+ Style/CyclomaticComplexity:
315
+ Enabled: false
316
+
317
+ ####
318
+
319
+ # Offense count: 1
320
+ UnderscorePrefixedVariableName:
321
+ Enabled: false
322
+
323
+ # Offense count: 108
324
+ UnusedBlockArgument:
325
+ Enabled: false
326
+
327
+ # Offense count: 159
328
+ UnusedMethodArgument:
329
+ Enabled: false
330
+
331
+ # Offense count: 2
332
+ UselessAccessModifier:
333
+ Enabled: false
334
+
335
+ # As of rubocop 0.21, it thinks kwargs are useless assignments
336
+ UselessAssignment:
337
+ Enabled: false
338
+
339
+ WordArray:
340
+ Enabled: false
data/.travis.yml ADDED
@@ -0,0 +1,6 @@
1
+ language: ruby
2
+ rvm:
3
+ - 1.9.3
4
+ - 2.0.0
5
+ - 2.1.1
6
+ - ruby-head
data/Gemfile ADDED
@@ -0,0 +1,17 @@
1
+ # Copyright 2014 Ian Chesal
2
+ #
3
+ # Licensed under the Apache License, Version 2.0 (the "License");
4
+ # you may not use this file except in compliance with the License.
5
+ # You may obtain a copy of the License at
6
+ #
7
+ # http://www.apache.org/licenses/LICENSE-2.0
8
+ #
9
+ # Unless required by applicable law or agreed to in writing, software
10
+ # distributed under the License is distributed on an "AS IS" BASIS,
11
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
+ # See the License for the specific language governing permissions and
13
+ # limitations under the License.
14
+
15
+ source 'https://rubygems.org'
16
+
17
+ gemspec
data/LICENSE ADDED
@@ -0,0 +1,176 @@
1
+ Apache License
2
+ Version 2.0, January 2004
3
+ http://www.apache.org/licenses/
4
+
5
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
6
+
7
+ 1. Definitions.
8
+
9
+ "License" shall mean the terms and conditions for use, reproduction,
10
+ and distribution as defined by Sections 1 through 9 of this document.
11
+
12
+ "Licensor" shall mean the copyright owner or entity authorized by
13
+ the copyright owner that is granting the License.
14
+
15
+ "Legal Entity" shall mean the union of the acting entity and all
16
+ other entities that control, are controlled by, or are under common
17
+ control with that entity. For the purposes of this definition,
18
+ "control" means (i) the power, direct or indirect, to cause the
19
+ direction or management of such entity, whether by contract or
20
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
21
+ outstanding shares, or (iii) beneficial ownership of such entity.
22
+
23
+ "You" (or "Your") shall mean an individual or Legal Entity
24
+ exercising permissions granted by this License.
25
+
26
+ "Source" form shall mean the preferred form for making modifications,
27
+ including but not limited to software source code, documentation
28
+ source, and configuration files.
29
+
30
+ "Object" form shall mean any form resulting from mechanical
31
+ transformation or translation of a Source form, including but
32
+ not limited to compiled object code, generated documentation,
33
+ and conversions to other media types.
34
+
35
+ "Work" shall mean the work of authorship, whether in Source or
36
+ Object form, made available under the License, as indicated by a
37
+ copyright notice that is included in or attached to the work
38
+ (an example is provided in the Appendix below).
39
+
40
+ "Derivative Works" shall mean any work, whether in Source or Object
41
+ form, that is based on (or derived from) the Work and for which the
42
+ editorial revisions, annotations, elaborations, or other modifications
43
+ represent, as a whole, an original work of authorship. For the purposes
44
+ of this License, Derivative Works shall not include works that remain
45
+ separable from, or merely link (or bind by name) to the interfaces of,
46
+ the Work and Derivative Works thereof.
47
+
48
+ "Contribution" shall mean any work of authorship, including
49
+ the original version of the Work and any modifications or additions
50
+ to that Work or Derivative Works thereof, that is intentionally
51
+ submitted to Licensor for inclusion in the Work by the copyright owner
52
+ or by an individual or Legal Entity authorized to submit on behalf of
53
+ the copyright owner. For the purposes of this definition, "submitted"
54
+ means any form of electronic, verbal, or written communication sent
55
+ to the Licensor or its representatives, including but not limited to
56
+ communication on electronic mailing lists, source code control systems,
57
+ and issue tracking systems that are managed by, or on behalf of, the
58
+ Licensor for the purpose of discussing and improving the Work, but
59
+ excluding communication that is conspicuously marked or otherwise
60
+ designated in writing by the copyright owner as "Not a Contribution."
61
+
62
+ "Contributor" shall mean Licensor and any individual or Legal Entity
63
+ on behalf of whom a Contribution has been received by Licensor and
64
+ subsequently incorporated within the Work.
65
+
66
+ 2. Grant of Copyright License. Subject to the terms and conditions of
67
+ this License, each Contributor hereby grants to You a perpetual,
68
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
69
+ copyright license to reproduce, prepare Derivative Works of,
70
+ publicly display, publicly perform, sublicense, and distribute the
71
+ Work and such Derivative Works in Source or Object form.
72
+
73
+ 3. Grant of Patent License. Subject to the terms and conditions of
74
+ this License, each Contributor hereby grants to You a perpetual,
75
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
76
+ (except as stated in this section) patent license to make, have made,
77
+ use, offer to sell, sell, import, and otherwise transfer the Work,
78
+ where such license applies only to those patent claims licensable
79
+ by such Contributor that are necessarily infringed by their
80
+ Contribution(s) alone or by combination of their Contribution(s)
81
+ with the Work to which such Contribution(s) was submitted. If You
82
+ institute patent litigation against any entity (including a
83
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
84
+ or a Contribution incorporated within the Work constitutes direct
85
+ or contributory patent infringement, then any patent licenses
86
+ granted to You under this License for that Work shall terminate
87
+ as of the date such litigation is filed.
88
+
89
+ 4. Redistribution. You may reproduce and distribute copies of the
90
+ Work or Derivative Works thereof in any medium, with or without
91
+ modifications, and in Source or Object form, provided that You
92
+ meet the following conditions:
93
+
94
+ (a) You must give any other recipients of the Work or
95
+ Derivative Works a copy of this License; and
96
+
97
+ (b) You must cause any modified files to carry prominent notices
98
+ stating that You changed the files; and
99
+
100
+ (c) You must retain, in the Source form of any Derivative Works
101
+ that You distribute, all copyright, patent, trademark, and
102
+ attribution notices from the Source form of the Work,
103
+ excluding those notices that do not pertain to any part of
104
+ the Derivative Works; and
105
+
106
+ (d) If the Work includes a "NOTICE" text file as part of its
107
+ distribution, then any Derivative Works that You distribute must
108
+ include a readable copy of the attribution notices contained
109
+ within such NOTICE file, excluding those notices that do not
110
+ pertain to any part of the Derivative Works, in at least one
111
+ of the following places: within a NOTICE text file distributed
112
+ as part of the Derivative Works; within the Source form or
113
+ documentation, if provided along with the Derivative Works; or,
114
+ within a display generated by the Derivative Works, if and
115
+ wherever such third-party notices normally appear. The contents
116
+ of the NOTICE file are for informational purposes only and
117
+ do not modify the License. You may add Your own attribution
118
+ notices within Derivative Works that You distribute, alongside
119
+ or as an addendum to the NOTICE text from the Work, provided
120
+ that such additional attribution notices cannot be construed
121
+ as modifying the License.
122
+
123
+ You may add Your own copyright statement to Your modifications and
124
+ may provide additional or different license terms and conditions
125
+ for use, reproduction, or distribution of Your modifications, or
126
+ for any such Derivative Works as a whole, provided Your use,
127
+ reproduction, and distribution of the Work otherwise complies with
128
+ the conditions stated in this License.
129
+
130
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
131
+ any Contribution intentionally submitted for inclusion in the Work
132
+ by You to the Licensor shall be under the terms and conditions of
133
+ this License, without any additional terms or conditions.
134
+ Notwithstanding the above, nothing herein shall supersede or modify
135
+ the terms of any separate license agreement you may have executed
136
+ with Licensor regarding such Contributions.
137
+
138
+ 6. Trademarks. This License does not grant permission to use the trade
139
+ names, trademarks, service marks, or product names of the Licensor,
140
+ except as required for reasonable and customary use in describing the
141
+ origin of the Work and reproducing the content of the NOTICE file.
142
+
143
+ 7. Disclaimer of Warranty. Unless required by applicable law or
144
+ agreed to in writing, Licensor provides the Work (and each
145
+ Contributor provides its Contributions) on an "AS IS" BASIS,
146
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
147
+ implied, including, without limitation, any warranties or conditions
148
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
149
+ PARTICULAR PURPOSE. You are solely responsible for determining the
150
+ appropriateness of using or redistributing the Work and assume any
151
+ risks associated with Your exercise of permissions under this License.
152
+
153
+ 8. Limitation of Liability. In no event and under no legal theory,
154
+ whether in tort (including negligence), contract, or otherwise,
155
+ unless required by applicable law (such as deliberate and grossly
156
+ negligent acts) or agreed to in writing, shall any Contributor be
157
+ liable to You for damages, including any direct, indirect, special,
158
+ incidental, or consequential damages of any character arising as a
159
+ result of this License or out of the use or inability to use the
160
+ Work (including but not limited to damages for loss of goodwill,
161
+ work stoppage, computer failure or malfunction, or any and all
162
+ other commercial damages or losses), even if such Contributor
163
+ has been advised of the possibility of such damages.
164
+
165
+ 9. Accepting Warranty or Additional Liability. While redistributing
166
+ the Work or Derivative Works thereof, You may choose to offer,
167
+ and charge a fee for, acceptance of support, warranty, indemnity,
168
+ or other liability obligations and/or rights consistent with this
169
+ License. However, in accepting such obligations, You may act only
170
+ on Your own behalf and on Your sole responsibility, not on behalf
171
+ of any other Contributor, and only if You agree to indemnify,
172
+ defend, and hold each Contributor harmless for any liability
173
+ incurred by, or claims asserted against, such Contributor by reason
174
+ of your accepting any such warranty or additional liability.
175
+
176
+ END OF TERMS AND CONDITIONS