Merge ~pjdc/ubuntu-mirror-charm/+git/ubuntu-mirror-charm:rsync-global-config into ubuntu-mirror-charm:master

Proposed by Paul Collins
Status: Merged
Approved by: Paul Collins
Approved revision: 1b129a2c1cbaf9de00a3151e78044f54636a7c12
Merged at revision: 0d7f8dd803586a4035b8eb35c841dfe590d5259d
Proposed branch: ~pjdc/ubuntu-mirror-charm/+git/ubuntu-mirror-charm:rsync-global-config
Merge into: ubuntu-mirror-charm:master
Diff against target: 41 lines (+8/-2)
3 files modified
hooks/hooks.py (+1/-0)
templates/rsync-base-cfg.tmpl (+1/-2)
templates/rsync-mirrors-cfg.tmpl (+6/-0)
Reviewer Review Type Date Requested Status
Alexandre Gomes Approve
Canonical IS Reviewers Pending
Review via email: mp+388854@code.launchpad.net

Commit message

move "max connections" and "timeout" to individual modules

To post a comment you must log in.
Revision history for this message
🤖 Canonical IS Merge Bot (canonical-is-mergebot) wrote :

This merge proposal is being monitored by mergebot. Change the status to Approved to merge.

Revision history for this message
Alexandre Gomes (alejdg) wrote :

+1

review: Approve
Revision history for this message
🤖 Canonical IS Merge Bot (canonical-is-mergebot) wrote :

Change successfully merged at revision 0d7f8dd803586a4035b8eb35c841dfe590d5259d

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1diff --git a/hooks/hooks.py b/hooks/hooks.py
2index e01f266..ff99b06 100755
3--- a/hooks/hooks.py
4+++ b/hooks/hooks.py
5@@ -62,6 +62,7 @@ required_pkgs = [
6 'devscripts', # provides annotate-output
7 'logrotate',
8 'procmail', # provides lockfile
9+ 'rsync',
10 'vsftpd',
11 'xinetd',
12 ]
13diff --git a/templates/rsync-base-cfg.tmpl b/templates/rsync-base-cfg.tmpl
14index 02f79b8..5e15e00 100644
15--- a/templates/rsync-base-cfg.tmpl
16+++ b/templates/rsync-base-cfg.tmpl
17@@ -7,8 +7,7 @@ gid = nogroup
18 pid file = /var/run/rsyncd.pid
19 syslog facility = daemon
20 socket options = SO_KEEPALIVE
21-timeout = 1000
22-max connections = ${max_connections}
23+timeout = 7200
24 motd file = ${motdfile}
25
26 &include /etc/rsync-juju.d
27diff --git a/templates/rsync-mirrors-cfg.tmpl b/templates/rsync-mirrors-cfg.tmpl
28index b74fbc3..c829b99 100644
29--- a/templates/rsync-mirrors-cfg.tmpl
30+++ b/templates/rsync-mirrors-cfg.tmpl
31@@ -13,4 +13,10 @@
32 transfer logging = false
33 #end if
34
35+ # "max connections" is essentially global, due to a shared lock
36+ # file, but it and "timeout" are here because a) they're module
37+ # settings and b) rsyncd.conf can be clobbered, e.g. by cs:nrpe.
38+ max connections = ${max_connections}
39+ timeout = 1000
40+
41 #end for

Subscribers

People subscribed via source and target branches