Peter Berghold writes: > Hi folks, > > I'm a newbie to this wonderful tool called puppet and so far I'm loving it. > > One of the first set of recipes (classes?) I wrote for my environment was to > build some packages from source and install them. Stuff like apache httpd, > nagios and others I prefer to build from source because the distro i'm > forced to use lags behind version wise (CloudLinux, a form of CentOS) and > I'd like certain of my tools to be more recent vintages than the distro > provides. > > Is there a way to wrap a set of exec { } statement in a conditional such as: > > > if [ file_or_directory_does_not_exist ] > then > exec { thing1} > exec {thing2} > > etc... > > or is there a better way that I'm not seeing?
You're probably going to be better off making custom RPM packages for things that you want to have locally-built, place them in a local repository that your systems are configured to access, and then using the Puppet "package" resource type to install them. In general, the "exec" resource type should be a last resort for things that you can't use an existing Puppet resource type to manage. -- 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.