Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

A Puppet package provider for pkgin, a binary package manager for pkgsrc.

branch: master

Fetching latest commit…

Octocat-spinner-32-eaf2f5

Cannot retrieve the latest commit at this time

Octocat-spinner-32 lib
Octocat-spinner-32 spec
Octocat-spinner-32 tests
Octocat-spinner-32 .gitignore
Octocat-spinner-32 .rspec
Octocat-spinner-32 .travis.yml
Octocat-spinner-32 Gemfile
Octocat-spinner-32 Gemfile.lock
Octocat-spinner-32 Modulefile
Octocat-spinner-32 README.md
Octocat-spinner-32 Rakefile
Octocat-spinner-32 metadata.json
README.md

Puppet pkgin Module Build Status

This is a Puppet module to install and uninstall packages using pkgin, a binary package manager for pkgsrc as used by Joyent SmartMachines by enabling a provider for the standard package resource type.

Installation

The latest stable release can be downloaded from the Puppet Module Forge: mudge/pkgin

Using the puppet-module gem, this is as simple as:

$ cd /opt/local/etc/puppet/modules
# puppet-module install mudge/pkgin
Installed "mudge-pkgin-0.0.1" into directory: pkgin

(Assuming /opt/local/etc/puppet/modules is in your modulepath.)

Usage

package { 'vim':
  ensure   => present,
  provider => pkgin,
}

package { 'emacs':
  ensure   => absent,
  provider => pkgin,
}

If using the Service Management Facility (SMF) to run puppet agent (or puppetd), ensure that the pkgin binary is in your PATH with something like the following:

<exec_method name='start' type='method'
    exec='/opt/local/bin/puppet agent --config %{config_file}' timeout_seconds='60'>
  <method_context>
    <method_environment>
      <envvar name='PATH' value='/opt/local/bin:/opt/local/sbin:/usr/bin:/usr/sbin'/>
    </method_environment>
  </method_context>
</exec_method>
<property_group name='application' type='application'>
  <propval name='config_file' type='astring' value='/opt/local/etc/puppet/puppet.conf'/>
</property_group>

Features

At the moment, this provider only has two of the standard Puppet package provider features:

  • installable: The provider can install packages.
  • uninstallable: The provider can uninstall packages.

Author

Paul Mucur (http://mudge.name), 2011.

Something went wrong with that request. Please try again.