Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

Is there way I can do this ?

package { 'firmware': ensure => $version-*, }

instead of specifying the entire version,

package { 'firmware': ensure => $version-r20130530 }

share|improve this question
2  
Why do you want to do that? –  Ladadadada Jun 6 '13 at 22:06
    
@Ladadadada So I can switch versions when the package is built. For example, if I have test server, $version = 1.2-test-r20130530 so when i build r20130606, i dont need to change again in the puppet manifest. –  ks_1010 Jun 6 '13 at 22:11
    
What package provider? If Debian maybe make a meta package that you update to always depend on the version you want. –  Zoredache Jun 6 '13 at 22:39
1  
This is what hiera solves, have that one server have 'latest' and the others the specfic version, then do ensure => hiera('fireware_version') –  Sirex Jun 6 '13 at 23:12
1  
yeah. you should really consider it, seriously. It's really, really useful. Particularly with hiera-gpg so you can store passwords without exposing them. –  Sirex Jun 7 '13 at 0:24
show 5 more comments

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.