From bf6e6e718cdc7488e2da87b21e258ccc065fe499 Mon Sep 17 00:00:00 2001 From: Jesse Andrews Date: Thu, 27 May 2010 23:05:26 -0700 Subject: initial commit --- debian/changelog | 6 ++++ debian/compat | 1 + debian/control | 40 ++++++++++++++++++++++++ debian/nova-api.init | 69 +++++++++++++++++++++++++++++++++++++++++ debian/nova-api.install | 1 + debian/nova-common.install | 4 +++ debian/nova-compute.init | 69 +++++++++++++++++++++++++++++++++++++++++ debian/nova-compute.install | 1 + debian/nova-objectstore.init | 69 +++++++++++++++++++++++++++++++++++++++++ debian/nova-objectstore.install | 1 + debian/nova-volume.init | 69 +++++++++++++++++++++++++++++++++++++++++ debian/nova-volume.install | 1 + debian/pycompat | 1 + debian/pyversions | 1 + debian/rules | 4 +++ 15 files changed, 337 insertions(+) create mode 100644 debian/changelog create mode 100644 debian/compat create mode 100644 debian/control create mode 100644 debian/nova-api.init create mode 100644 debian/nova-api.install create mode 100644 debian/nova-common.install create mode 100644 debian/nova-compute.init create mode 100644 debian/nova-compute.install create mode 100644 debian/nova-objectstore.init create mode 100644 debian/nova-objectstore.install create mode 100644 debian/nova-volume.init create mode 100644 debian/nova-volume.install create mode 100644 debian/pycompat create mode 100644 debian/pyversions create mode 100755 debian/rules (limited to 'debian') diff --git a/debian/changelog b/debian/changelog new file mode 100644 index 000000000..2b226e048 --- /dev/null +++ b/debian/changelog @@ -0,0 +1,6 @@ +nova (0.3.0-1) UNRELEASED; urgency=low + + * initial release + + -- Jesse Andrews Thur, 27 May 2010 12:28:00 -0700 + diff --git a/debian/compat b/debian/compat new file mode 100644 index 000000000..7f8f011eb --- /dev/null +++ b/debian/compat @@ -0,0 +1 @@ +7 diff --git a/debian/control b/debian/control new file mode 100644 index 000000000..81af9f4e9 --- /dev/null +++ b/debian/control @@ -0,0 +1,40 @@ +Source: nova +Section: net +Priority: extra +Maintainer: Jesse Andrews +Build-Depends: debhelper (>= 7) +Build-Depends-Indep: python-support +Standards-Version: 3.8.4 +XS-Python-Version: 2.6 + +Package: nova-common +Architecture: all +Depends: ${python:Depends}, aoetools, vlan, python-ipy, python-boto, python-m2crypto, python-pycurl, python-twisted, python-daemon, python-redis, python-carrot, python-lockfile, python-gflags, python-tornado, ${misc:Depends} +Provides: ${python:Provides} +Conflicts: nova +Description: Nova is a cloud + +Package: nova-compute +Architecture: all +Depends: nova-common (= ${binary:Version}), kpartx, kvm, python-libvirt, libvirt-bin (>= 0.8.1), ${python:Depends}, ${misc:Depends} +Description: Nova compute + +Package: nova-volume +Architecture: all +Depends: nova-common (= ${binary:Version}), vblade, vblade-persist, ${python:Depends}, ${misc:Depends} +Description: Nova volume + +Package: nova-api +Architecture: all +Depends: nova-common (= ${binary:Version}), ${python:Depends}, ${misc:Depends} +Description: Nova api + +Package: nova-objectstore +Architecture: all +Depends: nova-common (= ${binary:Version}), ${python:Depends}, ${misc:Depends} +Description: Nova object store + +Package: nova-tools +Architecture: all +Depends: python-boto, ${python:Depends}, ${misc:Depends} +Description: CLI tools to access nova diff --git a/debian/nova-api.init b/debian/nova-api.init new file mode 100644 index 000000000..925c92c5e --- /dev/null +++ b/debian/nova-api.init @@ -0,0 +1,69 @@ +#! /bin/sh +### BEGIN INIT INFO +# Provides: nova-api +# Required-Start: $remote_fs $syslog +# Required-Stop: $remote_fs $syslog +# Default-Start: 2 3 4 5 +# Default-Stop: 0 1 6 +# Short-Description: nova-api +# Description: nova-api +### END INIT INFO + + +set -e + +DAEMON=/usr/bin/nova-api +DAEMON_ARGS="--flagfile=/etc/nova.conf" +PIDFILE=/var/run/nova-api.pid + +ENABLED=false + +if test -f /etc/default/nova-api; then + . /etc/default/nova-api +fi + +. /lib/lsb/init-functions + +export PATH="${PATH:+$PATH:}/usr/sbin:/sbin" + +case "$1" in + start) + test "$ENABLED" = "true" || exit 0 + log_daemon_msg "Starting nova api" "nova-api" + cd /var/run + if $DAEMON $DAEMON_ARGS start; then + log_end_msg 0 + else + log_end_msg 1 + fi + ;; + stop) + test "$ENABLED" = "true" || exit 0 + log_daemon_msg "Stopping nova api" "nova-api" + cd /var/run + if $DAEMON $DAEMON_ARGS stop; then + log_end_msg 0 + else + log_end_msg 1 + fi + ;; + restart|force-reload) + test "$ENABLED" = "true" || exit 1 + cd /var/run + if $DAEMON $DAEMON_ARGS restart; then + log_end_msg 0 + else + log_end_msg 1 + fi + ;; + status) + test "$ENABLED" = "true" || exit 0 + status_of_proc -p $PIDFILE $DAEMON nova-api && exit 0 || exit $? + ;; + *) + log_action_msg "Usage: /etc/init.d/nova-api {start|stop|restart|force-reload|status}" + exit 1 + ;; +esac + +exit 0 diff --git a/debian/nova-api.install b/debian/nova-api.install new file mode 100644 index 000000000..757235b11 --- /dev/null +++ b/debian/nova-api.install @@ -0,0 +1 @@ +bin/nova-api usr/bin diff --git a/debian/nova-common.install b/debian/nova-common.install new file mode 100644 index 000000000..c9358ac41 --- /dev/null +++ b/debian/nova-common.install @@ -0,0 +1,4 @@ +bin/nova-manage usr/bin +nova/auth/novarc.template usr/lib/pymodules/python2.6/nova/auth +nova/compute/libvirt.xml.template usr/lib/pymodules/python2.6/nova/compute +usr/lib/python*/*-packages/nova/* diff --git a/debian/nova-compute.init b/debian/nova-compute.init new file mode 100644 index 000000000..89d0e5fce --- /dev/null +++ b/debian/nova-compute.init @@ -0,0 +1,69 @@ +#! /bin/sh +### BEGIN INIT INFO +# Provides: nova-compute +# Required-Start: $remote_fs $syslog +# Required-Stop: $remote_fs $syslog +# Default-Start: 2 3 4 5 +# Default-Stop: 0 1 6 +# Short-Description: nova-compute +# Description: nova-compute +### END INIT INFO + + +set -e + +DAEMON=/usr/bin/nova-compute +DAEMON_ARGS="--flagfile=/etc/nova.conf" +PIDFILE=/var/run/nova-compute.pid + +ENABLED=false + +if test -f /etc/default/nova-compute; then + . /etc/default/nova-compute +fi + +. /lib/lsb/init-functions + +export PATH="${PATH:+$PATH:}/usr/sbin:/sbin" + +case "$1" in + start) + test "$ENABLED" = "true" || exit 0 + log_daemon_msg "Starting nova compute" "nova-compute" + cd /var/run + if $DAEMON $DAEMON_ARGS start; then + log_end_msg 0 + else + log_end_msg 1 + fi + ;; + stop) + test "$ENABLED" = "true" || exit 0 + log_daemon_msg "Stopping nova compute" "nova-compute" + cd /var/run + if $DAEMON $DAEMON_ARGS stop; then + log_end_msg 0 + else + log_end_msg 1 + fi + ;; + restart|force-reload) + test "$ENABLED" = "true" || exit 1 + cd /var/run + if $DAEMON $DAEMON_ARGS restart; then + log_end_msg 0 + else + log_end_msg 1 + fi + ;; + status) + test "$ENABLED" = "true" || exit 0 + status_of_proc -p $PIDFILE $DAEMON nova-compute && exit 0 || exit $? + ;; + *) + log_action_msg "Usage: /etc/init.d/nova-compute {start|stop|restart|force-reload|status}" + exit 1 + ;; +esac + +exit 0 diff --git a/debian/nova-compute.install b/debian/nova-compute.install new file mode 100644 index 000000000..6387cef07 --- /dev/null +++ b/debian/nova-compute.install @@ -0,0 +1 @@ +bin/nova-compute usr/bin diff --git a/debian/nova-objectstore.init b/debian/nova-objectstore.init new file mode 100644 index 000000000..be7d32d8e --- /dev/null +++ b/debian/nova-objectstore.init @@ -0,0 +1,69 @@ +#! /bin/sh +### BEGIN INIT INFO +# Provides: nova-objectstore +# Required-Start: $remote_fs $syslog +# Required-Stop: $remote_fs $syslog +# Default-Start: 2 3 4 5 +# Default-Stop: 0 1 6 +# Short-Description: nova-objectstore +# Description: nova-objectstore +### END INIT INFO + + +set -e + +DAEMON=/usr/bin/nova-objectstore +DAEMON_ARGS="--flagfile=/etc/nova.conf" +PIDFILE=/var/run/nova-objectstore.pid + +ENABLED=false + +if test -f /etc/default/nova-objectstore; then + . /etc/default/nova-objectstore +fi + +. /lib/lsb/init-functions + +export PATH="${PATH:+$PATH:}/usr/sbin:/sbin" + +case "$1" in + start) + test "$ENABLED" = "true" || exit 0 + log_daemon_msg "Starting nova objectstore" "nova-objectstore" + cd /var/run + if $DAEMON $DAEMON_ARGS start; then + log_end_msg 0 + else + log_end_msg 1 + fi + ;; + stop) + test "$ENABLED" = "true" || exit 0 + log_daemon_msg "Stopping nova objectstore" "nova-objectstore" + cd /var/run + if $DAEMON $DAEMON_ARGS stop; then + log_end_msg 0 + else + log_end_msg 1 + fi + ;; + restart|force-reload) + test "$ENABLED" = "true" || exit 1 + cd /var/run + if $DAEMON $DAEMON_ARGS restart; then + log_end_msg 0 + else + log_end_msg 1 + fi + ;; + status) + test "$ENABLED" = "true" || exit 0 + status_of_proc -p $PIDFILE $DAEMON nova-objectstore && exit 0 || exit $? + ;; + *) + log_action_msg "Usage: /etc/init.d/nova-objectstore {start|stop|restart|force-reload|status}" + exit 1 + ;; +esac + +exit 0 diff --git a/debian/nova-objectstore.install b/debian/nova-objectstore.install new file mode 100644 index 000000000..ccc60fccc --- /dev/null +++ b/debian/nova-objectstore.install @@ -0,0 +1 @@ +bin/nova-objectstore usr/bin diff --git a/debian/nova-volume.init b/debian/nova-volume.init new file mode 100644 index 000000000..80da3f70c --- /dev/null +++ b/debian/nova-volume.init @@ -0,0 +1,69 @@ +#! /bin/sh +### BEGIN INIT INFO +# Provides: nova-volume +# Required-Start: $remote_fs $syslog +# Required-Stop: $remote_fs $syslog +# Default-Start: 2 3 4 5 +# Default-Stop: 0 1 6 +# Short-Description: nova-volume +# Description: nova-volume +### END INIT INFO + + +set -e + +DAEMON=/usr/bin/nova-volume +DAEMON_ARGS="--flagfile=/etc/nova.conf" +PIDFILE=/var/run/nova-volume.pid + +ENABLED=false + +if test -f /etc/default/nova-volume; then + . /etc/default/nova-volume +fi + +. /lib/lsb/init-functions + +export PATH="${PATH:+$PATH:}/usr/sbin:/sbin" + +case "$1" in + start) + test "$ENABLED" = "true" || exit 0 + log_daemon_msg "Starting nova volume" "nova-volume" + cd /var/run + if $DAEMON $DAEMON_ARGS start; then + log_end_msg 0 + else + log_end_msg 1 + fi + ;; + stop) + test "$ENABLED" = "true" || exit 0 + log_daemon_msg "Stopping nova volume" "nova-volume" + cd /var/run + if $DAEMON $DAEMON_ARGS stop; then + log_end_msg 0 + else + log_end_msg 1 + fi + ;; + restart|force-reload) + test "$ENABLED" = "true" || exit 1 + cd /var/run + if $DAEMON $DAEMON_ARGS restart; then + log_end_msg 0 + else + log_end_msg 1 + fi + ;; + status) + test "$ENABLED" = "true" || exit 0 + status_of_proc -p $PIDFILE $DAEMON nova-volume && exit 0 || exit $? + ;; + *) + log_action_msg "Usage: /etc/init.d/nova-volume {start|stop|restart|force-reload|status}" + exit 1 + ;; +esac + +exit 0 diff --git a/debian/nova-volume.install b/debian/nova-volume.install new file mode 100644 index 000000000..37b535c03 --- /dev/null +++ b/debian/nova-volume.install @@ -0,0 +1 @@ +bin/nova-volume usr/bin diff --git a/debian/pycompat b/debian/pycompat new file mode 100644 index 000000000..0cfbf0888 --- /dev/null +++ b/debian/pycompat @@ -0,0 +1 @@ +2 diff --git a/debian/pyversions b/debian/pyversions new file mode 100644 index 000000000..0c043f18c --- /dev/null +++ b/debian/pyversions @@ -0,0 +1 @@ +2.6- diff --git a/debian/rules b/debian/rules new file mode 100755 index 000000000..2d33f6ac8 --- /dev/null +++ b/debian/rules @@ -0,0 +1,4 @@ +#!/usr/bin/make -f + +%: + dh $@ -- cgit