Look at the onlyif parameter to exec.

Matt

-- Sent from my Palm Pre
On Jul 9, 2010 5:33, prudhvi <prudh...@gmail.com> 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?



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.

Reply via email to