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

Major updates (read description) #17

Merged
merged 1 commit into from
Apr 8, 2021
Merged

Major updates (read description) #17

merged 1 commit into from
Apr 8, 2021

Conversation

treydock
Copy link
Owner

@treydock treydock commented Apr 6, 2021

  • Drop Puppet 5 support
  • Add Puppet 7 support
  • Drop Debian 8 support
  • Support perfSONAR 4.3.x

@treydock treydock force-pushed the updates branch 2 times, most recently from 9ea5b94 to c94063d Compare April 6, 2021 15:00
if $::perfsonar::manage_epel {
include ::epel
if $perfsonar::manage_epel {
contain 'epel'
Copy link
Contributor

Choose a reason for hiding this comment

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

require?

Copy link
Owner Author

Choose a reason for hiding this comment

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

I think that would work the same as containing the resource since main class handles the ordering. Only reason I would not do require is technically the repo class doesn't require epel, it's actually the install class that requires epel but that is handled via containment ordering.

Copy link
Contributor

Choose a reason for hiding this comment

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

contain will force that the epel class will not be applied until after the perforsonar class has started to be applied. This means if perfsonar is ordered in the catalog on a resource that itself has a dependency on epel, there will be a circular dependency. See https://github.com/puppetlabs/puppet/blob/main/lib/puppet/functions/contain.rb

Copy link
Owner Author

Choose a reason for hiding this comment

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

The containment is in perfsonar::repo so that does not create any issues for main perfsonar class. The acceptance tests do not run into any circular dependencies, so not sure what the issue might be other than maybe inaccurate description in comments for containment? If you look at the output from acceptance tests the EPEL class gets applied when the perfsonar yumrepo is added but before the installation of any of the perfsonar packages. The EPEL class application and yumrepo from this module are sort of intertwined together and then the actual package install happens.

Copy link
Owner Author

Choose a reason for hiding this comment

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

I think where a circular dependency could happen is if you said Class[epel] -> Class[perfsonar] which would be unnecessary given ordering in this module.

* Drop Puppet 5 support
* Add Puppet 7 support
* Drop Debian 8 support
* Support perfSONAR 4.3.x
@treydock treydock merged commit b86215f into master Apr 8, 2021
@treydock treydock deleted the updates branch April 8, 2021 12:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants