Rustler <coltsixshoo...@gmail.com> writes: > I wasn't clear enough in describing the problem - What I'm trying to achieve > is that if the package is installed, don't execute the file statement and > download the rpm.
The 'file' resource can't do that: it doesn't have the capability to achieve the results you want. You have three choices here: One, you can replace the file resource with an exec resource, and tie that to a test if the file exists. Two, you can store the file somewhere persistent, and accept that it isn't going to do what you want. Finally, three, which is the hardest, but also the *right* answer: Create a YUM repository for your RPM packages. Configure that on your hosts. Then use YUM to install the package, rather than trying to rewrite YUM inside puppet. > If I leave the file in /tmp, it does not download again, if I delete the > file and the package is installed, it still downloads the rpm. I don't want > to have to keep the rpm on the system after the package install. > > Seems an NFS mount for the rpm's might be the solution? ...or that, which is basically option one except you replace the exec/wget with an NFS mount being set up. :) Regards, 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.