A Puppet package provider for FreeBSD's PkgNG package manager.
Перейти к файлу
Zach Leslie ae5b7d75ac Merge pull request #37 from aduitsis/patch-1
Make default for FreeBSD, increase specificity
2014-05-27 07:16:28 -07:00
lib Make default for FreeBSD, increase specificity 2014-05-24 21:57:41 +03:00
manifests Purge unmanage repo configurations 2014-04-22 10:21:00 -07:00
spec (feat) Add feature upgradeable 2014-01-25 18:30:03 -08:00
templates added support for managing multiple repositories 2014-02-16 20:56:41 +01:00
.gitignore (feat) Add feature upgradeable 2014-01-25 18:30:03 -08:00
.puppet-lintrc (maint) Improve TravisCI testing 2013-12-14 22:16:38 -08:00
.travis.yml (maint) Improve TravisCI testing 2013-12-14 22:16:38 -08:00
Gemfile (maint) Improve TravisCI testing 2013-12-14 22:16:38 -08:00
LICENSE (maint) Add license 2013-12-15 12:46:59 -08:00
Modulefile (rel) 0.2.1 2014-04-22 10:50:53 -07:00
README.md Improve Readme 2014-05-15 09:54:04 -07:00
Rakefile (maint) Improve TravisCI testing 2013-12-14 22:16:38 -08:00

README.md

Puppet-pkgng

Build Status

A package provider for FreeBSD's PkgNG package manager.

This module contains the provider as well as some implementation around configuring the pkg.conf file. If you are building your own PkgNG packages, you may also want to look at the poudriere module.

Installation

The easiest way to install is to install from the forge.

puppet module install zleslie/pkgng

Then to configure your system to use a PkgNG, a simple include will do.

include pkgng

Using specific repositories is as simple as a Puppet resource.

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

Installation via R10K

You can also clone this repo to somewhere in your modulepath, or use something like r10k to deploy your modules. R10k is sweet. For those not familiar, check out Finch's blog post on the subject of module deployment.

To track the git repository, a line in your Puppetfile that looks something like the following should get you started.

mod 'pkgng', :git => 'git://github.com/xaque208/puppet-pkgng.git', :ref => '0.2.0'

Installation via Librarian-Puppet

Installation via Librarian-Puppet is straight forward, simply add the following to your Puppetfile

mod 'zleslie/pkgng'

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.

Contributing

Please help make this module better. Send pull request, file issues, be mindful of the tests and help improve where you can.