Tato část popisuje jak nainstalovat a nastavit nástěnku v uzlu kontroléru.
The only core service required by the dashboard is the Identity service. You can use the dashboard in combination with other services, such as Image service, Compute, and Networking. You can also use the dashboard in environments with stand-alone services such as Object Storage.
Poznámka
Tato část předpokládá, že služba identit je správně nainstalována, nastavena a pracuje využitím HTTP serveru Apache a služby Memcached, tak jak je popsáno v části isntalace a nasatvení služby identit.
Poznámka
Default configuration files vary by distribution. You might need
to add these sections and options rather than modifying existing
sections and options. Also, an ellipsis (...
) in the configuration
snippets indicates potential default configuration options that you
should retain.
Nainstalujte balíčky:
# zypper install openstack-dashboard
Nastavte internetový server:
# cp /etc/apache2/conf.d/openstack-dashboard.conf.sample \
/etc/apache2/conf.d/openstack-dashboard.conf
# a2enmod rewrite
Upravte soubor /srv/www/openstack-dashboard/openstack_dashboard/local/local_settings.py
a proveďte následující úkony:
Nastavte nástěnku pro využití služeb OpenStack na uzlu controller
:
OPENSTACK_HOST = "controller"
Umožněte všem hostitelům přístup k nástěnce:
ALLOWED_HOSTS = ['*', ]
Nastavte službu memcached
pro uložení sezení:
SESSION_ENGINE = 'django.contrib.sessions.backends.cache'
CACHES = {
'default': {
'BACKEND': 'django.core.cache.backends.memcached.MemcachedCache',
'LOCATION': 'controller:11211',
}
}
Poznámka
Okomentujte všechny ostatní nastavení uložení sezení.
Enable the Identity API version 3:
OPENSTACK_KEYSTONE_URL = "http://%s:5000/v3" % OPENSTACK_HOST
Enable support for domains:
OPENSTACK_KEYSTONE_MULTIDOMAIN_SUPPORT = True
Configure API versions:
OPENSTACK_API_VERSIONS = {
"identity": 3,
"image": 2,
"volume": 2,
}
Configure default
as the default domain for users that you create
via the dashboard:
OPENSTACK_KEYSTONE_DEFAULT_DOMAIN = "default"
Nastavte uživatele user
jako výchozí roli pro uživatele, kteří budou vytvořeny pomocí nástěnky:
OPENSTACK_KEYSTONE_DEFAULT_ROLE = "user"
If you chose networking option 1, disable support for layer-3 networking services:
OPENSTACK_NEUTRON_NETWORK = {
...
'enable_router': False,
'enable_quotas': False,
'enable_distributed_router': False,
'enable_ha_router': False,
'enable_lb': False,
'enable_firewall': False,
'enable_vpn': False,
'enable_fip_topology_check': False,
}
Můžete také nastavit časové pásmo:
TIME_ZONE = "TIME_ZONE"
TIME_ZONE
nahraďte vhodným identifikátorem časového pásma. Pro další informace si prohlédněte seznam časových pásem.
Restartujte internetový server a službu uložení sezení:
# systemctl restart apache2.service memcached.service
Poznámka
Příkaz systemctl restart
spustí každou službu, pokud tomu ještě tak není.
Except where otherwise noted, this document is licensed under Creative Commons Attribution 3.0 License. See all OpenStack Legal Documents.