Hi all,

I'm starting my puppet tests... I've done some basci conf (auto-fs,
fstab...) but now, I'm stopped in a yum problem.
First, how do you manage yum updates?¿ exec? I've seen some apt-example (
http://reductivelabs.com/trac/puppet/wiki/Recipes/Apt_Repositories) and
there they use exec, but as it's apt...
I have something like:

class repos {
        yumrepo { "glite-wn":
                baseurl      => "
http://linuxsoft.cern.ch/EGEE/gLite/R3.1/glite-WN/sl4/x86_64/";,
                descr        => "gLite 3.1 Worker Node",
                enabled      => 1,
                enablegroups => 1,
                gpgcheck     => 0,
                gpgkey       => 'absent',
                name         => "gLite-WN",
[...]
 exec { "/usr/bin/yum -y update":
                creates => "/tmp/update",
                }

        }


If yes, where to use it? at the begginig? cause I've at the end, and in
combination with "creates" shoulnd't matter, is it?
Cause now it does not execute the update and the file does not exists:
]# ls -lsa /tmp/update
ls: /tmp/update: No such file or directory


Anyway, if I don't care about repos, the system hangs here:
]#  puppetd --server gridinstall01.pic.es --waitforcert 60 --test --verbose
notice: Ignoring cache
info: Caching configuration at /var/lib/puppet/localconfig.yaml
notice: Starting configuration run


and looking at processes:
root     24997 13.5  0.3 54676 25128 pts/0   S+   18:16   0:00  |       \_
/usr/bin/ruby /usr/sbin/puppetd --server gridinstall01.pic.es --waitforcert
60 --test --verbose
root     25176 69.0  1.1 207952 97692 pts/0  S+   18:16   0:02  |
\_ /usr/bin/python /usr/bin/yum -d 0 -e 0 -y install
glite-TORQUE_client-3.1.2


and hangs here for a loooooooong time, then I kill it.

this is my package part:

class package_install {

        package { "lcg-CA":
                provider => 'yum',
                ensure  => '1.25',
                }
        package { "java-1.5.0-sun":
                provider => 'yum',
                ensure  => '1.5.0.15',
                }
        package { "java-1.5.0-sun-devel":
                provider => 'yum',
                ensure  => '1.5.0.15',
                }
        package { "glite-TORQUE_client":
                provider => 'yum',
                ensure  => '3.1.2',
                }

First, why it goes to glite-TORQUE first when the other packages aren't
installed? (as it doesn't update repos)
# rpm -qa|grep lcg-CA
[EMAIL PROTECTED] yum.repos.d]#

Second, why it hangs for ever in the install?


TIA,
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/puppet-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to