Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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
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
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
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

Your Answer


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

Browse other questions tagged or ask your own question.