hmmm well my /etc/yum.repos.d directory on the server I am having a
problem with is pretty much an rsync of another server that has both
yum and puppetd --test working correctly.
working server:
[root@VIRTCENT04:~] #puppetd --test
info: Caching catalog for virtcent04.summitnjhome.com
info: Applying configuration version ''1297298959''
err: //basefiles/File[/etc/haha.txt]: Failed to retrieve current state
of resource: Could not retrieve information from source(s)
puppet://puppet/snjh/haha.txt at
/etc/puppet/manifests/classes/basefiles.pp:10
notice: //baseapps/Package[nmap]/ensure: created
notice: //centos/Yumrepo[contrib]/baseurl: defined ''baseurl''
as
''http://mirror.centos.org/centos/$releasever/contrib/$basearch/''
notice: //centos/Yumrepo[contrib]/enabled: enabled changed ''0''
to ''1''
notice: //centos/Yumrepo[base]/baseurl: defined ''baseurl'' as
''http://mirror.centos.org/centos/$releasever/os/$basearch/''
notice: //centos/Yumrepo[centosplus]/mirrorlist: mirrorlist changed
''http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=centosplus''
to
''http://mirrorlist.centos.org/?release=$releasever&arch=\$basearch&repo=centosplus''
notice: //centos/Yumrepo[centosplus]/baseurl: defined
''baseurl'' as
''http://mirror.centos.org/centos/$releasever/centosplus/$basearch/''
notice: //centos/Yumrepo[centosplus]/enabled: enabled changed
''0'' to ''1''
notice: //centos/Yumrepo[extras]/baseurl: defined ''baseurl'' as
''http://mirror.centos.org/centos/$releasever/extras/\$basearch/''
notice: //centos/Yumrepo[extras]/enabled: defined ''enabled'' as
''1''
notice: //centos/Yumrepo[updates]/baseurl: defined ''baseurl''
as
''http://mirror.centos.org/centos/$releasever/updates/$basearch/''
notice: //centos/Yumrepo[addons]/baseurl: defined ''baseurl'' as
''http://mirror.centos.org/centos/$releasever/addons/$basearch/''
err: //basefiles/File[/etc/ldap.conf]: Failed to retrieve current
state of resource: Could not retrieve information from source(s)
puppet://puppet/snjh/ldap.conf at
/etc/puppet/manifests/classes/basefiles.pp:6
notice: //Group[named]/ensure: created
notice: //Group[ntp]/ensure: created
notice: Finished catalog run in 49.12 seconds
non working server:
[root@mclient ~]# puppetd --test
info: Caching catalog for mclient.acadaca.net
info: Applying configuration version ''1297357383''
err: //centos/Yumrepo[rpmforge]: Failed to retrieve current state of
resource: A section with name base already exists
err: //baseapps/Package[keychain]/ensure: change from absent to
present failed: Could not find package keychain
notice: Finished catalog run in 3.43 seconds
and here I am defining ''working/non-working'' according to the
yumrepo
configurations I have setup in the respective manifests. I have
recursively grepped my yum.repos.d directory for the term
''main'' and
turned up nothing.
yum works on both machines... I am enclosing a file that was produced
with the following script:
for i in *; do cat $i >> repos.txt; echo >> repos.txt; done
I am enclosing both (clearly marked) in case anybody has any advice...
also the manifests that include the yumrepo resources were both
produced with the command ralsh yumrepo >
/etc/puppet/manifests/os/centos.pp with the centos class added after
the ralsh dump has completed.
thanks again!
On Thu, Feb 10, 2011 at 12:18 PM, Arnau Bria <arnaubria@pic.es>
wrote:> On Thu, 10 Feb 2011 12:10:54 -0500
> Tim Dunphy wrote:
>
>> Hello list!
> Hello,
>
> [...]
>> [root@mclient ~]# puppetd --test
>> info: Caching catalog for mclient.acadaca.net
>> info: Applying configuration version ''1297357383''
>> err: //centos/Yumrepo[rpmforge]: Failed to retrieve current state of
>> resource: A section with name base already exists
>> notice: Finished catalog run in 1.23 seconds
> [...]
>
>> I''ve also grepped my manifests directory for the term
''base'' and didnt
>> find a duplicate repo definition that included it...
>
> thee problem is that you have many [main] sections in your repos (grep
> main /etc/yum.repos.d/*) and puppet doesn''t like it (but yum
does).
>
>
>> thanks in advance!
> HTH,
> Arnau
>
> --
> 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+unsubscribe@googlegroups.com.
> For more options, visit this group at
http://groups.google.com/group/puppet-users?hl=en.
>
>
--
GPG me!!
gpg --keyserver pool.sks-keyservers.net --recv-keys F186197B
--
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+unsubscribe@googlegroups.com.
For more options, visit this group at
http://groups.google.com/group/puppet-users?hl=en.