62 lines
3.0 KiB
XML
62 lines
3.0 KiB
XML
<?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/auth/ldap_auth.conf' source='sunstone-ldap_auth.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='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='vnc_proxy_port_sunstone' type='number' description="Numéro de port d'écoute du proxy VNC" mode='expert'>
|
|
<value>29876</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>
|
|
<variable name='sunstone_auth_modes' type='string' description="Modes supplémentaires d'authentification des utilisateurs" mode='expert'/>
|
|
</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>
|
|
</condition>
|
|
</constraints>
|
|
<help>
|
|
<variable name='activer_onefrontend'>Interface d'administration du Cluster OpenNebula.</variable>
|
|
</help>
|
|
</creole>
|