[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
[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!
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
I am kinda of confused as to how to enable a yum repo in my package resource.
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
[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...@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.
For more options, visit https://groups.google.com/d/optout.