Since puppet-0.25 (and the newer versions of eix it depends on) it's impossible to install any packages that are not in the main portage tree but from an overlay. For example I have a local overlay called "unity" which has a package named sys-apps/cronwrapper. Here is the puppet config part: package { cronwrapper: name => $operatingsystem ? { default => "sys-apps/cronwrapper", }, ensure => present, } But when I run puppet I get the following error message: err: //cron/Package[cronwrapper]: Failed to retrieve current state of resource: No package found with the specified name [<unspecified category>/sys-apps/cronwrapper] Reproducible: Always Steps to Reproduce: 1. configure puppet to install a program from an overlay Actual Results: e.g. err: //cron/Package[cronwrapper]: Failed to retrieve current state of resource: No package found with the specified name [<unspecified category>/sys-apps/cronwrapper] Portage 2.1.7.16 (default/linux/x86/10.0, gcc-4.3.4, glibc-2.10.1-r1, 2.6.31-gentoo-r6 i686) ================================================================= System uname: Linux-2.6.31-gentoo-r6-i686-Intel-R-_Xeon-R-_CPU_E5420_@_2.50GHz-with-gentoo-1.12.13 Timestamp of tree: Tue, 02 Mar 2010 20:30:01 +0000 distcc 3.1 i686-pc-linux-gnu [enabled] app-shells/bash: 4.0_p35 dev-lang/python: 2.6.4 sys-apps/baselayout: 1.12.13 sys-apps/sandbox: 1.6-r2 sys-devel/autoconf: 2.63-r1 sys-devel/automake: 1.10.2, 1.11.1 sys-devel/binutils: 2.18-r3 sys-devel/gcc: 4.3.4 sys-devel/gcc-config: 1.4.1 sys-devel/libtool: 2.2.6b virtual/os-headers: 2.6.27-r2 ACCEPT_KEYWORDS="x86" ACCEPT_LICENSE="* -@EULA" CBUILD="i686-pc-linux-gnu" CFLAGS="-mtune=prescott -O2 -pipe" CHOST="i686-pc-linux-gnu" CONFIG_PROTECT="/etc" CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/gconf /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/udev/rules.d" CXXFLAGS="-mtune=prescott -O2 -pipe" DISTDIR="/usr/portage/distfiles" FEATURES="assume-digests distcc distlocks fixpackages news parallel-fetch protect-owned sandbox sfperms strict unmerge-logs unmerge-orphans userfetch" GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo" LANG="en_US.UTF-8" LDFLAGS="-Wl,-O1" LINGUAS="en de" MAKEOPTS="-j7" PKGDIR="/mnt/packages" PORTAGE_CONFIGROOT="/" PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/local/portage/unity" SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage" USE="acl bash-completion berkdb bzip2 cli cracklib crypt cxx dri fam fortran glibc-omitfp gpm iconv jpeg json mmap mmx mmxext modules mudflap ncurses nls nptl nptlonly offensive openmp pam pcre perl png pppd python readline reflection session sockets spl sse sse2 ssl sysfs tcpd threads threadsafe tokenizer unicode urandom vim-syntax x86 xml xorg zip zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1 emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" ELIBC="glibc" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en de" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="fbdev glint intel mach64 mga neomagic nv r128 radeon savage sis tdfx trident vesa via vmware voodoo" Unset: CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LC_ALL, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
I'm using puppet-0.25.5 on amd64 and hppa, seems I'm not affected by this issue. * installed 'sunrise' overlay with layman * unmasked app-admin/spass-1.0 with /etc/portage/package.keywords * added in a puppet's node: package { spass: ensure => present } * it correctly and autonomously emerged it: Jun 23 00:58:00 foo puppetd[28836]: (//Node[foo.bar.baz]/Package[spass]/ensure) created Jun 23 00:58:00 foo puppetd[28836]: Finished catalog run in 8.58 seconds are you sure you did run eix-update? did it index the overlay too? have you tried upgrading to puppet-0.25.5?
puppet-0.25.5 fixed it for me.