beaker-answers 0.25.0 → 0.26.0
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/lib/beaker-answers/version.rb +1 -1
- data/lib/beaker-answers/versions/version20192.rb +13 -0
- data/spec/beaker-answers/versions/version20181_spec.rb +53 -0
- data/spec/beaker-answers/versions/version20182_spec.rb +53 -0
- data/spec/beaker-answers/versions/version20190_spec.rb +53 -0
- data/spec/beaker-answers/versions/version20191_spec.rb +53 -0
- data/spec/beaker-answers/versions/version20192_spec.rb +53 -0
- metadata +8 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3b94651c5a5b71218cfc354ec829a75855b091ed
|
4
|
+
data.tar.gz: 329a134d15678b5673c62d9c3fd0bc9511ee9bb4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 985a8a3cd19b932102c97802cc4c0affeb7452ebadd65b71344718a1b4e41aea978b5ac8065e8f45cb5699e3c5e5cfa5110feb41f12f0ac533b8679a8ee06d30
|
7
|
+
data.tar.gz: 9512f0ff0648c54d9f89e9b150b395c275245dafdcd70763163a5b40be8dd3b880ab97b62ae7864f1abcfe9d89a5590f04189e8db3864176dbf75b864e3c4b79
|
@@ -0,0 +1,13 @@
|
|
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
|
@@ -0,0 +1,53 @@
|
|
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
|
@@ -0,0 +1,53 @@
|
|
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
|
@@ -0,0 +1,53 @@
|
|
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
|
@@ -0,0 +1,53 @@
|
|
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
|
@@ -0,0 +1,53 @@
|
|
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
|
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.26.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: 2019-04-18 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: fakefs
|
@@ -250,6 +250,7 @@ files:
|
|
250
250
|
- lib/beaker-answers/versions/version20182.rb
|
251
251
|
- lib/beaker-answers/versions/version20190.rb
|
252
252
|
- lib/beaker-answers/versions/version20191.rb
|
253
|
+
- lib/beaker-answers/versions/version20192.rb
|
253
254
|
- lib/beaker-answers/versions/version28.rb
|
254
255
|
- lib/beaker-answers/versions/version30.rb
|
255
256
|
- lib/beaker-answers/versions/version32.rb
|
@@ -265,6 +266,11 @@ files:
|
|
265
266
|
- spec/beaker-answers/versions/version20171_spec.rb
|
266
267
|
- spec/beaker-answers/versions/version20172_spec.rb
|
267
268
|
- 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
|
268
274
|
- spec/helpers.rb
|
269
275
|
- spec/shared/context.rb
|
270
276
|
- spec/spec_helper.rb
|