Hi people,
I created a module to install some rpms, but after rpm is installed, in the
next time the agent go check for new changes in my puppet master, i get the
error with the information that rpm packages is already installed.
My module
package {'epel-repo-centos7':
ensure => present,
provider => 'rpm',
install_options => ['-ivh'],
source => "/tmp/epel-release-7-0.2.noarch.rpm",
require =>
File["/tmp/epel-release-7-0.2.noarch.rpm"],
}
file { "/tmp/epel-release-7-0.2.noarch.rpm":
source =>
"puppet:///modules/repository/epel-release-7-0.2.noarch.rpm"
}
Error
LevelMessageSourceFileLineTimeerrExecution of '/bin/rpm -i -ivh /tmp/
epel-release-7-0.2.noarch.rpm' returned 1: Preparing...
################################################## package
puppetlabs-release-6-10.noarch is already installedPuppet2014-08-21 13:46
BRTerrchange from absent to present failed: Execution of '/bin/rpm -i -ivh
/tmp/epel-release-7-0.2.noarch.rpm' returned 1: Preparing...
################################################## package
epel-release-7-0.2.noarch.rpm is already installed
/Stage[main]/Core::Repository/Package[epel-release-7]/ensure
/etc/puppet/environments/production/modules/core/manifests/repository.pp572014-08-21
13:46 BRT
Somebody knows why?
Thanks.
At,
Juliano Resende - Brasil
--
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+unsubscribe@googlegroups.com.
To view this discussion on the web visit
https://groups.google.com/d/msgid/puppet-users/1f9068e3-fc7c-4e45-893b-6dc3449f1791%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.