* [gentoo-commits] gentoo-x86 commit in app-admin/chef-server-api/files/initd: chef-server-api
@ 2010-07-03 12:42 Benedikt Boehm (hollow)
0 siblings, 0 replies; 6+ messages in thread
From: Benedikt Boehm (hollow) @ 2010-07-03 12:42 UTC (permalink / raw
To: gentoo-commits
hollow 10/07/03 12:42:13
Added: chef-server-api
Log:
initial ebuild, thanks to Gábor Vészi
(Portage version: 2.2_rc67/cvs/Linux i686)
Revision Changes Path
1.1 app-admin/chef-server-api/files/initd/chef-server-api
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-admin/chef-server-api/files/initd/chef-server-api?rev=1.1&view=markup
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-admin/chef-server-api/files/initd/chef-server-api?rev=1.1&content-type=text/plain
Index: chef-server-api
===================================================================
#!/sbin/runscript
# Copyright 1999-2010 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
depend() {
need net couchdb rabbitmq chef-solr-indexer
before chef-client
}
CHEF_SERVER_BINARY=${CHEF_SERVER_BINARY:-/usr/bin/chef-server}
CHEF_SERVER_PIDFILE=${CHEF_SERVER_PIDFILE:-/var/run/chef/server.%s.pid}
CHEF_SERVER_LOGFILE=${CHEF_SERVER_LOGFILE:-/var/log/chef/server.log}
CONFIGFILE=${CONFIGFILE:-/etc/chef/server.rb}
CLUSTER_NODES=${CLUSTER_NODES:-1}
CHEF_USER=${CHEF_USER:-chef}
CHEF_GROUP=${CHEF_GROUP:-chef}
# TODO: this could be nicer
DEFAULT_CHEF_DIRS=( /etc/chef /var/lib/chef /var/log/chef /var/run/chef )
CHEF_DIRS=( ${CHEF_DIRS[@]:-${DEFAULT_CHEF_DIRS[@]}} )
fix_dir_owners() {
for DIR in ${CHEF_DIRS[@]}; do
chown ${CHEF_USER}:${CHEF_GROUP} ${DIR}
done
}
start() {
ebegin "Starting Chef server"
fix_dir_owners
${CHEF_SERVER_BINARY} -d -P ${CHEF_SERVER_PIDFILE} -C ${CONFIGFILE} \
-u ${CHEF_USER} -G ${CHEF_GROUP} --name chef-server \
-c ${CLUSTER_NODES} -L ${CHEF_SERVER_LOGFILE} > /dev/null
eend $?
}
stop() {
ebegin "Shutting down Chef server"
${CHEF_SERVER_BINARY} -K all -P ${CHEF_SERVER_PIDFILE} > /dev/null
eend $?
}
^ permalink raw reply [flat|nested] 6+ messages in thread
* [gentoo-commits] gentoo-x86 commit in app-admin/chef-server-api/files/initd: chef-server-api
@ 2010-07-04 10:15 Benedikt Boehm (hollow)
0 siblings, 0 replies; 6+ messages in thread
From: Benedikt Boehm (hollow) @ 2010-07-04 10:15 UTC (permalink / raw
To: gentoo-commits
hollow 10/07/04 10:15:11
Modified: chef-server-api
Log:
fix init script to set config file owner and permissions too
(Portage version: 2.2_rc67/cvs/Linux i686)
Revision Changes Path
1.2 app-admin/chef-server-api/files/initd/chef-server-api
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-admin/chef-server-api/files/initd/chef-server-api?rev=1.2&view=markup
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-admin/chef-server-api/files/initd/chef-server-api?rev=1.2&content-type=text/plain
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-admin/chef-server-api/files/initd/chef-server-api?r1=1.1&r2=1.2
Index: chef-server-api
===================================================================
RCS file: /var/cvsroot/gentoo-x86/app-admin/chef-server-api/files/initd/chef-server-api,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- chef-server-api 3 Jul 2010 12:42:13 -0000 1.1
+++ chef-server-api 4 Jul 2010 10:15:11 -0000 1.2
@@ -15,19 +15,18 @@
CHEF_USER=${CHEF_USER:-chef}
CHEF_GROUP=${CHEF_GROUP:-chef}
-# TODO: this could be nicer
-DEFAULT_CHEF_DIRS=( /etc/chef /var/lib/chef /var/log/chef /var/run/chef )
-CHEF_DIRS=( ${CHEF_DIRS[@]:-${DEFAULT_CHEF_DIRS[@]}} )
+CHEF_DIRS=( /etc/chef /var/lib/chef /var/log/chef /var/run/chef )
-fix_dir_owners() {
- for DIR in ${CHEF_DIRS[@]}; do
- chown ${CHEF_USER}:${CHEF_GROUP} ${DIR}
+fix_owners() {
+ for i in ${CHEF_DIRS[@]} ${CONFIGFILE}; do
+ chown ${CHEF_USER}:${CHEF_GROUP} ${i}
done
+ chmod 0600 ${CONFIGFILE}
}
start() {
ebegin "Starting Chef server"
- fix_dir_owners
+ fix_owners
${CHEF_SERVER_BINARY} -d -P ${CHEF_SERVER_PIDFILE} -C ${CONFIGFILE} \
-u ${CHEF_USER} -G ${CHEF_GROUP} --name chef-server \
-c ${CLUSTER_NODES} -L ${CHEF_SERVER_LOGFILE} > /dev/null
^ permalink raw reply [flat|nested] 6+ messages in thread
* [gentoo-commits] gentoo-x86 commit in app-admin/chef-server-api/files/initd: chef-server-api
@ 2011-01-07 14:12 Benedikt Boehm (hollow)
0 siblings, 0 replies; 6+ messages in thread
From: Benedikt Boehm (hollow) @ 2011-01-07 14:12 UTC (permalink / raw
To: gentoo-commits
hollow 11/01/07 14:12:26
Modified: chef-server-api
Log:
version bump. fixes #338444
(Portage version: 2.2.0_alpha10/cvs/Linux x86_64)
Revision Changes Path
1.3 app-admin/chef-server-api/files/initd/chef-server-api
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-admin/chef-server-api/files/initd/chef-server-api?rev=1.3&view=markup
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-admin/chef-server-api/files/initd/chef-server-api?rev=1.3&content-type=text/plain
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-admin/chef-server-api/files/initd/chef-server-api?r1=1.2&r2=1.3
Index: chef-server-api
===================================================================
RCS file: /var/cvsroot/gentoo-x86/app-admin/chef-server-api/files/initd/chef-server-api,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -r1.2 -r1.3
--- chef-server-api 4 Jul 2010 10:15:11 -0000 1.2
+++ chef-server-api 7 Jan 2011 14:12:26 -0000 1.3
@@ -1,5 +1,5 @@
#!/sbin/runscript
-# Copyright 1999-2010 Gentoo Foundation
+# Copyright 1999-2011 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
depend() {
@@ -29,7 +29,7 @@
fix_owners
${CHEF_SERVER_BINARY} -d -P ${CHEF_SERVER_PIDFILE} -C ${CONFIGFILE} \
-u ${CHEF_USER} -G ${CHEF_GROUP} --name chef-server \
- -c ${CLUSTER_NODES} -L ${CHEF_SERVER_LOGFILE} > /dev/null
+ -c ${CLUSTER_NODES} -L ${CHEF_SERVER_LOGFILE} ${CHEF_SERVER_OPTS} > /dev/null
eend $?
}
^ permalink raw reply [flat|nested] 6+ messages in thread
* [gentoo-commits] gentoo-x86 commit in app-admin/chef-server-api/files/initd: chef-server-api
@ 2012-12-20 10:00 Benedikt Boehm (hollow)
0 siblings, 0 replies; 6+ messages in thread
From: Benedikt Boehm (hollow) @ 2012-12-20 10:00 UTC (permalink / raw
To: gentoo-commits
hollow 12/12/20 10:00:31
Modified: chef-server-api
Log:
improve init script
(Portage version: 2.2.0_alpha147/cvs/Linux x86_64, unsigned Manifest commit)
Revision Changes Path
1.5 app-admin/chef-server-api/files/initd/chef-server-api
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-admin/chef-server-api/files/initd/chef-server-api?rev=1.5&view=markup
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-admin/chef-server-api/files/initd/chef-server-api?rev=1.5&content-type=text/plain
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-admin/chef-server-api/files/initd/chef-server-api?r1=1.4&r2=1.5
Index: chef-server-api
===================================================================
RCS file: /var/cvsroot/gentoo-x86/app-admin/chef-server-api/files/initd/chef-server-api,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -r1.4 -r1.5
--- chef-server-api 29 Jan 2012 12:22:49 -0000 1.4
+++ chef-server-api 20 Dec 2012 10:00:31 -0000 1.5
@@ -15,18 +15,13 @@
CHEF_USER=${CHEF_USER:-chef}
CHEF_GROUP=${CHEF_GROUP:-chef}
-CHEF_DIRS=( /etc/chef /var/lib/chef /var/log/chef /var/run/chef )
-
-fix_owners() {
- for i in ${CHEF_DIRS[@]} ${CONFIGFILE}; do
- chown ${CHEF_USER}:${CHEF_GROUP} ${i}
- done
- chmod 0600 ${CONFIGFILE}
+start_pre() {
+ checkpath -q -d -m 0750 -o ${user}:${group} /etc/chef /var/{lib,log,run}/chef
+ checkpath -q -f -m 0600 ${CONFIGFILE}
}
start() {
ebegin "Starting Chef server"
- fix_owners
${CHEF_SERVER_BINARY} -d -P ${CHEF_SERVER_PIDFILE} -C ${CONFIGFILE} \
-u ${CHEF_USER} -G ${CHEF_GROUP} --name chef-server \
-c ${CLUSTER_NODES} -L ${CHEF_SERVER_LOGFILE} ${CHEF_SERVER_OPTS} > /dev/null
^ permalink raw reply [flat|nested] 6+ messages in thread
* [gentoo-commits] gentoo-x86 commit in app-admin/chef-server-api/files/initd: chef-server-api
@ 2013-02-10 20:07 Benedikt Boehm (hollow)
0 siblings, 0 replies; 6+ messages in thread
From: Benedikt Boehm (hollow) @ 2013-02-10 20:07 UTC (permalink / raw
To: gentoo-commits
hollow 13/02/10 20:07:33
Modified: chef-server-api
Log:
version bump
(Portage version: 2.2.0_alpha161/cvs/Linux x86_64, unsigned Manifest commit)
Revision Changes Path
1.6 app-admin/chef-server-api/files/initd/chef-server-api
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-admin/chef-server-api/files/initd/chef-server-api?rev=1.6&view=markup
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-admin/chef-server-api/files/initd/chef-server-api?rev=1.6&content-type=text/plain
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-admin/chef-server-api/files/initd/chef-server-api?r1=1.5&r2=1.6
Index: chef-server-api
===================================================================
RCS file: /var/cvsroot/gentoo-x86/app-admin/chef-server-api/files/initd/chef-server-api,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -r1.5 -r1.6
--- chef-server-api 20 Dec 2012 10:00:31 -0000 1.5
+++ chef-server-api 10 Feb 2013 20:07:33 -0000 1.6
@@ -1,5 +1,5 @@
#!/sbin/runscript
-# Copyright 1999-2012 Gentoo Foundation
+# Copyright 1999-2013 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
depend() {
@@ -16,8 +16,13 @@
CHEF_GROUP=${CHEF_GROUP:-chef}
start_pre() {
- checkpath -q -d -m 0750 -o ${user}:${group} /etc/chef /var/{lib,log,run}/chef
- checkpath -q -f -m 0600 ${CONFIGFILE}
+ checkpath -q -d -m 0750 -o ${CHEF_USER}:${CHEF_GROUP} \
+ /etc/chef \
+ /etc/chef/certificates \
+ /var/{lib,log,run}/chef
+
+ checkpath -q -f -m 0600 -o ${CHEF_USER}:${CHEF_GROUP} \
+ ${CONFIGFILE}
}
start() {
^ permalink raw reply [flat|nested] 6+ messages in thread
* [gentoo-commits] gentoo-x86 commit in app-admin/chef-server-api/files/initd: chef-server-api
@ 2015-04-25 9:00 Hans de Graaff (graaff)
0 siblings, 0 replies; 6+ messages in thread
From: Hans de Graaff (graaff) @ 2015-04-25 9:00 UTC (permalink / raw
To: gentoo-commits
graaff 15/04/25 09:00:02
Removed: chef-server-api
Log:
Remove masked app-admin/chef packages.
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2015-04-25 9:00 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-12-20 10:00 [gentoo-commits] gentoo-x86 commit in app-admin/chef-server-api/files/initd: chef-server-api Benedikt Boehm (hollow)
-- strict thread matches above, loose matches on Subject: below --
2015-04-25 9:00 Hans de Graaff (graaff)
2013-02-10 20:07 Benedikt Boehm (hollow)
2011-01-07 14:12 Benedikt Boehm (hollow)
2010-07-04 10:15 Benedikt Boehm (hollow)
2010-07-03 12:42 Benedikt Boehm (hollow)
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox