On Wed, Apr 22, 2015 at 4:44 PM, Russell Cecala <red.cricket.b...@gmail.com> wrote:
> Here is what I am doing ... > > [root@mgmt-el7-002 ~]# puppet -V > > 3.6.2 (Puppet Enterprise 3.3.2) > > [root@mgmt-el7-002 ~]# cat kernel_upgrade.pp > > package {'kernel-3.10.0-123.20.1.el7': > > ensure => present, > > allow_virtual => false, > > install_options => [ { '--enablerepo' => > 'Redhat_7_Updates'} ], > > } > > > [root@mgmt-el7-002 ~]# puppet apply kernel_upgrade.pp > > ... and here is the error I am getting ... > > Notice: Compiled catalog for mgmt-el7-002 in environment > production in 0.38 seconds > > Error: Execution of '/usr/bin/yum -d 0 -e 0 -y list > kernel-3.10.0-123.20.1.el7' returned 1: Error: No matching Packages to list > > Error: > /Stage[main]/Main/Package[kernel-3.10.0-123.20.1.el7]/ensure: change from > absent to present failed: Execution of '/usr/bin/yum -d 0 -e 0 -y list > kernel-3.10.0-123.20.1.el7' returned 1: Error: No matching Packages to list > > Notice: Finished catalog run in 1.89 seconds > I think you may be running into https://tickets.puppetlabs.com/browse/PUP-2971, which is fixed in puppet 3.7. Hth, Kylo > [root@mgmt-el7-002 ~]# yum --enablerepo=Redhat_7_Updates list > kernel-3.10.0-123.20.1.el7 > > Loaded plugins: fastestmirror, priorities, product-id, > subscription-manager > > This system is not registered to Red Hat Subscription Management. > You can use subscription-manager to register. > > Loading mirror speeds from cached hostfile > > * Openstack-Juno-Repo: wwwin-kickstart-sj.example.com > > * example-linux-common: wwwin-kickstart-dev.example.com > > * example-linux-server: wwwin-kickstart-dev.example.com > > 91 packages excluded due to repository priority protections > > Available Packages > > kernel.x86_64 3.10.0-123.20.1.el7 > Redhat_7_Updates > > I am kinda of confused as to how to enable a yum repo in my package > resource. > > > Thanks! > > -- > You received this message because you are subscribed to the Google Groups > "Puppet Users" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to puppet-users+unsubscr...@googlegroups.com. > To view this discussion on the web visit > https://groups.google.com/d/msgid/puppet-users/CAHu%2B3Oz5%2BGz_iF%2BY88MvwJDjNXoUafxP6K7KV65bh4VEb0Qh2w%40mail.gmail.com > <https://groups.google.com/d/msgid/puppet-users/CAHu%2B3Oz5%2BGz_iF%2BY88MvwJDjNXoUafxP6K7KV65bh4VEb0Qh2w%40mail.gmail.com?utm_medium=email&utm_source=footer> > . > For more options, visit https://groups.google.com/d/optout. > -- Kylo Ginsberg | k...@puppetlabs.com | irc: kylo | twitter: @kylog *PuppetConf 2015 <http://2015.puppetconf.com/> is coming to Portland, Oregon! Join us October 5-9.* *Register now to take advantage of the Early Adopter discount <https://www.eventbrite.com/e/puppetconf-2015-october-5-9-tickets-13115894995?discount=EarlyAdopter> * *—**save $349!* -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-users+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/CALsUZFG1fcTNLUe%2B%2B7Pq%3DE%2Bf6sfCQjVN7UP1J%2BjOKL9wKKqZ2w%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.