puppet-tripleo/templates/ui/tripleo_ui_config.js.erb
Honza Pokorny 60db285fd5 Refactor enabled languages from an array to a hash
Change-Id: I5173361818508849e5012a943a984af69d9d08cd
Depends-On: I2d28d9019e8bcf9f6b8ef5698958932d44321679
Closes-Bug: #1668978
2017-03-30 06:53:50 -03:00

26 lines
849 B
Plaintext

window.tripleOUiConfig = {
// Service URLs (defaults to UI host)
//
// A valid Keystone service URL is required. The other endpoints
// will then be obtained automatically from the Keystone catalog.
//
'keystone': '<%= @endpoint_config_keystone %>',
'heat': '<%= @endpoint_config_heat %>',
'ironic': '<%= @endpoint_config_ironic %>',
'mistral': '<%= @endpoint_config_mistral %>',
'swift': '<%= @endpoint_config_swift %>',
'zaqar-websocket': '<%= @endpoint_config_zaqar %>',
// Default websocket queue name
'zaqar_default_queue': '<%= @zaqar_default_queue %>',
// Languages
// If you choose more than one language, a language switcher will appear in
// the navigation bar.
// Only 'en' (English) is enabled by default.
'languages': <%= @enabled_languages.to_json %>,
// Logging
// 'loggers': ['console']
};