diff options
author | Jerome Charaoui <jcharaoui@cmaisonneuve.qc.ca> | 2010-03-31 14:25:18 -0400 |
---|---|---|
committer | Jerome Charaoui <jcharaoui@cmaisonneuve.qc.ca> | 2010-03-31 14:27:39 -0400 |
commit | 0f0434a582c1f3bd274a79e51ab34a2f4887e659 (patch) | |
tree | cd382e3c3974747846b90b9a3dc37240fe4181e3 /manifests | |
parent | 849f6f9bc2c6e9cf63d63dc3ee46dc5ec1811362 (diff) |
Add optional $puppet_version and $facter_version variables, defaults to 'present'
Diffstat (limited to 'manifests')
-rw-r--r-- | manifests/linux.pp | 19 |
1 files changed, 17 insertions, 2 deletions
diff --git a/manifests/linux.pp b/manifests/linux.pp index afbda8d..12112e1 100644 --- a/manifests/linux.pp +++ b/manifests/linux.pp @@ -1,6 +1,21 @@ class puppet::linux inherits puppet::base { - package{ [ 'puppet', 'facter' ]: - ensure => present, + + $real_puppet_version = $puppet_version ? { + '' => 'present', + default => $puppet_version, + } + + $real_facter_version = $facter_version ? { + '' => 'present', + default => $facter_version, + } + + package{ 'puppet': + ensure => $real_puppet_version, + } + + package{ 'facter': + ensure => $real_facter_version, } # package bc needed for cron |