File tree Expand file tree Collapse file tree 3 files changed +37
-19
lines changed Expand file tree Collapse file tree 3 files changed +37
-19
lines changed Original file line number Diff line number Diff line change 42
42
ensure => directory ,
43
43
}
44
44
45
+ # Template uses:
46
+ # - $use_chroot
47
+ # - $address
48
+ # - $motd_file
45
49
file { "${rsync_fragments}/header" :
46
50
content => template (' rsync/header.erb' ),
47
51
}
Original file line number Diff line number Diff line change 4
4
pid file = /var/run/rsyncd.pid
5
5
uid = nobody
6
6
gid = nobody
7
- use chroot = <%= use_chroot %>
7
+ use chroot = <%= @ use_chroot %>
8
8
log format = %t %a %m %f %b
9
9
syslog facility = local3
10
10
timeout = 300
11
- address = <%= address %>
12
- <% if motd_file != 'UNSET' %> motd file = <%= motd_file %> <% end %>
11
+ address = <%= @address %>
12
+ <% if @motd_file != 'UNSET' -%>
13
+ motd file = <%= @motd_file %>
14
+ <% end -%>
Original file line number Diff line number Diff line change 1
1
# This file is being maintained by Puppet.
2
2
# DO NOT EDIT
3
3
4
- [ <%= name %> ]
5
- path = <%= path %>
6
- read only = <%= read_only %>
7
- write only = <%= write_only %>
8
- list = <%= list %>
9
- uid = <%= uid %>
10
- gid = <%= gid %>
11
- incoming chmod = <%= incoming_chmod %>
12
- outgoing chmod = <%= outgoing_chmod %>
13
- max connections = <%= max_connections %>
14
- <% if Integer(max_connections) > 0 %> lock file = <%= lock_file %> <% end %>
15
- <% if comment != :undef %> comment = <%= comment %> <% end %>
16
- <% if secrets_file != :undef %> secrets file = <%= secrets_file %> <% end %>
17
- <% if auth_users != :undef %> auth users = <%= auth_users.to_a.join(', ')%> <% end %>
18
- <% if hosts_allow != :undef %> hosts allow = <%= hosts_allow.to_a.join(' ')%> <% end %>
19
- <% if hosts_deny != :undef %> hosts deny = <%= hosts_deny.to_a.join(' ')%> <% end %>
4
+ [ <%= @name %> ]
5
+ path = <%= @path %>
6
+ read only = <%= @read_only %>
7
+ write only = <%= @write_only %>
8
+ list = <%= @list %>
9
+ uid = <%= @uid %>
10
+ gid = <%= @gid %>
11
+ incoming chmod = <%= @incoming_chmod %>
12
+ outgoing chmod = <%= @outgoing_chmod %>
13
+ max connections = <%= @max_connections %>
14
+ <% if Integer(@max_connections) > 0 -%>
15
+ lock file = <%= @lock_file %>
16
+ <% end -%>
17
+ <% if @comment -%>
18
+ comment = <%= @comment %>
19
+ <% end -%>
20
+ <% if @secrets_file -%>
21
+ secrets file = <%= @secrets_file %>
22
+ <% end -%>
23
+ <% if @auth_users -%>
24
+ auth users = <%= @auth_users.to_a.join(', ')%>
25
+ <% end %>
26
+ <% if @hosts_allow -%>
27
+ hosts allow = <%= @hosts_allow.to_a.join(' ')%>
28
+ <% end -%>
29
+ <% if @hosts_deny -%>
30
+ hosts deny = <%= @hosts_deny.to_a.join(' ')%>
31
+ <% end -%>
20
32
21
33
You can’t perform that action at this time.
0 commit comments