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.

29_one-master.xml 22KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <creole>
  3. <files>
  4. <!--file filelist='onesinglenode' name='/etc/one/sunstone-server.conf' rm='True' mkdir='True'/-->
  5. <file filelist='onesinglenode' name='/etc/one/vmm_exec/vmm_exec_kvm.conf' rm='True' mkdir='True'/>
  6. <file filelist='onesinglenode' name='/etc/one/oned.conf' rm='True'/>
  7. <file filelist='onesinglenode' name='/etc/one/sched.conf' rm='True'/>
  8. <file filelist='onesinglenode' name='/var/lib/one/remotes/etc/vnm/OpenNebulaNetwork.conf' rm='True' mkdir='True'/>
  9. <file filelist='onesinglenode' name='/etc/one/auth/ldap_auth.conf'/>
  10. <file filelist='one_ha' name='/usr/share/eole/bastion/data/60-one' mode='755'/>
  11. <service>opennebula</service>
  12. <service>opennebula-scheduler</service>
  13. <service_access service='one-ssh'>
  14. <tcpwrapper>sshd</tcpwrapper>
  15. </service_access>
  16. <service_restriction service='one-ssh'>
  17. <ip interface='eth0' ip_type='SymLinkOption'>adresse_ip_eth0</ip>
  18. </service_restriction>
  19. <service_access service='sunstone'>
  20. <port port_type="SymLinkOption">port_sunstone</port>
  21. <port port_type="SymLinkOption">vnc_proxy_port_sunstone</port>
  22. </service_access>
  23. <service_access service='sunstone_xmlrpc'>
  24. <port service_accesslist="sunstone_xmlrpc">2633</port>
  25. </service_access>
  26. <service_restriction service='sunstone_xmlrpc'>
  27. <ip interface='one_node_int_name' interface_type='SymLinkOption' ip_type='SymLinkOption'>one_nodes</ip>
  28. </service_restriction>
  29. </files>
  30. <variables>
  31. <family name='general'>
  32. <variable name='nom_machine' redefine='True' auto_freeze='True'/>
  33. </family>
  34. <family name='services'>
  35. <variable name='activer_onesinglenode' type='oui/non' description="Activer l'orchestrateur de virtualisation" mode='expert'>
  36. <value>oui</value>
  37. </variable>
  38. </family>
  39. <family name='Virtualisation' icon='cloud'>
  40. <variable name='one_cluster_name' type='string' description="Nom de la grappe OpenNebula par défaut" mode='expert'>
  41. <value>default</value>
  42. </variable>
  43. <!-- Base de donnée -->
  44. <variable name="one_database_type" description="Moteur de base de données a utiliser" type="string" mode="expert">
  45. <value>sqlite</value>
  46. </variable>
  47. <variable name="one_database_host" description="Adresse du serveur de base de données (mySQL uniquement)" mandatory="True" mode="expert"/>
  48. <variable name="one_database_port" description="Port d'écoute du serveur de base de données" mode="expert" type="number" mandatory="True">
  49. <value>3306</value>
  50. </variable>
  51. <variable name="one_database_name" description="Nom de la base de données" type="string" mandatory="True">
  52. <value>onedb</value>
  53. </variable>
  54. <variable name="one_database_user" description="Utilisateur pour se connecter à la base de données" type="string" mandatory="True">
  55. <value>one</value>
  56. </variable>
  57. <variable name="one_database_pass" description="Mot de passe pour se connecter à la base de données" type="password" mandatory="True"/>
  58. <variable name="one_database_connections" description="Nombre de connection à la base de données" type="number" mandatory="True" mode="expert"><value>50</value></variable>
  59. <!-- VNETS -->
  60. <variable name='vnet_pilote' type='string' description='Pilote utilisé pour le réseau virtuel' hidden='True' />
  61. <variable name='vnets' type='string' description="Nom du réseau virtuel à plage d'adresse IP" multi='True'/>
  62. <variable name='vnet_range_start' type='ip' description='Première IP de la plage' mandatory="True"/>
  63. <variable name='vnet_range_size' type='number' description="Nombre d'adresses disponible" mandatory="True"/>
  64. <variable name='vnet_network_addr' type='network' description='Adresse du réseau virtuel'/>
  65. <variable name='vnet_network_mask' type='netmask' description='Masque du réseau virtuel'/>
  66. <variable name='vnet_network_gw' type='ip' description='Passerelle du réseau virtuel'/>
  67. <variable name='vnet_network_dns' type='ip' description='Adresse du serveur DNS'/>
  68. <variable name='vnet_vlan_tag' type='number' description='Numéro du VLAN'/>
  69. <variable name='vnet_vlan_trunk' type='number' description="VLAN à transporter (trunk)" mode='expert'/>
  70. <variable name='l2_vnets' type='string' description="Nom du réseau virtuel à plage d'adresse ethernet" multi='True'/>
  71. <variable name='l2_vnet_first_mac' type='string' description='Première adresse MAC' mode='expert'/>
  72. <variable name='l2_vnet_size' type='number' description="Nombre d'adresse MAC disponible" mandatory="True"/>
  73. <variable name='l2_vnet_vlan_tag' type='number' description='Numéro du VLAN'/>
  74. <variable name='l2_vnet_vlan_trunk' type='number' description="VLAN à transporter (trunk)" mode='expert'/>
  75. <variable name='one_ds_system_prefix' description="Préfixe de l'espace de stockage système" auto_freeze='True'>
  76. <value>system-</value>
  77. </variable>
  78. <variable name='one_ds_iso_name' description="Nom de l'espace de stockage des images ISO" auto_freeze='True'>
  79. <value>iso-images</value>
  80. </variable>
  81. <variable name='one_ds_image_name' description="Nom de l'espace de stockage des images disques" auto_freeze='True'>
  82. <value>images-disques</value>
  83. </variable>
  84. <variable name='one_disk_cache' type='oui/non' description='Activer le cache pour les images Qcow2' mode='expert'>
  85. <value>oui</value>
  86. </variable>
  87. <variable name='one_video_driver' type='string' description='Pilote vidéo par défaut' mode='expert'>
  88. <value>vga</value>
  89. </variable>
  90. <variable name='arp_cache_poisoning' type='oui/non' description="Activer la protection contre l'ARP Poisoning" mode='expert'>
  91. <value>non</value>
  92. </variable>
  93. <variable name='activer_hooks' type='oui/non' description="Utiliser des hooks personnalisés" mode='expert'>
  94. <value>non</value>
  95. </variable>
  96. <variable name='activer_one_ha' type='oui/non' description="Activer le support pour la haute disponibilité OpenNebula" mode='expert'>
  97. <value>non</value>
  98. </variable>
  99. <variable name='activer_multinode' description="Activer l'intégration de plusieurs nœuds de virtualisation" mode='expert' type='oui/non'/>
  100. <variable name='one_nodes' type='domain' description="Nom du nœud de virtualisation" multi='True' mandatory='True'/>
  101. <variable name="one_ha_server_index" description="Index du serveur dans la liste des nœuds de virtualisation" type="number" mandatory="True"/>
  102. <variable name='one_node_int' type='domain' description="Interface de communication des nœuds" mandatory='True'/>
  103. <variable name='one_node_int_name' type='domain' description="Nom de l'interface de communication des nœuds"/>
  104. <variable name="one_vip" description="Adresse IP de la VIP OpenNebula" type="ip" mandatory="True"/>
  105. <variable name="one_vip_mask" description="Masque de sous-réseau de la VIP OpenNebula" type="netmask" mandatory="True"/>
  106. </family>
  107. <family name='Modèle' icon='cloud'>
  108. <variable name='hapy_init_master' type='oui/non' description="Activer l'auto-création du modèle de machine virtuelle pour installer un module EOLE">
  109. <value>non</value>
  110. </variable>
  111. <variable name='hapy_init_master_iso_version' type='string' description="Version de l'image ISO EOLE à télécharger" mandatory="True"/>
  112. <variable name='hapy_init_master_disk_size' type='number' description="Taille en giga-octets du disque dur vierge">
  113. <value>40</value>
  114. </variable>
  115. </family>
  116. <family name='Hooks' icon='anchor'>
  117. <variable name='hapy_vm_hooks' type='oui/non' description="Hooks sur les machines virtuelles" mode='expert' mandatory='True'>
  118. <value>non</value>
  119. </variable>
  120. <variable name='hapy_vm_hook' type='string' description="Nom du hook des machines virtuelles" multi='True' mode='expert'/>
  121. <variable name='hapy_vm_hook_on' type='string' description="Déclencheur (on)" mode='expert'/>
  122. <variable name='hapy_vm_hook_command' type='string' description="Script à déclencher (command)" mode='expert'/>
  123. <variable name='hapy_vm_hook_arguments' type='string' description="Arguments à passer au script (arguments)" mode='expert'/>
  124. <variable name='hapy_vm_hook_remote' type='oui/non' description="Exécuter sur les nœuds (remote)" mode='expert'>
  125. <value>non</value>
  126. </variable>
  127. <variable name='hapy_vm_hook_state' type='string' description='État attendu en déclencheur CUSTOM (state)' mode='expert'/>
  128. <variable name='hapy_vm_hook_lcm_state' type='string' description='État LCM attendu en déclencheur CUSTOM (lcm_state)' mode='expert'/>
  129. <variable name='hapy_user_hooks' type='oui/non' description="Hooks sur les utilisateurs" mode='expert' mandatory='True'>
  130. <value>non</value>
  131. </variable>
  132. <variable name='hapy_user_hook' type='string' description="Nom du hook d'utilisateur" multi='True' mode='expert'/>
  133. <variable name='hapy_user_hook_on' type='string' description="Déclencheur (on)" mode='expert' mandatory='True'/>
  134. <variable name='hapy_user_hook_command' type='string' description="Script à déclencher (command)" mode='expert' mandatory='True'/>
  135. <variable name='hapy_user_hook_arguments' type='string' description="Arguments à passer au script (arguments)" mode='expert'/>
  136. </family>
  137. <separators>
  138. <separator name="one_database_type">Configuration de la base de données</separator>
  139. <separator name='vnet_pilote'>Configuration des réseaux de l'orchestrateur</separator>
  140. <separator name='one_ds_system_prefix'>Configuration de l'orchestrateur</separator>
  141. <separator name='activer_one_ha'>Configuration des nœuds de virtualisation</separator>
  142. </separators>
  143. </variables>
  144. <constraints>
  145. <check name="valid_enum" target="vnet_pilote">
  146. <param>['openvswitch']</param>
  147. </check>
  148. <auto name='calc_multi_condition' target='activer_openvswitch'>
  149. <param>openvswitch</param>
  150. <param type="eole" name="condition_1">vnet_pilote</param>
  151. </auto>
  152. <check name="valid_enum" target="one_database_type">
  153. <param>['sqlite','mysql']</param>
  154. </check>
  155. <check name='valid_enum' target='one_video_driver'>
  156. <param>['qxl','vga','std','cirrus']</param>
  157. <param name='checkval'>False</param>
  158. </check>
  159. <condition name='disabled_if_in' source='activer_onesinglenode'>
  160. <param>non</param>
  161. <target type='filelist'>onesinglenode</target>
  162. <target type='family'>Modèle</target>
  163. <target type='variable'>one_ds_system_prefix</target>
  164. <target type='variable'>one_ds_iso_name</target>
  165. <target type='variable'>one_ds_image_name</target>
  166. <target type='variable'>vnets</target>
  167. <target type='variable'>vnet_network_addr</target>
  168. <target type='variable'>vnet_network_mask</target>
  169. <target type='variable'>vnet_network_dns</target>
  170. <target type='variable'>vnet_network_gw</target>
  171. <target type='variable'>vnet_range_start</target>
  172. <target type='variable'>vnet_range_size</target>
  173. <target type='variable'>vnet_vlan_tag</target>
  174. <target type='variable'>vnet_vlan_trunk</target>
  175. <target type='variable'>activer_multinode</target>
  176. <target type='variable'>l2_vnets</target>
  177. <target type='variable'>l2_vnet_first_mac</target>
  178. <target type='variable'>l2_vnet_size</target>
  179. <target type='variable'>l2_vnet_vlan_tag</target>
  180. <target type='variable'>l2_vnet_vlan_trunk</target>
  181. <target type='variable'>arp_cache_poisoning</target>
  182. </condition>
  183. <condition name="disabled_if_in" source="one_database_type">
  184. <param>sqlite</param>
  185. <target type="variable">one_database_host</target>
  186. <target type="variable">one_database_port</target>
  187. <target type="variable">one_database_name</target>
  188. <target type="variable">one_database_user</target>
  189. <target type="variable">one_database_pass</target>
  190. <target type="variable">one_database_connections</target>
  191. </condition>
  192. <check name="valid_enum" target="one_node_int">
  193. <param>['0','1','2','3','4']</param>
  194. </check>
  195. <auto name='concat' target='one_node_int_name'>
  196. <param>eth</param>
  197. <param type='eole'>one_node_int</param>
  198. </auto>
  199. <condition name='disabled_if_in' source='activer_multinode'>
  200. <param>non</param>
  201. <target type='variable'>one_nodes</target>
  202. <target type='variable'>one_node_int</target>
  203. <target type='variable'>one_node_int_name</target>
  204. </condition>
  205. <fill name='calc_val' target='activer_multinode'>
  206. <param type='eole' name='valeur'>activer_one_ha</param>
  207. </fill>
  208. <condition name='frozen_if_in' source='activer_one_ha'>
  209. <param>oui</param>
  210. <target type='variable'>activer_multinode</target>
  211. </condition>
  212. <condition name='disabled_if_in' source='activer_one_ha'>
  213. <param>non</param>
  214. <target type='variable'>one_ha_server_index</target>
  215. <target type='variable'>one_vip</target>
  216. <target type='variable'>one_vip_mask</target>
  217. <target type='service_accesslist'>sunstone_xmlrpc</target>
  218. <target type='filelist'>one_ha</target>
  219. </condition>
  220. <fill name='calc_val' target='one_vip_mask'>
  221. <param type='eole' name='valeur'>adresse_netmask_eth0</param>
  222. </fill>
  223. <check name="valid_differ" target="adresse_ip_eth0">
  224. <param type='eole' hidden='False'>one_vip</param>
  225. </check>
  226. <check name="valid_differ" target="adresse_ip_gw">
  227. <param type='eole' hidden='False'>one_vip</param>
  228. </check>
  229. <check name="valid_ipnetmask" target="one_vip_mask" level="warning">
  230. <param type='eole'>one_vip</param>
  231. </check>
  232. <group master='vnets'>
  233. <slave>vnet_range_start</slave>
  234. <slave>vnet_range_size</slave>
  235. <slave>vnet_network_addr</slave>
  236. <slave>vnet_network_mask</slave>
  237. <slave>vnet_network_gw</slave>
  238. <slave>vnet_network_dns</slave>
  239. <slave>vnet_vlan_tag</slave>
  240. <slave>vnet_vlan_trunk</slave>
  241. </group>
  242. <group master='l2_vnets'>
  243. <slave>l2_vnet_first_mac</slave>
  244. <slave>l2_vnet_size</slave>
  245. <slave>l2_vnet_vlan_tag</slave>
  246. <slave>l2_vnet_vlan_trunk</slave>
  247. </group>
  248. <check name='valid_enum' target='vnets'>
  249. <param>['internet','admin','pedago','dmzpub','dmzpriv','wifi']</param>
  250. <param name='checkval'>False</param>
  251. </check>
  252. <check name='valid_enum' target='l2_vnets'>
  253. <param>['internet','admin','pedago','dmzpub','dmzpriv','wifi']</param>
  254. <param name='checkval'>False</param>
  255. </check>
  256. <condition name='disabled_if_in' source='activer_openvswitch'>
  257. <param>non</param>
  258. <target type='variable'>vnets</target>
  259. <target type='variable'>vnet_network_addr</target>
  260. <target type='variable'>vnet_network_dns</target>
  261. <target type='variable'>vnet_network_mask</target>
  262. <target type='variable'>vnet_network_gw</target>
  263. <target type='variable'>vnet_range_start</target>
  264. <target type='variable'>vnet_range_size</target>
  265. <target type='variable'>vnet_vlan_tag</target>
  266. <target type='variable'>vnet_vlan_trunk</target>
  267. <target type='variable'>l2_vnet_first_mac</target>
  268. <target type='variable'>l2_vnet_size</target>
  269. <target type='variable'>l2_vnet_vlan_tag</target>
  270. <target type='variable'>l2_vnet_vlan_trunk</target>
  271. <target type='variable'>arp_cache_poisoning</target>
  272. </condition>
  273. <condition name='disabled_if_in' source='activer_hooks'>
  274. <param>non</param>
  275. <target type='family'>Hooks</target>
  276. </condition>
  277. <check name="valid_enum" target="hapy_vm_hook_on">
  278. <param>['CREATE','RUNNING','SHUTDOWN','STOP','DONE','UNKNOWN','FAILED','CUSTOM']</param>
  279. </check>
  280. <condition name='disabled_if_in' source='hapy_vm_hooks'>
  281. <param>non</param>
  282. <target type='variable'>hapy_vm_hook</target>
  283. </condition>
  284. <group master='hapy_vm_hook'>
  285. <slave>hapy_vm_hook_on</slave>
  286. <slave>hapy_vm_hook_command</slave>
  287. <slave>hapy_vm_hook_arguments</slave>
  288. <slave>hapy_vm_hook_remote</slave>
  289. <slave>hapy_vm_hook_state</slave>
  290. <slave>hapy_vm_hook_lcm_state</slave>
  291. </group>
  292. <check name="valid_enum" target="hapy_user_hook_on">
  293. <param>['CREATE','REMOVE']</param>
  294. </check>
  295. <condition name='disabled_if_in' source='hapy_user_hooks'>
  296. <param>non</param>
  297. <target type='variable'>hapy_user_hook</target>
  298. </condition>
  299. <group master='hapy_user_hook'>
  300. <slave>hapy_user_hook_on</slave>
  301. <slave>hapy_user_hook_command</slave>
  302. <slave>hapy_user_hook_arguments</slave>
  303. </group>
  304. <condition name='disabled_if_in' source='hapy_init_master'>
  305. <param>non</param>
  306. <target type='variable'>hapy_init_master_iso_version</target>
  307. <target type='variable'>hapy_init_master_disk_size</target>
  308. </condition>
  309. <fill name='calc_val' target='hapy_init_master_iso_version'>
  310. <param type='eole' name='valeur'>eole_release</param>
  311. </fill>
  312. <auto name='calc_network' target='vnet_network_addr'>
  313. <param type='eole' name='ip'>vnet_range_start</param>
  314. <param type='eole' name='netmask'>vnet_network_mask</param>
  315. </auto>
  316. <check name="valid_in_network" target="vnet_network_gw" level="warning">
  317. <param type='eole'>vnet_network_addr</param>
  318. <param type='eole'>vnet_network_mask</param>
  319. </check>
  320. <check name="valid_differ" target="vnet_network_gw" level="warning">
  321. <param type='eole'>vnet_range_start</param>
  322. </check>
  323. <check name="valid_differ" target="vnet_network_dns" level="warning">
  324. <param type='eole'>vnet_range_start</param>
  325. </check>
  326. </constraints>
  327. <help>
  328. <variable name='arp_cache_poisoning'>Active la protection contre les attaques par empoisonnement ARP. Non compatible avec les réseaux à plage d'adresse ethernet</variable>
  329. <family name='Hooks'>Gestion des hooks personnalisés</family>
  330. <variable name='hapy_vm_hook'>Nom du hook de machine virtuelle</variable>
  331. <variable name='hapy_vm_hook_on'>Déclencheur du hook</variable>
  332. <variable name='hapy_vm_hook_command'>Script lancé par le hook</variable>
  333. <variable name='hapy_vm_hook_arguments'>Arguments passés au script lancé par le hook de machine virtuelle</variable>
  334. <variable name='hapy_vm_hook_remote'>Exécuter le script sur le nœud plutôt que sur l'orchestrateur</variable>
  335. <variable name='hapy_vm_hook_state'>État attendu par le hook lorsque le déclencheur est "CUSTOM"</variable>
  336. <variable name='hapy_vm_hook_lcm_state'>État LCM attendu par le hook lorsque le déclencheur est "CUSTOM"</variable>
  337. <variable name='hapy_user_hook'>Nom du hook d'utilisateur</variable>
  338. <variable name='hapy_user_hook_on'>Déclencheur du hook</variable>
  339. <variable name='hapy_user_hook_command'>Script lancé par le hook</variable>
  340. <variable name='hapy_user_hook_arguments'>Arguments passés au script lancé par le hook</variable>
  341. <family name='Modèle'>Configuration d'un modèle de machine virtuelle par défaut</family>
  342. <variable name='hapy_init_master'>Initialiser OpenNebula avec quelques fonctions de base : ISO EOLE, Disque dur vierge et template d'installation d'Eolebase. ATTENTION, provoque le téléchargement de l'ISO EOLE</variable>
  343. <variable name='hapy_init_master_iso_version'>Version de l'ISO EOLE à télécharger lors de l'initialisation</variable>
  344. <variable name='vnets'>Réseau de type IPv4 (niveau 3 du modèle OSI)</variable>
  345. <variable name='l2_vnets'>Réseau de type ethernet (niveau 2 du modèle OSI)</variable>
  346. <variable name='one_ha_server_index'>Le leader à l'index 0, les followers commencent à 1</variable>
  347. <variable name='activer_one_ha'>Active la possibilité d'intégrer Hâpy dans une grappe de haute disponibilité OpenNebula</variable>
  348. <variable name="one_vip">Adresse IP virtuelle (VIP) utilisée pour joindre le "Leader" de la grappe, les usagés utiliseront cette IP pour contacter la grappe</variable>
  349. </help>
  350. </creole>