Installing flavored packages in OpenBSD

asked 2014-05-27 05:29:31 -0500

upietz gravatar image


I'm trying to install vim via puppet on an OpenBSD system. After reading the type reference I came up with this:

$package    = "vim"
$flavor     = "no_x11"
$source     = ""

package { $package:
    ensure  => installed,
    flavor  => $flavor,
    source  => $source,

Now, when the agent runs everything works as expected- almost:

Error: Execution of '/usr/sbin/pkg_add vim-7.4.135p0-gtk2-no_x11' returned 1: Error from
Failed to open file.

No wonder it cannot open that file, because it doesn't exist ;-) What happened is that puppet somehow added the flavor (no_x11) to the already flavored package name (gtk2).

Am I missing something or is this a bug? Has anyone experienced this using puppet on OpenBSD systems?



edit retag flag offensive close merge delete