FAQ
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+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.

Search Discussions

  • Denmat at Apr 17, 2012 at 4:14 am
    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 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+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.

Related Discussions

Discussion Navigation
viewthread | post
Discussion Overview
grouppuppet-users @
categoriespuppet
postedApr 16, '12 at 9:32p
activeApr 17, '12 at 4:14a
posts2
users2
websitepuppetlabs.com

2 users in discussion

Denmat: 1 post Eslam Mamdouh: 1 post

People

Translate

site design / logo © 2022 Grokbase