packer-config 1.6.1 → 1.6.2
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 +4 -4
- data/.rubocop.yml +44 -26
- data/.travis.yml +6 -6
- data/Gemfile +2 -2
- data/README.md +1 -3
- data/RELEASENOTES.md +6 -0
- data/lib/packer/dataobject.rb +1 -1
- data/lib/packer/envvar.rb +2 -1
- data/lib/packer/macro.rb +2 -1
- data/lib/packer/runner.rb +1 -0
- data/lib/packer/version.rb +1 -1
- data/packer-config.gemspec +1 -1
- data/spec/integration/centos_vagrant_spec.rb +3 -3
- data/spec/integration/scripts/kickstart/{centos-6.8-ks.cfg → centos-6.10-ks.cfg} +0 -0
- data/spec/packer/builders/virtualbox_spec.rb +1 -1
- data/spec/packer/dataobject_spec.rb +1 -1
- metadata +5 -5
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 659f4e3b9308a22f46bacda9dd600cc57be00ea0
|
|
4
|
+
data.tar.gz: 14536389dcf3295577d64ef5e773d76e84b3e115
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 322a6cf6cdff456baf89b32e1059db7b09a863d042431ec26e3714b6e4e1b402e7bb776ad4a3221dc7652d9bf38223e0eae4bf9377ab78bde7974863f3bf80d1
|
|
7
|
+
data.tar.gz: 5b47a91f0c4d7f3e6d651d225db1228b0ff5f4e5979d2e5da392140f04d58c6c26aa62ea97a8b76402694e9b10dc1757157c4ad0710e6ffddca851299811c9c3
|
data/.rubocop.yml
CHANGED
|
@@ -29,10 +29,10 @@ StringLiterals:
|
|
|
29
29
|
- double_quotes
|
|
30
30
|
|
|
31
31
|
# disabling a bunch of style linters
|
|
32
|
-
|
|
32
|
+
Layout/BlockAlignment:
|
|
33
33
|
Enabled: false
|
|
34
34
|
|
|
35
|
-
|
|
35
|
+
Layout/EndAlignment:
|
|
36
36
|
Enabled: false
|
|
37
37
|
|
|
38
38
|
Lint/Loop:
|
|
@@ -49,23 +49,23 @@ Lint/Void:
|
|
|
49
49
|
Exclude:
|
|
50
50
|
- dashboard/spec/**/*
|
|
51
51
|
|
|
52
|
-
|
|
52
|
+
Naming/FileName:
|
|
53
53
|
Exclude:
|
|
54
54
|
- 'lib/packer-config.rb'
|
|
55
55
|
|
|
56
|
-
|
|
56
|
+
Layout/AccessModifierIndentation:
|
|
57
57
|
Enabled: false
|
|
58
58
|
|
|
59
|
-
|
|
59
|
+
Naming/AccessorMethodName:
|
|
60
60
|
Enabled: false
|
|
61
61
|
|
|
62
|
-
|
|
62
|
+
Layout/AlignArray:
|
|
63
63
|
Enabled: false
|
|
64
64
|
|
|
65
|
-
|
|
65
|
+
Layout/AlignHash:
|
|
66
66
|
Enabled: false
|
|
67
67
|
|
|
68
|
-
|
|
68
|
+
Layout/AlignParameters:
|
|
69
69
|
Enabled: false
|
|
70
70
|
|
|
71
71
|
Metrics/BlockNesting:
|
|
@@ -83,7 +83,7 @@ Metrics/MethodLength:
|
|
|
83
83
|
Style/BracesAroundHashParameters:
|
|
84
84
|
Enabled: false
|
|
85
85
|
|
|
86
|
-
|
|
86
|
+
Layout/CaseIndentation:
|
|
87
87
|
Enabled: false
|
|
88
88
|
|
|
89
89
|
Style/CollectionMethods:
|
|
@@ -92,25 +92,25 @@ Style/CollectionMethods:
|
|
|
92
92
|
Style/CommentAnnotation:
|
|
93
93
|
Enabled: false
|
|
94
94
|
|
|
95
|
-
|
|
95
|
+
Layout/CommentIndentation:
|
|
96
96
|
Enabled: false
|
|
97
97
|
|
|
98
98
|
Style/DefWithParentheses:
|
|
99
99
|
Enabled: false
|
|
100
100
|
|
|
101
|
-
|
|
101
|
+
Layout/DotPosition:
|
|
102
102
|
Enabled: false
|
|
103
103
|
|
|
104
104
|
Style/EachWithObject:
|
|
105
105
|
Enabled: false
|
|
106
106
|
|
|
107
|
-
|
|
107
|
+
Layout/EmptyLineBetweenDefs:
|
|
108
108
|
Enabled: false
|
|
109
109
|
|
|
110
|
-
|
|
110
|
+
Layout/EmptyLines:
|
|
111
111
|
Enabled: false
|
|
112
112
|
|
|
113
|
-
|
|
113
|
+
Layout/EmptyLinesAroundAccessModifier:
|
|
114
114
|
Enabled: false
|
|
115
115
|
|
|
116
116
|
Style/GuardClause:
|
|
@@ -122,7 +122,7 @@ Style/HashSyntax:
|
|
|
122
122
|
Style/IfUnlessModifier:
|
|
123
123
|
Enabled: false
|
|
124
124
|
|
|
125
|
-
|
|
125
|
+
Layout/IndentationWidth:
|
|
126
126
|
Enabled: false
|
|
127
127
|
|
|
128
128
|
Style/Lambda:
|
|
@@ -131,7 +131,7 @@ Style/Lambda:
|
|
|
131
131
|
Style/MultilineBlockChain:
|
|
132
132
|
Enabled: false
|
|
133
133
|
|
|
134
|
-
Style/
|
|
134
|
+
Style/MethodCallWithoutArgsParentheses:
|
|
135
135
|
Enabled: false
|
|
136
136
|
|
|
137
137
|
Style/MultilineIfThen:
|
|
@@ -146,7 +146,7 @@ Style/MultilineTernaryOperator:
|
|
|
146
146
|
Style/NilComparison:
|
|
147
147
|
Enabled: false
|
|
148
148
|
|
|
149
|
-
|
|
149
|
+
Naming/PredicateName:
|
|
150
150
|
Enabled: false
|
|
151
151
|
|
|
152
152
|
Style/RaiseArgs:
|
|
@@ -164,22 +164,19 @@ Style/RegexpLiteral:
|
|
|
164
164
|
Style/SingleLineMethods:
|
|
165
165
|
Enabled: false
|
|
166
166
|
|
|
167
|
-
|
|
167
|
+
Layout/SpaceAfterComma:
|
|
168
168
|
Enabled: false
|
|
169
169
|
|
|
170
|
-
|
|
170
|
+
Layout/SpaceAfterNot:
|
|
171
171
|
Enabled: false
|
|
172
172
|
|
|
173
|
-
|
|
173
|
+
Layout/SpaceAroundEqualsInParameterDefault:
|
|
174
174
|
Enabled: false
|
|
175
175
|
|
|
176
|
-
|
|
176
|
+
Layout/SpaceInsideParens:
|
|
177
177
|
Enabled: false
|
|
178
178
|
|
|
179
|
-
|
|
180
|
-
Enabled: false
|
|
181
|
-
|
|
182
|
-
Style/TrailingBlankLines:
|
|
179
|
+
Layout/TrailingBlankLines:
|
|
183
180
|
Enabled: false
|
|
184
181
|
|
|
185
182
|
Style/TrivialAccessors:
|
|
@@ -191,7 +188,7 @@ Style/WhileUntilDo:
|
|
|
191
188
|
Style/WhileUntilModifier:
|
|
192
189
|
Enabled: false
|
|
193
190
|
|
|
194
|
-
|
|
191
|
+
Layout/IndentHash:
|
|
195
192
|
Enabled: false
|
|
196
193
|
|
|
197
194
|
# As of rubocop 0.21, it thinks kwargs are useless assignments
|
|
@@ -200,3 +197,24 @@ UselessAssignment:
|
|
|
200
197
|
|
|
201
198
|
WordArray:
|
|
202
199
|
Enabled: false
|
|
200
|
+
|
|
201
|
+
Style/Encoding:
|
|
202
|
+
Enabled: false
|
|
203
|
+
|
|
204
|
+
Metrics/BlockLength:
|
|
205
|
+
Enabled: false
|
|
206
|
+
|
|
207
|
+
Layout/EmptyLineAfterMagicComment:
|
|
208
|
+
Enabled: false
|
|
209
|
+
|
|
210
|
+
Layout/IndentHeredoc:
|
|
211
|
+
Enabled: false
|
|
212
|
+
|
|
213
|
+
Layout/ClosingHeredocIndentation:
|
|
214
|
+
Enabled: false
|
|
215
|
+
|
|
216
|
+
Naming/HeredocDelimiterNaming:
|
|
217
|
+
Enabled: false
|
|
218
|
+
|
|
219
|
+
Gemspec/RequiredRubyVersion:
|
|
220
|
+
Enabled: false
|
data/.travis.yml
CHANGED
data/Gemfile
CHANGED
|
@@ -2,11 +2,11 @@ source 'https://rubygems.org'
|
|
|
2
2
|
|
|
3
3
|
group :development, :test do
|
|
4
4
|
gem 'bundler', '~> 1.11'
|
|
5
|
+
gem 'fakefs', '~> 0.7'
|
|
5
6
|
gem 'rake', '~> 10.5'
|
|
6
7
|
gem 'rspec', '~> 3.4'
|
|
7
8
|
gem 'rspec-mocks', '~> 3.4'
|
|
8
|
-
gem '
|
|
9
|
-
gem 'rubocop', '~> 0.36'
|
|
9
|
+
gem 'rubocop', '~> 0.49'
|
|
10
10
|
gem 'rubygems-tasks', '~> 0.2'
|
|
11
11
|
end
|
|
12
12
|
|
data/README.md
CHANGED
|
@@ -147,9 +147,7 @@ I'm using Travis CI to build and test on every push to the public github reposit
|
|
|
147
147
|
|
|
148
148
|
### Branching in Git
|
|
149
149
|
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
**PLEASE OPEN PULL REQUESTS AGAINST `develop` AND NOT `master`! THANK YOU!**
|
|
150
|
+
We release off the `master` branch -- open your pull requests against `master` for the time being. We were using git-flow but I've fallen out of love with its style in favor of more ad hoc branching and just keeping `master` clean for releases.
|
|
153
151
|
|
|
154
152
|
### TODO Work
|
|
155
153
|
|
data/RELEASENOTES.md
CHANGED
|
@@ -1,5 +1,11 @@
|
|
|
1
1
|
# packer-config Release Notes
|
|
2
2
|
|
|
3
|
+
## 1.6.2
|
|
4
|
+
|
|
5
|
+
* Updates for CVE-2017-8418
|
|
6
|
+
* Lots of fixes for things that broke because of the updates for CVE-2017-8418
|
|
7
|
+
* Updated integration spec to use to a CentOS version that exists
|
|
8
|
+
|
|
3
9
|
## 1.6.1
|
|
4
10
|
|
|
5
11
|
* Added a verbose option to the `verify` method on `Packer::Config`. Closes issue #19.
|
data/lib/packer/dataobject.rb
CHANGED
|
@@ -31,7 +31,7 @@ module Packer
|
|
|
31
31
|
if r.length - (r - self.data.keys).length > 1
|
|
32
32
|
raise DataValidationError.new("Found more than one exclusive setting in data from set #{r}")
|
|
33
33
|
end
|
|
34
|
-
elsif ! self.data.
|
|
34
|
+
elsif ! self.data.key? r
|
|
35
35
|
raise DataValidationError.new("Missing required setting #{r}")
|
|
36
36
|
end
|
|
37
37
|
end
|
data/lib/packer/envvar.rb
CHANGED
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
# Encoding: utf-8
|
|
2
|
-
# rubocop:disable Style/MethodMissing
|
|
3
2
|
|
|
4
3
|
module Packer
|
|
5
4
|
class EnvVar
|
|
5
|
+
# rubocop:disable Style/MethodMissingSuper
|
|
6
6
|
def method_missing(method_name, *args)
|
|
7
7
|
"{{env `#{method_name}`}}"
|
|
8
8
|
end
|
|
9
|
+
# rubocop:enable Style/MethodMissingSuper
|
|
9
10
|
|
|
10
11
|
def respond_to_missing?(method_name, include_private = false)
|
|
11
12
|
true
|
data/lib/packer/macro.rb
CHANGED
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
# Encoding: utf-8
|
|
2
|
-
# rubocop:disable Style/MethodMissing
|
|
3
2
|
|
|
4
3
|
module Packer
|
|
5
4
|
class Macro
|
|
5
|
+
# rubocop:disable Style/MethodMissingSuper
|
|
6
6
|
def method_missing(method_name, *args)
|
|
7
7
|
name = method_name.to_s.slice(0,1).capitalize + method_name.to_s.slice(1..-1)
|
|
8
8
|
"{{ .#{name} }}"
|
|
9
9
|
end
|
|
10
|
+
# rubocop:enable Style/MethodMissingSuper
|
|
10
11
|
|
|
11
12
|
def respond_to_missing?(method_name, include_private = false)
|
|
12
13
|
true
|
data/lib/packer/runner.rb
CHANGED
data/lib/packer/version.rb
CHANGED
data/packer-config.gemspec
CHANGED
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
require 'spec_helper'
|
|
3
3
|
|
|
4
4
|
RSpec.describe Packer::Config do
|
|
5
|
-
it 'can build a centos-6.
|
|
6
|
-
CENTOS_VERSION = '6.
|
|
5
|
+
it 'can build a centos-6.10 Vagrant base box' do
|
|
6
|
+
CENTOS_VERSION = '6.10'
|
|
7
7
|
|
|
8
8
|
pconfig = Packer::Config.new "centos-#{CENTOS_VERSION}-vagrant.json"
|
|
9
9
|
pconfig.description "CentOS #{CENTOS_VERSION} VirtualBox Vagrant"
|
|
@@ -18,7 +18,7 @@ RSpec.describe Packer::Config do
|
|
|
18
18
|
builder.guest_additions_path "VBoxGuestAdditions_#{pconfig.macro.Version}.iso"
|
|
19
19
|
builder.guest_os_type "RedHat_64"
|
|
20
20
|
builder.http_directory "scripts/kickstart"
|
|
21
|
-
builder.iso_checksum '
|
|
21
|
+
builder.iso_checksum '48908ca17bc4ba2fb8e365c9fe7648eb6cd6bd67'
|
|
22
22
|
builder.iso_checksum_type 'sha1'
|
|
23
23
|
builder.iso_url "#{pconfig.variable 'mirror'}/6/isos/x86_64/CentOS-#{CENTOS_VERSION}-x86_64-bin-DVD1.iso"
|
|
24
24
|
builder.output_directory "centos-#{CENTOS_VERSION}-x86_64-virtualbox"
|
|
File without changes
|
|
@@ -4,7 +4,7 @@ require 'spec_helper'
|
|
|
4
4
|
RSpec.describe Packer::Builder::VirtualBoxISO do
|
|
5
5
|
let(:builder) { Packer::Builder.get_builder(Packer::Builder::VIRTUALBOX_ISO) }
|
|
6
6
|
let(:in_commands_strings) { [["command1", "1"], ["command2", "2"]] }
|
|
7
|
-
let(:in_commands_mixed) { [["command1", 1
|
|
7
|
+
let(:in_commands_mixed) { [["command1", 1], ["command2", 2]] }
|
|
8
8
|
let(:out_commands_strings) { [["command1", "1"], ["command2", "2"]] }
|
|
9
9
|
|
|
10
10
|
it 'has a type of virtualbox-iso' do
|
|
@@ -10,7 +10,7 @@ RSpec.describe Packer::DataObject do
|
|
|
10
10
|
let(:some_hash_of_mixed) { { 'a' => 1, 'b' => 2 } }
|
|
11
11
|
let(:some_hash_of_strings) { { 'a' => '1', 'b' => '2' } }
|
|
12
12
|
let(:in_commands_strings) { [["command1", "1"], ["command2", "2"]] }
|
|
13
|
-
let(:in_commands_mixed) { [["command1", 1
|
|
13
|
+
let(:in_commands_mixed) { [["command1", 1], ["command2", 2]] }
|
|
14
14
|
let(:out_commands_strings) { [["command1", "1"], ["command2", "2"]] }
|
|
15
15
|
|
|
16
16
|
describe "#initialize" do
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: packer-config
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.6.
|
|
4
|
+
version: 1.6.2
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Ian Chesal
|
|
@@ -13,7 +13,7 @@ authors:
|
|
|
13
13
|
autorequire:
|
|
14
14
|
bindir: bin
|
|
15
15
|
cert_chain: []
|
|
16
|
-
date:
|
|
16
|
+
date: 2018-08-03 00:00:00.000000000 Z
|
|
17
17
|
dependencies: []
|
|
18
18
|
description: |
|
|
19
19
|
Building the Packer JSON configurations in raw JSON can be quite an adventure.
|
|
@@ -79,7 +79,7 @@ files:
|
|
|
79
79
|
- spec/integration/scripts/cleanup.sh
|
|
80
80
|
- spec/integration/scripts/fix-slow-dns.sh
|
|
81
81
|
- spec/integration/scripts/hello.sh
|
|
82
|
-
- spec/integration/scripts/kickstart/centos-6.
|
|
82
|
+
- spec/integration/scripts/kickstart/centos-6.10-ks.cfg
|
|
83
83
|
- spec/integration/scripts/minimize.sh
|
|
84
84
|
- spec/integration/scripts/sshd.sh
|
|
85
85
|
- spec/integration/scripts/vagrant.sh
|
|
@@ -140,7 +140,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
140
140
|
version: '0'
|
|
141
141
|
requirements: []
|
|
142
142
|
rubyforge_project:
|
|
143
|
-
rubygems_version: 2.5.1
|
|
143
|
+
rubygems_version: 2.5.2.1
|
|
144
144
|
signing_key:
|
|
145
145
|
specification_version: 4
|
|
146
146
|
summary: An object model to build packer.io configurations in Ruby.
|
|
@@ -153,7 +153,7 @@ test_files:
|
|
|
153
153
|
- spec/integration/scripts/cleanup.sh
|
|
154
154
|
- spec/integration/scripts/fix-slow-dns.sh
|
|
155
155
|
- spec/integration/scripts/hello.sh
|
|
156
|
-
- spec/integration/scripts/kickstart/centos-6.
|
|
156
|
+
- spec/integration/scripts/kickstart/centos-6.10-ks.cfg
|
|
157
157
|
- spec/integration/scripts/minimize.sh
|
|
158
158
|
- spec/integration/scripts/sshd.sh
|
|
159
159
|
- spec/integration/scripts/vagrant.sh
|