samba: Refactored samba module to use templates.
This commit is contained in:
parent
734fbfdace
commit
5309521c18
6 changed files with 430 additions and 123 deletions
13
samba/templates/share.conf.erb
Normal file
13
samba/templates/share.conf.erb
Normal 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 -%>
|
Loading…
Add table
Add a link
Reference in a new issue