feat: implement nested groups
- use includegroups feature to nest groups - remove the trailing ',' from includegroups
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
[[groups]]
|
||||
name = "<%= $name %>"
|
||||
gidnumber = <%= $gidnumber %>
|
||||
<% if $includegroups.length > 0 { %>includegroups = [<% $includegroups.each |Integer $group| { %><%= $group %>, <% } %>]<% } %>
|
||||
<% if $includegroups.length > 0 { %>includegroups = [<%= $includegroups.join(', ') %>]<% } %>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user