[heat] Assign specific UID/GID for use with Heat account
Jeff Peeler
jpeeler at fedoraproject.org
Tue Aug 7 15:31:07 UTC 2012
commit 8b42a64b2bb4b02863a9135bddee81612a74d518
Author: Jeff Peeler <jpeeler at redhat.com>
Date: Tue Aug 7 11:30:03 2012 -0400
Assign specific UID/GID for use with Heat account
Signed-off-by: Jeff Peeler <jpeeler at redhat.com>
heat.spec | 9 ++++++---
1 files changed, 6 insertions(+), 3 deletions(-)
---
diff --git a/heat.spec b/heat.spec
index ad97eba..f3d81aa 100644
--- a/heat.spec
+++ b/heat.spec
@@ -1,7 +1,7 @@
Name: heat
Summary: This software provides AWS CloudFormation functionality for OpenStack Essex
Version: 5
-Release: 2%{?dist}
+Release: 3%{?dist}
License: ASL 2.0
Group: System Environment/Base
URL: http://heat-api.org
@@ -91,9 +91,9 @@ Heat provides AWS CloudFormation functionality for OpenStack.
%config(noreplace) %attr(-,root,heat) %{_sysconfdir}/heat/boto.cfg
%pre
-getent group heat >/dev/null || groupadd -r heat
+getent group heat >/dev/null || groupadd -r heat --gid 187
getent passwd heat >/dev/null || \
-useradd -r -g heat -d %{_localstatedir}/lib/heat -s /sbin/nologin \
+useradd -u 187 -r -g heat -d %{_localstatedir}/lib/heat -s /sbin/nologin \
-c "Heat daemon" heat
exit 0
@@ -124,6 +124,9 @@ if [ $1 -ge 1 ] ; then
fi
%changelog
+* Tue Aug 7 2012 Jeff Peeler <jpeeler at redhat.com> 5-3
+- assign specific UID/GID for use with Heat account (845078)
+
* Wed Aug 2 2012 Jeff Peeler <jpeeler at redhat.com> 5-2
- create heat user and change file permissions
- set systemd scripts to run as heat user
More information about the scm-commits
mailing list