dicos/99_one-frontend.xml : Création du dictionnaire
tmpl/sunstone-server.conf : Création du template Ce dictionnaire et ce template ser a configurer l'interaface web à OpenNebula, Sunstone ref #7313 @45m
This commit is contained in:
parent
29df294ab5
commit
14cf44abdd
36
dicos/99_one-frontend.xml
Normal file
36
dicos/99_one-frontend.xml
Normal file
@ -0,0 +1,36 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<creole>
|
||||
<files>
|
||||
<file filelist='onefrontend' name='/etc/one/sunstone-server.conf' rm='True' mkdir='True'/>
|
||||
</files>
|
||||
<variables>
|
||||
<family name='Virtualisation'>
|
||||
<variable name='activer_onefrontend' type='oui/non' description="Activer l'application web OpenNebula sunstone">
|
||||
<value>oui</value>
|
||||
</variable>
|
||||
<variable name='port_sunstone' type='number' description="Numéro de port d'écoute d'OpenNebula Sunstone">
|
||||
<value>9000</value>
|
||||
</variable>
|
||||
<variable name='ip_sunstone' type='ip' description="Adresse IP d'écoute pour OpenNebula Sunstone"/>
|
||||
<variable name='langue_sunstone' type='string' description="Langue par défaut de l'interface" mode='expert'>
|
||||
<value>fr_FR</value>
|
||||
</variable>
|
||||
</family>
|
||||
</variables>
|
||||
|
||||
<constraints>
|
||||
<fill name='calc_val' target='ip_sunstone'>
|
||||
<param type='eole' name='valeur'>nom_machine</param>
|
||||
</fill>
|
||||
<condition name='disabled_if_in' source='activer_onefrontend'>
|
||||
<param>non</param>
|
||||
<!--target type='filelist'>onefrontend</target-->
|
||||
<target type='variable'>port_sunstone</target>
|
||||
<target type='ip_sunstone'>port_sunstone</target>
|
||||
<target type='ip_sunstone'>port_sunstone</target>
|
||||
</condition>
|
||||
</constraints>
|
||||
<help>
|
||||
<variable name='activer_onefrontend'>Interface d'administration du Cluster OpenNebula.</variable>
|
||||
</help>
|
||||
</creole>
|
148
tmpl/sunstone-server.conf
Normal file
148
tmpl/sunstone-server.conf
Normal file
@ -0,0 +1,148 @@
|
||||
# -------------------------------------------------------------------------- #
|
||||
# Copyright 2002-2013, OpenNebula Project (OpenNebula.org), C12G Labs #
|
||||
# #
|
||||
# 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
|
||||
#
|
||||
#:host: 127.0.0.1
|
||||
:host: %%ip_sunstone
|
||||
:port: %%port_sunstone
|
||||
|
||||
# Place where to store sessions, this value can be memory or memcache
|
||||
# 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.
|
||||
:sessions: memory
|
||||
|
||||
# Memcache configuration
|
||||
:memcache_host: localhost
|
||||
:memcache_port: 11211
|
||||
:memcache_namespace: opennebula.sunstone
|
||||
|
||||
################################################################################
|
||||
# Log
|
||||
################################################################################
|
||||
|
||||
# Log debug level
|
||||
# 0 = ERROR, 1 = WARNING, 2 = INFO, 3 = DEBUG
|
||||
#
|
||||
:debug_level: 3
|
||||
|
||||
################################################################################
|
||||
# Auth
|
||||
################################################################################
|
||||
|
||||
# Authentication driver for incomming requests
|
||||
# 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
|
||||
#
|
||||
:auth: sunstone
|
||||
|
||||
# Authentication driver to communicate with OpenNebula core
|
||||
# cipher, for symmetric cipher encryption of tokens
|
||||
# x509, for x509 certificate encryption of tokens
|
||||
#
|
||||
:core_auth: cipher
|
||||
|
||||
# For LDAP auth. Encode credentials sent to OpenNebula. Turns espaces into %20.
|
||||
# This only works with "opennebula" auth.
|
||||
#
|
||||
#:encode_user_password: true
|
||||
|
||||
################################################################################
|
||||
# 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
|
||||
:vnc_proxy_port: 29876
|
||||
:vnc_proxy_support_wss: no
|
||||
:vnc_proxy_cert:
|
||||
:vnc_proxy_key:
|
||||
:vnc_proxy_ipv6: false
|
||||
|
||||
|
||||
# Default language setting
|
||||
:lang: %%langue_sunstone
|
||||
|
||||
# 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
|
||||
#
|
||||
:marketplace_url: http://marketplace.c12g.com/appliance
|
||||
|
||||
################################################################################
|
||||
# OneFlow
|
||||
################################################################################
|
||||
|
||||
# OneFlow endpoint
|
||||
#
|
||||
:oneflow_server: http://localhost:2474/
|
||||
|
||||
################################################################################
|
||||
# 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:
|
||||
- oneflow
|
Loading…
Reference in New Issue
Block a user