diff options
author | Jerome Charaoui <jcharaoui@cmaisonneuve.qc.ca> | 2010-05-12 16:47:29 -0400 |
---|---|---|
committer | Jerome Charaoui <jcharaoui@cmaisonneuve.qc.ca> | 2010-05-12 16:49:35 -0400 |
commit | 04f62c810f14599fb935dee962689b2727d54c36 (patch) | |
tree | 54013ac889e8f510fdd5653a5443305708c47cc8 | |
parent | 1e27b543c8175a501ee61222797be30b949f1ad3 (diff) |
rename $puppet_version and $facter_version and default to installed instead of present
-rw-r--r-- | manifests/linux.pp | 18 |
1 files changed, 5 insertions, 13 deletions
diff --git a/manifests/linux.pp b/manifests/linux.pp index 3a79e34..f367f83 100644 --- a/manifests/linux.pp +++ b/manifests/linux.pp @@ -1,21 +1,13 @@ class puppet::linux inherits puppet::base { - $real_puppet_version = $puppet_version ? { - '' => 'present', - default => $puppet_version, - } - - $real_facter_version = $facter_version ? { - '' => 'present', - default => $facter_version, - } - + if $puppet_ensure_version == '' { $puppet_ensure_version = 'installed' } package{ 'puppet': - ensure => $real_puppet_version, + ensure => $puppet_ensure_version, } - + + if $facter_ensure_version == '' { $facter_ensure_version = 'installed' } package{ 'facter': - ensure => $real_facter_version, + ensure => $facter_ensure_version, } # package bc needed for cron |