https://github.com/mudge/puppet-pkgin
A Puppet package provider for pkgin, a binary package manager for pkgsrc.
https://github.com/mudge/puppet-pkgin
Last synced: about 1 year ago
JSON representation
A Puppet package provider for pkgin, a binary package manager for pkgsrc.
- Host: GitHub
- URL: https://github.com/mudge/puppet-pkgin
- Owner: mudge
- Created: 2011-11-06T21:09:30.000Z (over 14 years ago)
- Default Branch: master
- Last Pushed: 2012-03-11T18:14:39.000Z (over 14 years ago)
- Last Synced: 2025-05-08T18:53:39.737Z (about 1 year ago)
- Language: Ruby
- Homepage: http://forge.puppetlabs.com/mudge/pkgin
- Size: 271 KB
- Stars: 5
- Watchers: 2
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
Puppet pkgin Module [](http://travis-ci.org/mudge/puppet-pkgin)
===================
This is a Puppet module to install and uninstall packages using [`pkgin`][0], a
binary package manager for `pkgsrc` as used by [Joyent SmartMachines][1] by
enabling a provider for the standard [`package` resource type][2].
Installation
------------
The latest stable release can be downloaded from the Puppet Module Forge: [mudge/pkgin][3]
Using the `puppet-module` gem, this is as simple as:
```console
$ 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
-----
```puppet
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:
```xml
```
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.
[0]: http://pkgin.net/
[1]: http://www.joyent.com/products/smartmachines/
[2]: http://docs.puppetlabs.com/references/stable/type.html#package
[3]: http://forge.puppetlabs.com/mudge/pkgin