is missing a description that if you use --enablerepos it needs to be done as a hash. I was only able to find out by looking at the code
Works: {code:puppet} package { $package: install_options => { '--enablerepo' => "custom-repo-x86_64"}, ensure => latest; } {code} Does not work with ensure => latest because puppet does not know to enable repos while checking to see if there is a newer version {code:puppet} package { $package: install_options => '--enablerepo=custom-repo-x86_64'}, ensure => latest; } {code}