beaker-answers 0.29.0 → 1.0.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 3de3f5911e187aace01d347484ada220d2232e86590f023d41f5d829d7d3bb26
4
- data.tar.gz: 4155464e0c08a5d7af5b9a93ec5afd715fe57c97a2a494dec0d802a965ff73aa
3
+ metadata.gz: dd9969a95efcbd79c4dc4a82fc5ae7a695ae7ce24df064f61fbf6d2a0d6784e4
4
+ data.tar.gz: f46e41c233caf0d45f60fbf2e0e3d289db1453ca0f1237a44c22cfd44154760a
5
5
  SHA512:
6
- metadata.gz: 339587bab19121e9526c456df6e5d4a17a63ef305fa97026b7d766e00c9b97ea1775b5df57755251fd2ab8d2f6469e3c4712cde0b15fbc755270a6e9812ce87a
7
- data.tar.gz: f09344af2f200ae4f5301487cd116ef59ca858d7943d1b7e81b12cc988f89457b22736a15ef92b3ce612d66d3126cf490b6d0e359e12d6f07d84b3fecf080655
6
+ metadata.gz: dffdb9c90c96f317eea7fb7d9f860d4f97649fd6b72804d360d4568467913d45956cf710550e72f2464802be9927f755c7b9d6c994e8c34a4772260f17533d43
7
+ data.tar.gz: 80e65a310d67ce95d71b5da9532c6d7247caf84c618e1ffc83a9d6f5802bb2bc85b0de5a0283157d7ac8f785d8b04662078d5f39b356a8bb5df3b7db5044998a
@@ -0,0 +1,63 @@
1
+ name: Tag Release & Push Gem
2
+
3
+ on: workflow_dispatch
4
+
5
+ jobs:
6
+ release:
7
+ name: Validate Docs, Tag, and Push Gem
8
+ runs-on: ubuntu-latest
9
+ if: github.repository == 'puppetlabs/beaker-answers'
10
+
11
+ steps:
12
+ - name: Checkout code
13
+ uses: actions/checkout@v4
14
+ with:
15
+ ref: ${{ github.ref }}
16
+ clean: true
17
+ fetch-depth: 0
18
+
19
+ - name: Get New Version
20
+ id: nv
21
+ run: |
22
+ version=$(grep STRING lib/beaker-answers/version.rb |rev |cut -d "'" -f2 |rev)
23
+ echo "version=$version" >> $GITHUB_OUTPUT
24
+ echo "Found version $version from lib/beaker-answers/version.rb"
25
+
26
+ - name: Get Current Version
27
+ uses: actions/github-script@v7
28
+ id: cv
29
+ with:
30
+ script: |
31
+ const { data: response } = await github.rest.repos.getLatestRelease({
32
+ owner: context.repo.owner,
33
+ repo: context.repo.repo,
34
+ })
35
+ console.log(`The latest release is ${response.tag_name}`)
36
+ return response.tag_name
37
+ result-encoding: string
38
+
39
+ - name: Tag Release
40
+ uses: ncipollo/release-action@v1
41
+ with:
42
+ tag: ${{ steps.nv.outputs.version }}
43
+ token: ${{ secrets.GITHUB_TOKEN }}
44
+ draft: false
45
+ prerelease: false
46
+
47
+ - name: Set up Ruby 2.7
48
+ uses: actions/setup-ruby@v1
49
+ with:
50
+ version: 2.7.x
51
+
52
+ - name: Build gem
53
+ run: gem build *.gemspec
54
+
55
+ - name: Publish gem
56
+ run: |
57
+ mkdir -p $HOME/.gem
58
+ touch $HOME/.gem/credentials
59
+ chmod 0600 $HOME/.gem/credentials
60
+ printf -- "---\n:rubygems_api_key: ${GEM_HOST_API_KEY}\n" > $HOME/.gem/credentials
61
+ gem push *.gem
62
+ env:
63
+ GEM_HOST_API_KEY: ${{secrets.RUBYGEMS_AUTH_TOKEN}}
@@ -0,0 +1,39 @@
1
+ name: Security
2
+ on:
3
+ workflow_dispatch:
4
+ push:
5
+ branches:
6
+ - main
7
+
8
+ jobs:
9
+ scan:
10
+ name: Mend Scanning
11
+ runs-on: ubuntu-latest
12
+ steps:
13
+ - name: checkout repo content
14
+ uses: actions/checkout@v4
15
+ with:
16
+ fetch-depth: 1
17
+ - name: setup ruby
18
+ uses: ruby/setup-ruby@v1
19
+ with:
20
+ ruby-version: 2.7
21
+ # setup a package lock if one doesn't exist, otherwise do nothing
22
+ - name: check lock
23
+ run: '[ -f "Gemfile.lock" ] && echo "package lock file exists, skipping" || bundle lock'
24
+ # install java
25
+ - uses: actions/setup-java@v4
26
+ with:
27
+ distribution: 'temurin' # See 'Supported distributions' for available options
28
+ java-version: '17'
29
+ # download mend
30
+ - name: download_mend
31
+ run: curl -o wss-unified-agent.jar https://unified-agent.s3.amazonaws.com/wss-unified-agent.jar
32
+ - name: run mend
33
+ run: java -jar wss-unified-agent.jar
34
+ env:
35
+ WS_APIKEY: ${{ secrets.MEND_API_KEY }}
36
+ WS_WSS_URL: https://saas-eu.whitesourcesoftware.com/agent
37
+ WS_USERKEY: ${{ secrets.MEND_TOKEN }}
38
+ WS_PRODUCTNAME: RE
39
+ WS_PROJECTNAME: ${{ github.event.repository.name }}
@@ -0,0 +1,23 @@
1
+ name: Testing
2
+
3
+ on:
4
+ pull_request:
5
+ branches:
6
+ - main
7
+
8
+ jobs:
9
+ spec_tests:
10
+ runs-on: ubuntu-latest
11
+ strategy:
12
+ matrix:
13
+ ruby-version:
14
+ - '2.7'
15
+ steps:
16
+ - uses: actions/checkout@v4
17
+ - name: Set up Ruby
18
+ uses: ruby/setup-ruby@v1
19
+ with:
20
+ ruby-version: ${{ matrix.ruby-version }}
21
+ bundler-cache: true # runs 'bundle install' and caches installed gems automatically
22
+ - name: Run spec tests
23
+ run: bundle exec rake test
data/CODEOWNERS CHANGED
@@ -1,2 +1,2 @@
1
1
  # This repo is owned by the Installer team
2
- * @puppetlabs/installer-and-management
2
+ * @puppetlabs/dumpling @puppetlabs/skeletor
@@ -18,14 +18,14 @@ Gem::Specification.new do |s|
18
18
  s.require_paths = ["lib"]
19
19
 
20
20
  # Testing dependencies
21
- s.add_development_dependency 'fakefs', '~> 1.3'
21
+ s.add_development_dependency 'fakefs', '~> 2.5'
22
22
  s.add_development_dependency 'pry', '~> 0.10'
23
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
- s.add_development_dependency 'rubocop', '~> 0.50'
27
- s.add_development_dependency 'rubocop-rspec', '~> 1.20'
28
- s.add_development_dependency 'simplecov', '~> 0.21.2'
26
+ s.add_development_dependency 'rubocop', '~> 1.53'
27
+ s.add_development_dependency 'rubocop-rspec', '~> 1.40'
28
+ s.add_development_dependency 'simplecov', '~> 0.22.0'
29
29
 
30
30
  # Documentation dependencies
31
31
  s.add_development_dependency 'yard'
@@ -10,7 +10,7 @@ module BeakerAnswers
10
10
  DEFAULT_ANSWERS = StringifyHash.new.merge({
11
11
  :q_install => 'y',
12
12
  :q_puppet_enterpriseconsole_auth_user_email => 'admin@example.com',
13
- :q_puppet_enterpriseconsole_auth_password => '~!@#$%^*-/ aZ',
13
+ :q_puppet_enterpriseconsole_auth_password => 'Puppetlabs-1',
14
14
  :q_puppet_enterpriseconsole_smtp_port => 25,
15
15
  :q_puppet_enterpriseconsole_smtp_use_tls => 'n',
16
16
  :q_verify_packages => 'y',
@@ -99,7 +99,6 @@ module BeakerAnswers
99
99
  end
100
100
  warn 'Only upgrades to version 3.8.x generate specific upgrade answers. Defaulting to full answers.'
101
101
  end
102
-
103
102
  # finds all potential version classes
104
103
  # discovers new version classes as they are added, no more crazy case statement
105
104
  version_classes = self.supported_versions
@@ -1,5 +1,5 @@
1
1
  module BeakerAnswers
2
2
  module Version
3
- STRING = '0.29.0'
3
+ STRING = '1.0.0'
4
4
  end
5
5
  end
@@ -464,7 +464,7 @@ describe BeakerAnswers::Version30 do
464
464
 
465
465
  it 'sets correct answers for a master' do
466
466
  @ver = '3.0'
467
- expect( @answers['vm1'] ).to be === { :q_install=>"y", :q_vendor_packages_install=>"y", :q_puppetagent_install=>"y", :q_puppet_cloud_install=>"n", :q_verify_packages=>"y", :q_puppet_symlinks_install=>"y", :q_puppetagent_certname=>hosts[0].to_s, :q_puppetagent_server=>hosts[0].to_s, :q_puppetmaster_install=>"y", :q_all_in_one_install=>"y", :q_puppet_enterpriseconsole_install=>"y", :q_puppetdb_install=>"y", :q_database_install=>"y", :q_puppetdb_hostname=>hosts[0].to_s, :q_puppetdb_port=>8081, :q_puppetmaster_dnsaltnames=>"#{hosts[0].to_s},#{hosts[0][:ip]},puppet", :q_puppetmaster_enterpriseconsole_hostname=>hosts[0].to_s, :q_puppetmaster_enterpriseconsole_port=>443, :q_puppetmaster_certname=>hosts[0].to_s, :q_puppetdb_database_name=>"pe-puppetdb", :q_puppetdb_database_user=>"mYpdBu3r", :q_puppetdb_database_password=>"'~!@\#$%^*-/ aZ'", :q_puppet_enterpriseconsole_auth_database_name=>"console_auth", :q_puppet_enterpriseconsole_auth_database_user=>"mYu7hu3r", :q_puppet_enterpriseconsole_auth_database_password=>"'~!@\#$%^*-/ aZ'", :q_puppet_enterpriseconsole_database_name=>"console", :q_puppet_enterpriseconsole_database_user=>"mYc0nS03u3r", :q_puppet_enterpriseconsole_database_password=>"'~!@\#$%^*-/ aZ'", :q_database_host=>hosts[0].to_s, :q_database_port=>5432, :q_pe_database=>"y", :q_puppet_enterpriseconsole_inventory_hostname=>hosts[0].to_s, :q_puppet_enterpriseconsole_inventory_certname=>hosts[0].to_s, :q_puppet_enterpriseconsole_inventory_dnsaltnames=>hosts[0].to_s, :q_puppet_enterpriseconsole_inventory_port=>8140, :q_puppet_enterpriseconsole_master_hostname=>hosts[0].to_s, :q_puppet_enterpriseconsole_auth_user_email=>"'admin@example.com'", :q_puppet_enterpriseconsole_auth_password=>"'~!@\#$%^*-/ aZ'", :q_puppet_enterpriseconsole_httpd_port=>443, :q_puppet_enterpriseconsole_smtp_host=>"'vm1'", :q_puppet_enterpriseconsole_smtp_use_tls=>"'n'", :q_puppet_enterpriseconsole_smtp_port=>"'25'", :q_database_root_password=>"'=ZYdjiP3jCwV5eo9s1MBd'", :q_database_root_user=>"pe-postgres" }
467
+ expect( @answers['vm1'] ).to be === { :q_install=>"y", :q_vendor_packages_install=>"y", :q_puppetagent_install=>"y", :q_puppet_cloud_install=>"n", :q_verify_packages=>"y", :q_puppet_symlinks_install=>"y", :q_puppetagent_certname=>hosts[0].to_s, :q_puppetagent_server=>hosts[0].to_s, :q_puppetmaster_install=>"y", :q_all_in_one_install=>"y", :q_puppet_enterpriseconsole_install=>"y", :q_puppetdb_install=>"y", :q_database_install=>"y", :q_puppetdb_hostname=>hosts[0].to_s, :q_puppetdb_port=>8081, :q_puppetmaster_dnsaltnames=>"#{hosts[0].to_s},#{hosts[0][:ip]},puppet", :q_puppetmaster_enterpriseconsole_hostname=>hosts[0].to_s, :q_puppetmaster_enterpriseconsole_port=>443, :q_puppetmaster_certname=>hosts[0].to_s, :q_puppetdb_database_name=>"pe-puppetdb", :q_puppetdb_database_user=>"mYpdBu3r", :q_puppetdb_database_password=>"'~!@\#$%^*-/ aZ'", :q_puppet_enterpriseconsole_auth_database_name=>"console_auth", :q_puppet_enterpriseconsole_auth_database_user=>"mYu7hu3r", :q_puppet_enterpriseconsole_auth_database_password=>"'Puppetlabs-1'", :q_puppet_enterpriseconsole_database_name=>"console", :q_puppet_enterpriseconsole_database_user=>"mYc0nS03u3r", :q_puppet_enterpriseconsole_database_password=>"'Puppetlabs-1'", :q_database_host=>hosts[0].to_s, :q_database_port=>5432, :q_pe_database=>"y", :q_puppet_enterpriseconsole_inventory_hostname=>hosts[0].to_s, :q_puppet_enterpriseconsole_inventory_certname=>hosts[0].to_s, :q_puppet_enterpriseconsole_inventory_dnsaltnames=>hosts[0].to_s, :q_puppet_enterpriseconsole_inventory_port=>8140, :q_puppet_enterpriseconsole_master_hostname=>hosts[0].to_s, :q_puppet_enterpriseconsole_auth_user_email=>"'admin@example.com'", :q_puppet_enterpriseconsole_auth_password=>"'Puppetlabs-1'", :q_puppet_enterpriseconsole_httpd_port=>443, :q_puppet_enterpriseconsole_smtp_host=>"'vm1'", :q_puppet_enterpriseconsole_smtp_use_tls=>"'n'", :q_puppet_enterpriseconsole_smtp_port=>"'25'", :q_database_root_password=>"'=ZYdjiP3jCwV5eo9s1MBd'", :q_database_root_user=>"pe-postgres" }
468
468
  end
469
469
 
470
470
  it 'generates nil answers for a windows host' do
@@ -505,7 +505,7 @@ describe BeakerAnswers::Version28 do
505
505
  end
506
506
 
507
507
  it 'sets correct answers for a master' do
508
- expect( @answers['vm1'] ).to be === { :q_install=>"y", :q_puppetagent_install=>"y", :q_puppet_cloud_install=>"y", :q_puppet_symlinks_install=>"y", :q_vendor_packages_install=>"y", :q_puppetagent_certname=>hosts[0].to_s, :q_puppetagent_server=>hosts[0].to_s, :q_puppetmaster_install=>"y", :q_puppet_enterpriseconsole_install=>"y", :q_puppetmaster_certname=>hosts[0].to_s, :q_puppetmaster_dnsaltnames=>"#{hosts[0].to_s},#{hosts[0][:ip]},puppet", :q_puppetmaster_enterpriseconsole_hostname=>hosts[0].to_s, :q_puppetmaster_enterpriseconsole_port=>443, :q_puppetmaster_forward_facts=>"y", :q_puppet_enterpriseconsole_database_install=>"y", :q_puppet_enterpriseconsole_auth_database_name=>"console_auth", :q_puppet_enterpriseconsole_auth_database_user=>"mYu7hu3r", :q_puppet_enterpriseconsole_auth_database_password=>"'~!@\#$%^*-/ aZ'", :q_puppet_enterpriseconsole_database_name=>"console", :q_puppet_enterpriseconsole_database_user=>"mYc0nS03u3r", :q_puppet_enterpriseconsole_database_password=>"'~!@\#$%^*-/ aZ'", :q_puppet_enterpriseconsole_inventory_hostname=>hosts[0].to_s, :q_puppet_enterpriseconsole_inventory_certname=>hosts[0].to_s, :q_puppet_enterpriseconsole_inventory_dnsaltnames=>hosts[0].to_s, :q_puppet_enterpriseconsole_inventory_port=>8140, :q_puppet_enterpriseconsole_master_hostname=>hosts[0].to_s, :q_puppet_enterpriseconsole_auth_user_email=>"'admin@example.com'", :q_puppet_enterpriseconsole_auth_password=>"'~!@\#$%^*-/ aZ'", :q_puppet_enterpriseconsole_httpd_port=>443, :q_puppet_enterpriseconsole_smtp_host=>"'vm1'", :q_puppet_enterpriseconsole_smtp_use_tls=>"'n'", :q_puppet_enterpriseconsole_smtp_port=>"'25'", :q_puppet_enterpriseconsole_auth_user=>"'admin@example.com'" }
508
+ expect( @answers['vm1'] ).to be === { :q_install=>"y", :q_puppetagent_install=>"y", :q_puppet_cloud_install=>"y", :q_puppet_symlinks_install=>"y", :q_vendor_packages_install=>"y", :q_puppetagent_certname=>hosts[0].to_s, :q_puppetagent_server=>hosts[0].to_s, :q_puppetmaster_install=>"y", :q_puppet_enterpriseconsole_install=>"y", :q_puppetmaster_certname=>hosts[0].to_s, :q_puppetmaster_dnsaltnames=>"#{hosts[0].to_s},#{hosts[0][:ip]},puppet", :q_puppetmaster_enterpriseconsole_hostname=>hosts[0].to_s, :q_puppetmaster_enterpriseconsole_port=>443, :q_puppetmaster_forward_facts=>"y", :q_puppet_enterpriseconsole_database_install=>"y", :q_puppet_enterpriseconsole_auth_database_name=>"console_auth", :q_puppet_enterpriseconsole_auth_database_user=>"mYu7hu3r", :q_puppet_enterpriseconsole_auth_database_password=>"'Puppetlabs-1'", :q_puppet_enterpriseconsole_database_name=>"console", :q_puppet_enterpriseconsole_database_user=>"mYc0nS03u3r", :q_puppet_enterpriseconsole_database_password=>"'Puppetlabs-1'", :q_puppet_enterpriseconsole_inventory_hostname=>hosts[0].to_s, :q_puppet_enterpriseconsole_inventory_certname=>hosts[0].to_s, :q_puppet_enterpriseconsole_inventory_dnsaltnames=>hosts[0].to_s, :q_puppet_enterpriseconsole_inventory_port=>8140, :q_puppet_enterpriseconsole_master_hostname=>hosts[0].to_s, :q_puppet_enterpriseconsole_auth_user_email=>"'admin@example.com'", :q_puppet_enterpriseconsole_auth_password=>"'Puppetlabs-1'", :q_puppet_enterpriseconsole_httpd_port=>443, :q_puppet_enterpriseconsole_smtp_host=>"'vm1'", :q_puppet_enterpriseconsole_smtp_use_tls=>"'n'", :q_puppet_enterpriseconsole_smtp_port=>"'25'", :q_puppet_enterpriseconsole_auth_user=>"'admin@example.com'" }
509
509
  end
510
510
 
511
511
  it 'generates nil answers for a windows host' do
@@ -538,7 +538,7 @@ describe BeakerAnswers::Version20 do
538
538
  end
539
539
 
540
540
  it 'sets correct answers for a master' do
541
- expect( @answers['vm1'] ).to be === { :q_install=>"y", :q_puppetagent_install=>"y", :q_puppet_cloud_install=>"y", :q_puppet_symlinks_install=>"y", :q_vendor_packages_install=>"y", :q_puppetagent_certname=>hosts[0].to_s, :q_puppetagent_server=>hosts[0].to_s, :q_puppetmaster_install=>"y", :q_puppet_enterpriseconsole_install=>"y", :q_puppetmaster_certname=>hosts[0].to_s, :q_puppetmaster_dnsaltnames=>"#{hosts[0].to_s},#{hosts[0][:ip]},puppet", :q_puppetmaster_enterpriseconsole_hostname=>hosts[0].to_s, :q_puppetmaster_enterpriseconsole_port=>443, :q_puppetmaster_forward_facts=>"y", :q_puppet_enterpriseconsole_database_install=>"y", :q_puppet_enterpriseconsole_auth_database_name=>"console_auth", :q_puppet_enterpriseconsole_auth_database_user=>"mYu7hu3r", :q_puppet_enterpriseconsole_auth_database_password=>"'~!@\#$%^*-/ aZ'", :q_puppet_enterpriseconsole_database_name=>"console", :q_puppet_enterpriseconsole_database_user=>"mYc0nS03u3r", :q_puppet_enterpriseconsole_database_root_password=>"'~!@\#$%^*-/ aZ'", :q_puppet_enterpriseconsole_database_password=>"'~!@\#$%^*-/ aZ'", :q_puppet_enterpriseconsole_inventory_hostname=>hosts[0].to_s, :q_puppet_enterpriseconsole_inventory_certname=>hosts[0].to_s, :q_puppet_enterpriseconsole_inventory_dnsaltnames=>hosts[0].to_s, :q_puppet_enterpriseconsole_inventory_port=>8140, :q_puppet_enterpriseconsole_master_hostname=>hosts[0].to_s, :q_puppet_enterpriseconsole_auth_user_email=>"'admin@example.com'", :q_puppet_enterpriseconsole_auth_password=>"'~!@\#$%^*-/ aZ'", :q_puppet_enterpriseconsole_httpd_port=>443, :q_puppet_enterpriseconsole_smtp_host=>"'vm1'", :q_puppet_enterpriseconsole_smtp_use_tls=>"'n'", :q_puppet_enterpriseconsole_smtp_port=>"'25'", :q_puppet_enterpriseconsole_auth_user=>"'admin@example.com'" }
541
+ expect( @answers['vm1'] ).to be === { :q_install=>"y", :q_puppetagent_install=>"y", :q_puppet_cloud_install=>"y", :q_puppet_symlinks_install=>"y", :q_vendor_packages_install=>"y", :q_puppetagent_certname=>hosts[0].to_s, :q_puppetagent_server=>hosts[0].to_s, :q_puppetmaster_install=>"y", :q_puppet_enterpriseconsole_install=>"y", :q_puppetmaster_certname=>hosts[0].to_s, :q_puppetmaster_dnsaltnames=>"#{hosts[0].to_s},#{hosts[0][:ip]},puppet", :q_puppetmaster_enterpriseconsole_hostname=>hosts[0].to_s, :q_puppetmaster_enterpriseconsole_port=>443, :q_puppetmaster_forward_facts=>"y", :q_puppet_enterpriseconsole_database_install=>"y", :q_puppet_enterpriseconsole_auth_database_name=>"console_auth", :q_puppet_enterpriseconsole_auth_database_user=>"mYu7hu3r", :q_puppet_enterpriseconsole_auth_database_password=>"'Puppetlabs-1'", :q_puppet_enterpriseconsole_database_name=>"console", :q_puppet_enterpriseconsole_database_user=>"mYc0nS03u3r", :q_puppet_enterpriseconsole_database_root_password=>"'Puppetlabs-1'", :q_puppet_enterpriseconsole_database_password=>"'Puppetlabs-1'", :q_puppet_enterpriseconsole_inventory_hostname=>hosts[0].to_s, :q_puppet_enterpriseconsole_inventory_certname=>hosts[0].to_s, :q_puppet_enterpriseconsole_inventory_dnsaltnames=>hosts[0].to_s, :q_puppet_enterpriseconsole_inventory_port=>8140, :q_puppet_enterpriseconsole_master_hostname=>hosts[0].to_s, :q_puppet_enterpriseconsole_auth_user_email=>"'admin@example.com'", :q_puppet_enterpriseconsole_auth_password=>"'Puppetlabs-1'", :q_puppet_enterpriseconsole_httpd_port=>443, :q_puppet_enterpriseconsole_smtp_host=>"'vm1'", :q_puppet_enterpriseconsole_smtp_use_tls=>"'n'", :q_puppet_enterpriseconsole_smtp_port=>"'25'", :q_puppet_enterpriseconsole_auth_user=>"'admin@example.com'" }
542
542
  end
543
543
 
544
544
  it 'generates nil answers for a windows host' do
@@ -66,7 +66,7 @@ describe BeakerAnswers::Upgrade38 do
66
66
  expect(answer[:q_puppetdb_database_name]).to eq('pe-puppetdb')
67
67
  expect(answer[:q_puppetdb_database_user]).to eq('mYpdBu3r')
68
68
  expect(answer[:q_puppetdb_database_password]).to eq("'~!@#$%^*-/ aZ'")
69
- expect(answer[:q_puppet_enterpriseconsole_auth_password]).to eq("'~!@#$%^*-/ aZ'")
69
+ expect(answer[:q_puppet_enterpriseconsole_auth_password]).to eq("'Puppetlabs-1'")
70
70
  expect(answer[:q_puppetdb_port]).to eq(8081)
71
71
  expect(answer[:q_install]).to eq('y')
72
72
  expect(answer[:q_enable_future_parser]).to eq('y')
@@ -19,7 +19,7 @@ describe BeakerAnswers::Version20162 do
19
19
  basic_hosts }
20
20
  let( :gold_role_answers ) do
21
21
  {
22
- "console_admin_password" => default_password,
22
+ "console_admin_password" => default_console_password,
23
23
  "puppet_enterprise::use_application_services" => true,
24
24
  "puppet_enterprise::puppet_master_host" => basic_hosts[0].hostname,
25
25
  }
@@ -32,7 +32,7 @@ describe BeakerAnswers::Version20162 do
32
32
  context 'for a split install' do
33
33
  let( :gold_role_answers ) do
34
34
  {
35
- "console_admin_password" => default_password,
35
+ "console_admin_password" => default_console_password,
36
36
  "puppet_enterprise::use_application_services" => true,
37
37
  "puppet_enterprise::puppet_master_host" => basic_hosts[0].hostname,
38
38
  "puppet_enterprise::console_host" => basic_hosts[1].hostname,
@@ -19,7 +19,7 @@ describe BeakerAnswers::Version20163 do
19
19
  basic_hosts }
20
20
  let( :gold_role_answers ) do
21
21
  {
22
- "console_admin_password" => default_password,
22
+ "console_admin_password" => default_console_password,
23
23
  "puppet_enterprise::puppet_master_host" => basic_hosts[0].hostname,
24
24
  }
25
25
  end
@@ -31,7 +31,7 @@ describe BeakerAnswers::Version20163 do
31
31
  context 'for a split install' do
32
32
  let( :gold_role_answers ) do
33
33
  {
34
- "console_admin_password" => default_password,
34
+ "console_admin_password" => default_console_password,
35
35
  "puppet_enterprise::puppet_master_host" => basic_hosts[0].hostname,
36
36
  "puppet_enterprise::console_host" => basic_hosts[1].hostname,
37
37
  "puppet_enterprise::puppetdb_host" => basic_hosts[2].hostname,
@@ -18,7 +18,7 @@ describe BeakerAnswers::Version20171 do
18
18
  let(:hosts) { mono_hosts }
19
19
  let(:gold_role_answers) do
20
20
  {
21
- "console_admin_password" => default_password,
21
+ "console_admin_password" => default_console_password,
22
22
  "puppet_enterprise::puppet_master_host" => hosts[0].hostname,
23
23
  }
24
24
  end
@@ -30,7 +30,7 @@ describe BeakerAnswers::Version20172 do
30
30
  let(:hosts) { mono_hosts }
31
31
  let(:gold_role_answers) do
32
32
  {
33
- "console_admin_password" => default_password,
33
+ "console_admin_password" => default_console_password,
34
34
  "puppet_enterprise::puppet_master_host" => hosts[0].hostname,
35
35
  }
36
36
  end
@@ -43,7 +43,7 @@ describe BeakerAnswers::Version20172 do
43
43
  let(:hosts) { split_hosts }
44
44
  let( :gold_role_answers ) do
45
45
  {
46
- "console_admin_password" => default_password,
46
+ "console_admin_password" => default_console_password,
47
47
  "puppet_enterprise::puppet_master_host" => hosts[0].hostname,
48
48
  "puppet_enterprise::console_host" => hosts[1].hostname,
49
49
  "puppet_enterprise::puppetdb_host" => hosts[2].hostname,
@@ -64,7 +64,7 @@ describe BeakerAnswers::Version20172 do
64
64
  let(:hosts) { mono_hosts }
65
65
  let(:gold_role_answers) do
66
66
  {
67
- "console_admin_password" => default_password,
67
+ "console_admin_password" => default_console_password,
68
68
  "node_roles" => {
69
69
  "pe_role::monolithic::primary_master" => [hosts[0].hostname],
70
70
  },
@@ -81,7 +81,7 @@ describe BeakerAnswers::Version20172 do
81
81
  let(:hosts) { split_hosts }
82
82
  let( :gold_role_answers ) do
83
83
  {
84
- "console_admin_password" => default_password,
84
+ "console_admin_password" => default_console_password,
85
85
  "node_roles" => {
86
86
  "pe_role::split::primary_master" => [hosts[0].hostname],
87
87
  "pe_role::split::console" => [hosts[1].hostname],
@@ -37,7 +37,7 @@ describe BeakerAnswers::Version20173to9999 do
37
37
  let(:hosts) { mono_hosts }
38
38
  let(:gold_role_answers) do
39
39
  {
40
- "console_admin_password" => default_password,
40
+ "console_admin_password" => default_console_password,
41
41
  "puppet_enterprise::puppet_master_host" => hosts[0].hostname,
42
42
  }
43
43
  end
@@ -60,7 +60,7 @@ describe BeakerAnswers::Version20173to9999 do
60
60
  let(:hosts) { mono_hosts }
61
61
  let(:gold_role_answers) do
62
62
  {
63
- "console_admin_password" => default_password,
63
+ "console_admin_password" => default_console_password,
64
64
  "node_roles" => {
65
65
  "pe_role::monolithic::primary_master" => [hosts[0].hostname],
66
66
  },
@@ -2,6 +2,7 @@ RSpec.shared_examples 'pe.conf' do
2
2
  let( :options ) { { :format => 'hiera' } }
3
3
  let( :answer_hiera ) { answers.answer_hiera }
4
4
  let( :default_password ) { '~!@#$%^*-/ aZ' }
5
+ let( :default_console_password ) { 'Puppetlabs-1' }
5
6
  let( :gold_db_answers ) do
6
7
  {
7
8
  "puppet_enterprise::activity_database_user" => 'adsfglkj',
data/spec/spec_helper.rb CHANGED
@@ -12,4 +12,8 @@ require 'rspec/its'
12
12
  RSpec.configure do |config|
13
13
  config.include TestFileHelpers
14
14
  config.include HostHelpers
15
- end
15
+
16
+ config.expect_with :rspec do |c|
17
+ c.max_formatted_output_length = nil
18
+ end
19
+ 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.29.0
4
+ version: 1.0.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: 2021-06-08 00:00:00.000000000 Z
12
+ date: 2024-01-29 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: '1.3'
20
+ version: '2.5'
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: '1.3'
27
+ version: '2.5'
28
28
  - !ruby/object:Gem::Dependency
29
29
  name: pry
30
30
  requirement: !ruby/object:Gem::Requirement
@@ -87,42 +87,42 @@ dependencies:
87
87
  requirements:
88
88
  - - "~>"
89
89
  - !ruby/object:Gem::Version
90
- version: '0.50'
90
+ version: '1.53'
91
91
  type: :development
92
92
  prerelease: false
93
93
  version_requirements: !ruby/object:Gem::Requirement
94
94
  requirements:
95
95
  - - "~>"
96
96
  - !ruby/object:Gem::Version
97
- version: '0.50'
97
+ version: '1.53'
98
98
  - !ruby/object:Gem::Dependency
99
99
  name: rubocop-rspec
100
100
  requirement: !ruby/object:Gem::Requirement
101
101
  requirements:
102
102
  - - "~>"
103
103
  - !ruby/object:Gem::Version
104
- version: '1.20'
104
+ version: '1.40'
105
105
  type: :development
106
106
  prerelease: false
107
107
  version_requirements: !ruby/object:Gem::Requirement
108
108
  requirements:
109
109
  - - "~>"
110
110
  - !ruby/object:Gem::Version
111
- version: '1.20'
111
+ version: '1.40'
112
112
  - !ruby/object:Gem::Dependency
113
113
  name: simplecov
114
114
  requirement: !ruby/object:Gem::Requirement
115
115
  requirements:
116
116
  - - "~>"
117
117
  - !ruby/object:Gem::Version
118
- version: 0.21.2
118
+ version: 0.22.0
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.21.2
125
+ version: 0.22.0
126
126
  - !ruby/object:Gem::Dependency
127
127
  name: yard
128
128
  requirement: !ruby/object:Gem::Requirement
@@ -208,12 +208,14 @@ extensions: []
208
208
  extra_rdoc_files: []
209
209
  files:
210
210
  - ".github/dependabot.yml"
211
+ - ".github/workflows/release.yml"
212
+ - ".github/workflows/security.yml"
213
+ - ".github/workflows/testing.yml"
211
214
  - ".gitignore"
212
215
  - ".rspec"
213
216
  - ".rubocop.yml"
214
217
  - ".rubocop_todo.yml"
215
218
  - ".simplecov"
216
- - ".travis.yml"
217
219
  - CODEOWNERS
218
220
  - Gemfile
219
221
  - HISTORY.md
@@ -276,7 +278,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
276
278
  - !ruby/object:Gem::Version
277
279
  version: '0'
278
280
  requirements: []
279
- rubygems_version: 3.0.8
281
+ rubygems_version: 3.3.26
280
282
  signing_key:
281
283
  specification_version: 4
282
284
  summary: Answer generation for PE Installation!
data/.travis.yml DELETED
@@ -1,12 +0,0 @@
1
- ---
2
- language: ruby
3
- script:
4
- - "bundle exec rake $CHECK"
5
- fast_finish: true
6
- rvm:
7
- - 2.5.3
8
- env:
9
- - "CHECK=test"
10
-
11
- notifications:
12
- email: false