Bram Enning <bramenn...@gmail.com> writes: > I have the class below and it doens;t work. That it is, it does work if I > run it twice. On the second puppet-run everything works, on the first it > doesn't run the third, because of failed dependencies. > > Any suggestions?
Well, the first one is that you would be much, much, much, much better off not doing this on each host: this is utterly non-deterministic. Instead, package your Perl code somehow and deploy *that* to the systems. When you need to upgrade, upgrade the package and redeploy. This could be as unsophisticated as a tarball you unpack, although I would strongly suggest you use whatever platform packaging you have to manage things. That way you gain the ability to have *exactly* the same configuration deployed to your systems, with the same versions, every time you deploy. (Your current code will upgrade Net::Amazon::EC2 automatically, which will eventually break your application, I promise. ;) Daniel -- ✣ Daniel Pittman ✉ dan...@rimspace.net ☎ +61 401 155 707 ♽ made with 100 percent post-consumer electrons -- 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.