Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Hardening manifests #525

Merged
merged 3 commits into from
Oct 6, 2022
Merged

Hardening manifests #525

merged 3 commits into from
Oct 6, 2022

Conversation

LukasAud
Copy link
Contributor

Prior to this commit some commands in our manifest classes would not be up to our code standards.

This commit aims to sanitise our code according to our teams best practices.

@LukasAud LukasAud requested a review from a team as a code owner September 15, 2022 10:44
@puppet-community-rangefinder
Copy link

java::adopt is a type

that may have no external impact to Forge modules.

java::adoptium is a type

that may have no external impact to Forge modules.

java::config is a class

that may have no external impact to Forge modules.

java::download is a type

Breaking changes to this file WILL impact these 2 modules (exact match):

This module is declared in 79 of 579 indexed public Puppetfiles.


These results were generated with Rangefinder, a tool that helps predict the downstream impact of breaking changes to elements used in Puppet modules. You can run this on the command line to get a full report.

Exact matches are those that we can positively identify via namespace and the declaring modules' metadata. Non-namespaced items, such as Puppet 3.x functions, will always be reported as near matches only.

Prior to this commit some commands in our manifest classes would not be
up to our code standards.

This commit aims to sanitise our code according to our teams best
practices.
@LukasAud LukasAud force-pushed the maint-hardening_manifests branch from ad8f8d7 to cabedbe Compare September 20, 2022 10:04
Prior to this commit, multiple unit test cases would fail due to them
expecting commands to be run as a single String instead of arrays of
commands.

This commit aims to fix those test cases by ensuring they mimic the
structure of the commands being run on the test cases themselves.
@LukasAud LukasAud force-pushed the maint-hardening_manifests branch from e65ce53 to b879624 Compare September 20, 2022 10:17
manifests/adopt.pp Outdated Show resolved Hide resolved
manifests/config.pp Outdated Show resolved Hide resolved
manifests/config.pp Outdated Show resolved Hide resolved
manifests/config.pp Outdated Show resolved Hide resolved
@LukasAud
Copy link
Contributor Author

LukasAud commented Oct 4, 2022

Thanks @ekohl for your suggestions. After carefully testing them, I'm happy enough to implement them into the PR. As for your question, I'm not really sure myself what the difference might be. Maybe someone more veteran, such as @david22swan might be able to help answer that.

Prior to this commit, a community member had some suggestions to further
improve the code

This commit aims to implement those suggestions after careful evaluation
and testing.
@LukasAud LukasAud force-pushed the maint-hardening_manifests branch from 01c3948 to 74ea1de Compare October 5, 2022 12:50
Copy link
Member

@david22swan david22swan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@david22swan david22swan merged commit d35fffe into main Oct 6, 2022
@david22swan david22swan deleted the maint-hardening_manifests branch October 6, 2022 14:02
LukasAud added a commit that referenced this pull request Nov 22, 2022
Prior to this commit, and after the work performed in
[Hardening manifests](#525),
the minimum puppet version requirement was expected to be raised up to
6.24.0 to meet logic requirements.

This commits aims to fix the missing bump.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants