On Jul 9, 2010, at 2:33 AM, prudhvi wrote: > Hi Patrick, > > You're right. > Actually I have a custom source which i have to install it through > source > is there any conditional execution like if-case to check whether the > source files are already in place?
Not creating a package is probably a big mistake, but take a look at the "onlyif" parameter and the "creates" parameter. onlyif takes a command. creates says something like "if this file/directory exists, don't run this command." > On Jul 9, 12:18 pm, Patrick Mohr <kc7...@gmail.com> wrote: >> It's probably better to make a package instead. >> >> On Jul 8, 2010, at 11:49 PM, prudhvi wrote: >> >>> Hi, >> >>> I have been installing couchdb from source thorough " make/make >>> install " using puppet's exec. >>> The problem I am facing is when ever i run the configuration for the >>> second time its not recognizing tat its already installed. >>> couchdb is being installed all over again. >>> is it the problem becoz , im not using puppet's package resource type >>> I thought of a plan in which i can check whether a particular file >>> exists. so if the file doesnt exists, I'll ask puppet to install it >>> right away. >> >> So you're doing something like this? >> >> exec { tar xvzf && ./configure && make && make install: >> path => "whatever", >> creates => "/usr/bin/program_name", >> >> } > > -- > 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. > -- 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.