Skip to content
This repository has been archived by the owner on Jun 5, 2020. It is now read-only.

switch to ensure_packages() #87

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

bastelfreak
Copy link
Contributor

The ruby module is used as a dependency in many other component modules.
Some of them also define the ruby package or any of the other packages
here. This leads to duplicate resources and a failing catalog. As a
workaround I migrated all package resources to ensure_packages() from
stdlib and increased the minimal stdlib version from 4.13.1 to 4.19.0.

@alexjfisher
Copy link

I'm not 100% sure this will help. ensure_packages() uses ensure_resources where parameters still have to match to avoid duplicate resources.

If the resource already exists, but does not match the specified parameters, this function attempts to recreate the resource, leading to a duplicate resource definition error.

@bastelfreak
Copy link
Contributor Author

@alexjfisher correct, it only helps if the parameters are identical. But it should still help alot.

@alexjfisher
Copy link

Or maybe not help at all. You're specifying a bunch of parameters for each package resource, so these are almost guaranteed not to match existing resources.

But the require and before metaparameters might be handled differently and not need to match. Not sure. Also, if the package is already in the catalog, will the relationships declared in this manifest get used??

@bastelfreak
Copy link
Contributor Author

@alexjfisher updated it, should be much cleaner now :)

@bastelfreak bastelfreak reopened this Feb 24, 2020
@bastelfreak
Copy link
Contributor Author

It would be nice if one could finally review this :)

@bastelfreak
Copy link
Contributor Author

@tphoney I offer to fix those CI issues if you merge the PRs and do a 1.0.0 release afterwards :)

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants