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. Please help me in this regard. Regards, Bhaskar. -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to puppet-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
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-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
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-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
Matthew Hyclak
2010-Jul-09 11:05 UTC
Re: [Puppet Users] Re: conditional execution of package
Look at the onlyif parameter to exec. Matt -- Sent from my Palm Pre On Jul 9, 2010 5:33, prudhvi <prudhviy@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-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscribe@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-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
On 9 July 2010 08:18, Patrick Mohr <kc7zzv@gmail.com> wrote:> It''s probably better to make a package instead.+1, roll a package. Your life will be easier. The sun will shine. Birds will serenade you. Beer will flow from fountains. -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to puppet-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
Patrick Mohr
2010-Jul-09 18:10 UTC
Re: [Puppet Users] Re: conditional execution of package
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-users@googlegroups.com. > To unsubscribe from this group, send email to puppet-users+unsubscribe@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-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.