The Puppet Labs Issue Tracker has Moved: https://tickets.puppetlabs.com

Feature #5951

Freebsd Package Manager rewrite (as fbsd)

Added by Ross West almost 4 years ago. Updated 9 months ago.

Status:Needs DecisionStart date:01/20/2011
Priority:NormalDue date:
Assignee:Russell Jackson% Done:

0%

Category:FreeBSD
Target version:-
Affected Puppet version: Branch:http://github.com/westr/puppet/tree/feature/master/5951
Keywords:package provider, freebsd, ports

We've Moved!

Ticket tracking is now hosted in JIRA: https://tickets.puppetlabs.com

This ticket is now tracked at: https://tickets.puppetlabs.com/browse/PUP-1715


Description

A re-write of the Freebsd package manager (freebsd.rb) to fix a couple of things (package file source selection, etc) and support upgrading of packages – all using only base OS tools. This manager does not compile ports, and only works on .tbz package files.

Features: installable, uninstallable, upgradeable.

Notes:

  • :name – must be the “port origin”, not the package (short) name.
  • :source – must be the specific local file or URL to path

Configuration example:

package { "shells/bash":
  provider => fbsd,
  alias    => bash,
  source   => "/path/to/local/package.tbz"
  ensure   => latest,
}

freebsd.rb Magnifier - initial package manager rewrite (1.36 KB) Ross West, 01/20/2011 04:41 pm


Related issues

Related to Puppet - Bug #4996: FreeBSD package provider rewrite to use port origin when ... Code Insufficient 10/14/2010
Related to Puppet - Bug #14845: portupgrade.rb -> ensure latest issue Accepted

History

#1 Updated by Ross West almost 4 years ago

Files/Changes pushed to: http://github.com/westr/puppet/tree/feature/master/5951

#2 Updated by Ross West almost 4 years ago

Ugh totally missed ticket #4996 (FreeBSD package provider rewrite to use port origin when querying installed packages) which changed freebsd.rb to use the port origin like this feature request does.

This rewrite also includes a few new features (upgradablity/:latest support), and has the ability to add versioning with some minor coding.

#3 Updated by Ross West almost 4 years ago

  • Status changed from Unreviewed to In Topic Branch Pending Review
  • Branch set to http://github.com/westr/puppet/tree/feature/master/5951

Done final push to git branch listed. If someone wants to do some testing/review, that would be good.

#4 Updated by Paul Berry over 3 years ago

  • Target version changed from 2.6.5 to 2.7.x

This is a major rewrite, it’s based on master, and it doesn’t have tests yet. It seems like we should target it to 2.7.

#5 Updated by Matt Robinson over 3 years ago

I’m going through old email and saw that there was code for this that wasn’t sent out using rake mail_patches so it doesn’t show up in our list of patches to review (https://patchwork.puppetlabs.com/project/puppet/list/). I also saw there was some discussion about this vs #4996. What’s the status of this ticket? Is it necessary to do a rewrite if #4996 gets in? Are people using this in production? Do more tests need to be written?

#6 Updated by Russell Jackson over 3 years ago

Ticket #4996 has grown quite a bit since it was submitted. It now fetches and uses the package index to resolve port origin –> package name. The git branch from #4996 is also included by default in the FreeBSD puppet port.

I think what should happen is that “latest” ensure target feature from this patch should be added to #4996. But I’m not like biased or anything ;–).

#7 Updated by Matt Robinson over 3 years ago

Thanks for the update Russell. Ross, if you could comment on Russell’s proposal to merge the feature from this ticket and branch into the branch from #4996 that would be great.

#8 Updated by James Turnbull over 2 years ago

  • Status changed from In Topic Branch Pending Review to Needs Decision
  • Assignee set to Russell Jackson

#9 Updated by Andrew Parker almost 2 years ago

  • Target version deleted (2.7.x)

#10 Updated by Jo Rhett 9 months ago

Redmine Issue #5951 has been migrated to JIRA:

https://tickets.puppetlabs.com/browse/PUP-1715

Also available in: Atom PDF