Hi everyone,
I trying to notify a cache clean when creating a yumrepository:
yumrepo { 'XXXXXXX':
descr => 'XXXXXX Packages',
baseurl => $url,
require => [ Yum::Key['0b6f8066'], ],
gpgcheck => '1',
enabled => '1',
notify => [ Exec['YUM Clean cache'], ],
}
exec { 'YUM Clean cache':
path => '/bin:/usr/bin:/usr/local/bin',
user => 'root',
logoutput => true,
refreshonly => true,
command => 'yum clean all --verbose',
}
And I am getting the following error on RedHat 6:
info: Retrieving plugin
info: Loading facts in /var/lib/puppet/lib/facter/root_home.rb
info: Loading facts in /var/lib/puppet/lib/facter/puppet_vardir.rb
info: Loading facts in /var/lib/puppet/lib/facter/facter_dot_d.rb
info: Loading facts in /var/lib/puppet/lib/facter/meminbytes.rb
err: Could not retrieve catalog from remote server: Error 400 on SERVER: Can't synthesize edge: File[/etc/yum.repos.d/XXX.repo] -notifies- Exec[YUM Clean cache] (param notify)
info: Not using expired catalog for XXXX.fqdn from cache; expired at Wed Sep 12 17:03:31 +0200 2012
notice: Using cached catalog
err: Could not retrieve catalog; skipping run
Any idea what could be the problem?
Regards,
JM