$libgd_package = $::operatingsystem ? { 'Ubunutu' => 'libgd2-xpm-dev', 'Debian' => 'libgd2-xpm-dev', 'FreeBSD' => 'graphics/gd', 'Mandriva' => 'libgd-devel', 'openSUSE' => 'gd-devel', 'CentsOS' => 'gd-devel', default => 'libgd', }package { [ "$libgd_package" ]:
ensure => latest,
}
Underscoring the caveats above, dpkg -S was useless for this purpose, advising me only that no installed package provided the needed package. And apt-file requires the installation of an additional package. Guess I ought to add that to my utilities manifest, at least for my development machine.
]]>Otherwise, this puppet syntax seems to work fine.
]]>