On Mon, 2010-05-03 at 07:23 +0100, Matthew Macdonald-Wallace wrote: > Hi all, > > I'm looking for a way to run an exec statement if a file does not exist > on the server is this possible?
I've been thinking about this some more as I've been developing this module for easy install of RPM repos. Would it work if I pushed out a custom fact with the repo that I then called in the manifest? Example (pseudo-code!): ============== if(!fact->$repoName){ install repo from rpm } else { check repo config against file } ============ I'm not convinced that this fixes everything but I think it might do the trick. Thoughts? M. -- 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.