summaryrefslogtreecommitdiff
path: root/manifests/linux.pp
diff options
context:
space:
mode:
Diffstat (limited to 'manifests/linux.pp')
-rw-r--r--manifests/linux.pp18
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