eole-one-frontend/dicos/99_one-frontend.xml

110 lines
6.6 KiB
XML
Raw Normal View History

<?xml version="1.0" encoding="utf-8"?>
<creole>
<files>
<service type='service'>opennebula-sunstone</service>
<file filelist='onefrontend' name='/etc/one/sunstone-server.conf' rm='True' mkdir='True'/>
<file filelist='onefrontend' name='/etc/one/sunstone-views.yaml' rm='True' mkdir='True'/>
<file filelist='onefrontend' name='/etc/one/sunstone-views/admin.yaml' rm='True' mkdir='True'/>
<file filelist='onefrontend' name='/etc/one/sunstone-views/user.yaml' rm='True' mkdir='True'/>
<file filelist='onefrontend' name='/etc/one/sunstone-views/cloud.yaml' rm='True' mkdir='True'/>
<file filelist='onefrontend' name='/etc/one/sunstone-views/vdcadmin.yaml' rm='True' mkdir='True'/>
<file filelist='onefrontend' name='/etc/one/auth/ldap_auth.conf' source='sunstone-ldap_auth.conf' rm='True' mkdir='True'/>
<file filelist='appmarket' name='/etc/one/sunstone-appmarket.conf' rm='True' mkdir='True'/>
<service_access service='sunstone'>
<port port_type="SymLinkOption">port_sunstone</port>
<port port_type="SymLinkOption">vnc_proxy_port_sunstone</port>
</service_access>
<service_restriction service='sunstone'>
<ip interface='eth0' netmask='netmask_ssh_eth0' netmask_type='SymLinkOption' ip_type='SymLinkOption'>ip_ssh_eth0</ip>
</service_restriction>
</files>
<variables>
<family name='Annuaire'>
<variable name='ldap_nss' redefine='True' hidden='True'/>
</family>
<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" mandatory="True">
<value>9000</value>
</variable>
<variable name='vnc_proxy_port_sunstone' type='number' description="Numéro de port d'écoute du proxy VNC" mode='expert' mandatory="True">
<value>29876</value>
</variable>
<variable name='ip_sunstone' type='ip' description="Adresse IP d'écoute pour OpenNebula Sunstone" mandatory="True"/>
<variable name='langue_sunstone' type='string' description="Langue par défaut de l'interface" mode='expert' mandatory="True">
<value>fr_FR</value>
</variable>
<variable name='sunstone_auth_modes' type='string' description="Modes supplémentaires d'authentification des utilisateurs" mode='expert'/>
<variable name='activer_market_place' type='oui/non' description="Activer l'utilisation d'une place de marché distante" mode='expert'>
<value>non</value>
</variable>
<variable name='market_place_url' type='web_address' description="Adresse de la place de marché distante" mode='expert' mandatory="True">
<value>http://marketplace.c12g.com/appliance</value>
</variable>
<variable name='activer_market_views' type='oui/non' description="Activer l'intégration AppMarket dans Sunstone" mode="expert">
<value>non</value>
</variable>
<variable name='appmarket_endpoint' type='web_address' description="Adresse du serveur AppMarket" mode='expert' mandatory="True"/>
<variable name='appmarket_user' type='string' description="Utilisateur d'administration du serveur AppMarket" mode='expert' mandatory="True"/>
<variable name='appmarket_password' type='string' description="Mot de passe de l'administrateur du serveur AppMarket" mode='expert' mandatory="True"/>
<variable name='sunstone_logo' type='string' description="Logo pour l'interface Sunstone" mode='expert'>
<value>opennebula-sunstone-v4.0.png</value>
</variable>
</family>
</variables>
<constraints>
<fill name='calc_val' target='ip_sunstone'>
<param type='eole' name='valeur'>adresse_ip_eth0</param>
</fill>
<check name='valid_enum' target='sunstone_auth_modes'>
<param>['', 'ldap']</param>
</check>
<auto name='calc_multi_condition' target='activer_client_ldap'>
<param>ldap</param>
<param type='eole' name='condition_1'>sunstone_auth_modes</param>
<param name='match'>distant</param>
<param name='mismatch'>non</param>
</auto>
<condition name='disabled_if_in' source='activer_onefrontend'>
<param>non</param>
<!--target type='filelist'>onefrontend</target-->
<target type='variable'>port_sunstone</target>
<target type='variable'>port_sunstone</target>
<target type='variable'>ip_sunstone</target>
<target type='variable'>langue_sunstone</target>
<target type='variable'>sunstone_logo</target>
</condition>
<condition name='disabled_if_in' source='activer_market_views'>
<param>non</param>
<target type='variable'>appmarket_endpoint</target>
<target type='variable'>appmarket_user</target>
<target type='variable'>appmarket_password</target>
<target type='filelist'>appmarket</target>
</condition>
<condition name='disabled_if_in' source='activer_market_place'>
<param>non</param>
<target type='variable'>market_place_url</target>
</condition>
</constraints>
<help>
<variable name='activer_onefrontend'>Interface d'administration du Cluster OpenNebula.</variable>
<variable name='port_sunstone'>Numéro de port d'écoute d'OpenNebula Sunstone</variable>
<variable name='vnc_proxy_port_sunstone'>Numéro de port d'écoute du proxy VNC (novnc)</variable>
<variable name='ip_sunstone'>Adresse IP d'écoute pour OpenNebula Sunstone</variable>
<variable name='langue_sunstone'>Langue par défaut de l'interface OpenNebula Sunstone</variable>
<variable name='sunstone_auth_modes'>Modes d'authentification des utilisateurs (LDAP ...)</variable>
<variable name='activer_market_views'>Intégration de la gestion du serveur appmarket dans OpenNebula Sunstone</variable>
<variable name='appmarket_endpoint'>Adresse du serveur appmarket (URL http://serveur.domaine.fr[:port] ou https://xxx.xxx.xxx.xxx[:port])</variable>
<variable name='appmarket_user'>Utilisateur d'administration du serveur appmarket (déclaré dans la configuration du serveur appmarket)</variable>
<variable name='appmarket_password'>Mot de passe de l'administrateur du serveur appmarket</variable>
</help>
</creole>