beaker-answers 0.26.1 → 0.29.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/.github/dependabot.yml +8 -0
- data/.travis.yml +1 -1
- data/CODEOWNERS +2 -0
- data/README.md +2 -2
- data/beaker-answers.gemspec +4 -5
- data/lib/beaker-answers/pe_conf.rb +1 -1
- data/lib/beaker-answers/version.rb +1 -1
- data/lib/beaker-answers/versions/version20173.rb +3 -3
- data/spec/beaker-answers/versions/version20173_spec.rb +68 -40
- metadata +19 -37
- data/MAINTAINERS +0 -33
- data/lib/beaker-answers/versions/version20181.rb +0 -14
- data/lib/beaker-answers/versions/version20182.rb +0 -14
- data/lib/beaker-answers/versions/version20190.rb +0 -14
- data/lib/beaker-answers/versions/version20191.rb +0 -13
- data/lib/beaker-answers/versions/version20192.rb +0 -13
- data/spec/beaker-answers/versions/version20181_spec.rb +0 -53
- data/spec/beaker-answers/versions/version20182_spec.rb +0 -53
- data/spec/beaker-answers/versions/version20190_spec.rb +0 -53
- data/spec/beaker-answers/versions/version20191_spec.rb +0 -53
- data/spec/beaker-answers/versions/version20192_spec.rb +0 -53
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: 3de3f5911e187aace01d347484ada220d2232e86590f023d41f5d829d7d3bb26
|
4
|
+
data.tar.gz: 4155464e0c08a5d7af5b9a93ec5afd715fe57c97a2a494dec0d802a965ff73aa
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 339587bab19121e9526c456df6e5d4a17a63ef305fa97026b7d766e00c9b97ea1775b5df57755251fd2ab8d2f6469e3c4712cde0b15fbc755270a6e9812ce87a
|
7
|
+
data.tar.gz: f09344af2f200ae4f5301487cd116ef59ca858d7943d1b7e81b12cc988f89457b22736a15ef92b3ce612d66d3126cf490b6d0e359e12d6f07d84b3fecf080655
|
data/.travis.yml
CHANGED
data/CODEOWNERS
ADDED
data/README.md
CHANGED
@@ -13,10 +13,10 @@ key concepts.
|
|
13
13
|
# Release
|
14
14
|
|
15
15
|
To release a new version, we use a
|
16
|
-
[Jenkins job](https://cinext-jenkinsmaster-sre-prod-1.delivery.puppetlabs.net/view/beaker%20Release%20Jobs/job/qe_beaker-answers_init-
|
16
|
+
[Jenkins job](https://cinext-jenkinsmaster-sre-prod-1.delivery.puppetlabs.net/view/beaker%20Release%20Jobs/job/qe_beaker-answers_init-multijob_main/)
|
17
17
|
(access to internal infrastructure will be required to view job).
|
18
18
|
|
19
|
-
To release a new version (from the
|
19
|
+
To release a new version (from the main branch), you'll need to just provide
|
20
20
|
a new beaker-answers version number to the job, and you're off to the races.
|
21
21
|
|
22
22
|
# Questions
|
data/beaker-answers.gemspec
CHANGED
@@ -18,23 +18,22 @@ Gem::Specification.new do |s|
|
|
18
18
|
s.require_paths = ["lib"]
|
19
19
|
|
20
20
|
# Testing dependencies
|
21
|
-
s.add_development_dependency 'fakefs', '~>
|
21
|
+
s.add_development_dependency 'fakefs', '~> 1.3'
|
22
22
|
s.add_development_dependency 'pry', '~> 0.10'
|
23
|
-
s.add_development_dependency 'rake', '~>
|
23
|
+
s.add_development_dependency 'rake', '~> 13.0'
|
24
24
|
s.add_development_dependency 'rspec', '~> 3.0'
|
25
25
|
s.add_development_dependency 'rspec-its'
|
26
26
|
s.add_development_dependency 'rubocop', '~> 0.50'
|
27
27
|
s.add_development_dependency 'rubocop-rspec', '~> 1.20'
|
28
|
-
s.add_development_dependency 'simplecov', '~> 0.
|
28
|
+
s.add_development_dependency 'simplecov', '~> 0.21.2'
|
29
29
|
|
30
30
|
# Documentation dependencies
|
31
31
|
s.add_development_dependency 'yard'
|
32
|
-
s.add_development_dependency 'markdown'
|
33
32
|
s.add_development_dependency 'thin'
|
34
33
|
|
35
34
|
# Run time dependencies
|
36
35
|
s.add_runtime_dependency 'stringify-hash', '~> 0.0.0'
|
37
|
-
s.add_runtime_dependency 'require_all', '
|
36
|
+
s.add_runtime_dependency 'require_all', '>= 1.3.2', '< 3.1.0'
|
38
37
|
s.add_runtime_dependency 'hocon', '~> 1.0'
|
39
38
|
|
40
39
|
end
|
@@ -1,13 +1,13 @@
|
|
1
1
|
require 'beaker-answers/versions/version20172'
|
2
2
|
|
3
3
|
module BeakerAnswers
|
4
|
-
# This class provides answer file information for PE version 2017.3
|
4
|
+
# This class provides answer file information for PE version 2017.3 AND BEYOND
|
5
5
|
#
|
6
6
|
# @api private
|
7
|
-
class
|
7
|
+
class Version20173to9999 < Version20172
|
8
8
|
# The version of PE that this set of answers is appropriate for
|
9
9
|
def self.pe_version_matcher
|
10
|
-
/\
|
10
|
+
/\A(2017\.3|2018\.[1-2]|2019\.[0-9]|20[2-9][1-9]\.[0-9])/
|
11
11
|
end
|
12
12
|
end
|
13
13
|
end
|
@@ -1,53 +1,81 @@
|
|
1
1
|
require 'spec_helper'
|
2
2
|
require 'json'
|
3
3
|
|
4
|
-
describe BeakerAnswers::
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
"puppet_enterprise::puppet_master_host" => hosts[0].hostname,
|
23
|
-
}
|
24
|
-
end
|
4
|
+
describe BeakerAnswers::Version20173to9999 do
|
5
|
+
versions = [
|
6
|
+
'2017.3.0',
|
7
|
+
'2017.3.9999',
|
8
|
+
'2018.1.0',
|
9
|
+
'2018.1.9999',
|
10
|
+
'2018.2.0',
|
11
|
+
'2019.0.0',
|
12
|
+
'2019.1.0',
|
13
|
+
'2019.2.0',
|
14
|
+
'2019.3.0',
|
15
|
+
'2019.3.99',
|
16
|
+
'2019.9.99',
|
17
|
+
'2020.0.0',
|
18
|
+
'2029.0.0',
|
19
|
+
'2099.0.0',
|
20
|
+
'2099.99.99',
|
21
|
+
]
|
25
22
|
|
26
|
-
|
27
|
-
|
23
|
+
versions.each do | version |
|
24
|
+
let(:ver) { version }
|
25
|
+
let(:options) { StringifyHash.new }
|
26
|
+
let(:mono_hosts) do
|
27
|
+
basic_hosts = make_hosts({'pe_ver' => ver }, 1)
|
28
|
+
basic_hosts[0]['roles'] = ['master', 'agent', 'dashboard', 'database']
|
29
|
+
basic_hosts[0]['platform'] = 'el-7-x86_64'
|
30
|
+
basic_hosts
|
28
31
|
end
|
29
|
-
|
32
|
+
let(:answers) { BeakerAnswers::Answers.create(ver, hosts, options) }
|
33
|
+
let(:answer_hash) { answers.answers }
|
34
|
+
|
35
|
+
context 'when generating a default 1.0 config' do
|
36
|
+
context 'for a monolithic install' do
|
37
|
+
let(:hosts) { mono_hosts }
|
38
|
+
let(:gold_role_answers) do
|
39
|
+
{
|
40
|
+
"console_admin_password" => default_password,
|
41
|
+
"puppet_enterprise::puppet_master_host" => hosts[0].hostname,
|
42
|
+
}
|
43
|
+
end
|
44
|
+
|
45
|
+
it "is testing version #{version}" do
|
46
|
+
expect(version).not_to be_empty
|
47
|
+
end
|
30
48
|
|
31
|
-
|
32
|
-
|
33
|
-
|
49
|
+
include_examples 'pe.conf'
|
50
|
+
include_examples 'valid MEEP 1.0 pe.conf'
|
51
|
+
end
|
34
52
|
end
|
35
53
|
|
36
|
-
context '
|
37
|
-
|
38
|
-
|
39
|
-
{
|
40
|
-
"console_admin_password" => default_password,
|
41
|
-
"node_roles" => {
|
42
|
-
"pe_role::monolithic::primary_master" => [hosts[0].hostname],
|
43
|
-
},
|
44
|
-
"agent_platforms" => match_array(['el_7_x86_64']),
|
45
|
-
"meep_schema_version" => "2.0",
|
46
|
-
}
|
54
|
+
context 'when generating a meep 2.0 config' do
|
55
|
+
before(:each) do
|
56
|
+
options[:meep_schema_version] = '2.0'
|
47
57
|
end
|
48
58
|
|
49
|
-
|
50
|
-
|
59
|
+
context 'for a monolithic install' do
|
60
|
+
let(:hosts) { mono_hosts }
|
61
|
+
let(:gold_role_answers) do
|
62
|
+
{
|
63
|
+
"console_admin_password" => default_password,
|
64
|
+
"node_roles" => {
|
65
|
+
"pe_role::monolithic::primary_master" => [hosts[0].hostname],
|
66
|
+
},
|
67
|
+
"agent_platforms" => match_array(['el_7_x86_64']),
|
68
|
+
"meep_schema_version" => "2.0",
|
69
|
+
}
|
70
|
+
end
|
71
|
+
|
72
|
+
it "is testing version #{version}" do
|
73
|
+
expect(version).not_to be_empty
|
74
|
+
end
|
75
|
+
|
76
|
+
include_examples 'pe.conf'
|
77
|
+
include_examples 'valid MEEP 2.0 pe.conf'
|
78
|
+
end
|
51
79
|
end
|
52
80
|
end
|
53
81
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: beaker-answers
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.29.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Puppetlabs
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date:
|
12
|
+
date: 2021-06-08 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: fakefs
|
@@ -17,14 +17,14 @@ dependencies:
|
|
17
17
|
requirements:
|
18
18
|
- - "~>"
|
19
19
|
- !ruby/object:Gem::Version
|
20
|
-
version: '
|
20
|
+
version: '1.3'
|
21
21
|
type: :development
|
22
22
|
prerelease: false
|
23
23
|
version_requirements: !ruby/object:Gem::Requirement
|
24
24
|
requirements:
|
25
25
|
- - "~>"
|
26
26
|
- !ruby/object:Gem::Version
|
27
|
-
version: '
|
27
|
+
version: '1.3'
|
28
28
|
- !ruby/object:Gem::Dependency
|
29
29
|
name: pry
|
30
30
|
requirement: !ruby/object:Gem::Requirement
|
@@ -45,14 +45,14 @@ dependencies:
|
|
45
45
|
requirements:
|
46
46
|
- - "~>"
|
47
47
|
- !ruby/object:Gem::Version
|
48
|
-
version: '
|
48
|
+
version: '13.0'
|
49
49
|
type: :development
|
50
50
|
prerelease: false
|
51
51
|
version_requirements: !ruby/object:Gem::Requirement
|
52
52
|
requirements:
|
53
53
|
- - "~>"
|
54
54
|
- !ruby/object:Gem::Version
|
55
|
-
version: '
|
55
|
+
version: '13.0'
|
56
56
|
- !ruby/object:Gem::Dependency
|
57
57
|
name: rspec
|
58
58
|
requirement: !ruby/object:Gem::Requirement
|
@@ -115,14 +115,14 @@ dependencies:
|
|
115
115
|
requirements:
|
116
116
|
- - "~>"
|
117
117
|
- !ruby/object:Gem::Version
|
118
|
-
version: 0.
|
118
|
+
version: 0.21.2
|
119
119
|
type: :development
|
120
120
|
prerelease: false
|
121
121
|
version_requirements: !ruby/object:Gem::Requirement
|
122
122
|
requirements:
|
123
123
|
- - "~>"
|
124
124
|
- !ruby/object:Gem::Version
|
125
|
-
version: 0.
|
125
|
+
version: 0.21.2
|
126
126
|
- !ruby/object:Gem::Dependency
|
127
127
|
name: yard
|
128
128
|
requirement: !ruby/object:Gem::Requirement
|
@@ -137,20 +137,6 @@ dependencies:
|
|
137
137
|
- - ">="
|
138
138
|
- !ruby/object:Gem::Version
|
139
139
|
version: '0'
|
140
|
-
- !ruby/object:Gem::Dependency
|
141
|
-
name: markdown
|
142
|
-
requirement: !ruby/object:Gem::Requirement
|
143
|
-
requirements:
|
144
|
-
- - ">="
|
145
|
-
- !ruby/object:Gem::Version
|
146
|
-
version: '0'
|
147
|
-
type: :development
|
148
|
-
prerelease: false
|
149
|
-
version_requirements: !ruby/object:Gem::Requirement
|
150
|
-
requirements:
|
151
|
-
- - ">="
|
152
|
-
- !ruby/object:Gem::Version
|
153
|
-
version: '0'
|
154
140
|
- !ruby/object:Gem::Dependency
|
155
141
|
name: thin
|
156
142
|
requirement: !ruby/object:Gem::Requirement
|
@@ -183,16 +169,22 @@ dependencies:
|
|
183
169
|
name: require_all
|
184
170
|
requirement: !ruby/object:Gem::Requirement
|
185
171
|
requirements:
|
186
|
-
- - "
|
172
|
+
- - ">="
|
187
173
|
- !ruby/object:Gem::Version
|
188
174
|
version: 1.3.2
|
175
|
+
- - "<"
|
176
|
+
- !ruby/object:Gem::Version
|
177
|
+
version: 3.1.0
|
189
178
|
type: :runtime
|
190
179
|
prerelease: false
|
191
180
|
version_requirements: !ruby/object:Gem::Requirement
|
192
181
|
requirements:
|
193
|
-
- - "
|
182
|
+
- - ">="
|
194
183
|
- !ruby/object:Gem::Version
|
195
184
|
version: 1.3.2
|
185
|
+
- - "<"
|
186
|
+
- !ruby/object:Gem::Version
|
187
|
+
version: 3.1.0
|
196
188
|
- !ruby/object:Gem::Dependency
|
197
189
|
name: hocon
|
198
190
|
requirement: !ruby/object:Gem::Requirement
|
@@ -215,16 +207,17 @@ executables:
|
|
215
207
|
extensions: []
|
216
208
|
extra_rdoc_files: []
|
217
209
|
files:
|
210
|
+
- ".github/dependabot.yml"
|
218
211
|
- ".gitignore"
|
219
212
|
- ".rspec"
|
220
213
|
- ".rubocop.yml"
|
221
214
|
- ".rubocop_todo.yml"
|
222
215
|
- ".simplecov"
|
223
216
|
- ".travis.yml"
|
217
|
+
- CODEOWNERS
|
224
218
|
- Gemfile
|
225
219
|
- HISTORY.md
|
226
220
|
- LICENSE
|
227
|
-
- MAINTAINERS
|
228
221
|
- README.md
|
229
222
|
- Rakefile
|
230
223
|
- beaker-answers.gemspec
|
@@ -246,11 +239,6 @@ files:
|
|
246
239
|
- lib/beaker-answers/versions/version20171.rb
|
247
240
|
- lib/beaker-answers/versions/version20172.rb
|
248
241
|
- lib/beaker-answers/versions/version20173.rb
|
249
|
-
- lib/beaker-answers/versions/version20181.rb
|
250
|
-
- lib/beaker-answers/versions/version20182.rb
|
251
|
-
- lib/beaker-answers/versions/version20190.rb
|
252
|
-
- lib/beaker-answers/versions/version20191.rb
|
253
|
-
- lib/beaker-answers/versions/version20192.rb
|
254
242
|
- lib/beaker-answers/versions/version28.rb
|
255
243
|
- lib/beaker-answers/versions/version30.rb
|
256
244
|
- lib/beaker-answers/versions/version32.rb
|
@@ -266,11 +254,6 @@ files:
|
|
266
254
|
- spec/beaker-answers/versions/version20171_spec.rb
|
267
255
|
- spec/beaker-answers/versions/version20172_spec.rb
|
268
256
|
- spec/beaker-answers/versions/version20173_spec.rb
|
269
|
-
- spec/beaker-answers/versions/version20181_spec.rb
|
270
|
-
- spec/beaker-answers/versions/version20182_spec.rb
|
271
|
-
- spec/beaker-answers/versions/version20190_spec.rb
|
272
|
-
- spec/beaker-answers/versions/version20191_spec.rb
|
273
|
-
- spec/beaker-answers/versions/version20192_spec.rb
|
274
257
|
- spec/helpers.rb
|
275
258
|
- spec/shared/context.rb
|
276
259
|
- spec/spec_helper.rb
|
@@ -293,8 +276,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
293
276
|
- !ruby/object:Gem::Version
|
294
277
|
version: '0'
|
295
278
|
requirements: []
|
296
|
-
|
297
|
-
rubygems_version: 2.5.1
|
279
|
+
rubygems_version: 3.0.8
|
298
280
|
signing_key:
|
299
281
|
specification_version: 4
|
300
282
|
summary: Answer generation for PE Installation!
|
data/MAINTAINERS
DELETED
@@ -1,33 +0,0 @@
|
|
1
|
-
{
|
2
|
-
"version": 1,
|
3
|
-
"file_format": "This MAINTAINERS file format is described at http://pup.pt/maintainers",
|
4
|
-
"issues": "https://tickets.puppet.com/browse/PE",
|
5
|
-
"internal_list": "https://groups.google.com/a/puppet.com/forum/?hl=en#!forum/discuss-organizational-scale",
|
6
|
-
"people": [
|
7
|
-
{
|
8
|
-
"github": "kevpl",
|
9
|
-
"email": "ki@puppet.com",
|
10
|
-
"name": "Kevin Imber"
|
11
|
-
},
|
12
|
-
{
|
13
|
-
"github": "tvpartytonight",
|
14
|
-
"email": "tv@puppet.com",
|
15
|
-
"name": "Tony Vu"
|
16
|
-
},
|
17
|
-
{
|
18
|
-
"github": "jpartlow",
|
19
|
-
"email": "joshua.partlow@puppet.com",
|
20
|
-
"name": "Josh Partlow"
|
21
|
-
},
|
22
|
-
{
|
23
|
-
"github": "demophoon",
|
24
|
-
"email": "britt@puppet.com",
|
25
|
-
"name": "Britt Gresham"
|
26
|
-
},
|
27
|
-
{
|
28
|
-
"github": "highb",
|
29
|
-
"email": "brandon.high@puppet.com",
|
30
|
-
"name": "Brandon High"
|
31
|
-
}
|
32
|
-
]
|
33
|
-
}
|
@@ -1,14 +0,0 @@
|
|
1
|
-
require 'beaker-answers/versions/version20173'
|
2
|
-
|
3
|
-
module BeakerAnswers
|
4
|
-
# This class provides answer file information for PE version 2018.1
|
5
|
-
#
|
6
|
-
# @api private
|
7
|
-
class Version20181 < Version20173
|
8
|
-
# The version of PE that this set of answers is appropriate for
|
9
|
-
def self.pe_version_matcher
|
10
|
-
/\A2018\.1/
|
11
|
-
end
|
12
|
-
|
13
|
-
end
|
14
|
-
end
|
@@ -1,14 +0,0 @@
|
|
1
|
-
require 'beaker-answers/versions/version20181'
|
2
|
-
|
3
|
-
module BeakerAnswers
|
4
|
-
# This class provides answer file information for PE version 2018.2
|
5
|
-
#
|
6
|
-
# @api private
|
7
|
-
class Version20182 < Version20181
|
8
|
-
# The version of PE that this set of answers is appropriate for
|
9
|
-
def self.pe_version_matcher
|
10
|
-
/\A2018\.2/
|
11
|
-
end
|
12
|
-
|
13
|
-
end
|
14
|
-
end
|
@@ -1,14 +0,0 @@
|
|
1
|
-
require 'beaker-answers/versions/version20181'
|
2
|
-
|
3
|
-
module BeakerAnswers
|
4
|
-
# This class provides answer file information for PE version 2019.0
|
5
|
-
#
|
6
|
-
# @api private
|
7
|
-
class Version20190 < Version20181
|
8
|
-
# The version of PE that this set of answers is appropriate for
|
9
|
-
def self.pe_version_matcher
|
10
|
-
/\A2019\.0/
|
11
|
-
end
|
12
|
-
|
13
|
-
end
|
14
|
-
end
|
@@ -1,13 +0,0 @@
|
|
1
|
-
require 'beaker-answers/versions/version20190'
|
2
|
-
|
3
|
-
module BeakerAnswers
|
4
|
-
# This class provides answer file information for PE version 2019.1
|
5
|
-
#
|
6
|
-
# @api private
|
7
|
-
class Version20191 < Version20190
|
8
|
-
# The version of PE that this set of answers is appropriate for
|
9
|
-
def self.pe_version_matcher
|
10
|
-
/\A2019\.1/
|
11
|
-
end
|
12
|
-
end
|
13
|
-
end
|
@@ -1,13 +0,0 @@
|
|
1
|
-
require 'beaker-answers/versions/version20191'
|
2
|
-
|
3
|
-
module BeakerAnswers
|
4
|
-
# This class provides answer file information for PE version 2019.1
|
5
|
-
#
|
6
|
-
# @api private
|
7
|
-
class Version20192 < Version20191
|
8
|
-
# The version of PE that this set of answers is appropriate for
|
9
|
-
def self.pe_version_matcher
|
10
|
-
/\A2019\.2/
|
11
|
-
end
|
12
|
-
end
|
13
|
-
end
|
@@ -1,53 +0,0 @@
|
|
1
|
-
require 'spec_helper'
|
2
|
-
require 'json'
|
3
|
-
|
4
|
-
describe BeakerAnswers::Version20181 do
|
5
|
-
let(:ver) { '2018.1.0' }
|
6
|
-
let(:options) { StringifyHash.new }
|
7
|
-
let(:mono_hosts) do
|
8
|
-
basic_hosts = make_hosts({'pe_ver' => ver }, 1)
|
9
|
-
basic_hosts[0]['roles'] = ['master', 'agent', 'dashboard', 'database']
|
10
|
-
basic_hosts[0]['platform'] = 'el-7-x86_64'
|
11
|
-
basic_hosts
|
12
|
-
end
|
13
|
-
let(:answers) { BeakerAnswers::Answers.create(ver, hosts, options) }
|
14
|
-
let(:answer_hash) { answers.answers }
|
15
|
-
|
16
|
-
context 'when generating a default 1.0 config' do
|
17
|
-
context 'for a monolithic install' do
|
18
|
-
let(:hosts) { mono_hosts }
|
19
|
-
let(:gold_role_answers) do
|
20
|
-
{
|
21
|
-
"console_admin_password" => default_password,
|
22
|
-
"puppet_enterprise::puppet_master_host" => hosts[0].hostname,
|
23
|
-
}
|
24
|
-
end
|
25
|
-
|
26
|
-
include_examples 'pe.conf'
|
27
|
-
include_examples 'valid MEEP 1.0 pe.conf'
|
28
|
-
end
|
29
|
-
end
|
30
|
-
|
31
|
-
context 'when generating a meep 2.0 config' do
|
32
|
-
before(:each) do
|
33
|
-
options[:meep_schema_version] = '2.0'
|
34
|
-
end
|
35
|
-
|
36
|
-
context 'for a monolithic install' do
|
37
|
-
let(:hosts) { mono_hosts }
|
38
|
-
let(:gold_role_answers) do
|
39
|
-
{
|
40
|
-
"console_admin_password" => default_password,
|
41
|
-
"node_roles" => {
|
42
|
-
"pe_role::monolithic::primary_master" => [hosts[0].hostname],
|
43
|
-
},
|
44
|
-
"agent_platforms" => match_array(['el_7_x86_64']),
|
45
|
-
"meep_schema_version" => "2.0",
|
46
|
-
}
|
47
|
-
end
|
48
|
-
|
49
|
-
include_examples 'pe.conf'
|
50
|
-
include_examples 'valid MEEP 2.0 pe.conf'
|
51
|
-
end
|
52
|
-
end
|
53
|
-
end
|
@@ -1,53 +0,0 @@
|
|
1
|
-
require 'spec_helper'
|
2
|
-
require 'json'
|
3
|
-
|
4
|
-
describe BeakerAnswers::Version20182 do
|
5
|
-
let(:ver) { '2018.2.0' }
|
6
|
-
let(:options) { StringifyHash.new }
|
7
|
-
let(:mono_hosts) do
|
8
|
-
basic_hosts = make_hosts({'pe_ver' => ver }, 1)
|
9
|
-
basic_hosts[0]['roles'] = ['master', 'agent', 'dashboard', 'database']
|
10
|
-
basic_hosts[0]['platform'] = 'el-7-x86_64'
|
11
|
-
basic_hosts
|
12
|
-
end
|
13
|
-
let(:answers) { BeakerAnswers::Answers.create(ver, hosts, options) }
|
14
|
-
let(:answer_hash) { answers.answers }
|
15
|
-
|
16
|
-
context 'when generating a default 1.0 config' do
|
17
|
-
context 'for a monolithic install' do
|
18
|
-
let(:hosts) { mono_hosts }
|
19
|
-
let(:gold_role_answers) do
|
20
|
-
{
|
21
|
-
"console_admin_password" => default_password,
|
22
|
-
"puppet_enterprise::puppet_master_host" => hosts[0].hostname,
|
23
|
-
}
|
24
|
-
end
|
25
|
-
|
26
|
-
include_examples 'pe.conf'
|
27
|
-
include_examples 'valid MEEP 1.0 pe.conf'
|
28
|
-
end
|
29
|
-
end
|
30
|
-
|
31
|
-
context 'when generating a meep 2.0 config' do
|
32
|
-
before(:each) do
|
33
|
-
options[:meep_schema_version] = '2.0'
|
34
|
-
end
|
35
|
-
|
36
|
-
context 'for a monolithic install' do
|
37
|
-
let(:hosts) { mono_hosts }
|
38
|
-
let(:gold_role_answers) do
|
39
|
-
{
|
40
|
-
"console_admin_password" => default_password,
|
41
|
-
"node_roles" => {
|
42
|
-
"pe_role::monolithic::primary_master" => [hosts[0].hostname],
|
43
|
-
},
|
44
|
-
"agent_platforms" => match_array(['el_7_x86_64']),
|
45
|
-
"meep_schema_version" => "2.0",
|
46
|
-
}
|
47
|
-
end
|
48
|
-
|
49
|
-
include_examples 'pe.conf'
|
50
|
-
include_examples 'valid MEEP 2.0 pe.conf'
|
51
|
-
end
|
52
|
-
end
|
53
|
-
end
|
@@ -1,53 +0,0 @@
|
|
1
|
-
require 'spec_helper'
|
2
|
-
require 'json'
|
3
|
-
|
4
|
-
describe BeakerAnswers::Version20190 do
|
5
|
-
let(:ver) { '2019.0.0' }
|
6
|
-
let(:options) { StringifyHash.new }
|
7
|
-
let(:mono_hosts) do
|
8
|
-
basic_hosts = make_hosts({'pe_ver' => ver }, 1)
|
9
|
-
basic_hosts[0]['roles'] = ['master', 'agent', 'dashboard', 'database']
|
10
|
-
basic_hosts[0]['platform'] = 'el-7-x86_64'
|
11
|
-
basic_hosts
|
12
|
-
end
|
13
|
-
let(:answers) { BeakerAnswers::Answers.create(ver, hosts, options) }
|
14
|
-
let(:answer_hash) { answers.answers }
|
15
|
-
|
16
|
-
context 'when generating a default 1.0 config' do
|
17
|
-
context 'for a monolithic install' do
|
18
|
-
let(:hosts) { mono_hosts }
|
19
|
-
let(:gold_role_answers) do
|
20
|
-
{
|
21
|
-
"console_admin_password" => default_password,
|
22
|
-
"puppet_enterprise::puppet_master_host" => hosts[0].hostname,
|
23
|
-
}
|
24
|
-
end
|
25
|
-
|
26
|
-
include_examples 'pe.conf'
|
27
|
-
include_examples 'valid MEEP 1.0 pe.conf'
|
28
|
-
end
|
29
|
-
end
|
30
|
-
|
31
|
-
context 'when generating a meep 2.0 config' do
|
32
|
-
before(:each) do
|
33
|
-
options[:meep_schema_version] = '2.0'
|
34
|
-
end
|
35
|
-
|
36
|
-
context 'for a monolithic install' do
|
37
|
-
let(:hosts) { mono_hosts }
|
38
|
-
let(:gold_role_answers) do
|
39
|
-
{
|
40
|
-
"console_admin_password" => default_password,
|
41
|
-
"node_roles" => {
|
42
|
-
"pe_role::monolithic::primary_master" => [hosts[0].hostname],
|
43
|
-
},
|
44
|
-
"agent_platforms" => match_array(['el_7_x86_64']),
|
45
|
-
"meep_schema_version" => "2.0",
|
46
|
-
}
|
47
|
-
end
|
48
|
-
|
49
|
-
include_examples 'pe.conf'
|
50
|
-
include_examples 'valid MEEP 2.0 pe.conf'
|
51
|
-
end
|
52
|
-
end
|
53
|
-
end
|
@@ -1,53 +0,0 @@
|
|
1
|
-
require 'spec_helper'
|
2
|
-
require 'json'
|
3
|
-
|
4
|
-
describe BeakerAnswers::Version20191 do
|
5
|
-
let(:ver) { '2019.1.0' }
|
6
|
-
let(:options) { StringifyHash.new }
|
7
|
-
let(:mono_hosts) do
|
8
|
-
basic_hosts = make_hosts({'pe_ver' => ver }, 1)
|
9
|
-
basic_hosts[0]['roles'] = ['master', 'agent', 'dashboard', 'database']
|
10
|
-
basic_hosts[0]['platform'] = 'el-7-x86_64'
|
11
|
-
basic_hosts
|
12
|
-
end
|
13
|
-
let(:answers) { BeakerAnswers::Answers.create(ver, hosts, options) }
|
14
|
-
let(:answer_hash) { answers.answers }
|
15
|
-
|
16
|
-
context 'when generating a default 1.0 config' do
|
17
|
-
context 'for a monolithic install' do
|
18
|
-
let(:hosts) { mono_hosts }
|
19
|
-
let(:gold_role_answers) do
|
20
|
-
{
|
21
|
-
"console_admin_password" => default_password,
|
22
|
-
"puppet_enterprise::puppet_master_host" => hosts[0].hostname,
|
23
|
-
}
|
24
|
-
end
|
25
|
-
|
26
|
-
include_examples 'pe.conf'
|
27
|
-
include_examples 'valid MEEP 1.0 pe.conf'
|
28
|
-
end
|
29
|
-
end
|
30
|
-
|
31
|
-
context 'when generating a meep 2.0 config' do
|
32
|
-
before(:each) do
|
33
|
-
options[:meep_schema_version] = '2.0'
|
34
|
-
end
|
35
|
-
|
36
|
-
context 'for a monolithic install' do
|
37
|
-
let(:hosts) { mono_hosts }
|
38
|
-
let(:gold_role_answers) do
|
39
|
-
{
|
40
|
-
"console_admin_password" => default_password,
|
41
|
-
"node_roles" => {
|
42
|
-
"pe_role::monolithic::primary_master" => [hosts[0].hostname],
|
43
|
-
},
|
44
|
-
"agent_platforms" => match_array(['el_7_x86_64']),
|
45
|
-
"meep_schema_version" => "2.0",
|
46
|
-
}
|
47
|
-
end
|
48
|
-
|
49
|
-
include_examples 'pe.conf'
|
50
|
-
include_examples 'valid MEEP 2.0 pe.conf'
|
51
|
-
end
|
52
|
-
end
|
53
|
-
end
|
@@ -1,53 +0,0 @@
|
|
1
|
-
require 'spec_helper'
|
2
|
-
require 'json'
|
3
|
-
|
4
|
-
describe BeakerAnswers::Version20192 do
|
5
|
-
let(:ver) { '2019.2.0' }
|
6
|
-
let(:options) { StringifyHash.new }
|
7
|
-
let(:mono_hosts) do
|
8
|
-
basic_hosts = make_hosts({'pe_ver' => ver }, 1)
|
9
|
-
basic_hosts[0]['roles'] = ['master', 'agent', 'dashboard', 'database']
|
10
|
-
basic_hosts[0]['platform'] = 'el-7-x86_64'
|
11
|
-
basic_hosts
|
12
|
-
end
|
13
|
-
let(:answers) { BeakerAnswers::Answers.create(ver, hosts, options) }
|
14
|
-
let(:answer_hash) { answers.answers }
|
15
|
-
|
16
|
-
context 'when generating a default 1.0 config' do
|
17
|
-
context 'for a monolithic install' do
|
18
|
-
let(:hosts) { mono_hosts }
|
19
|
-
let(:gold_role_answers) do
|
20
|
-
{
|
21
|
-
"console_admin_password" => default_password,
|
22
|
-
"puppet_enterprise::puppet_master_host" => hosts[0].hostname,
|
23
|
-
}
|
24
|
-
end
|
25
|
-
|
26
|
-
include_examples 'pe.conf'
|
27
|
-
include_examples 'valid MEEP 1.0 pe.conf'
|
28
|
-
end
|
29
|
-
end
|
30
|
-
|
31
|
-
context 'when generating a meep 2.0 config' do
|
32
|
-
before(:each) do
|
33
|
-
options[:meep_schema_version] = '2.0'
|
34
|
-
end
|
35
|
-
|
36
|
-
context 'for a monolithic install' do
|
37
|
-
let(:hosts) { mono_hosts }
|
38
|
-
let(:gold_role_answers) do
|
39
|
-
{
|
40
|
-
"console_admin_password" => default_password,
|
41
|
-
"node_roles" => {
|
42
|
-
"pe_role::monolithic::primary_master" => [hosts[0].hostname],
|
43
|
-
},
|
44
|
-
"agent_platforms" => match_array(['el_7_x86_64']),
|
45
|
-
"meep_schema_version" => "2.0",
|
46
|
-
}
|
47
|
-
end
|
48
|
-
|
49
|
-
include_examples 'pe.conf'
|
50
|
-
include_examples 'valid MEEP 2.0 pe.conf'
|
51
|
-
end
|
52
|
-
end
|
53
|
-
end
|