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

bring OpenBSD package handling up to date to what is in the #9301

Open
wants to merge 16 commits into
base: main
Choose a base branch
from

Conversation

buzzdeee
Copy link
Contributor

@buzzdeee buzzdeee commented Mar 20, 2024

ports tree and gets packaged.

  • pkg.conf is long time gone
  • drop versionable
  • drop upgradeable
  • add support for package branches

versionable and upgradeable don't really make much sense on OpenBSD, and they way overcomplicate the provider. However, it could be readded if someone can come up with a compelling usecase ;)

OpenBSD supports package branches, i.e. for puppet, there's puppet 7 and puppet 8, both conflict, and cant be installed at the same time, but with Puppet current package provider, it was impossible to easily tell which of the branches to use. Only when using a fixed "version", or "latest", but that was still quite clumsy, and either had to update the version any time in Hiera when updating puppet, or when using latest, you couldn't choose to install Puppet 7.

There are other packages that have branches, i.e. gimp, which has a stable, and a snapshot branch. They don't conflict with each other, so can be installed in parallel. Puppet with the current package provider would be unable to handle that.

To add support for branches, a new property won't work for those packages with branches that can be installed in parallel, i.e. install both versions of Gimp via Puppet.

The way around it is to specify the branch suffxed to the package name with a leading %

so similarly I would run

pkg_add gimp%stable
pkg_add gimp%snapshot

I would now use puppet alike:

package { "gimp%stable": ensure => "present" }
package { "gimp%snapshot": ensure => "present" }

to manage both packages.

@buzzdeee buzzdeee requested a review from a team as a code owner March 20, 2024 22:02
@puppetlabs-jenkins
Copy link
Collaborator

Can one of the admins verify this patch?

@buzzdeee
Copy link
Contributor Author

I used the update of the puppet agent to 8.6.0 on OpenBSD -current to integrate that new package handling into the Puppet agent package for OpenBSD.

@joshcooper joshcooper added the enhancement New feature or request label Apr 23, 2024
@buzzdeee
Copy link
Contributor Author

Please!
The current Puppet OpenBSD package handling is broken, puppet users who want to manage packages, are using the package.
This is in the OpenBSD ports/packages since April now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants