samba: Refactored samba module to use templates.

This commit is contained in:
Timo Mkinen 2013-06-14 12:25:45 +03:00
parent 734fbfdace
commit 5309521c18
6 changed files with 430 additions and 123 deletions

View file

@ -0,0 +1,13 @@
[<%= @name %>]
comment = <% if @comment %><%= @comment %><% else %><%= @name %><% end %>
path = <%= @path %>
inherit permissions = yes
invalid users = root
<% if @readonly -%>
read only = yes
<% else -%>
read only = no
<% end -%>
<% @options.each do |option| -%>
<%= option %>
<% end -%>