Jeeva,
I would make a custom fact ( http://docs.puppetlabs.com/guides/custom_facts.html) that checks for the presence of these files. Your Puppet manifest would check the condition of this fact to ensure the file absent or present (i.e. if $custom_fact { file { '/path/to/file': ensure => file } } ). Does that make sense? On Sun, Apr 1, 2012 at 8:37 PM, Munna S <19.mu...@gmail.com> wrote: > Team, > > Any help > > Thanks, > Jeeva > > On Fri, Mar 30, 2012 at 12:51 PM, Munna S <19.mu...@gmail.com> wrote: > >> Team, >> >> I need a puppet module to copy a file to different location based on >> condition check . Below is my requirement >> >> if /opt/path1 found on the server then copy file1 >> if /opt/path2 found on the server then copy file1 >> if /opt/path3 found on the server then copy file1 >> >> if none of the above path found then dont copy file1 >> >> Thanks, >> Jeeva >> >> > > -- > 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+unsubscr...@googlegroups.com. > For more options, visit this group at > http://groups.google.com/group/puppet-users?hl=en. > -- Gary Larizza Professional Services Engineer Puppet Labs -- 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+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.