The Puppet Labs Issue Tracker has Moved:

This issue tracker is now in read-only archive mode and automatic ticket export has been disabled. Redmine users will need to create a new JIRA account to file tickets using See the following page for information on filing tickets with JIRA:

Feature #5951

Freebsd Package Manager rewrite (as fbsd)

Added by Ross West over 5 years ago. Updated about 2 years ago.

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


Target version:-
Affected Puppet version: Branch:
Keywords:package provider, freebsd, ports

We've Moved!

Ticket tracking is now hosted in JIRA:

This ticket is now tracked at:


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.


  • :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


#1 Updated by Ross West over 5 years ago

Files/Changes pushed to:

#2 Updated by Ross West over 5 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 over 5 years ago

  • Status changed from Unreviewed to In Topic Branch Pending Review
  • Branch set to

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

#4 Updated by Paul Berry about 5 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 about 5 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 ( 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 about 5 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 about 5 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 about 4 years ago

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

#9 Updated by Anonymous over 3 years ago

  • Target version deleted (2.7.x)

#10 Updated by Jo Rhett about 2 years ago

Redmine Issue #5951 has been migrated to JIRA:

Also available in: Atom PDF