Refactor patches for rsync package

Use rsync-config package to package rsyncd.conf file for rsync
package.
Remove rsync package folder and use RPM instead of SRPM for rsync.

Deployment test and ping test between VMs pass
Config file check pass.

Story: 2003768
Task: 27590
Depends-on: https://review.openstack.org/#/c/617447/

Change-Id: Ic5aeec585774917bb4b25c08fe1a4fa5a3e7d77c
This commit is contained in:
zhipengl 2018-11-13 22:51:39 +08:00
parent 0deab1b6f4
commit ea3e0d9134
3 changed files with 93 additions and 0 deletions

View File

@ -0,0 +1,2 @@
SRC_DIR="files"
TIS_PATCH_VER=1

View File

@ -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

View File

@ -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