Skip to content

Commit 10a5790

Browse files
authored
Merge branch 'puppetlabs:main' into PUP-11597/generate_types_puppetx
2 parents 146ca76 + ad7d75b commit 10a5790

File tree

1,589 files changed

+27102
-28459
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

1,589 files changed

+27102
-28459
lines changed

.gemspec

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -10,15 +10,18 @@
1010
# Please see the [packaging
1111
# repository](https://github.com/puppetlabs/packaging) for information on how
1212
# to build the Puppet gem package.
13+
#
14+
# Make sure these gem requirements are in sync with ext/project_data.yaml and
15+
# the Gemfile
1316

1417
Gem::Specification.new do |s|
1518
s.name = "puppet"
16-
version = "6.29.0"
19+
version = "8.1.0"
1720
mdata = version.match(/(\d+\.\d+\.\d+)/)
1821
s.version = mdata ? mdata[1] : version
1922

2023
s.required_rubygems_version = Gem::Requirement.new("> 1.3.1")
21-
s.required_ruby_version = Gem::Requirement.new(">= 2.3.0")
24+
s.required_ruby_version = Gem::Requirement.new(">= 3.1.0")
2225
s.authors = ["Puppet Labs"]
2326
s.date = "2012-08-17"
2427
s.description = "Puppet, an automated configuration management tool"
@@ -31,15 +34,15 @@ Gem::Specification.new do |s|
3134
s.require_paths = ["lib"]
3235
s.summary = "Puppet, an automated configuration management tool"
3336
s.specification_version = 3
34-
s.add_runtime_dependency(%q<facter>, [">= 2.4.0", "< 5"])
35-
s.add_runtime_dependency(%q<hiera>, [">= 3.2.1", "< 4"])
37+
s.add_runtime_dependency(%q<facter>, [">= 4.3.0", "< 5"])
3638
s.add_runtime_dependency(%q<semantic_puppet>, "~> 1.0")
37-
s.add_runtime_dependency(%q<fast_gettext>, "~> 1.1")
39+
s.add_runtime_dependency(%q<fast_gettext>, ">= 2.1", "< 3")
3840
s.add_runtime_dependency(%q<locale>, "~> 2.1")
3941
s.add_runtime_dependency(%q<multi_json>, "~> 1.13")
40-
s.add_runtime_dependency(%q<httpclient>, "~> 2.8")
41-
s.add_runtime_dependency(%q<concurrent-ruby>, "~> 1.0")
42+
s.add_runtime_dependency(%q<puppet-resource_api>, "~> 1.5")
43+
s.add_runtime_dependency(%q<concurrent-ruby>, ["~> 1.0", "< 1.2.0"])
4244
s.add_runtime_dependency(%q<deep_merge>, "~> 1.0")
45+
s.add_runtime_dependency(%q<scanf>, "~> 1.0")
4346

4447
# loads platform specific gems like ffi, win32 platform gems
4548
# as additional runtime dependencies

.gitattributes

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
# Disable NL -> CRNL translation on Windows. This is necessary because the files on disk must
2+
# match the checksums in metadata.json.
3+
spec/fixtures/integration/application/module/environments/direnv/modules/nginx/README -text
4+
spec/fixtures/integration/application/module/environments/direnv/modules/nginx/metadata.json -text
5+
spec/fixtures/integration/application/module/environments/direnv/modules/nginx/Modulefile -text
6+
spec/fixtures/integration/application/module/environments/direnv/modules/nginx/manifests/init.pp -text

.github/workflows/checks.yaml

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,19 +3,22 @@ name: Checks
33

44
on:
55
push:
6-
branches: [6.x]
6+
branches: [main]
77
pull_request:
8-
branches: [6.x]
8+
branches: [main]
9+
10+
permissions:
11+
contents: read
912

1013
jobs:
1114
checks:
1215
name: ${{ matrix.cfg.check }}
1316
strategy:
1417
matrix:
1518
cfg:
16-
- {check: rubocop, os: ubuntu-latest, ruby: 2.5}
17-
- {check: commits, os: ubuntu-latest, ruby: 2.5}
18-
- {check: warnings, os: ubuntu-latest, ruby: 2.5}
19+
- {check: rubocop, os: ubuntu-latest, ruby: '3.1'}
20+
- {check: commits, os: ubuntu-latest, ruby: '3.1'}
21+
- {check: warnings, os: ubuntu-latest, ruby: '3.1'}
1922

2023
runs-on: ${{ matrix.cfg.os }}
2124
steps:
@@ -31,7 +34,7 @@ jobs:
3134

3235
- name: Update rubygems and install gems
3336
run: |
34-
gem update --system 3.3.26 --no-document
37+
gem update --system 3.3.26 --silent --no-document
3538
bundle config set without packaging documentation
3639
bundle install --jobs 4 --retry 3
3740

.github/workflows/mend.yaml

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
---
2+
name: Mend Monitor
3+
on:
4+
push:
5+
branches:
6+
- main
7+
jobs:
8+
mend_monitor:
9+
if: ${{ github.repository_owner == 'puppetlabs' }}
10+
runs-on: ubuntu-latest
11+
name: Mend Monitor
12+
steps:
13+
- name: Checkout current PR
14+
uses: actions/checkout@v3
15+
- name: Setup Ruby
16+
uses: ruby/setup-ruby@v1
17+
with:
18+
ruby-version: 3.1
19+
- name: Create lock
20+
run: bundle lock
21+
- uses: actions/setup-java@v3
22+
with:
23+
distribution: 'temurin'
24+
java-version: '17'
25+
- name: Download Mend
26+
run: curl -o wss-unified-agent.jar https://unified-agent.s3.amazonaws.com/wss-unified-agent.jar
27+
- name: Run Mend
28+
run: java -jar wss-unified-agent.jar
29+
env:
30+
WS_APIKEY: ${{ secrets.MEND_API_KEY }}
31+
WS_WSS_URL: https://saas-eu.whitesourcesoftware.com/agent
32+
WS_USERKEY: ${{ secrets.MEND_TOKEN }}
33+
WS_PRODUCTNAME: Puppet Agent
34+
WS_PROJECTNAME: ${{ github.event.repository.name }}

.github/workflows/rspec_tests.yaml

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -3,25 +3,25 @@ name: RSpec tests
33

44
on:
55
push:
6-
branches: [6.x]
6+
branches: [main]
77
pull_request:
8-
branches: [6.x]
8+
branches: [main]
9+
10+
permissions:
11+
contents: read
912

1013
jobs:
1114
rspec_tests:
1215
name: ${{ matrix.cfg.os }}(ruby ${{ matrix.cfg.ruby }})
1316
strategy:
1417
matrix:
1518
cfg:
16-
- {os: ubuntu-latest, ruby: 2.3}
17-
- {os: ubuntu-latest, ruby: 2.4}
18-
- {os: ubuntu-latest, ruby: 2.5}
19-
- {os: ubuntu-latest, ruby: 2.6}
20-
- {os: ubuntu-latest, ruby: 2.7}
21-
- {os: ubuntu-latest, ruby: jruby-9.2.9.0}
22-
- {os: windows-2019, ruby: 2.4}
23-
- {os: windows-2019, ruby: 2.5}
24-
- {os: windows-2019, ruby: 2.6}
19+
- {os: ubuntu-latest, ruby: '3.1'}
20+
- {os: ubuntu-20.04, ruby: '3.2'} # openssl 1.1.1
21+
- {os: ubuntu-22.04, ruby: '3.2'} # openssl 3
22+
- {os: ubuntu-latest, ruby: 'jruby-9.4.2.0'}
23+
- {os: windows-2019, ruby: '3.1'}
24+
- {os: windows-2019, ruby: '3.2'} # openssl 3
2525

2626
runs-on: ${{ matrix.cfg.os }}
2727
steps:
@@ -35,14 +35,14 @@ jobs:
3535

3636
- name: Update rubygems and install gems
3737
run: |
38-
gem update --system 3.3.26 --no-document
38+
gem update --system 3.3.26 --silent --no-document
3939
bundle config set without packaging documentation
4040
bundle install --jobs 4 --retry 3
4141
4242
- name: Run tests on Windows
4343
if: runner.os == 'Windows'
4444
run: |
45-
# from: https://github.com/MSP-Greg/ruby/blob/4f1147e6555bbb7f0868bca40c86ca078a7381c3/.github/workflows/mingw.yml
45+
# https://github.com/ruby/ruby/pull/2791/files#diff-ff5ff976e81bebd977f0834e60416abbR97-R100
4646
# Actions uses UTF8, causes test failures, similar to normal OS setup
4747
$PSDefaultParameterValues['*:Encoding'] = 'utf8'
4848
[Console]::OutputEncoding = [System.Text.Encoding]::GetEncoding("IBM437")

.github/workflows/snyk_monitor.yaml

Lines changed: 0 additions & 31 deletions
This file was deleted.

0 commit comments

Comments
 (0)