diff --git a/manifests/server.pp b/manifests/server.pp index 47c7be5..6571799 100644 --- a/manifests/server.pp +++ b/manifests/server.pp @@ -14,6 +14,7 @@ $netbios_name = '', $obey_pam_restrictions = '', $os_level = '', + $package_name = 'samba', $pam_password_change = '', $panic_action = '', $passdb_backend = '', @@ -34,7 +35,9 @@ $workgroup = '', $interfaces = '' ) { - include samba::server::install + class { '::samba::server::install': + package_name => $package_name, + } include samba::server::config include samba::server::service 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 } }