Fix openSUSE dashboard file locations

The openstack packaging has been changed so that the horizon packages
are now in /srv. Update all occurences.

Change-Id: Ib53c7ba7396e7f99433068d7a4625b12bd918957
Closes-Bug: #1279892
backport: havana
This commit is contained in:
Andreas Jaeger
2014-02-13 19:45:28 +01:00
parent 442425c664
commit cdbf99aa92
3 changed files with 11 additions and 8 deletions

View File

@@ -675,7 +675,7 @@ header: Date: Thu, 13 Sep 2012 20:27:36 GMT
on Ubuntu and Debian: on Ubuntu and Debian:
<filename>/etc/openstack-dashboard/local_settings.py</filename> <filename>/etc/openstack-dashboard/local_settings.py</filename>
and on openSUSE and SUSE Linux Enterprise Server: and on openSUSE and SUSE Linux Enterprise Server:
<filename>/usr/share/openstack-dashboard/openstack_dashboard/local/local_settings.py</filename>) <filename>/srv/www/openstack-dashboard/openstack_dashboard/local/local_settings.py</filename>)
<programlisting>OPENSTACK_HYPERVISOR_FEATURE = { <programlisting>OPENSTACK_HYPERVISOR_FEATURE = {
... ...
'can_set_password': False, 'can_set_password': False,

View File

@@ -13,7 +13,7 @@
(on Fedora/RHEL/CentOS: <filename> (on Fedora/RHEL/CentOS: <filename>
/etc/openstack-dashboard/local_settings</filename>, on Ubuntu and Debian: /etc/openstack-dashboard/local_settings</filename>, on Ubuntu and Debian:
<filename>/etc/openstack-dashboard/local_settings.py</filename> and on openSUSE: <filename <filename>/etc/openstack-dashboard/local_settings.py</filename> and on openSUSE: <filename
>/usr/share/openstack-dashboard/openstack_dashboard/local/local_settings.py</filename>). >/srv/www/openstack-dashboard/openstack_dashboard/local/local_settings.py</filename>).
</para> </para>
<para>The following sections describe the pros and cons of each <para>The following sections describe the pros and cons of each
option as it pertains to deploying the dashboard.</para> option as it pertains to deploying the dashboard.</para>
@@ -135,7 +135,7 @@ CACHES = {
(on Fedora/RHEL/CentOS: <filename> (on Fedora/RHEL/CentOS: <filename>
/etc/openstack-dashboard/local_settings</filename>, on Ubuntu/Debian: /etc/openstack-dashboard/local_settings</filename>, on Ubuntu/Debian:
<filename>/etc/openstack-dashboard/local_settings.py</filename> and on openSUSE: <filename <filename>/etc/openstack-dashboard/local_settings.py</filename> and on openSUSE: <filename
>/usr/share/openstack-dashboard/openstack_dashboard/local/local_settings.py</filename>), >/srv/www/openstack-dashboard/openstack_dashboard/local/local_settings.py</filename>),
change these options:</para> change these options:</para>
<programlisting language="python"><?db-font-size 75%?>SESSION_ENGINE = 'django.core.cache.backends.db.DatabaseCache' <programlisting language="python"><?db-font-size 75%?>SESSION_ENGINE = 'django.core.cache.backends.db.DatabaseCache'
DATABASES = { DATABASES = {
@@ -155,7 +155,9 @@ DATABASES = {
as shown, you can run the <command>manage.py as shown, you can run the <command>manage.py
syncdb</command> command to populate this syncdb</command> command to populate this
newly-created database.</para> newly-created database.</para>
<screen><prompt>$</prompt> /usr/share/openstack-dashboard/manage.py syncdb </screen> <screen><prompt>$</prompt> <userinput>/usr/share/openstack-dashboard/manage.py syncdb</userinput></screen>
<para>Note on openSUSE the path is <filename>/srv/www/openstack-dashboard/manage.py</filename>.
</para>
<para>As a result, the following output is <para>As a result, the following output is
returned:</para> returned:</para>
<screen><computeroutput>Installing custom SQL ... <screen><computeroutput>Installing custom SQL ...

View File

@@ -61,7 +61,7 @@
os="centos;fedora;rhel" os="centos;fedora;rhel"
>/etc/openstack-dashboard/local_settings</filename><filename >/etc/openstack-dashboard/local_settings</filename><filename
os="opensuse;sles" os="opensuse;sles"
>/usr/share/openstack-dashboard/openstack_dashboard/local/local_settings.py</filename> >/srv/www/openstack-dashboard/openstack_dashboard/local/local_settings.py</filename>
to match the ones set in <filename os="ubuntu;debian" to match the ones set in <filename os="ubuntu;debian"
>/etc/memcached.conf</filename><filename >/etc/memcached.conf</filename><filename
os="centos;fedora;rhel;opensuse;sles" os="centos;fedora;rhel;opensuse;sles"
@@ -106,7 +106,7 @@
os="ubuntu;debian" os="ubuntu;debian"
>/etc/openstack-dashboard/local_settings.py</filename><filename >/etc/openstack-dashboard/local_settings.py</filename><filename
os="opensuse;sles" os="opensuse;sles"
>/usr/share/openstack-dashboard/openstack_dashboard/local/local_settings.py</filename> >/srv/www/openstack-dashboard/openstack_dashboard/local/local_settings.py</filename>
file.</para> file.</para>
<para>Change the following parameter: <para>Change the following parameter:
<code>TIME_ZONE = "UTC"</code></para> <code>TIME_ZONE = "UTC"</code></para>
@@ -124,7 +124,8 @@
os="ubuntu;debian" os="ubuntu;debian"
>/etc/openstack-dashboard/local_settings.py</filename><filename >/etc/openstack-dashboard/local_settings.py</filename><filename
os="opensuse;sles" os="opensuse;sles"
>/usr/share/openstack-dashboard/openstack_dashboard/local/local_settings.py</filename>:</para> >/srv/www/openstack-dashboard/openstack_dashboard/local/local_settings.py</filename>:
</para>
<programlisting language="python" linenumbering="unnumbered"><?db-font-size 75%?>ALLOWED_HOSTS = ['localhost', 'my-desktop'] <programlisting language="python" linenumbering="unnumbered"><?db-font-size 75%?>ALLOWED_HOSTS = ['localhost', 'my-desktop']
</programlisting> </programlisting>
</step> </step>
@@ -139,7 +140,7 @@
os="ubuntu;debian" os="ubuntu;debian"
>/etc/openstack-dashboard/local_settings.py</filename><filename >/etc/openstack-dashboard/local_settings.py</filename><filename
os="opensuse;sles" os="opensuse;sles"
>/usr/share/openstack-dashboard/openstack_dashboard/local/local_settings.py</filename> >/srv/www/openstack-dashboard/openstack_dashboard/local/local_settings.py</filename>
and change <literal>OPENSTACK_HOST</literal> to the and change <literal>OPENSTACK_HOST</literal> to the
hostname of your Identity Service:</para> hostname of your Identity Service:</para>
<programlisting language="python" linenumbering="unnumbered"><?db-font-size 75%?>OPENSTACK_HOST = "controller" <programlisting language="python" linenumbering="unnumbered"><?db-font-size 75%?>OPENSTACK_HOST = "controller"