Hi, Use
> file { "/opt/tarball_name-${version}.tar.gz" : You then declare that with $version = 1.2.3 See http://docs.puppetlabs.com/learning/variables.html for fuller explanation. Den On 17/04/2012, at 7:32, Eslam Mamdouh <emamd...@cloud9ers.com> wrote: > Hi All, > i'd like to define a file resource that transfers a tar ball that doesn't > have fixed name > actually tarball name will be tarball_name-<version>.tar.gz > > i tried to define file resouce as following using regex : > file { "/opt/tarball_name*.tar.gz" : > ....... > } > but it seems that regex doesn't work with with file resource > so what do you suggest regarding this issue > > Thanks in advance > -- > Best Regards, > Eslam Mamdouh El Husseiny > Systems Administrator > Cloud Niners Ltd. > > Cellular: (+2) 011 198 40 40 > Mansoura: (+2) 050 234 70 81 > Cairo: (+2) 022 268 34 60 > Fax: (+2) 022 268 34 63 > > > > -- > 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. -- 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.