|
224 | 224 | - <%= $add %>: |
225 | 225 | <%- if $option['lifetime'] != undef { -%> |
226 | 226 | lifetime: <%= $option['lifetime'] %> |
227 | | - <%- } -%> |
| 227 | + <%- } -%> |
228 | 228 | <%- if $option['label'] != undef { -%> |
229 | 229 | label: <%= $option['label'] %> |
230 | | - <%- } -%> |
| 230 | + <%- } -%> |
231 | 231 | <%- } -%> |
232 | 232 | <%- } else { -%> |
233 | 233 | - <%= $address %> |
|
249 | 249 | <%- if $nameservers != undef { -%> |
250 | 250 | nameservers: |
251 | 251 | <%- if $nameservers[search] != undef { -%> |
252 | | - search: <%= $nameservers[search] %> |
| 252 | + search: |
| 253 | + <%- $nameservers[search].each |$search| { -%> |
| 254 | + - <%= $search %> |
| 255 | + <%- } -%> |
253 | 256 | <%- } -%> |
254 | 257 | <%- if $nameservers[addresses] != undef { -%> |
255 | 258 | addresses: |
|
343 | 346 | <%- } -%> |
344 | 347 | <%- if $key.is_a(Hash) { -%> |
345 | 348 | key: |
346 | | - <%- if $key[input] != undef { -%> |
| 349 | + <%- if $key[input] != undef { -%> |
347 | 350 | input: <%= $key[input] %> |
348 | 351 | <%- } -%> |
349 | | - <%- if $key[output] != undef { -%> |
| 352 | + <%- if $key[output] != undef { -%> |
350 | 353 | output: <%= $key[output] %> |
351 | 354 | <%- } -%> |
352 | | - <%- if $key['private'] != undef { -%> |
| 355 | + <%- if $key['private'] != undef { -%> |
353 | 356 | private: <%= $key['private'] %> |
354 | | - <%- } -%> |
| 357 | + <%- } -%> |
355 | 358 | <%- } -%> |
356 | 359 | <%- elsif $key.is_a(Scalar) { -%> |
357 | 360 | key: <%= $key %> |
|
367 | 370 | <%- $peers.each |$peer| { -%> |
368 | 371 | - keys: |
369 | 372 | public: <%= $peer[keys][public] %> |
370 | | - <%- if $peer[keys][shared] != undef { -%> |
| 373 | + <%- if $peer[keys][shared] != undef { -%> |
371 | 374 | shared: <%= $peer[keys][shared] %> |
372 | 375 | <%- } -%> |
373 | | - <%- if $peer[endpoint] != undef { -%> |
| 376 | + <%- if $peer[endpoint] != undef { -%> |
374 | 377 | endpoint: <%= $peer[endpoint] %> |
375 | 378 | <%- } -%> |
376 | | - <%- if $peer[allowed_ips] != undef { -%> |
| 379 | + <%- if $peer[allowed_ips] != undef { -%> |
377 | 380 | allowed-ips: <%= $peer[allowed_ips] %> |
378 | 381 | <%- } -%> |
379 | | - <%- if $peer[keepalive] != undef { -%> |
| 382 | + <%- if $peer[keepalive] != undef { -%> |
380 | 383 | keepalive: <%= $peer[keepalive] %> |
381 | 384 | <%- } -%> |
382 | | - <%- } -%> |
| 385 | + <%- } -%> |
383 | 386 | <%- } -%> |
384 | 387 | <%- if $id != undef { -%> |
385 | 388 | id: <%= $id %> |
|
0 commit comments