From e47f9cba618d9b1891836b3d9dfa6d7e09f40e49 Mon Sep 17 00:00:00 2001 From: Adam Jahn Date: Mon, 13 Apr 2015 15:14:00 -0400 Subject: document classes to satisfy linting --- manifests/init.pp | 4 +++- manifests/server.pp | 2 ++ manifests/server/ads.pp | 4 +--- manifests/server/config.pp | 2 ++ manifests/server/install.pp | 4 +++- manifests/server/option.pp | 2 ++ manifests/server/service.pp | 2 ++ manifests/server/share.pp | 2 ++ manifests/server/user.pp | 4 +++- manifests/server/winbind.pp | 2 ++ 10 files changed, 22 insertions(+), 6 deletions(-) (limited to 'manifests') 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' -- cgit v1.2.3