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