echo "# defaults file for cinder daemons
# start cinder daemons from init.d script?
-# only allowed values are \"true\" and \"false\"
+# only allowed values are \"true\" and \"false\",
+# any change to this file will be reset on upgrades.
CINDER_ENABLE=${CINDER_ENABLE}" >${CINDER_COM_DEF}
}
pkgos_var_user_group cinder
pkgos_dbc_read_conf -pkg cinder-common ${CINDER_CONF} DEFAULT sql_connection cinder $@
-pkgos_read_admin_creds ${CINDER_API} cinder filter:authtoken
+pkgos_read_admin_creds ${CINDER_API} filter:authtoken cinder
manage_cinder_enable
pkgos_inifile get ${CINDER_CONF} DEFAULT volume_group
pkgos_write_new_conf cinder cinder.conf
pkgos_write_new_conf cinder api-paste.ini
chown root:root /etc/cinder/rootwrap.d/volume.filters
- pkgos_dbc_postinst ${CINDER_CONF} cinder DEFAULT sql_connection $@
- pkgos_write_admin_creds ${CINDER_API} cinder filter:authtoken
+ pkgos_dbc_postinst ${CINDER_CONF} DEFAULT sql_connection cinder $@
+ pkgos_write_admin_creds ${CINDER_API} filter:authtoken cinder
db_get cinder/volume_group
if [ -n "${RET}" ] ; then
pkgos_inifile set ${CINDER_CONF} DEFAULT volume_group ${RET}