20 changes: 20 additions & 0 deletions .github/pull_request_template.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
## Summary
Provide a detailed description of all the changes present in this pull request.

## Additional Context
Add any additional context about the problem here.

## Related Issues (if any)
Mention any related issues or pull requests.

## Checklist
- [ ] 🟢 Spec tests.
- [ ] 🟢 Acceptance tests.

#### Changes include test coverage?
- [ ] Yes
- [ ] Not needed

#### Have you updated the documentation?
- [ ] Yes, I've updated the appropriate docs
- [ ] Not needed
17 changes: 17 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
name: "ci"

on:
pull_request:
branches:
- "main"
workflow_dispatch:

jobs:
Spec:
uses: "puppetlabs/cat-github-actions/.github/workflows/module_ci.yml@main"
secrets: "inherit"

Acceptance:
needs: Spec
uses: "puppetlabs/cat-github-actions/.github/workflows/module_acceptance.yml@main"
secrets: "inherit"
47 changes: 47 additions & 0 deletions .github/workflows/mend.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
name: "mend"

on:
pull_request:
branches:
- "main"
schedule:
- cron: "0 0 * * *"
workflow_dispatch:

jobs:

mend:
if: github.event.pull_request.head.repo.full_name == github.repository
runs-on: "ubuntu-latest"

steps:

- name: "checkout"
uses: "actions/checkout@v3"
with:
fetch-depth: 1

- name: "setup ruby"
uses: "ruby/setup-ruby@v1"
with:
ruby-version: 2.7

- name: "bundle lock"
run: bundle lock

- uses: "actions/setup-java@v3"
with:
distribution: "temurin"
java-version: "17"

- name: "download"
run: curl -o wss-unified-agent.jar https://unified-agent.s3.amazonaws.com/wss-unified-agent.jar

- name: "scan"
run: java -jar wss-unified-agent.jar
env:
WS_APIKEY: ${{ secrets.MEND_API_KEY }}
WS_WSS_URL: https://saas-eu.whitesourcesoftware.com/agent
WS_USERKEY: ${{ secrets.MEND_TOKEN }}
WS_PRODUCTNAME: "Puppet Enterprise"
WS_PROJECTNAME: ${{ github.event.repository.name }}
16 changes: 16 additions & 0 deletions .github/workflows/nightly.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
name: "nightly"

on:
schedule:
- cron: "0 0 * * *"
workflow_dispatch:

jobs:
Spec:
uses: "puppetlabs/cat-github-actions/.github/workflows/module_ci.yml@main"
secrets: "inherit"

Acceptance:
needs: Spec
uses: "puppetlabs/cat-github-actions/.github/workflows/module_acceptance.yml@main"
secrets: "inherit"
44 changes: 3 additions & 41 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,44 +4,6 @@ on:
workflow_dispatch:

jobs:
create-github-release:
name: Deploy GitHub Release
runs-on: ubuntu-20.04
steps:
- name: Checkout code
uses: actions/checkout@v2
with:
ref: ${{ github.ref }}
clean: true
fetch-depth: 0
- name: Get Version
id: gv
run: |
echo "::set-output name=ver::$(jq --raw-output .version metadata.json)"
- name: Create Release
uses: actions/create-release@v1
id: create_release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: "v${{ steps.gv.outputs.ver }}"
draft: false
prerelease: false

deploy-forge:
name: Deploy to Forge
runs-on: ubuntu-20.04
steps:
- name: Checkout code
uses: actions/checkout@v2
with:
ref: ${{ github.ref }}
clean: true
- name: "PDK Build"
uses: docker://puppet/pdk:2.6.1.0
with:
args: 'build'
- name: "Push to Forge"
uses: docker://puppet/pdk:2.6.1.0
with:
args: 'release publish --forge-token ${{ secrets.FORGE_API_KEY }} --force'
release:
uses: "puppetlabs/cat-github-actions/.github/workflows/module_release.yml@main"
secrets: "inherit"
2 changes: 1 addition & 1 deletion .github/workflows/test-fips-install-matrix.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ jobs:
version:
- 2019.8.12
- 2021.7.2
- 2023.2.0
- 2023.3.0
image:
- rhel-8
fips:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/test-install-matrix.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ jobs:
version:
- 2019.8.12
- 2021.7.4
- 2023.2.0
- 2023.3.0
image:
- centos-7
- almalinux-cloud/almalinux-8
Expand Down
2 changes: 0 additions & 2 deletions .puppet-lint.rc
Original file line number Diff line number Diff line change
@@ -1,3 +1 @@
--relative
--no-strict_indent-check
--no-manifest_whitespace_missing_newline_end_of_file-check
5 changes: 4 additions & 1 deletion .rubocop.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,11 @@ require:
- rubocop-performance
- rubocop-rspec
AllCops:
Newcops: enable
ExtraDetails: true
DisplayStyleGuide: true
DisplayCopNames: true
TargetRubyVersion: '2.6'
TargetRubyVersion: '2.7'
Include:
- "**/*.rb"
Exclude:
Expand Down
7 changes: 7 additions & 0 deletions .rubocop_todo.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# This configuration was generated by
# `rubocop --auto-gen-config`
# on 2023-09-05 10:29:15 UTC using RuboCop version 1.48.1.
# The point is for the user to remove these configuration records
# one by one as the offenses are removed from the code base.
# Note that changes in the inspected code, or installation of new
# versions of RuboCop, may require this file to be generated again.
10 changes: 9 additions & 1 deletion .sync.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,16 @@ spec/spec_helper.rb:
.github/workflows/auto_release.yml:
unmanaged: false
.github/workflows/release.yml:
unmanaged: true
unmanaged: false
.github/workflows/spec.yml:
unmanaged: false
.github/workflows/ci.yml:
unmanaged: false
.github/workflows/nightly.yml:
unmanaged: false
.travis.yml:
delete: true
".gitlab-ci.yml":
delete: true
appveyor.yml:
delete: true
32 changes: 26 additions & 6 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,28 @@ All notable changes to this project will be documented in this file.

The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/) and this project adheres to [Semantic Versioning](http://semver.org).

## [v3.14.0](https://github.com/puppetlabs/puppetlabs-peadm/tree/v3.14.0) - 2023-09-15

[Full Changelog](https://github.com/puppetlabs/puppetlabs-peadm/compare/v3.13.1...v3.14.0)

### Other

- Revert "Release prep v3.14 (#384)" [#385](https://github.com/puppetlabs/puppetlabs-peadm/pull/385) ([AaronShannon](https://github.com/AaronShannon))
- (PE-36822) Bumping supported PE from 2023.2 to 2023.3 [#383](https://github.com/puppetlabs/puppetlabs-peadm/pull/383) ([ragingra](https://github.com/ragingra))
- (PE-36789) R10k Known hosts upgrade path [#382](https://github.com/puppetlabs/puppetlabs-peadm/pull/382) ([ragingra](https://github.com/ragingra))
- (PE-36580) Add r10k_known_hosts to install plan [#380](https://github.com/puppetlabs/puppetlabs-peadm/pull/380) ([jpartlow](https://github.com/jpartlow))
- PE-3PE-36464 metadata updated [#378](https://github.com/puppetlabs/puppetlabs-peadm/pull/378) ([AaronShannon](https://github.com/AaronShannon))
- PE-36461 Pull request template added [#377](https://github.com/puppetlabs/puppetlabs-peadm/pull/377) ([AaronShannon](https://github.com/AaronShannon))
- keyserver port 80 less likely to be blocked [#374](https://github.com/puppetlabs/puppetlabs-peadm/pull/374) ([h0tw1r3](https://github.com/h0tw1r3))
- puppetlabs/stdlib: Require 9.x [#373](https://github.com/puppetlabs/puppetlabs-peadm/pull/373) ([bastelfreak](https://github.com/bastelfreak))
- PE-36460 Add Mend Workflow [#372](https://github.com/puppetlabs/puppetlabs-peadm/pull/372) ([AaronShannon](https://github.com/AaronShannon))
- PE-36459 .sync.yml and pdk updated [#370](https://github.com/puppetlabs/puppetlabs-peadm/pull/370) ([AaronShannon](https://github.com/AaronShannon))

## [v3.13.1](https://github.com/puppetlabs/puppetlabs-peadm/tree/v3.13.1) - 2023-06-27

[Full Changelog](https://github.com/puppetlabs/puppetlabs-peadm/compare/v3.13.0...v3.13.1)

### Fixed
### Other

- (#366) Bump inifile and stdlib [#367](https://github.com/puppetlabs/puppetlabs-peadm/pull/367) ([CoMfUcIoS](https://github.com/CoMfUcIoS))

Expand All @@ -19,10 +36,13 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/) a

### Added

- Adding /etc/puppetlabs/enterprise/conf.d/pe.conf [#346](https://github.com/puppetlabs/puppetlabs-peadm/pull/346) ([16c7x](https://github.com/16c7x))

### Other

- (PE-36203) Updating supported to 2023.2 and default to 2021.7.4 [#363](https://github.com/puppetlabs/puppetlabs-peadm/pull/363) ([ragingra](https://github.com/ragingra))
- Update metadata for stdlib version 9 [#361](https://github.com/puppetlabs/puppetlabs-peadm/pull/361) ([MartyEwings](https://github.com/MartyEwings))
- (PE-36091) Updating PE-ADM Supported Version [#349](https://github.com/puppetlabs/puppetlabs-peadm/pull/349) ([ragingra](https://github.com/ragingra))
- Adding /etc/puppetlabs/enterprise/conf.d/pe.conf [#346](https://github.com/puppetlabs/puppetlabs-peadm/pull/346) ([16c7x](https://github.com/16c7x))
- Allow code manager auto configure to be passed as param [#341](https://github.com/puppetlabs/puppetlabs-peadm/pull/341) ([elainemccloskey](https://github.com/elainemccloskey))

## [v3.12.0](https://github.com/puppetlabs/puppetlabs-peadm/tree/v3.12.0) - 2023-02-17
Expand Down Expand Up @@ -75,10 +95,6 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/) a

[Full Changelog](https://github.com/puppetlabs/puppetlabs-peadm/compare/v3.8.0...v3.9.0)

### Added

- allow to customize admin's token lifetime [#285](https://github.com/puppetlabs/puppetlabs-peadm/pull/285) ([vchepkov](https://github.com/vchepkov))

### Fixed

- Ensure fips commands exists before using it [#289](https://github.com/puppetlabs/puppetlabs-peadm/pull/289) ([ody](https://github.com/ody))
Expand All @@ -87,6 +103,10 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/) a
- Support the installation of PE on FIPS enabled RHEL [#280](https://github.com/puppetlabs/puppetlabs-peadm/pull/280) ([ody](https://github.com/ody))
- Fetch installed PSQL version [#275](https://github.com/puppetlabs/puppetlabs-peadm/pull/275) ([ody](https://github.com/ody))

### Other

- allow to customize admin's token lifetime [#285](https://github.com/puppetlabs/puppetlabs-peadm/pull/285) ([vchepkov](https://github.com/vchepkov))

## [v3.8.0](https://github.com/puppetlabs/puppetlabs-peadm/tree/v3.8.0) - 2022-06-21

[Full Changelog](https://github.com/puppetlabs/puppetlabs-peadm/compare/v3.7.0...v3.8.0)
Expand Down
Loading