From 7bc3dcb8dc1f968c5da9876b969de9c32eedf325 Mon Sep 17 00:00:00 2001 From: varac Date: Wed, 20 Jan 2010 00:41:51 +0100 Subject: added debian support --- manifests/puppetmaster/package.pp | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'manifests/puppetmaster/package.pp') 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], } } -- cgit v1.2.3