root / templates / set.epp @ 20b96360
Historique | Voir | Annoter | Télécharger (949 octets)
1 |
<%- | String $name, |
---|---|
2 |
String $type, |
3 |
Array $flags, |
4 |
Optional[Integer] $timeout, |
5 |
Optional[Integer] $gc_interval, |
6 |
Optional[Array[String]] $elements, |
7 |
Optional[Integer] $size, |
8 |
Optional[String] $policy, |
9 |
Boolean $auto_merge, |
10 |
| -%> |
11 |
set <%= $name %> { |
12 |
type <%= $type %> |
13 |
<%- if $flags and length($flags) > 0 { -%> |
14 |
flags <%= $flags.join(', ') %> |
15 |
<%- } -%> |
16 |
<%- if $timeout { -%> |
17 |
timeout <%= $timeout %> |
18 |
<%- } -%> |
19 |
<%- if $gc_interval { -%> |
20 |
gc-interval <%= $gc_interval %> |
21 |
<%- } -%> |
22 |
<%- if $elements and length($elements) > 0 { -%> |
23 |
elements = { <%= $elements.join(', ') %> } |
24 |
<%- } -%> |
25 |
<%- if $size { -%> |
26 |
size <%= $size %> |
27 |
<%- } -%> |
28 |
<%- if $policy { -%> |
29 |
policy <%= $policy %> |
30 |
<%- } -%> |
31 |
<%- if $auto_merge { -%> |
32 |
auto-merge |
33 |
<%- } -%> |
34 |
} |