summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVadim Kuznetsov <vadimk@gentoo.org>2014-05-11 12:22:00 +0000
committerVadim Kuznetsov <vadimk@gentoo.org>2014-05-11 12:22:00 +0000
commita3879211793f529ab593a52bb26bb0651c6cc6c5 (patch)
tree8aee75cd63456f0b0a0bc80c7c82dd280251fe3d /sys-cluster
parentslot conflicts. bugs 508002, 509192 (diff)
downloadgentoo-2-a3879211793f529ab593a52bb26bb0651c6cc6c5.tar.gz
gentoo-2-a3879211793f529ab593a52bb26bb0651c6cc6c5.tar.bz2
gentoo-2-a3879211793f529ab593a52bb26bb0651c6cc6c5.zip
slot conflicts, bug 508002. new init scripts.
(Portage version: 2.2.10/cvs/Linux x86_64, signed Manifest commit with key E1DF22D5)
Diffstat (limited to 'sys-cluster')
-rw-r--r--sys-cluster/cinder/ChangeLog9
-rw-r--r--sys-cluster/cinder/cinder-2014.1-r1.ebuild (renamed from sys-cluster/cinder/cinder-2014.1.ebuild)41
-rw-r--r--sys-cluster/cinder/files/cinder.confd0
-rw-r--r--sys-cluster/cinder/files/cinder.initd23
-rw-r--r--sys-cluster/cinder/files/cinder.sudoersd4
-rw-r--r--sys-cluster/cinder/metadata.xml8
6 files changed, 64 insertions, 21 deletions
diff --git a/sys-cluster/cinder/ChangeLog b/sys-cluster/cinder/ChangeLog
index 1edc7e05b6e8..fc13a202fc4f 100644
--- a/sys-cluster/cinder/ChangeLog
+++ b/sys-cluster/cinder/ChangeLog
@@ -1,6 +1,13 @@
# ChangeLog for sys-cluster/cinder
# Copyright 1999-2014 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/sys-cluster/cinder/ChangeLog,v 1.33 2014/04/28 02:50:19 prometheanfire Exp $
+# $Header: /var/cvsroot/gentoo-x86/sys-cluster/cinder/ChangeLog,v 1.34 2014/05/11 12:22:00 vadimk Exp $
+
+*cinder-2014.1-r1 (11 May 2014)
+
+ 11 May 2014; Vadim Kuznetsov vadimk@gentoo.org +cinder-2014.1-r1.ebuild,
+ +files/cinder.confd, +files/cinder.initd, +files/cinder.sudoersd,
+ -cinder-2014.1.ebuild, metadata.xml:
+ slot conflicts, bug 508002. new init scripts.
*cinder-2014.1.9999 (28 Apr 2014)
*cinder-2014.1 (28 Apr 2014)
diff --git a/sys-cluster/cinder/cinder-2014.1.ebuild b/sys-cluster/cinder/cinder-2014.1-r1.ebuild
index d447ac9c530d..38c0f02842ea 100644
--- a/sys-cluster/cinder/cinder-2014.1.ebuild
+++ b/sys-cluster/cinder/cinder-2014.1-r1.ebuild
@@ -1,6 +1,6 @@
# Copyright 1999-2014 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/sys-cluster/cinder/cinder-2014.1.ebuild,v 1.1 2014/04/28 02:50:19 prometheanfire Exp $
+# $Header: /var/cvsroot/gentoo-x86/sys-cluster/cinder/cinder-2014.1-r1.ebuild,v 1.1 2014/05/11 12:22:00 vadimk Exp $
EAPI=5
PYTHON_COMPAT=( python2_7 )
@@ -14,7 +14,7 @@ SRC_URI="http://launchpad.net/${PN}/icehouse/${PV}/+download/${P}.tar.gz"
LICENSE="Apache-2.0"
SLOT="0"
KEYWORDS="~amd64 ~x86"
-IUSE="+api +scheduler +volume mysql postgres sqlite test"
+IUSE="+api +scheduler +volume iscsi lvm mysql postgres sqlite test"
REQUIRED_USE="|| ( mysql postgres sqlite )"
#sudo is a build dep because I want the sudoers.d directory to exist, lazy.
@@ -39,7 +39,7 @@ DEPEND="dev-python/setuptools[${PYTHON_USEDEP}]
>=dev-python/testrepository-0.0.18[${PYTHON_USEDEP}]
dev-python/oslo-sphinx[${PYTHON_USEDEP}] )"
-RDEPEND="=dev-python/amqplib-0.6.1-r1[${PYTHON_USEDEP}]
+RDEPEND=">=dev-python/amqplib-0.6.1-r1[${PYTHON_USEDEP}]
>=dev-python/anyjson-0.3.3[${PYTHON_USEDEP}]
virtual/python-argparse[${PYTHON_USEDEP}]
>=dev-python/Babel-1.3[${PYTHON_USEDEP}]
@@ -65,19 +65,19 @@ RDEPEND="=dev-python/amqplib-0.6.1-r1[${PYTHON_USEDEP}]
<dev-python/taskflow-0.2[${PYTHON_USEDEP}]
>=dev-python/rtslib-fb-2.1.39[${PYTHON_USEDEP}]
>=dev-python/six-1.5.2[${PYTHON_USEDEP}]
- sqlite? ( >=dev-python/sqlalchemy-0.7.8[sqlite,${PYTHON_USEDEP}]
- <dev-python/sqlalchemy-0.9.99[sqlite,${PYTHON_USEDEP}] )
- mysql? ( >=dev-python/sqlalchemy-0.7.8[mysql,${PYTHON_USEDEP}]
- <dev-python/sqlalchemy-0.9.99[mysql,${PYTHON_USEDEP}] )
- postgres? ( >=dev-python/sqlalchemy-0.7.8[postgres,${PYTHON_USEDEP}]
- <dev-python/sqlalchemy-0.9.99[postgres,${PYTHON_USEDEP}] )
+ >=dev-python/sqlalchemy-0.7.8[${PYTHON_USEDEP}]
+ <dev-python/sqlalchemy-0.9.99[${PYTHON_USEDEP}]
+ mysql? ( dev-python/mysql-python[${PYTHON_USEDEP}] )
+ postgres? ( >=dev-python/psycopg-2[${PYTHON_USEDEP}] )
+ sqlite? ( dev-db/sqlite )
>=dev-python/sqlalchemy-migrate-0.9[${PYTHON_USEDEP}]
>=dev-python/stevedore-0.14[${PYTHON_USEDEP}]
>=dev-python/suds-0.4[${PYTHON_USEDEP}]
>=dev-python/webob-1.2.3-r1[${PYTHON_USEDEP}]
- >=sys-block/iscsitarget-1.4.20.2_p20130821
- sys-fs/lvm2
- sys-block/open-iscsi
+ iscsi? (
+ >=sys-block/iscsitarget-1.4.20.2_p20130821
+ sys-block/open-iscsi )
+ lvm? ( sys-fs/lvm2 )
sys-fs/sysfsutils"
PATCHES=( )
@@ -100,11 +100,10 @@ python_install() {
distutils-r1_python_install
keepdir /etc/cinder
dodir /etc/cinder/rootwrap.d
- newinitd "${FILESDIR}/cinder-init" "cinder"
- newconfd "${FILESDIR}/cinder-confd" "cinder"
- use api && dosym /etc/init.d/cinder /etc/init.d/cinder-api
- use scheduler && dosym /etc/init.d/cinder /etc/init.d/cinder-scheduler
- use volume && dosym /etc/init.d/cinder /etc/init.d/cinder-volume
+
+ for svc in api scheduler volume; do
+ newinitd "${FILESDIR}/cinder.initd" cinder-${svc}
+ done
insinto /etc/cinder
newins "${S}/etc/cinder/cinder.conf.sample" "cinder.conf"
@@ -115,9 +114,11 @@ python_install() {
insinto /etc/cinder/rootwrap.d
newins "${S}/etc/cinder/rootwrap.d/volume.filters" "volume.filters"
- #add sudoers definitions for user nova
- insinto /etc/sudoers.d/
- doins "${FILESDIR}/cinder-sudoers"
dodir /var/log/cinder
fowners cinder:cinder /var/log/cinder
+
+ #add sudoers definitions for user nova
+ insinto /etc/sudoers.d/
+ insopts -m 0440 -o root -g root
+ newins "${FILESDIR}/cinder.sudoersd" cinder
}
diff --git a/sys-cluster/cinder/files/cinder.confd b/sys-cluster/cinder/files/cinder.confd
new file mode 100644
index 000000000000..e69de29bb2d1
--- /dev/null
+++ b/sys-cluster/cinder/files/cinder.confd
diff --git a/sys-cluster/cinder/files/cinder.initd b/sys-cluster/cinder/files/cinder.initd
new file mode 100644
index 000000000000..d8fdd28f66f1
--- /dev/null
+++ b/sys-cluster/cinder/files/cinder.initd
@@ -0,0 +1,23 @@
+#!/sbin/runscript
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/sys-cluster/cinder/files/cinder.initd,v 1.1 2014/05/11 12:21:59 vadimk Exp $
+
+description="Starts ${SVCNAME} service for OpenStack"
+
+command=/usr/bin/${SVCNAME}
+command_background=yes
+command_args="--config-file /etc/cinder/cinder.conf --log-file /var/log/cinder/${SVCNAME}.log"
+pidfile=/var/run/cinder/${SVCNAME}.pid
+required_files=/etc/cinder/cinder.conf
+
+start_stop_daemon_args="--quiet --user ${CINDER_USER:-cinder}"
+
+depend() {
+ need net
+}
+
+start_pre() {
+ checkpath --directory --owner ${CINDER_USER:-cinder}:${CINDER_GROUP:-cinder} --mode 0755 ${CINDER_RUN:-/var/run/cinder}
+}
+
diff --git a/sys-cluster/cinder/files/cinder.sudoersd b/sys-cluster/cinder/files/cinder.sudoersd
new file mode 100644
index 000000000000..f44bab4a5778
--- /dev/null
+++ b/sys-cluster/cinder/files/cinder.sudoersd
@@ -0,0 +1,4 @@
+Defaults:cinder !requiretty
+
+cinder ALL = (root) NOPASSWD: /usr/bin/cinder-rootwrap
+
diff --git a/sys-cluster/cinder/metadata.xml b/sys-cluster/cinder/metadata.xml
index 4388df02aa5d..652d3ddc4ed3 100644
--- a/sys-cluster/cinder/metadata.xml
+++ b/sys-cluster/cinder/metadata.xml
@@ -13,6 +13,14 @@
<flag name="api">Installs the initscripts for the cinder api service</flag>
<flag name="scheduler">Installs the initscripts for the cinder scheduler service</flag>
<flag name="volume">Installs the initscripts for the cinder volume service</flag>
+ <flag name="iscsi">
+ Allow using an iSCSI remote storage server as pool for disk image storage
+ </flag>
+ <flag name="lvm">
+ Allow using the Logical Volume Manager (<pkg>sys-apps/lvm2</pkg>) as pool for disk image
+ storage
+ </flag>
+
</use>
</pkgmetadata>