2014-02-05 15:46:51 +01:00
|
|
|
# -------------------------------------------------------------------------- #
|
2016-09-05 16:37:20 +02:00
|
|
|
# Copyright 2002-2016, OpenNebula Project, OpenNebula Systems #
|
2014-02-05 15:46:51 +01:00
|
|
|
# #
|
|
|
|
# Licensed under the Apache License, Version 2.0 (the "License"); you may #
|
|
|
|
# not use this file except in compliance with the License. You may obtain #
|
|
|
|
# a copy of the License at #
|
|
|
|
# #
|
|
|
|
# http://www.apache.org/licenses/LICENSE-2.0 #
|
|
|
|
# #
|
|
|
|
# Unless required by applicable law or agreed to in writing, software #
|
|
|
|
# distributed under the License is distributed on an "AS IS" BASIS, #
|
|
|
|
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. #
|
|
|
|
# See the License for the specific language governing permissions and #
|
|
|
|
# limitations under the License. #
|
|
|
|
#--------------------------------------------------------------------------- #
|
|
|
|
|
|
|
|
################################################################################
|
|
|
|
# Server Configuration
|
|
|
|
################################################################################
|
|
|
|
|
|
|
|
# Directory to store temp files when uploading images
|
|
|
|
#
|
|
|
|
:tmpdir: /var/tmp
|
|
|
|
|
|
|
|
# OpenNebula sever contact information
|
|
|
|
#
|
|
|
|
:one_xmlrpc: http://localhost:2633/RPC2
|
|
|
|
|
|
|
|
# Server Configuration
|
|
|
|
#
|
2015-08-11 17:17:38 +02:00
|
|
|
:host: %%ip_sunstone
|
2014-02-05 15:46:51 +01:00
|
|
|
:port: %%port_sunstone
|
|
|
|
|
2016-09-05 16:37:20 +02:00
|
|
|
# Place where to store sessions, this value can be memory, memcache or memcache-dalli
|
2014-02-05 15:46:51 +01:00
|
|
|
# Use memcache when starting multiple server processes, for example,
|
|
|
|
# with passenger
|
|
|
|
#
|
|
|
|
# NOTE. memcache needs a separate memcached server to be configured. Refer
|
|
|
|
# to memcached documentation to configure the server.
|
2016-09-05 16:37:20 +02:00
|
|
|
:sessions: memcache-dalli
|
2014-02-05 15:46:51 +01:00
|
|
|
|
|
|
|
# Memcache configuration
|
|
|
|
:memcache_host: localhost
|
|
|
|
:memcache_port: 11211
|
|
|
|
:memcache_namespace: opennebula.sunstone
|
|
|
|
|
2016-09-05 16:37:20 +02:00
|
|
|
# Excution environment for Sunstone
|
|
|
|
# dev, Instead of pulling the minified js all the files will be pulled (app/main.js)
|
|
|
|
# Check the Building from Source guide in the docs, for details on how to run
|
|
|
|
# Sunstone in development
|
|
|
|
# prod, the minified js will be used (dist/main.js)
|
|
|
|
:env: 'prod'
|
|
|
|
|
2014-02-05 15:46:51 +01:00
|
|
|
################################################################################
|
|
|
|
# Log
|
|
|
|
################################################################################
|
|
|
|
|
|
|
|
# Log debug level
|
|
|
|
# 0 = ERROR, 1 = WARNING, 2 = INFO, 3 = DEBUG
|
|
|
|
#
|
|
|
|
:debug_level: 3
|
|
|
|
|
2016-09-05 16:37:20 +02:00
|
|
|
################################################################################
|
|
|
|
# Proxy
|
|
|
|
################################################################################
|
|
|
|
|
|
|
|
# Enable an http proxy for the support portal and to download MarketPlaceApps
|
|
|
|
# from the MarketPlace to the user's desktop.
|
|
|
|
# :proxy: http://<hostname>:<port>
|
|
|
|
|
2014-02-05 15:46:51 +01:00
|
|
|
################################################################################
|
|
|
|
# Auth
|
|
|
|
################################################################################
|
|
|
|
|
|
|
|
# Authentication driver for incomming requests
|
2016-09-05 16:37:20 +02:00
|
|
|
# sunstone: for OpenNebula's user-password scheme
|
|
|
|
# x509: for x509 certificates based authentication
|
|
|
|
# opennebula: the authentication will be done by the opennebula core using the
|
|
|
|
# driver defined for the user
|
|
|
|
# remote: performs the login based on a Kerberos REMOTE_USER
|
2014-02-05 15:46:51 +01:00
|
|
|
#
|
2014-09-30 09:59:25 +02:00
|
|
|
:auth: opennebula
|
2014-02-05 15:46:51 +01:00
|
|
|
|
|
|
|
# Authentication driver to communicate with OpenNebula core
|
|
|
|
# cipher, for symmetric cipher encryption of tokens
|
|
|
|
# x509, for x509 certificate encryption of tokens
|
|
|
|
#
|
|
|
|
:core_auth: cipher
|
|
|
|
|
2016-09-05 16:37:20 +02:00
|
|
|
# For external authentication drivers, such as LDAP. Performs a URL encoding
|
|
|
|
# on the credentials sent to OpenNebula, e.g. secret%20password
|
2014-02-05 15:46:51 +01:00
|
|
|
# This only works with "opennebula" auth.
|
|
|
|
#
|
|
|
|
#:encode_user_password: true
|
|
|
|
|
2016-09-05 16:37:20 +02:00
|
|
|
################################################################################
|
|
|
|
# Check Upgrades
|
|
|
|
################################################################################
|
|
|
|
|
|
|
|
# To check for the latest release. Comment this value if you don't want to check
|
|
|
|
# this.
|
|
|
|
:remote_version: http://downloads.opennebula.org/latest
|
|
|
|
|
2014-02-05 15:46:51 +01:00
|
|
|
################################################################################
|
|
|
|
# UI Settings
|
|
|
|
################################################################################
|
|
|
|
# :vnc_proxy_
|
|
|
|
# port: port where the vnc proxy will listen
|
|
|
|
# support_wss: no | yes | only. For yes and only, provide path to
|
|
|
|
# cert and key. "yes" means both ws and wss connections will be
|
|
|
|
# supported.
|
|
|
|
# vnc_proxy_cert: Certificate to encrypt wss connections.
|
|
|
|
# vnc_proxy_key: Key for wss connections. Only necessary if not included in cert.
|
|
|
|
# vnc_proxy_ipv6: Enable ipv6 support for novnc-server
|
2016-09-05 16:37:20 +02:00
|
|
|
#
|
|
|
|
# :vnc_request_password: true | false
|
|
|
|
# Request VNC password for external windows, by default it will not be requested
|
|
|
|
#
|
2014-09-29 15:02:50 +02:00
|
|
|
:vnc_proxy_port: %%vnc_proxy_port_sunstone
|
2014-10-09 17:17:01 +02:00
|
|
|
:vnc_proxy_support_wss: yes
|
2014-09-29 15:02:50 +02:00
|
|
|
:vnc_proxy_cert: %%server_cert
|
|
|
|
:vnc_proxy_key: %%server_key
|
2014-02-05 15:46:51 +01:00
|
|
|
:vnc_proxy_ipv6: false
|
2016-09-05 16:37:20 +02:00
|
|
|
:vnc_request_password: false
|
2014-02-05 15:46:51 +01:00
|
|
|
|
|
|
|
|
|
|
|
# Default language setting
|
2014-11-04 11:06:40 +01:00
|
|
|
:lang: %%langue_sunstone
|
2014-02-05 15:46:51 +01:00
|
|
|
|
|
|
|
# Default table order
|
|
|
|
:table_order: desc
|
|
|
|
|
|
|
|
################################################################################
|
|
|
|
# Marketplace
|
|
|
|
################################################################################
|
|
|
|
|
|
|
|
# Marketplace username and password
|
|
|
|
# If no credentials are provided, an anonymous client will be used
|
|
|
|
#
|
|
|
|
#:marketplace_username:
|
|
|
|
#:marketplace_password:
|
|
|
|
|
|
|
|
# Marketplace endpoint
|
2016-09-05 16:37:20 +02:00
|
|
|
# The url should not include the /appliance path since it will be automatically
|
|
|
|
# included
|
2014-02-05 15:46:51 +01:00
|
|
|
#
|
2014-11-13 09:28:17 +01:00
|
|
|
%if %%getVar('activer_market_place','non') == 'oui'
|
2014-11-18 14:16:09 +01:00
|
|
|
:marketplace_url: %%market_place_url
|
2016-09-05 16:37:20 +02:00
|
|
|
%else
|
|
|
|
:marketplace_url: http://marketplace.opennebula.systems/
|
2014-11-12 14:58:50 +01:00
|
|
|
%end if
|
2014-02-05 15:46:51 +01:00
|
|
|
|
2016-09-05 16:37:20 +02:00
|
|
|
|
2014-11-05 10:34:51 +01:00
|
|
|
%if %%getVar('activer_oneflow', 'non') == 'oui'
|
2014-02-05 15:46:51 +01:00
|
|
|
################################################################################
|
|
|
|
# OneFlow
|
|
|
|
################################################################################
|
|
|
|
|
|
|
|
# OneFlow endpoint
|
|
|
|
#
|
2016-09-05 16:37:20 +02:00
|
|
|
:oneflow_server: http://%%getVar('ip_oneflow','172.0.0.1'):%%getVar('port_oneflow','2474')/
|
2014-11-04 11:06:40 +01:00
|
|
|
%end if
|
2014-02-05 15:46:51 +01:00
|
|
|
|
|
|
|
################################################################################
|
|
|
|
# Routes
|
|
|
|
################################################################################
|
|
|
|
|
|
|
|
# Array of files containing ruby code to extend the default sunstone-server
|
|
|
|
# routes. These files must be placed inside the custom_routes directory
|
|
|
|
# in the sunstone root dir (/usr/lib/one/sunstone/routes)
|
|
|
|
#
|
|
|
|
# Example:
|
|
|
|
# $ ls /usr/lib/one/sunstone/routes
|
|
|
|
# custom.rb other.rb
|
|
|
|
#
|
|
|
|
# $ cat /usr/lib/one/sunstone/routes/example.rb
|
|
|
|
# get '/custom' do
|
|
|
|
# body "It works"
|
|
|
|
# end
|
|
|
|
#
|
|
|
|
#:routes:
|
|
|
|
# - custom
|
|
|
|
# - other
|
|
|
|
|
|
|
|
:routes:
|
2014-11-05 10:34:51 +01:00
|
|
|
%if %%getVar('activer_oneflow', 'non') == 'oui'
|
2014-02-05 15:46:51 +01:00
|
|
|
- oneflow
|
2014-11-05 10:34:51 +01:00
|
|
|
%end if
|
2016-09-05 16:51:25 +02:00
|
|
|
%if %%getVar('activer_market_views', 'non') == 'oui'
|
2014-11-05 11:23:39 +01:00
|
|
|
- appmarket
|
2016-09-05 16:51:25 +02:00
|
|
|
%end if
|
2016-09-05 16:37:20 +02:00
|
|
|
- vcenter
|
|
|
|
- support
|