diff --git a/rsync-config/centos/build_srpm.data b/rsync-config/centos/build_srpm.data new file mode 100644 index 0000000..2c3b2cb --- /dev/null +++ b/rsync-config/centos/build_srpm.data @@ -0,0 +1,2 @@ +SRC_DIR="files" +TIS_PATCH_VER=1 diff --git a/rsync-config/centos/rsync-config.spec b/rsync-config/centos/rsync-config.spec new file mode 100644 index 0000000..5701277 --- /dev/null +++ b/rsync-config/centos/rsync-config.spec @@ -0,0 +1,34 @@ +Summary: rsync-config +Name: rsync-config +Version: 1.0 +Release: %{tis_patch_ver}%{?_tis_dist} +License: Apache-2.0 +Group: base +Packager: StarlingX +URL: unknown +BuildArch: noarch +Source: %name-%version.tar.gz + +Requires: rsync +Summary: package StarlingX configuration files of rsync to system folder. + +%description +package StarlingX configuration files of rsync to system folder. + +%prep +%setup + +%build + +%install +%{__install} -d %{buildroot}%{_datadir}/starlingx/ +%{__install} -m 644 rsyncd.conf %{buildroot}%{_datadir}/starlingx/stx.rsyncd.conf + +%post +if [ $1 -eq 1 ] ; then + # Initial installation + cp -f %{_datadir}/starlingx/stx.rsyncd.conf %{_sysconfdir}/rsyncd.conf +fi + +%files +%{_datadir}/starlingx/stx.rsyncd.conf diff --git a/rsync-config/files/rsyncd.conf b/rsync-config/files/rsyncd.conf new file mode 100644 index 0000000..f7a26e1 --- /dev/null +++ b/rsync-config/files/rsyncd.conf @@ -0,0 +1,57 @@ +# /etc/rsyncd.conf + +# Configuration file for rsync daemon +# See rsync(1) and rsyncd.conf(5) man pages for help + +# This file is required by rsync --daemon +pid file = /var/run/rsyncd.pid +use chroot = yes +read only = yes + +# Simple example for enabling your own local rsync server +#[everything] +# path = / +# comment = Everything except /etc exposed +# exclude = /etc + +[patching] + path = /opt/patching + comment = Patching filesystem + uid = root + read only = no + +[repo] + path = /www/pages/updates + comment = Patching repo + uid = root + read only = no + +[platform] + path = /etc/platform + comment = Platform configuration + uid = root + read only = no + +[certificate] + path = /etc/ssl/private + comment = SSL certificate + uid = root + read only = no + +[instances] + path = /etc/nova/instances + comment = Nova instances data + uid = root + read only = no + +[cacert] + path = /etc/ssl/certs + comment = SSL ca certificate + uid = root + read only = no + +[helm_charts] + path = /www/pages/helm_charts + comment = Helm chart repo + uid = root + read only = no