From 743867385b78b89be425b0fe4d561af5836c81d8 Mon Sep 17 00:00:00 2001 From: Luke Bigum Date: Tue, 22 Jan 2019 13:06:49 +0000 Subject: [PATCH] make package name configurable --- manifests/server/install.pp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/manifests/server/install.pp b/manifests/server/install.pp index ec98a49..c06a0a6 100644 --- a/manifests/server/install.pp +++ b/manifests/server/install.pp @@ -1,7 +1,9 @@ # == Class samba::server::install # -class samba::server::install { - package { 'samba': +class samba::server::install( + $package_name = 'samba' +) { + package { $package_name: ensure => installed } }