You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

99_one-frontend.xml 8.3KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <creole>
  3. <files>
  4. <service>opennebula-sunstone</service>
  5. <file filelist='onefrontend' name='/etc/one/sunstone-server.conf'/>
  6. <file filelist='onefrontend' name='/etc/one/sunstone-views/admin.yaml'/>
  7. <file filelist='onefrontend' name='/etc/one/sunstone-views/cloud.yaml'/>
  8. <file filelist='onefrontend' name='/etc/one/sunstone-views/admin_vcenter.yaml'/>
  9. <file filelist='onefrontend' name='/etc/one/sunstone-views/groupadmin.yaml'/>
  10. <file filelist='onefrontend' name='/etc/one/sunstone-views/user.yaml'/>
  11. <file filelist='onefrontend' name='/etc/one/sunstone-views/groupadmin_vcenter.yaml'/>
  12. <file filelist='onefrontend' name='/etc/one/auth/ldap_auth.conf' source='sunstone-ldap_auth.conf'/>
  13. <file filelist='onefrontend' name='/etc/nginx/sites-available/nebula.conf' source='nginx-nebula.conf'/>
  14. <file filelist='appmarket' name='/etc/one/sunstone-appmarket.conf' rm='True' mkdir='True'/>
  15. <service_access service='sunstoneHttps'>
  16. <port>443</port>
  17. </service_access>
  18. <service_restriction service='sunstoneHttps'>
  19. <ip interface='eth0' netmask='netmask_admin_eth0' netmask_type='SymLinkOption' ip_type='SymLinkOption'>ip_admin_eth0</ip>
  20. </service_restriction>
  21. <service_access service='sunstone'>
  22. <port port_type="SymLinkOption">port_sunstone</port>
  23. <port port_type="SymLinkOption">vnc_proxy_port_sunstone</port>
  24. <port port_type="SymLinkOption">xmlrpc_port_sunstone</port>
  25. </service_access>
  26. <service_restriction service='sunstone'>
  27. <ip interface='eth0' netmask='netmask_ssh_eth0' netmask_type='SymLinkOption' ip_type='SymLinkOption'>ip_ssh_eth0</ip>
  28. </service_restriction>
  29. </files>
  30. <variables>
  31. <family name='Annuaire'>
  32. <variable name='ldap_nss' redefine='True' hidden='True'/>
  33. </family>
  34. <family name='Services'>
  35. <variable name='activer_onefrontend' type='oui/non' description="Activer l'application web OpenNebula Sunstone" mode="expert">
  36. <value>oui</value>
  37. </variable>
  38. <variable name='activer_market_place' type='oui/non' description="Activer l'utilisation d'une place de marché distante" mode='expert'>
  39. <value>non</value>
  40. </variable>
  41. </family>
  42. <family name='Virtualisation'>
  43. <variable name='sunstone_auth_modes' type='string' description="Modes supplémentaires d'authentification des utilisateurs" mode='expert'/>
  44. <variable name='port_sunstone' type='number' description="Numéro de port d'écoute" mode="expert">
  45. <value>9000</value>
  46. </variable>
  47. <variable name='ip_sunstone' type='ip' description="Adresse IP d'écoute" mandatory="True" mode="expert"/>
  48. <variable name='vnc_proxy_port_sunstone' type='number' description="Numéro de port d'écoute du proxy VNC" mode='expert'>
  49. <value>29876</value>
  50. </variable>
  51. <variable name='langue_sunstone' type='string' description="Langue par défaut" mode='expert' mandatory="True">
  52. <value>fr_FR</value>
  53. </variable>
  54. <variable name='sunstone_logo' type='string' description="Logo pour l'interface Sunstone" mode='expert'>
  55. <value>opennebula-sunstone-v4.0.png</value>
  56. </variable>
  57. <variable name='activer_xmlrpc_port_sunstone' type='oui/non' description="Activer l'accès distant à l'API XML-RPC" mode='expert'>
  58. <value>non</value>
  59. </variable>
  60. <!-- le port est là pour bastion, mais on ne peut pas le changer -->
  61. <variable name='xmlrpc_port_sunstone' type='number' description="Numéro de port d'écoute de l'API XML-RPC" mode='expert' mandatory="True" hidden='True'>
  62. <value>2633</value>
  63. </variable>
  64. <variable name='market_place_url' type='web_address' description="Adresse de la place de marché distante" mode='expert' mandatory="True">
  65. <value>http://marketplace.c12g.com/appliance</value>
  66. </variable>
  67. <variable name='activer_market_views' type='oui/non' description="Activer l'intégration AppMarket dans l'application web OpenNebula Sunstone" mode="expert">
  68. <value>non</value>
  69. </variable>
  70. <variable name='appmarket_endpoint' type='web_address' description="Adresse du serveur AppMarket" mode='expert' mandatory="True"/>
  71. <variable name='appmarket_user' type='string' description="Utilisateur d'administration du serveur AppMarket" mode='expert' mandatory="True"/>
  72. <variable name='appmarket_password' type='string' description="Mot de passe de l'administrateur du serveur AppMarket" mode='expert' mandatory="True"/>
  73. </family>
  74. <separators>
  75. <separator name='sunstone_auth_modes'>Configuration du l'application web OpenNebula Sunstone</separator>
  76. <separator name='activer_xmlrpc_port_sunstone'>Configuration du service XML-RPC</separator>
  77. <separator name='market_place_url'>Configuration de la place de marché distante</separator>
  78. </separators>
  79. </variables>
  80. <constraints>
  81. <fill name='calc_val' target='ip_sunstone'>
  82. <param type='eole' name='valeur'>adresse_ip_eth0</param>
  83. </fill>
  84. <check name='valid_enum' target='sunstone_auth_modes'>
  85. <param>['', 'ldap']</param>
  86. </check>
  87. <auto name='calc_multi_condition' target='activer_client_ldap'>
  88. <param>ldap</param>
  89. <param type='eole' name='condition_1'>sunstone_auth_modes</param>
  90. <param name='match'>distant</param>
  91. <param name='mismatch'>non</param>
  92. </auto>
  93. <condition name='disabled_if_in' source='activer_xmlrpc_port_sunstone'>
  94. <param>non</param>
  95. <target type='variable'>xmlrpc_port_sunstone</target>
  96. </condition>
  97. <condition name='disabled_if_in' source='activer_onefrontend'>
  98. <param>non</param>
  99. <target type='filelist'>onefrontend</target>
  100. <target type='variable'>port_sunstone</target>
  101. <target type='variable'>vnc_proxy_port_sunstone</target>
  102. <target type='variable'>xmlrpc_port_sunstone</target>
  103. <target type='variable'>ip_sunstone</target>
  104. <target type='variable'>langue_sunstone</target>
  105. <target type='variable'>sunstone_logo</target>
  106. </condition>
  107. <condition name='disabled_if_in' source='activer_market_views'>
  108. <param>non</param>
  109. <target type='variable'>appmarket_endpoint</target>
  110. <target type='variable'>appmarket_user</target>
  111. <target type='variable'>appmarket_password</target>
  112. <target type='filelist'>appmarket</target>
  113. </condition>
  114. <condition name='disabled_if_in' source='activer_market_place'>
  115. <param>non</param>
  116. <target type='variable'>market_place_url</target>
  117. </condition>
  118. </constraints>
  119. <help>
  120. <variable name='activer_onefrontend'>Interface d'administration du Cluster OpenNebula.</variable>
  121. <variable name='port_sunstone'>Numéro de port d'écoute d'OpenNebula Sunstone</variable>
  122. <variable name='vnc_proxy_port_sunstone'>Numéro de port d'écoute du proxy VNC (novnc)</variable>
  123. <variable name='xmlrpc_port_sunstone'>Numéro de port d'écoute de l'API XmlRpc </variable>
  124. <variable name='ip_sunstone'>Adresse IP d'écoute pour OpenNebula Sunstone</variable>
  125. <variable name='langue_sunstone'>Langue par défaut de l'interface OpenNebula Sunstone</variable>
  126. <variable name='sunstone_auth_modes'>Modes d'authentification des utilisateurs (LDAP ...)</variable>
  127. <variable name='activer_market_views'>Intégration de la gestion du serveur appmarket dans OpenNebula Sunstone</variable>
  128. <variable name='appmarket_endpoint'>Adresse du serveur appmarket (URL http://serveur.domaine.fr[:port] ou https://xxx.xxx.xxx.xxx[:port])</variable>
  129. <variable name='appmarket_user'>Utilisateur d'administration du serveur appmarket (déclaré dans la configuration du serveur appmarket)</variable>
  130. <variable name='appmarket_password'>Mot de passe de l'administrateur du serveur appmarket</variable>
  131. </help>
  132. </creole>