aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJirgn Mssnr <jirgn76@googlemail.com>2016-02-09 17:51:12 +0100
committerJirgn Mssnr <jirgn76@googlemail.com>2016-02-09 17:51:12 +0100
commitd8c319fb569977afcd54f72ddfe3c6aa2b61a9f1 (patch)
tree26ca0b4e10e9c14122c42745c6c72da29c604047
parent430054887e7894690524bcd7d4a629280f18479f (diff)
downloadpuppet-samba-d8c319fb569977afcd54f72ddfe3c6aa2b61a9f1.tar.gz
puppet-samba-d8c319fb569977afcd54f72ddfe3c6aa2b61a9f1.tar.bz2
added share config via hiera
-rw-r--r--manifests/server.pp5
1 files changed, 4 insertions, 1 deletions
diff --git a/manifests/server.pp b/manifests/server.pp
index 8d6a214..59d5d51 100644
--- a/manifests/server.pp
+++ b/manifests/server.pp
@@ -19,7 +19,8 @@ class samba::server($interfaces = '',
$pam_password_change = '',
$os_level = '',
$preferred_master = '',
- $bind_interfaces_only = 'yes',) {
+ $bind_interfaces_only = 'yes',
+ $shares = {},) {
include samba::server::install
include samba::server::config
@@ -60,4 +61,6 @@ class samba::server($interfaces = '',
'os level': value => $os_level;
'preferred master': value => $preferred_master;
}
+
+ create_resources(samba::server::share, $shares)
}