diff options
author | Vladislav Nazarenko <vladislav.nazarenko@dvag.com> | 2014-01-17 13:55:55 +0100 |
---|---|---|
committer | Vladislav Nazarenko <vladislav.nazarenko@dvag.com> | 2014-01-17 13:55:55 +0100 |
commit | f321b3a1e0fbed665ef92776dffb1abb064a9f84 (patch) | |
tree | 4e2d2dce49a8c3122f4aec82c3eb72bd98cc4b35 /manifests/server/option.pp | |
parent | 7d0c9a893efae039252e754ed7750b4bcdf25f9a (diff) | |
download | puppet-samba-f321b3a1e0fbed665ef92776dffb1abb064a9f84.tar.gz puppet-samba-f321b3a1e0fbed665ef92776dffb1abb064a9f84.tar.bz2 |
moved set_samba_option to own file an renamed it to samba::server::option
Diffstat (limited to 'manifests/server/option.pp')
-rw-r--r-- | manifests/server/option.pp | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/manifests/server/option.pp b/manifests/server/option.pp new file mode 100644 index 0000000..36968fc --- /dev/null +++ b/manifests/server/option.pp @@ -0,0 +1,19 @@ +define samba::server::option ( $value = '' ) { + $incl = $samba::server::incl + $context = $samba::server::context + $target = $samba::server::target + + $changes = $value ? { + default => "set \"${target}/$name\" \"$value\"", + '' => "rm ${target}/$name", + } + + augeas { "samba-$name": + incl => $incl, + lens => 'Samba.lns', + context => $context, + changes => $changes, + require => Augeas['global-section'], + notify => Class['Samba::Server::Service'] + } +}
\ No newline at end of file |