summaryrefslogtreecommitdiff
path: root/manifests/linux.pp
diff options
context:
space:
mode:
authorJerome Charaoui <jcharaoui@cmaisonneuve.qc.ca>2010-03-31 14:25:18 -0400
committerJerome Charaoui <jcharaoui@cmaisonneuve.qc.ca>2010-03-31 14:27:39 -0400
commit0f0434a582c1f3bd274a79e51ab34a2f4887e659 (patch)
treecd382e3c3974747846b90b9a3dc37240fe4181e3 /manifests/linux.pp
parent849f6f9bc2c6e9cf63d63dc3ee46dc5ec1811362 (diff)
Add optional $puppet_version and $facter_version variables, defaults to 'present'
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