Fix procedure for Trove in Debian

The current procedure to install Trove doesn't take into
account that Debian uses debconf. This patch fixes that.

Change-Id: I7c605e653bde2dba8b35bf208794943116073b0b
Backport: icehouse
This commit is contained in:
Thomas Goirand 2014-05-31 22:17:37 +08:00
parent e973d520c4
commit dd97136ff4

@ -24,7 +24,15 @@
<screen os="rhel;centos;fedora"><prompt>#</prompt> <userinput>yum install openstack-trove python-troveclient</userinput></screen>
<screen os="opensuse;sles"><prompt>#</prompt> <userinput>zypper install openstack-trove python-troveclient</userinput></screen>
</step>
<step os="debian">
<para>Respond to the prompts for <link
linkend="debconf-dbconfig-common">database management</link> and
<link linkend="debconf-keystone_authtoken"
><literal>[keystone_authtoken]</literal> settings</link>,
and <link linkend="debconf-api-endpoints">API endpoint</link>
registration. The <command>trove-manage db_sync</command>
command runs automatically.</para>
</step>
<step>
<para>Prepare OpenStack:</para>
<substeps>
@ -123,7 +131,7 @@ rabbit_password = <replaceable>RABBIT_PASS</replaceable>
</substeps>
</step>
<step>
<step os="opensuse;sles;fedora;rhel;centos;ubuntu">
<para>Edit the <literal>[filter:authtoken]</literal> section
of the <filename>api-paste.ini</filename> file so it matches the
listing shown below:</para>
@ -166,7 +174,7 @@ nova_proxy_admin_tenant_name = service
...</programlisting>
</step>
<step>
<step os="opensuse;sles;fedora;rhel;centos;ubuntu">
<para>Prepare the trove admin database:</para>
<screen><prompt>$</prompt> <userinput>mysql -u root -p</userinput>
<prompt>mysql&gt;</prompt> <userinput>CREATE DATABASE trove;</userinput>
@ -174,7 +182,7 @@ nova_proxy_admin_tenant_name = service
<prompt>mysql&gt;</prompt> <userinput>GRANT ALL PRIVILEGES ON trove.* TO trove@'%' IDENTIFIED BY 'TROVE_DBPASS';</userinput></screen>
</step>
<step>
<step os="opensuse;sles;fedora;rhel;centos;ubuntu">
<para>Prepare the Database service:</para>
<substeps>
<step>
@ -189,7 +197,12 @@ nova_proxy_admin_tenant_name = service
</step>
</substeps>
</step>
<step os="debian">
<para>Create a datastore. You need to create a separate datastore for
each type of database you want to use, for example, MySQL, MongoDB, Cassandra.
This example shows you how to create a datastore for a MySQL database:</para>
<screen><prompt>#</prompt> <userinput>su -s /bin/sh -c "trove-manage datastore_update mysql ''" trove</userinput></screen>
</step>
<step>
<para>Create a trove image.</para>
<para>Create an image for the type of database you want to use,