[mcollective] Add mco unix group who can read client.cfg rhbz#853574
stevetraylen
stevetraylen at fedoraproject.org
Wed Sep 5 22:26:35 UTC 2012
commit 257a65eecf2c559ab1823b80ca2bf6b5d15cf5dd
Author: Steve Traylen <steve.traylen at cern.ch>
Date: Thu Sep 6 00:26:26 2012 +0200
Add mco unix group who can read client.cfg rhbz#853574
mcollective.spec | 17 ++++++++++++++---
1 files changed, 14 insertions(+), 3 deletions(-)
---
diff --git a/mcollective.spec b/mcollective.spec
index ddf1206..d3cf7a3 100644
--- a/mcollective.spec
+++ b/mcollective.spec
@@ -8,7 +8,7 @@
Summary: A framework to build server orchestration or parallel job execution systems
Name: mcollective
Version: 2.0.0
-Release: 4%{?dist}
+Release: 5%{?dist}
Group: Applications/System
License: ASL 2.0
@@ -51,6 +51,7 @@ Common libraries for the mcollective clients and servers
%package client
Summary: Client tools for the mcollective application server
Requires: mcollective-common = %{version}-%{release}
+Requires(pre): shadow-utils
Group: Applications/System
%description client
@@ -160,6 +161,13 @@ fi
/bin/systemctl try-restart mcollective.service >/dev/null 2>&1 || :
%endif
+%pre client
+getent group mco >/dev/null || groupadd -r mco
+getent passwd mco >/dev/null || \
+ useradd -r -g mco -d %{_sysconfdir}/mcollective -s /sbin/nologin \
+ -c "The mco user and group for mcollective clients." mco
+exit 0
+
%files common
%defattr(-,root,root,-)
%doc COPYING
@@ -172,8 +180,8 @@ fi
%files client
%defattr(-,root,root,-)
%doc COPYING
-%config(noreplace) /etc/mcollective/client.cfg
-%config(noreplace) /etc/mcollective/rpc-help.erb
+%config(noreplace) %attr(-,root,mco) %{_sysconfdir}/mcollective/client.cfg
+%config(noreplace) %{_sysconfdir}/mcollective/rpc-help.erb
%{_sbindir}/mco
%files
@@ -191,6 +199,9 @@ fi
%dir /etc/mcollective/ssl/clients
%changelog
+* Wed Sep 5 2012 Steve Traylen <steve.traylen at cern.ch> - 2.0.0-5
+- Add mco unix group who can read client.cfg rhbz#853574
+
* Thu Jul 19 2012 Fedora Release Engineering <rel-eng at lists.fedoraproject.org> - 2.0.0-4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
More information about the scm-commits
mailing list