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
[root@td234 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
puppet-users+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/puppet-users?hl=en
-~----------~----~----~----~------~----~------~--~---
2008/11/4 Arnau Bria <arnau.bria@gmail.com>:> 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 directoryThis is a pretty common misconception, specifying creates doesn''t actually create anything, all it does is check for the existence of that file. What you want to do a minimum would be "/usr/bin/yum -y update > /tmp/update" or "/usr/bin/yum -y update && touch /tmp/update" or something that will actually create /tmp/update.> 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. >How long does it take to install that package on the command line? Puppet isn''t going to run yum any faster than you can, so if that package takes 10mins to download and install, puppet is going to take 10mins to download and install..> 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 > [root@td234 yum.repos.d]# >Ah, manifests are parsed and order of them really doesn''t matter for resources. If you want to install these things in a particular order, you need to use require or before. --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
Thanks for your replies. 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 -~----------~----~----~----~------~----~------~--~---