Project

General

Profile

Bug #384

Problem Installing Packages Using Puppet on FreeBSD

Added by Daniel Curtis over 10 years ago. Updated almost 10 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
Automated Server Management
Target version:
Start date:
05/02/2014
Due date:
% Done:

100%

Estimated time:
0.50 h
Spent time:

Description

I encountered a problem after I had setup my new puppet environment. When I went to run puppet agent -t to test the connection to the puppet master server. The connection worked, however when it got to a part where a package was going to installed, the connection failed. This turned out to be a problem with puppet trying to compile packages using the ports tree. Luckily there is a puppet module that allows the new pkgng package manager to be used as a source.

Installation

On the puppet master server, run the follow command:

puppet module install zleslie-pkgng

Then to configure your system to use a pkgng, a simple include will do:

include pkgng

or when you want to use specific pkgng repositories:

pkgng::repo { 'pkg.freebsd.org': }
pkgng::repo { 'my.own.repo': }

Usage

Once you have the module installed, you can use it by simply adding a site default in site.pp that looks like this.

Package {
  provider => pkgng
}

Now every package that you install will use the pkgng provider.

Resources

https://forge.puppetlabs.com/zleslie/pkgng


Files

zleslie-pkgng-0.2.1.tar.gz (11.6 KB) zleslie-pkgng-0.2.1.tar.gz Pkgng puppet module Daniel Curtis, 05/02/2014 08:28 PM
#1

Updated by Daniel Curtis over 10 years ago

  • Status changed from Resolved to Closed
#2

Updated by Daniel Curtis almost 10 years ago

  • Project changed from 90 to FreeBSD Administration
  • Category set to Automated Server Management
  • Target version set to FreeBSD 9

Also available in: Atom PDF