debian/0000755000000000000000000000000011773255164007201 5ustar debian/control0000644000000000000000000000274211773255431010606 0ustar Source: chef-expander Section: ruby Priority: optional Maintainer: Debian Ruby Extras Maintainers Uploaders: Bryan McLellan , Tollef Fog Heen DM-Upload-Allowed: yes Build-Depends: debhelper (>= 7.0.50~), gem2deb (>= 0.2.2) Standards-Version: 3.9.1 #Vcs-Git: git://git.debian.org/pkg-ruby-extras/chef-expander.git #Vcs-Browser: http://git.debian.org/?p=pkg-ruby-extras/chef-expander.git;a=summary Homepage: http://wiki.opscode.com/display/chef XS-Ruby-Versions: all Package: chef-expander Architecture: all XB-Ruby-Versions: ${ruby:Versions} Depends: ${shlibs:Depends}, ${misc:Depends}, ruby | ruby-interpreter, ruby-mixlib-log (>= 1.3.0), ruby-amqp, ruby-bunny, ruby-em-http-request, ruby-eventmachine, ruby-fast-xs, ruby-highline, ruby-uuidtools, ruby-yajl, chef-solr (>= ${source:Upstream-Version}) Replaces: chef-indexer Conflicts: chef-indexer Description: systems integration framework - index bridge Chef is a systems integration framework and configuration management library written in Ruby. Chef provides a Ruby library and API that can be used to bring the benefits of configuration management to an entire infrastructure. . Chef can be run as a client (chef-client) to a server, or run as a standalone tool (chef-solo). Configuration recipes are written in a pure Ruby DSL. . This package contains chef-expander, which acts as a bridge between the Chef API server and the Chef Solr service. debian/chef-expander.default0000644000000000000000000000030111772523574013254 0ustar LOGFILE=/var/log/chef/expander.log CONFIG=/etc/chef/solr.rb USER=chef GROUP=chef # Sleep to give daemon enough time to fully start or stop. DIETIME=5 STARTTIME=5 CHEF_EXPANDER_ARGS="-n 1 -i 1" debian/compat0000644000000000000000000000000211772523574010401 0ustar 7 debian/chef-expander.init0000755000000000000000000000762411772523574012615 0ustar #! /bin/sh ### BEGIN INIT INFO # Provides: chef-expander # Required-Start: $remote_fs $network rabbitmq-server chef-solr # Required-Stop: $remote_fs $network rabbitmq-server chef-solr # Default-Start: 2 3 4 5 # Default-Stop: 0 1 6 # Short-Description: Start a chef-expander. ### END INIT INFO # # Copyright (c) 2009-2010 Opscode, Inc # # chef-expander Startup script for chef-expander. # chkconfig: - 85 02 # description: starts up chef-expander in daemon mode. PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin DAEMON=/usr/bin/chef-expander NAME=chef-expander DESC=chef-expander PIDFILE=/var/run/chef/expander.pid test -x $DAEMON || exit 0 . /lib/lsb/init-functions [ -r /etc/default/$NAME ] && . /etc/default/$NAME if [ ! -d /var/run/chef ]; then mkdir /var/run/chef chown $USER:$GROUP /var/run/chef fi DAEMON_OPTS="-d -c $CONFIG -P $PIDFILE -L $LOGFILE $CHEF_EXPANDER_ARGS" running_pid() { pid=$1 name=$2 [ -z "$pid" ] && return 1 [ ! -d /proc/$pid ] && return 1 cmd=`cat /proc/$pid/cmdline | tr '\000' '\n' | awk 'NR==2'` [ "$cmd" != "$name" ] && return 1 return 0 } running() { [ ! -f "$PIDFILE" ] && return 1 pid=`cat $PIDFILE` running_pid $pid $DAEMON || return 1 return 0 } start_server() { if [ -z "$DAEMONUSER" ] ; then start_daemon -p $PIDFILE $DAEMON $DAEMON_OPTS errcode=$? else start-stop-daemon --start --quiet --pidfile $PIDFILE \ --chuid $DAEMONUSER \ --exec $DAEMON -- $DAEMON_OPTS errcode=$? fi return $errcode } stop_server() { if [ -z "$DAEMONUSER" ] ; then killproc -p $PIDFILE $DAEMON errcode=$? else start-stop-daemon --stop --quiet --pidfile $PIDFILE \ --user $DAEMONUSER \ --exec $DAEMON errcode=$? fi return $errcode } reload_server() { [ ! -f "$PIDFILE" ] && return 1 pid=pidofproc $PIDFILE # This is the daemon's pid /bin/kill -1 $pid return $? } force_stop() { [ ! -e "$PIDFILE" ] && return if running ; then /bin/kill -15 $pid sleep "$DIETIME"s if running ; then /bin/kill -9 $pid sleep "$DIETIME"s if running ; then echo "Cannot kill $NAME (pid=$pid)!" exit 1 fi fi fi rm -f $PIDFILE } case "$1" in start) log_daemon_msg "Starting $DESC " "$NAME" if running ; then log_progress_msg "apparently already running" log_end_msg 0 exit 3 fi if start_server ; then [ -n "$STARTTIME" ] && sleep $STARTTIME # Wait some time if running ; then log_end_msg 0 else log_end_msg 1 fi else log_end_msg 1 fi ;; stop) log_daemon_msg "Stopping $DESC" "$NAME" if running ; then errcode=0 stop_server || errcode=$? log_end_msg $errcode else log_progress_msg "apparently not running" log_end_msg 0 exit 0 fi ;; force-stop) $0 stop if running; then log_daemon_msg "Stopping (force) $DESC" "$NAME" errcode=0 force_stop || errcode=$? log_end_msg $errcode fi ;; restart|force-reload) log_daemon_msg "Restarting $DESC" "$NAME" errcode=0 stop_server || errcode=$? [ -n "$DIETIME" ] && sleep $DIETIME start_server || errcode=$? [ -n "$STARTTIME" ] && sleep $STARTTIME running || errcode=$? log_end_msg $errcode ;; status) log_daemon_msg "Checking status of $DESC" "$NAME" if running ; then log_progress_msg "running" log_end_msg 0 else log_progress_msg "apparently not running" log_end_msg 1 exit 1 fi ;; reload) log_warning_msg "Reloading $NAME daemon: not implemented, as the daemon" log_warning_msg "cannot re-read the config file (use restart)." ;; *) N=/etc/init.d/$NAME echo "Usage: $N {start|stop|force-stop|restart|force-reload|status}" >&2 exit 1 ;; esac exit 0 debian/watch0000644000000000000000000000015711772523574010237 0ustar version=3 http://pkg-ruby-extras.alioth.debian.org/cgi-bin/gemwatch/chef-expander .*/chef-expander-(.*).tar.gz debian/source/0000755000000000000000000000000011772523574010503 5ustar debian/source/format0000644000000000000000000000001411772523574011711 0ustar 3.0 (quilt) debian/copyright0000644000000000000000000000155311773255370011137 0ustar Format: http://svn.debian.org/wsvn/dep/web/deps/dep5.mdwn?op=file&rev=173 Upstream-Name: chef Source: https://github.com/opscode/chef Files: * Copyright: Copyright 2009-2012 Opscode, Inc License: Apache-2.0 Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at . http://www.apache.org/licenses/LICENSE-2.0 . Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. . The full text of the Apache licence can be found in /usr/share/common-licenses/Apache-2.0 on Debian systems. debian/rules0000755000000000000000000000070111772523574010261 0ustar #!/usr/bin/make -f #export DH_VERBOSE=1 # # Uncomment to ignore all test failures (but the tests will run anyway) #export DH_RUBY_IGNORE_TESTS=all # # Uncomment to ignore some test failures (but the tests will run anyway). # Valid values: #export DH_RUBY_IGNORE_TESTS=ruby1.8 ruby1.9.1 require-rubygems # # If you need to specify the .gemspec (eg there is more than one) #export DH_RUBY_GEMSPEC=gem.gemspec %: dh $@ --buildsystem=ruby --with ruby debian/changelog0000644000000000000000000000237511773255454011064 0ustar chef-expander (10.12.0-1) unstable; urgency=low * New upstream release, initial upload to Debian. -- Tollef Fog Heen Fri, 29 Jun 2012 09:30:49 +0200 chef-expander (0.10.10-1) unstable; urgency=low * New upstream release -- Bryan McLellan Fri, 11 May 2012 20:46:19 +0000 chef-expander (0.10.8-1) unstable; urgency=low * New upstream release -- Bryan McLellan Fri, 16 Dec 2011 03:01:39 +0000 chef-expander (0.10.6-1) unstable; urgency=low * New upstream release -- Bryan McLellan Wed, 14 Dec 2011 00:01:05 +0000 chef-expander (0.10.2-3) unstable; urgency=low * Switch Chef depends to >= Upstream-Version (Fixes CHEF-2513) -- Bryan McLellan Wed, 03 Aug 2011 12:56:53 +0000 chef-expander (0.10.2-2) unstable; urgency=low * Add chef-solr as a dependency -- Bryan McLellan Wed, 13 Jul 2011 17:36:21 +0000 chef-expander (0.10.2-1) unstable; urgency=high * New upstream release -- Bryan McLellan Thu, 07 Jul 2011 22:00:20 +0000 chef-expander (0.10.0-1) UNRELEASED; urgency=low * Initial release (Closes: #nnnn) -- Bryan McLellan Fri, 06 May 2011 23:04:19 +0000