Class: Sprinkle::Installers::OpenbsdPkg

Inherits:
PackageInstaller show all
Defined in:
lib/sprinkle/installers/openbsd_pkg.rb

Overview

The OpenBSD package installer installs OpenBSD packages.

Example Usage

Installing the magic_beans package.

package :magic_beans do
  openbsd_pkg 'magic_beans'
end

You may also specify multiple packages as an array:

package :magic_beans do
  openbsd_pkg %w(magic_beans magic_sauce)
end

Notes

Before OpenBSD packages can be installed, the PKG_PATH environment variable must be set.

You must set PKG_PATH in ~/.ssh/environment on the remote system and enable 'PermitUserEnvironment yes' in /etc/ssh/sshd_config

For help on PKG_PATH see section 15.2.2 of the OpenBSD FAQ (www.openbsd.org/faq/faq15.html)

Instance Attribute Summary

Attributes inherited from PackageInstaller

#packages

Attributes inherited from Installer

#delivery, #options, #package, #post, #pre

Method Summary

Methods inherited from PackageInstaller

auto_api, #initialize, #install_package

Methods inherited from Installer

#announce, api, #commands_from_block, #defer, #escape_shell_arg, inherited, #initialize, #install_sequence, #method_missing, #per_host?, #post_process, #process, subclasses, verify_api

Methods included from Sudo

#sudo?, #sudo_cmd, #sudo_stack

Methods included from Attributes

#defaults, #set_defaults

Constructor Details

This class inherits a constructor from Sprinkle::Installers::PackageInstaller

Dynamic Method Handling

This class handles dynamic methods through the method_missing method in the class Sprinkle::Installers::Installer