Hi,
For checking that a resource exists Zypprepo (and yumrepo) simply check
for the presence of the repo file.
Is your zypprepo defined using the name SUSE-Linux-Enterprise-Server-11?
zypprepo {"SUSE-Linux-Enterprise-Server-11":
....
}
This causes zypprepo to look for
/etc/zypp/repos.d/SUSE-Linux-Enterprise-Server-11.repo
If that's not it, could you pastie the relevant section from your
manifest and also the --debug output and I'll have a look at it.
Cheers
Mike
On 19/04/11 4:18 AM, scarts wrote:
I'm testing zypprepo successfully to configure additional repositories
to my SLES/SLED boxes, but as a final test I deleted a named repo
manually from a computer that had previously been successfully
configured by puppet, re-ran puppetd and it just seems to think the
repo is still there. My agent log just says:
info: /Whit[SUSE-Linux-Enterprise-Server-11]: Evaluated in 0.00
seconds
Checking the client, I can confirm the file /etc/zypp/repos.d/SUSE-
Linux-Enterprise-Server-11.repo doesn't exist.
The only way I seem to be able to 'get it back' is to brute force the
client 'rm -rf /var/lib/puppet/*' then start the client again (with a
new cert) as if it's brand new. Once I do that, zypprepo does create
this repository again.
Is this something special about how zypprepo checks for existing
configured repositories? I tested a simple testfile resource and it
correctly is re-created between runs whenever I delete my testfile, so
I don't think it's puppet specifically.
I'm using zypprepo from mikeknox-puppet-zypprepo-0813875
Thanks for any assistence.
--
You received this message because you are subscribed to the Google Groups "Puppet
Users" group.
To post to this group, send email to puppet-users@googlegroups.com.
To unsubscribe from this group, send email to
puppet-users+unsubscr...@googlegroups.com.
For more options, visit this group at
http://groups.google.com/group/puppet-users?hl=en.