Skip to content

Commit

Permalink
make package name configurable
Browse files Browse the repository at this point in the history
  • Loading branch information
lukebigum committed Jan 22, 2019
1 parent 7082cd5 commit 729b9ec
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
5 changes: 4 additions & 1 deletion manifests/server.pp
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
$netbios_name = '',
$obey_pam_restrictions = '',
$os_level = '',
$package_name = 'samba',
$pam_password_change = '',
$panic_action = '',
$passdb_backend = '',
Expand All @@ -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

Expand Down
6 changes: 4 additions & 2 deletions manifests/server/install.pp
Original file line number Diff line number Diff line change
@@ -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
}
}

0 comments on commit 729b9ec

Please sign in to comment.