-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 > Now I am able to get puppet work for me in very first run. I had to do a > require => Exec["updateyum"] for every package installation in order to > ensure that the command yum update -y ran before package is being installed. > However this brings me to my initial question. Since I'd mentioned > exec{"updateyum": ....} before any package statement so had puppet some way > of ensuring serial execution of script I would have been saved from > mentioning it every time in package statements.
you can shorten that by either wrap your package installation with a define, or define at the top: Package{ require => Exec["updateyum"] } which will introduce a global dependency on the Package resource on that exec. Note: afair if you set another dependency you will have to reset it. But it looks like this will be once for your setup. cheers pete -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.9 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAkvK/6oACgkQbwltcAfKi38bOgCeJQ90OrRpX2KDbG+CbpUI6/yn 34UAoLJsRRztfPQmBdneIzdKNBb3Ouwf =UIeP -----END PGP SIGNATURE----- -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to puppet-us...@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.