* Removed useless empty cinder-volume.postrm, cinder-api.postrm,
cinder-scheduler.postinst, cinder-scheduler.postrm.
* Pre-Depends: dpkg (>= 1.15.6~) because we use xz compression.
+ * Asks for admin tenant, user and password with debconf, patches
+ api-paste.ini so it is syntaxicaly correct.
-- Mehdi Abaakouk <sileht@sileht.net> Sat, 29 Sep 2012 09:23:22 +0200
. /usr/share/debconf/confmodule
CINDER_COM_DEF=/etc/default/cinder-common
CINDER_CONF=/etc/cinder/cinder.conf
+CINDER_API=/etc/cinder/api-paste.ini
#PKGOS-INCLUDE#
pkgos_var_user_group cinder
manage_cinder_enable
pkgos_dbc_read_conf ${CINDER_CONF} cinder DEFAULT sql_connection $@
+set -x
+pkgos_read_admin_creds ${CINDER_API} cinder filter:authtoken
exit 0
usr/bin/cinder-manage
usr/bin/cinder-rootwrap
-etc/cinder/policy.json etc/cinder
-etc/cinder/api-paste.ini etc/cinder
-etc/cinder/rootwrap.d/volume.filters /etc/cinder/rootwrap.d
-etc/cinder/rootwrap.conf etc/cinder
-debian/cinder.conf usr/share/cinder-common
-debian/logging.conf etc/cinder
+etc/cinder/policy.json /etc/cinder
+debian/logging.conf /etc/cinder
+etc/cinder/rootwrap.conf /etc/cinder
+etc/cinder/rootwrap.d/volume.filters /etc/cinder/rootwrap.d
+debian/cinder.conf /usr/share/cinder-common
+etc/cinder/api-paste.ini /usr/share/cinder-common
#!/bin/sh
set -e
+set -x
CINDER_CONF=/etc/cinder/cinder.conf
+CINDER_API=/etc/cinder/api-paste.ini
#PKGOS-INCLUDE#
pkgos_var_user_group cinder
pkgos_write_new_conf cinder cinder.conf
+ pkgos_write_new_conf cinder api-paste.ini
pkgos_dbc_postinst ${CINDER_CONF} cinder DEFAULT sql_connection $@
+ pkgos_write_admin_creds ${CINDER_API} cinder filter:authtoken
chmod 0440 /etc/sudoers.d/cinder-common
echo "Now calling cinder-manage db sync: this may take a while..."
fi
fi
- rm -f /etc/cinder/cinder.conf
+ rm -f /etc/cinder/cinder.conf /etc/cinder/api-paste.ini
rmdir --ignore-fail-on-non-empty /etc/cinder
rm -f /etc/default/cinder-common
rm -rf /var/lib/cinder /var/log/cinder
.
You can change this setting later on by running "dpkg-reconfigure
-plow cinder-common".
+
+Template: cinder/auth-host
+Type: string
+Default: 127.0.0.1
+_Description: Auth server hostname:
+ Please specify the URL of your Cinder authentication server. Typically
+ this is also the URL of your OpenStack Identity Service (Keystone).
+
+Template: cinder/admin-tenant-name
+Type: string
+Default: admin
+_Description: Auth server tenant name:
+
+Template: cinder/admin-user
+Type: string
+Default: admin
+_Description: Auth server username:
+
+Template: cinder/admin-password
+Type: password
+_Description: Auth server password:
--- /dev/null
+Description: Fixes api-paste.ini syntax so it is really a .ini file
+Author: Thomas Goirand <zigo@debian.org>
+Forwarded: no
+
+--- cinder-2012.2.orig/etc/cinder/api-paste.ini
++++ cinder-2012.2/etc/cinder/api-paste.ini
+@@ -4,8 +4,8 @@
+
+ [composite:osapi_volume]
+ use = call:cinder.api.openstack.urlmap:urlmap_factory
+-/: osvolumeversions
+-/v1: openstack_volume_api_v1
++/ = osvolumeversions
++/v1 = openstack_volume_api_v1
+
+ [composite:openstack_volume_api_v1]
+ use = call:cinder.api.auth:pipeline_factory
install-missing-files.patch
+fix-api-paste.ini-syntax.patch