Skip to content

Commit 729b9ec

Browse files
committed
make package name configurable
1 parent 7082cd5 commit 729b9ec

File tree

2 files changed

+8
-3
lines changed

2 files changed

+8
-3
lines changed

manifests/server.pp

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
$netbios_name = '',
1515
$obey_pam_restrictions = '',
1616
$os_level = '',
17+
$package_name = 'samba',
1718
$pam_password_change = '',
1819
$panic_action = '',
1920
$passdb_backend = '',
@@ -34,7 +35,9 @@
3435
$workgroup = '',
3536
$interfaces = '' ) {
3637

37-
include samba::server::install
38+
class { '::samba::server::install':
39+
package_name => $package_name,
40+
}
3841
include samba::server::config
3942
include samba::server::service
4043

manifests/server/install.pp

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
11
# == Class samba::server::install
22
#
3-
class samba::server::install {
4-
package { 'samba':
3+
class samba::server::install(
4+
$package_name = 'samba'
5+
) {
6+
package { $package_name:
57
ensure => installed
68
}
79
}

0 commit comments

Comments
 (0)