beaker-pe 2.11.16 → 2.11.19

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: 52adaf3c402a17eead36d731fb3f999b86abef884cec5cc575e481ac8e3e8c9f
4
- data.tar.gz: fc2acec40bf906655511f3c918345f3a425ac5bd98dc522791e912d8a0dc166a
3
+ metadata.gz: 72a086021092d8858a631836bf5748c9af05c634aaf8f592779f5dd410754297
4
+ data.tar.gz: d6550eea50d3e8e0dc8a5d2370ba01ba3b90195a49ede9254e5842c91d15863e
5
5
  SHA512:
6
- metadata.gz: 1d6a1cd59d1d3f3e9a00e363c60b9703b526bf77dcda4523ad830bd654ef02d9187c80f50828c913d51ba247da14fca0f2c8e0c5af2530f534c07fe6ad40925a
7
- data.tar.gz: 1dbbd8949c123c925cebcee3c82aee46a924433a9c829887e45916bdd040fb65e6e944e7ad8a2f6a5f384a49105597d809834b6262dffc25cc734a6b931b3bb1
6
+ metadata.gz: a074dd641c52eda075571a15c4d3370f2111af27b2c776d4b68d9d236a6c4bee2a702531c062907b2f51a0d48133001065e9b94bda155e4e7a0376b46010c4d2
7
+ data.tar.gz: 73a32f29d7a216d9de17e2175b6b77e8938ac414bbcbe1292195069f83274b1649bf79f24634e4526930c0297bea240f1292dc169da9a6b3efd5fe11ccdf95bf
@@ -0,0 +1,30 @@
1
+ ---
2
+ name: Snyk Scan
3
+ on: push
4
+
5
+ # Note: if your workflow involves working from branches
6
+ # on the puppetlabs repos directly rather from a fork
7
+ # you will probably want to use the below for events to
8
+ # reduce the reporting noise.
9
+ # on:
10
+ # push:
11
+ # branches:
12
+ # - main
13
+
14
+ jobs:
15
+ security:
16
+ runs-on: ubuntu-latest
17
+ steps:
18
+ - uses: actions/checkout@master
19
+ - name: setup ruby
20
+ uses: ruby/setup-ruby@v1
21
+ with:
22
+ ruby-version: 2.7
23
+ - name: create lock
24
+ run: bundle lock
25
+ - name: Run Snyk to check for vulnerabilities
26
+ uses: snyk/actions/ruby@master
27
+ env:
28
+ SNYK_TOKEN: ${{ secrets.SNYK_FOSS_KEY }}
29
+ with:
30
+ command: monitor
data/CODEOWNERS CHANGED
@@ -1,5 +1,5 @@
1
1
  #This Repository is maintained by both the beaker, installer, and Night's Watch teams, depending on the location of the changes
2
- * @puppetlabs/beaker
2
+ * @puppetlabs/dio
3
3
  /lib/beaker-pe/install @puppetlabs/installer-and-management
4
4
  /lib/beaker-pe/pe-client-tools @puppetlabs/night-s-watch
5
5
  /spec/beaker-pe/install @puppetlabs/installer-and-management
@@ -209,7 +209,7 @@ module Beaker
209
209
  protocol_to_use = '[System.Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12'
210
210
  end
211
211
 
212
- cmd = %Q{powershell -c "cd #{host['working_dir']};#{protocol_to_use};#{cert_validator};\\$webClient = New-Object System.Net.WebClient;\\$webClient.DownloadFile('https://#{downloadhost}:8140/packages/current/install.ps1', '#{host['working_dir']}/install.ps1');#{host['working_dir']}/install.ps1 -verbose #{frictionless_install_opts.join(' ')}"}
212
+ cmd = %Q{powershell -NoProfile -NonInteractive -NoLogo -ExecutionPolicy Bypass -c "cd #{host['working_dir']};#{protocol_to_use};#{cert_validator};\\$webClient = New-Object System.Net.WebClient;\\$webClient.DownloadFile('https://#{downloadhost}:8140/packages/current/install.ps1', '#{host['working_dir']}/install.ps1');#{host['working_dir']}/install.ps1 -verbose #{frictionless_install_opts.join(' ')}"}
213
213
  else
214
214
  curl_opts = %w{-O}
215
215
  if version_is_less(pe_version, '2019.1.0') || require_tlsv1?(host)
@@ -258,6 +258,9 @@ module Beaker
258
258
  pe_cmd += " -y"
259
259
  end
260
260
 
261
+ configure_flags = host['configure_flags'] || opts[:configure_flags]
262
+ pe_cmd += " -- #{configure_flags}" if configure_flags
263
+
261
264
  # If we are doing an upgrade from 2016.2.0,
262
265
  # we can assume there will be a valid pe.conf in /etc that we can re-use.
263
266
  # We also expect that any custom_answers specified to beaker have been
@@ -884,6 +887,7 @@ module Beaker
884
887
  end
885
888
 
886
889
  install_hosts.each do |host|
890
+ solaris_key_chain_fix
887
891
 
888
892
  if agent_only_check_needed && hosts_agent_only.include?(host) || install_via_msi?(host)
889
893
  host['type'] = 'aio'
@@ -1332,6 +1336,60 @@ module Beaker
1332
1336
  answers
1333
1337
  end
1334
1338
 
1339
+ # If installing older versions of solaris, make sure the DigiCert cert is added to the keychain
1340
+ def solaris_key_chain_fix
1341
+ digicert = <<-EOM
1342
+ -----BEGIN CERTIFICATE-----
1343
+ MIIFkDCCA3igAwIBAgIQBZsbV56OITLiOQe9p3d1XDANBgkqhkiG9w0BAQwFADBi
1344
+ MQswCQYDVQQGEwJVUzEVMBMGA1UEChMMRGlnaUNlcnQgSW5jMRkwFwYDVQQLExB3
1345
+ d3cuZGlnaWNlcnQuY29tMSEwHwYDVQQDExhEaWdpQ2VydCBUcnVzdGVkIFJvb3Qg
1346
+ RzQwHhcNMTMwODAxMTIwMDAwWhcNMzgwMTE1MTIwMDAwWjBiMQswCQYDVQQGEwJV
1347
+ UzEVMBMGA1UEChMMRGlnaUNlcnQgSW5jMRkwFwYDVQQLExB3d3cuZGlnaWNlcnQu
1348
+ Y29tMSEwHwYDVQQDExhEaWdpQ2VydCBUcnVzdGVkIFJvb3QgRzQwggIiMA0GCSqG
1349
+ SIb3DQEBAQUAA4ICDwAwggIKAoICAQC/5pBzaN675F1KPDAiMGkz7MKnJS7JIT3y
1350
+ ithZwuEppz1Yq3aaza57G4QNxDAf8xukOBbrVsaXbR2rsnnyyhHS5F/WBTxSD1If
1351
+ xp4VpX6+n6lXFllVcq9ok3DCsrp1mWpzMpTREEQQLt+C8weE5nQ7bXHiLQwb7iDV
1352
+ ySAdYyktzuxeTsiT+CFhmzTrBcZe7FsavOvJz82sNEBfsXpm7nfISKhmV1efVFiO
1353
+ DCu3T6cw2Vbuyntd463JT17lNecxy9qTXtyOj4DatpGYQJB5w3jHtrHEtWoYOAMQ
1354
+ jdjUN6QuBX2I9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nZn6yW0HQO+T0O/QEY+nvwlQAUaCKKsnOeMzV6ocEGLPOr0mI
1370
+ r/OSmbaz5mEP0oUA51Aa5BuVnRmhuZyxm7EAHu/QD09CbMkKvO5D+jpxpchNJqU1
1371
+ /YldvIViHTLSoCtU7ZpXwdv6EM8Zt4tKG48BtieVU+i2iW1bvGjUI+iLUaJW+fCm
1372
+ gKDWHrO8Dw9TdSmq6hN35N6MgSGtBxBHEa2HPQfRdbzP82Z+
1373
+ -----END CERTIFICATE-----
1374
+ EOM
1375
+ hosts.each do |host|
1376
+ if host.platform=~ /solaris-11(\.2)?-(i386|sparc)/
1377
+ create_remote_file(host, "DigiCertTrustedRootG4.crt.pem", digicert)
1378
+ on(host, 'chmod a+r /root/DigiCertTrustedRootG4.crt.pem')
1379
+ on(host, 'cp -p /root/DigiCertTrustedRootG4.crt.pem /etc/certs/CA/')
1380
+ on(host, 'rm /root/DigiCertTrustedRootG4.crt.pem')
1381
+ on(host, '/usr/sbin/svcadm restart /system/ca-certificates')
1382
+ timeout = 60
1383
+ counter = 0
1384
+ while on(host, 'svcs -x ca-certificates').output !~ /State: online/ do
1385
+ raise 'ca-certificates services failed start up' if counter > timeout
1386
+ sleep 5
1387
+ counter = counter + 5
1388
+ end
1389
+ end
1390
+ end
1391
+ end
1392
+
1335
1393
  # Builds the agent_only and not_agent_only arrays needed for installation.
1336
1394
  #
1337
1395
  # @param [Array<Host>] hosts hosts to split up into the arrays
@@ -2016,6 +2074,7 @@ module Beaker
2016
2074
  # @param [Array] agent only nodes from Beaker hosts
2017
2075
  # @param [Hash] opts The Beaker options hash
2018
2076
  def install_agents_only_on(agent_nodes, opts)
2077
+ solaris_key_chain_fix
2019
2078
  unless agent_nodes.empty?
2020
2079
  configure_type_defaults_on(agent_nodes)
2021
2080
 
@@ -3,7 +3,7 @@ module Beaker
3
3
  module PE
4
4
 
5
5
  module Version
6
- STRING = '2.11.16'
6
+ STRING = '2.11.19'
7
7
  end
8
8
 
9
9
  end
@@ -272,7 +272,7 @@ describe ClassMixedWithDSLInstallUtils do
272
272
  it 'generates a PS1 frictionless install command for windows' do
273
273
  host['platform'] = 'windows-2012-64'
274
274
  protocol = ''
275
- expecting = "powershell -c \"" +
275
+ expecting = "powershell -NoProfile -NonInteractive -NoLogo -ExecutionPolicy Bypass -c \"" +
276
276
  [
277
277
  "cd /tmp",
278
278
  "#{protocol}",
@@ -290,7 +290,7 @@ describe ClassMixedWithDSLInstallUtils do
290
290
  host['puppetpath'] = '/PuppetLabs/puppet/etc'
291
291
  host['use_puppet_ca_cert'] = true
292
292
  protocol = ''
293
- expecting = "powershell -c \"" +
293
+ expecting = "powershell -NoProfile -NonInteractive -NoLogo -ExecutionPolicy Bypass -c \"" +
294
294
  [
295
295
  "cd /tmp",
296
296
  "#{protocol}",
@@ -311,7 +311,7 @@ describe ClassMixedWithDSLInstallUtils do
311
311
  it 'generates a PS1 frictionless install command for windows with Tls12 protocol' do
312
312
  host['platform'] = 'windows-20012-64'
313
313
  protocol = '[System.Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12'
314
- expecting = "powershell -c \"" +
314
+ expecting = "powershell -NoProfile -NonInteractive -NoLogo -ExecutionPolicy Bypass -c \"" +
315
315
  [
316
316
  "cd /tmp",
317
317
  "#{protocol}",
@@ -327,7 +327,7 @@ describe ClassMixedWithDSLInstallUtils do
327
327
  it 'generates a PS1 frictionless install command for windows-2008 without Tls12 protocol' do
328
328
  host['platform'] = 'windows-2008-64'
329
329
  protocol = ''
330
- expecting = "powershell -c \"" +
330
+ expecting = "powershell -NoProfile -NonInteractive -NoLogo -ExecutionPolicy Bypass -c \"" +
331
331
  [
332
332
  "cd /tmp",
333
333
  "#{protocol}",
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: beaker-pe
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.11.16
4
+ version: 2.11.19
5
5
  platform: ruby
6
6
  authors:
7
7
  - Puppetlabs
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-08-21 00:00:00.000000000 Z
11
+ date: 2022-07-29 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rspec
@@ -249,6 +249,7 @@ extensions: []
249
249
  extra_rdoc_files: []
250
250
  files:
251
251
  - ".github/dependabot.yml"
252
+ - ".github/workflows/snyk_merge.yaml"
252
253
  - ".gitignore"
253
254
  - ".rspec"
254
255
  - ".simplecov"
@@ -307,7 +308,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
307
308
  - !ruby/object:Gem::Version
308
309
  version: '0'
309
310
  requirements: []
310
- rubygems_version: 3.0.8
311
+ rubygems_version: 3.0.9
311
312
  signing_key:
312
313
  specification_version: 4
313
314
  summary: Beaker PE DSL Helpers!