hi all, I wote a module for downloading jdk, jboss, mysql and installing them..now i would like to apply a condition to it...in such a way that..if its already downloaded, it should not download it.. can some one please help me with this... Regards, Ramya -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-users+unsubscribe@googlegroups.com. To post to this group, send email to puppet-users@googlegroups.com. Visit this group at http://groups.google.com/group/puppet-users?hl=en. For more options, visit https://groups.google.com/groups/opt_out.
yarlagadda ramya <rams.15891@gmail.com> writes:> hi all, > > I wote a module for downloading jdk, jboss, mysql and installing them..now i > would like to apply a condition to it...in such a way that..if its already > downloaded, it should not download it.. > > can some one please help me with this... >Are you using File or using an external tool (wget, curl, etc..)? The File resource should do that for you automatically. It will checksum the file it downloads, and if it already exists on the node then it won''t download it again. Note that the File resource will leave the packages on the node, so it''s best to have a directory set aside for storing things puppet has downloaded. -- Kyle Sexton -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-users+unsubscribe@googlegroups.com. To post to this group, send email to puppet-users@googlegroups.com. Visit this group at http://groups.google.com/group/puppet-users?hl=en. For more options, visit https://groups.google.com/groups/opt_out.
Hi.., Am not using file...m using exec and in that wget command.. On Friday, 22 February 2013 19:54:47 UTC+5:30, k...@mocker.org wrote:> > yarlagadda ramya <rams....@gmail.com <javascript:>> writes: > > > hi all, > > > > I wote a module for downloading jdk, jboss, mysql and installing > them..now i > > would like to apply a condition to it...in such a way that..if its > already > > downloaded, it should not download it.. > > > > can some one please help me with this... > > > > Are you using File or using an external tool (wget, curl, etc..)? > > The File resource should do that for you automatically. It will > checksum the file it downloads, and if it already exists on the node > then it won''t download it again. > > Note that the File resource will leave the packages on the node, so it''s > best to have a directory set aside for storing things puppet has > downloaded. > > -- > Kyle Sexton >-- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-users+unsubscribe@googlegroups.com. To post to this group, send email to puppet-users@googlegroups.com. Visit this group at http://groups.google.com/group/puppet-users?hl=en. For more options, visit https://groups.google.com/groups/opt_out.
Hi, then make sure to specify a creates parameter such as exec { "wget http://... -O/var/cache/jdk.bin": creates => "/var/cache/jdk.bin"; } HTH, Felix On 02/25/2013 05:51 AM, yarlagadda ramya wrote:> Hi.., > > Am not using file...m using exec and in that wget command..-- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-users+unsubscribe@googlegroups.com. To post to this group, send email to puppet-users@googlegroups.com. Visit this group at http://groups.google.com/group/puppet-users?hl=en. For more options, visit https://groups.google.com/groups/opt_out.