aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--manifests/init.pp4
-rw-r--r--manifests/server.pp2
-rw-r--r--manifests/server/ads.pp4
-rw-r--r--manifests/server/config.pp2
-rw-r--r--manifests/server/install.pp4
-rw-r--r--manifests/server/option.pp2
-rw-r--r--manifests/server/service.pp2
-rw-r--r--manifests/server/share.pp2
-rw-r--r--manifests/server/user.pp4
-rw-r--r--manifests/server/winbind.pp2
10 files changed, 22 insertions, 6 deletions
diff --git a/manifests/init.pp b/manifests/init.pp
index 8a914a4..4fbac9a 100644
--- a/manifests/init.pp
+++ b/manifests/init.pp
@@ -1,7 +1,9 @@
+# == Class samba
+#
class samba {
include samba::server
if samba::server::security == 'ads' {
include samba::server::ads
}
-} \ No newline at end of file
+}
diff --git a/manifests/server.pp b/manifests/server.pp
index 65ea660..d4af927 100644
--- a/manifests/server.pp
+++ b/manifests/server.pp
@@ -1,3 +1,5 @@
+# == Class samba::server
+#
class samba::server($interfaces = '',
$security = '',
$server_string = '',
diff --git a/manifests/server/ads.pp b/manifests/server/ads.pp
index 781a6a9..1260fd1 100644
--- a/manifests/server/ads.pp
+++ b/manifests/server/ads.pp
@@ -1,8 +1,6 @@
+# == Class samba::server::ads
# This module join samba server to Active Dirctory
#
-# Copyright (c) 2013 Lebedev Vadim, abraham1901 at g mail dot c o m
-# Licensed under the MIT License, http://opensource.org/licenses/MIT
-
class samba::server::ads($ensure = present,
$winbind_acct = 'admin',
$winbind_pass = 'SecretPass',
diff --git a/manifests/server/config.pp b/manifests/server/config.pp
index d51e432..1ecb490 100644
--- a/manifests/server/config.pp
+++ b/manifests/server/config.pp
@@ -1,3 +1,5 @@
+# == Class samba::server::config
+#
class samba::server::config {
file { '/etc/samba':
diff --git a/manifests/server/install.pp b/manifests/server/install.pp
index 1454bfe..ec98a49 100644
--- a/manifests/server/install.pp
+++ b/manifests/server/install.pp
@@ -1,5 +1,7 @@
+# == Class samba::server::install
+#
class samba::server::install {
package { 'samba':
ensure => installed
}
-} \ No newline at end of file
+}
diff --git a/manifests/server/option.pp b/manifests/server/option.pp
index 0b34edb..bf491e8 100644
--- a/manifests/server/option.pp
+++ b/manifests/server/option.pp
@@ -1,3 +1,5 @@
+# == Define samba::server::option
+#
define samba::server::option ( $value = '' ) {
$incl = $samba::server::incl
$context = $samba::server::context
diff --git a/manifests/server/service.pp b/manifests/server/service.pp
index fdd9104..2226497 100644
--- a/manifests/server/service.pp
+++ b/manifests/server/service.pp
@@ -25,6 +25,8 @@ class samba::server::service ($ensure = running, $enable = true) {
}
default: { fail("${::osfamily} is not supported by this module.") }
}
+# == Class samba::server::server
+#
service { $service_name :
ensure => $ensure,
diff --git a/manifests/server/share.pp b/manifests/server/share.pp
index eacd5b7..d86e8c5 100644
--- a/manifests/server/share.pp
+++ b/manifests/server/share.pp
@@ -1,3 +1,5 @@
+# == Define samba::server::share
+#
define samba::server::share($ensure = present,
$available = '',
$browsable = '',
diff --git a/manifests/server/user.pp b/manifests/server/user.pp
index e3d84cc..b8f2e61 100644
--- a/manifests/server/user.pp
+++ b/manifests/server/user.pp
@@ -1,4 +1,6 @@
-define samba::server::user(
+# == Class samba::server::user
+#
+define samba::server::user (
$password,
$user_name = $name,
) {
diff --git a/manifests/server/winbind.pp b/manifests/server/winbind.pp
index 76136b9..68128e5 100644
--- a/manifests/server/winbind.pp
+++ b/manifests/server/winbind.pp
@@ -1,3 +1,5 @@
+# == Class samba::server::winbind
+#
class samba::server::winbind ($ensure = running, $enable = true) {
$service_name = 'winbind'