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
diff --git a/hooks/hooks.py b/hooks/hooks.py
index e01f266..ff99b06 100755
--- a/hooks/hooks.py
+++ b/hooks/hooks.py
@@ -62,6 +62,7 @@ required_pkgs = [
62 'devscripts', # provides annotate-output62 'devscripts', # provides annotate-output
63 'logrotate',63 'logrotate',
64 'procmail', # provides lockfile64 'procmail', # provides lockfile
65 'rsync',
65 'vsftpd',66 'vsftpd',
66 'xinetd',67 'xinetd',
67]68]
diff --git a/templates/rsync-base-cfg.tmpl b/templates/rsync-base-cfg.tmpl
index 02f79b8..5e15e00 100644
--- a/templates/rsync-base-cfg.tmpl
+++ b/templates/rsync-base-cfg.tmpl
@@ -7,8 +7,7 @@ gid = nogroup
7pid file = /var/run/rsyncd.pid7pid file = /var/run/rsyncd.pid
8syslog facility = daemon8syslog facility = daemon
9socket options = SO_KEEPALIVE9socket options = SO_KEEPALIVE
10timeout = 100010timeout = 7200
11max connections = ${max_connections}
12motd file = ${motdfile}11motd file = ${motdfile}
1312
14&include /etc/rsync-juju.d13&include /etc/rsync-juju.d
diff --git a/templates/rsync-mirrors-cfg.tmpl b/templates/rsync-mirrors-cfg.tmpl
index b74fbc3..c829b99 100644
--- a/templates/rsync-mirrors-cfg.tmpl
+++ b/templates/rsync-mirrors-cfg.tmpl
@@ -13,4 +13,10 @@
13 transfer logging = false13 transfer logging = false
14 #end if14 #end if
1515
16 # "max connections" is essentially global, due to a shared lock
17 # file, but it and "timeout" are here because a) they're module
18 # settings and b) rsyncd.conf can be clobbered, e.g. by cs:nrpe.
19 max connections = ${max_connections}
20 timeout = 1000
21
16#end for22#end for

Subscribers

People subscribed via source and target branches