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

(CONT-356) Syntax update #543

Merged
merged 3 commits into from Jan 24, 2023
Merged

(CONT-356) Syntax update #543

merged 3 commits into from Jan 24, 2023

Conversation

LukasAud
Copy link
Contributor

Code now compliant with the following rules:

relative_classname_inclusion
relative_classname_reference
parameter_documentation
parameter_types
top scope facts
legacy facts
anchor resource

Code now compliant with the following rules:

relative_classname_inclusion
relative_classname_reference
parameter_documentation
parameter_types
top scope facts
legacy facts
anchor resource
@LukasAud LukasAud requested a review from a team as a code owner January 11, 2023 17:22
@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::download is a type

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

java is a class

Breaking changes to this file WILL impact these 76 modules (exact match):
Breaking changes to this file MAY impact these 17 modules (near match):

java::sap is a type

that may have no external impact to Forge modules.

This module is declared in 79 of 580 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.

manifests/adopt.pp Outdated Show resolved Hide resolved
Co-authored-by: Tim Meusel <tim@bastelfreak.de>
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.

Question on the $ensure` values

manifests/adopt.pp Outdated Show resolved Hide resolved
manifests/adoptium.pp Outdated Show resolved Hide resolved
manifests/download.pp Outdated Show resolved Hide resolved
manifests/sap.pp Outdated Show resolved Hide resolved
@david22swan david22swan merged commit d6b346c into main Jan 24, 2023
@david22swan david22swan deleted the CONT-356-Syntax_update branch January 24, 2023 15:57
@LukasAud LukasAud added feature and removed bugfix labels Jan 25, 2023
) {
include ::java::params
contain java::params

Choose a reason for hiding this comment

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

Not sure why contain here instead of include (considering java::params doesn't declare any resources and only sets variables).

@@ -118,12 +118,10 @@
}
}

anchor { 'java::begin:': }
-> package { 'java':
package { 'java':
ensure => $version,
install_options => $package_options,
name => $use_java_package_name,
}
-> class { 'java::config': }

Choose a reason for hiding this comment

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

java::config used to be contained by java with this anchor pattern. Following this change it isn't anymore. Therefore if anyone has any calling code that eg. did a require java or service {'foo': require => 'java'} the configuration of java is now not guaranteed to happen first.

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.

None yet

4 participants