-
-
Notifications
You must be signed in to change notification settings - Fork 25
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #633 from dduportal/feat/mirrorbits/rsyncd-config
feat(mirrorbits) use rsyncd restricted but customizable configuration
- Loading branch information
Showing
9 changed files
with
76 additions
and
93 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,4 +5,4 @@ maintainers: | |
- email: me@olblak.com | ||
name: olblak | ||
name: mirrorbits | ||
version: 0.61.1 | ||
version: 0.62.0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
40 changes: 37 additions & 3 deletions
40
charts/mirrorbits/templates/configmap.rsyncd.rsyncd-conf.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,43 @@ | ||
{{- if .Values.rsyncd.configurationFiles.rsyncdConf.override }} | ||
{{- if .Values.rsyncd.enabled -}} | ||
apiVersion: v1 | ||
kind: ConfigMap | ||
metadata: | ||
name: {{ template "mirrorbits.fullname" . }}-rsyncd-conf | ||
data: | ||
rsyncd.conf: | ||
{{ .Values.rsyncd.configurationFiles.rsyncdConf.content | indent 4 }} | ||
rsyncd.conf: | | ||
# /etc/rsyncd: configuration file for | ||
rsync daemon mode | ||
# See rsyncd.conf man page for more options. | ||
# configuration example: | ||
uid = {{ .Values.rsyncd.configuration.uid }} | ||
gid = {{ .Values.rsyncd.configuration.gid }} | ||
use chroot = yes | ||
max connections = 0 | ||
pid file = /var/run/rsyncd.pid | ||
exclude = lost+found/ | ||
transfer logging = yes | ||
log file = /dev/stdout | ||
ignore nonreadable = yes | ||
dont compress = *.gz *.tgz *.zip *.z *.Z *.rpm *.deb *.bz2 | ||
port = {{ .Values.rsyncd.configuration.port }} | ||
# motd file = {{ .Values.rsyncd.configuration.motd_path }} | ||
max verbosity = 4 | ||
# Timeout in seconds | ||
timeout = 300 | ||
# Any attempted uploads will fail | ||
read only = true | ||
# Downloads will be possible if file permissions on the daemon side allow them | ||
write only = false | ||
hosts allow = {{ .Values.rsyncd.configuration.hosts_allow }} | ||
[jenkins] | ||
path = {{ .Values.rsyncd.configuration.datadir }} | ||
comment = {{ .Values.rsyncd.configuration.comment }} | ||
{{- end -}} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters