summaryrefslogtreecommitdiff
path: root/manifests/puppetmaster
diff options
context:
space:
mode:
Diffstat (limited to 'manifests/puppetmaster')
-rw-r--r--manifests/puppetmaster/package.pp9
1 files changed, 7 insertions, 2 deletions
diff --git a/manifests/puppetmaster/package.pp b/manifests/puppetmaster/package.pp
index d7c477d..c91dbe8 100644
--- a/manifests/puppetmaster/package.pp
+++ b/manifests/puppetmaster/package.pp
@@ -1,9 +1,14 @@
# manifests/puppetmaster/package.pp
class puppet::puppetmaster::package inherits puppet::puppetmaster::linux {
- package { puppet-server: ensure => present }
+ case $operatingsystem {
+ debian: { $puppetmaster_package="puppetmaster" }
+ default: { $puppetmaster_package="puppet-server" }
+ }
+
+ package { $puppetmaster_package: ensure => present }
Service[puppetmaster]{
- require +> Package[puppet-server],
+ require +> Package[$puppetmaster_package],
}
}