Dear all,
I'm trying to write a module, to install a few rpm packages on the
agent. This is what I've started with:
class emi_repo {
$emiVer = 'emi-release-1.0.0-1.sl5.noarch.rpm'
package {
'yum-priorities': ensure => latest;
'yum-protectbase': ensure => installed;
#
'emi-release':
provider => rpm, ensure => installed,
source => "puppet:///modules/g_repo/$emiVer",
require => Package[ 'yum-priorities', 'yum-protectbase' ]
}
}
But it fails with this error:
err: /Stage[main]/Xx_emi/Package[emi-release]/ensure: change from
absent to present failed: Execution of '/bin/rpm -i --oldpackage
puppet:///modules/g_repo/emi-release-1.0.0-1.sl5.noarch.rpm' returned
1: error: open of puppet:///modules/g_repo/emi-release-1.0.0-1.sl5.noarch.rpm
failed: No such file or directory
Why "No such file or directory"? the file: emi-
release-1.0.0-1.sl5.noarch.rpm does exist in "/etc/puppet/modules/
g_repo/files/" directory. So, what's the reason for being failed?
Cheers!!
--
You received this message because you are subscribed to the Google Groups
"Puppet Users" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/puppet-users?hl=en.