File: uriworkermap.properties.epp

package info (click to toggle)
puppet-module-puppetlabs-apache 12.2.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 2,664 kB
  • sloc: ruby: 275; sh: 32; makefile: 2
file content (40 lines) | stat: -rw-r--r-- 1,257 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
# This file is generated automatically by Puppet - DO NOT EDIT
# Any manual changes will be overwritten
<%# -%>
<%# mount_file_content should be a hash which keys are workers names -%>
<%# and values are new hashes with two items: -%>
<%# uri_list - Array with URIs to be mapped to worker -%>
<%# comment - Optional comment line -%>
<%# -%>
<%# Example: -%>
<%# # Worker 1 -%>
<%# /context_1/ = worker_1 -%>
<%# /context_1/* = worker_1 -%>
<%# -%>
<%# # Worker 2 -%>
<%# / = worker_2 -%>
<%# /context_2/ = worker_2 -%>
<%# /context_2/* = worker_2 -%>
<%# -%>
<%# should be parameterized as: -%>
<%# $mount_file_content = { -%>
<%#   worker_1 => { -%>
<%#     uri_list => ['/context_1/', '/context_1/*'], -%>
<%#     comment  => 'Worker 1', -%>
<%#   }, -%>
<%#   worker_2 => { -%>
<%#     uri_list => ['/context_2/', '/context_2/*'], -%>
<%#     comment  => 'Worker 2', -%>
<%#   }, -%>
<%# }, -%>
<%# -%>
<% Array($mount_file_content).sort.each |$worker_and_directives| { -%>

<%# Places comment before worker mappings -%>
<% if $worker_and_directives[1]['comment'] { -%>
# <%= $worker_and_directives[1]['comment'] %>
<% } -%>
<% $worker_and_directives[1]['uri_list'].sort.each |$uri| { -%>
<%= $uri %> = <%= $worker_and_directives[0] %>
<% } -%>
<% } -%>