veewee-atlassian 0.3.11

Sign up to get free protection for your applications and to get access to all the features.
Files changed (1095) hide show
  1. data/.gitignore +19 -0
  2. data/.rvmrc +5 -0
  3. data/CONTRIBUTE.md +37 -0
  4. data/Gemfile +19 -0
  5. data/License +21 -0
  6. data/README.md +47 -0
  7. data/Rakefile +129 -0
  8. data/bin/veewee +27 -0
  9. data/doc/TODO +60 -0
  10. data/doc/customize.md +152 -0
  11. data/doc/definition.md +165 -0
  12. data/doc/fusion.md +2 -0
  13. data/doc/installation.md +44 -0
  14. data/doc/kvm.md +91 -0
  15. data/doc/providers.md +44 -0
  16. data/doc/requirements.md +36 -0
  17. data/doc/running.md +67 -0
  18. data/doc/vagrant.md +48 -0
  19. data/doc/vbox.md +2 -0
  20. data/lib/fission.rb +39 -0
  21. data/lib/fission/config.rb +76 -0
  22. data/lib/java/README.txt +5 -0
  23. data/lib/java/dir2floppy.jar +0 -0
  24. data/lib/java/dir2floppy.java +137 -0
  25. data/lib/net/vnc/vnc.rb +341 -0
  26. data/lib/python/parallels_sdk_check.py +19 -0
  27. data/lib/python/parallels_send_key.py +73 -0
  28. data/lib/python/parallels_send_string.py +76 -0
  29. data/lib/vagrant_init.rb +8 -0
  30. data/lib/veewee.rb +23 -0
  31. data/lib/veewee/cli.rb +55 -0
  32. data/lib/veewee/command.rb +15 -0
  33. data/lib/veewee/command/base.rb +106 -0
  34. data/lib/veewee/command/fusion.rb +170 -0
  35. data/lib/veewee/command/group_base.rb +108 -0
  36. data/lib/veewee/command/helpers.rb +13 -0
  37. data/lib/veewee/command/kvm.rb +130 -0
  38. data/lib/veewee/command/named_base.rb +14 -0
  39. data/lib/veewee/command/parallels.rb +126 -0
  40. data/lib/veewee/command/vagrant.rb +4 -0
  41. data/lib/veewee/command/vagrant/basebox.rb +88 -0
  42. data/lib/veewee/command/vagrant/build.rb +67 -0
  43. data/lib/veewee/command/vagrant/define.rb +48 -0
  44. data/lib/veewee/command/vagrant/destroy.rb +47 -0
  45. data/lib/veewee/command/vagrant/export.rb +54 -0
  46. data/lib/veewee/command/vagrant/halt.rb +43 -0
  47. data/lib/veewee/command/vagrant/list.rb +38 -0
  48. data/lib/veewee/command/vagrant/ostypes.rb +38 -0
  49. data/lib/veewee/command/vagrant/screenshot.rb +45 -0
  50. data/lib/veewee/command/vagrant/ssh.rb +38 -0
  51. data/lib/veewee/command/vagrant/templates.rb +39 -0
  52. data/lib/veewee/command/vagrant/undefine.rb +41 -0
  53. data/lib/veewee/command/vagrant/up.rb +44 -0
  54. data/lib/veewee/command/vagrant/validate.rb +46 -0
  55. data/lib/veewee/command/vagrant/winrm.rb +39 -0
  56. data/lib/veewee/command/vbox.rb +171 -0
  57. data/lib/veewee/command/version.rb +13 -0
  58. data/lib/veewee/config.rb +61 -0
  59. data/lib/veewee/config/collection.rb +82 -0
  60. data/lib/veewee/config/component.rb +19 -0
  61. data/lib/veewee/config/definition.rb +44 -0
  62. data/lib/veewee/config/ostypes.yml +340 -0
  63. data/lib/veewee/config/veewee.rb +21 -0
  64. data/lib/veewee/config/vmfusion-ostypes.txt +1 -0
  65. data/lib/veewee/definition.rb +231 -0
  66. data/lib/veewee/definitions.rb +172 -0
  67. data/lib/veewee/environment.rb +213 -0
  68. data/lib/veewee/error.rb +38 -0
  69. data/lib/veewee/provider/core/box.rb +104 -0
  70. data/lib/veewee/provider/core/box/build.rb +287 -0
  71. data/lib/veewee/provider/core/box/copy.rb +17 -0
  72. data/lib/veewee/provider/core/box/exec.rb +53 -0
  73. data/lib/veewee/provider/core/box/floppy.rb +32 -0
  74. data/lib/veewee/provider/core/box/halt.rb +28 -0
  75. data/lib/veewee/provider/core/box/issh.rb +15 -0
  76. data/lib/veewee/provider/core/box/poweroff.rb +12 -0
  77. data/lib/veewee/provider/core/box/scp.rb +29 -0
  78. data/lib/veewee/provider/core/box/ssh.rb +95 -0
  79. data/lib/veewee/provider/core/box/sudo.rb +21 -0
  80. data/lib/veewee/provider/core/box/validate_tags.rb +64 -0
  81. data/lib/veewee/provider/core/box/vnc.rb +122 -0
  82. data/lib/veewee/provider/core/box/wincp.rb +120 -0
  83. data/lib/veewee/provider/core/box/winrm.rb +59 -0
  84. data/lib/veewee/provider/core/helper/comm.rb +47 -0
  85. data/lib/veewee/provider/core/helper/iso.rb +162 -0
  86. data/lib/veewee/provider/core/helper/scancode.rb +97 -0
  87. data/lib/veewee/provider/core/helper/shell.rb +56 -0
  88. data/lib/veewee/provider/core/helper/ssh.rb +165 -0
  89. data/lib/veewee/provider/core/helper/tcp.rb +102 -0
  90. data/lib/veewee/provider/core/helper/web.rb +83 -0
  91. data/lib/veewee/provider/core/helper/winrm.rb +167 -0
  92. data/lib/veewee/provider/core/provider.rb +85 -0
  93. data/lib/veewee/provider/core/provider/transaction.rb +25 -0
  94. data/lib/veewee/provider/core/provider/tunnel.rb +46 -0
  95. data/lib/veewee/provider/kvm/box.rb +47 -0
  96. data/lib/veewee/provider/kvm/box/build.rb +11 -0
  97. data/lib/veewee/provider/kvm/box/create.rb +184 -0
  98. data/lib/veewee/provider/kvm/box/destroy.rb +32 -0
  99. data/lib/veewee/provider/kvm/box/halt.rb +19 -0
  100. data/lib/veewee/provider/kvm/box/helper/console_type.rb +20 -0
  101. data/lib/veewee/provider/kvm/box/helper/ip.rb +14 -0
  102. data/lib/veewee/provider/kvm/box/helper/ssh_options.rb +19 -0
  103. data/lib/veewee/provider/kvm/box/helper/status.rb +32 -0
  104. data/lib/veewee/provider/kvm/box/poweroff.rb +14 -0
  105. data/lib/veewee/provider/kvm/box/up.rb +14 -0
  106. data/lib/veewee/provider/kvm/box/validate_kvm.rb +15 -0
  107. data/lib/veewee/provider/kvm/provider.rb +62 -0
  108. data/lib/veewee/provider/parallels/box.rb +35 -0
  109. data/lib/veewee/provider/parallels/box/build.rb +13 -0
  110. data/lib/veewee/provider/parallels/box/create.rb +63 -0
  111. data/lib/veewee/provider/parallels/box/destroy.rb +23 -0
  112. data/lib/veewee/provider/parallels/box/halt.rb +14 -0
  113. data/lib/veewee/provider/parallels/box/helper/buildinfo.rb +45 -0
  114. data/lib/veewee/provider/parallels/box/helper/console_type.rb +181 -0
  115. data/lib/veewee/provider/parallels/box/helper/ip.rb +23 -0
  116. data/lib/veewee/provider/parallels/box/helper/ssh_options.rb +20 -0
  117. data/lib/veewee/provider/parallels/box/helper/status.rb +28 -0
  118. data/lib/veewee/provider/parallels/box/poweroff.rb +14 -0
  119. data/lib/veewee/provider/parallels/box/ssh.rb +12 -0
  120. data/lib/veewee/provider/parallels/box/up.rb +15 -0
  121. data/lib/veewee/provider/parallels/box/validate_parallels.rb +13 -0
  122. data/lib/veewee/provider/parallels/notes/parallels-sdk.txt +116 -0
  123. data/lib/veewee/provider/parallels/provider.rb +33 -0
  124. data/lib/veewee/provider/virtualbox/box.rb +48 -0
  125. data/lib/veewee/provider/virtualbox/box/build.rb +23 -0
  126. data/lib/veewee/provider/virtualbox/box/create.rb +78 -0
  127. data/lib/veewee/provider/virtualbox/box/destroy.rb +64 -0
  128. data/lib/veewee/provider/virtualbox/box/export_vagrant.rb +100 -0
  129. data/lib/veewee/provider/virtualbox/box/halt.rb +13 -0
  130. data/lib/veewee/provider/virtualbox/box/helper/buildinfo.rb +28 -0
  131. data/lib/veewee/provider/virtualbox/box/helper/console_type.rb +62 -0
  132. data/lib/veewee/provider/virtualbox/box/helper/create.rb +200 -0
  133. data/lib/veewee/provider/virtualbox/box/helper/forwarding.rb +38 -0
  134. data/lib/veewee/provider/virtualbox/box/helper/guest_additions.rb +16 -0
  135. data/lib/veewee/provider/virtualbox/box/helper/ip.rb +19 -0
  136. data/lib/veewee/provider/virtualbox/box/helper/natinterface.rb +17 -0
  137. data/lib/veewee/provider/virtualbox/box/helper/ssh_options.rb +28 -0
  138. data/lib/veewee/provider/virtualbox/box/helper/status.rb +29 -0
  139. data/lib/veewee/provider/virtualbox/box/helper/version.rb +28 -0
  140. data/lib/veewee/provider/virtualbox/box/helper/winrm_options.rb +31 -0
  141. data/lib/veewee/provider/virtualbox/box/poweroff.rb +19 -0
  142. data/lib/veewee/provider/virtualbox/box/screenshot.rb +24 -0
  143. data/lib/veewee/provider/virtualbox/box/ssh.rb +13 -0
  144. data/lib/veewee/provider/virtualbox/box/up.rb +68 -0
  145. data/lib/veewee/provider/virtualbox/box/validate_vagrant.rb +13 -0
  146. data/lib/veewee/provider/virtualbox/box/winrm.rb +13 -0
  147. data/lib/veewee/provider/virtualbox/provider.rb +19 -0
  148. data/lib/veewee/provider/vmfusion/box.rb +61 -0
  149. data/lib/veewee/provider/vmfusion/box/add_share.rb +18 -0
  150. data/lib/veewee/provider/vmfusion/box/build.rb +15 -0
  151. data/lib/veewee/provider/vmfusion/box/create.rb +64 -0
  152. data/lib/veewee/provider/vmfusion/box/destroy.rb +19 -0
  153. data/lib/veewee/provider/vmfusion/box/export_ova.rb +49 -0
  154. data/lib/veewee/provider/vmfusion/box/halt.rb +13 -0
  155. data/lib/veewee/provider/vmfusion/box/helper/buildinfo.rb +62 -0
  156. data/lib/veewee/provider/vmfusion/box/helper/console_type.rb +18 -0
  157. data/lib/veewee/provider/vmfusion/box/helper/ip.rb +64 -0
  158. data/lib/veewee/provider/vmfusion/box/helper/ssh_options.rb +20 -0
  159. data/lib/veewee/provider/vmfusion/box/helper/status.rb +20 -0
  160. data/lib/veewee/provider/vmfusion/box/helper/vnc.rb +61 -0
  161. data/lib/veewee/provider/vmfusion/box/helper/winrm_options.rb +21 -0
  162. data/lib/veewee/provider/vmfusion/box/poweroff.rb +13 -0
  163. data/lib/veewee/provider/vmfusion/box/ssh.rb +12 -0
  164. data/lib/veewee/provider/vmfusion/box/template.rb +61 -0
  165. data/lib/veewee/provider/vmfusion/box/template.vmx.erb +91 -0
  166. data/lib/veewee/provider/vmfusion/box/up.rb +18 -0
  167. data/lib/veewee/provider/vmfusion/box/validate_vmfusion.rb +13 -0
  168. data/lib/veewee/provider/vmfusion/box/winrm.rb +12 -0
  169. data/lib/veewee/provider/vmfusion/info/export_ovf.info +103 -0
  170. data/lib/veewee/provider/vmfusion/provider.rb +43 -0
  171. data/lib/veewee/providers.rb +32 -0
  172. data/lib/veewee/template.rb +26 -0
  173. data/lib/veewee/templates.rb +69 -0
  174. data/lib/veewee/templates/locales/en.yml +30 -0
  175. data/lib/veewee/ui.rb +87 -0
  176. data/lib/veewee/version.rb +8 -0
  177. data/templates/CentOS-4.8-i386/definition.rb +14 -0
  178. data/templates/CentOS-4.8-i386/ks.cfg +45 -0
  179. data/templates/CentOS-4.8-i386/postinstall.sh +55 -0
  180. data/templates/CentOS-5.5-i386-netboot/definition.rb +16 -0
  181. data/templates/CentOS-5.5-i386-netboot/ks.cfg +46 -0
  182. data/templates/CentOS-5.5-i386-netboot/postinstall.sh +60 -0
  183. data/templates/CentOS-5.5-x86_64-netboot/definition.rb +16 -0
  184. data/templates/CentOS-5.5-x86_64-netboot/ks.cfg +46 -0
  185. data/templates/CentOS-5.5-x86_64-netboot/postinstall.sh +61 -0
  186. data/templates/CentOS-5.6-i386-netboot/definition.rb +16 -0
  187. data/templates/CentOS-5.6-i386-netboot/ks.cfg +45 -0
  188. data/templates/CentOS-5.6-i386-netboot/postinstall.sh +64 -0
  189. data/templates/CentOS-5.6-i386/definition.rb +17 -0
  190. data/templates/CentOS-5.6-i386/ks.cfg +45 -0
  191. data/templates/CentOS-5.6-i386/postinstall.sh +50 -0
  192. data/templates/CentOS-5.6-x86_64-netboot-packages/definition.rb +16 -0
  193. data/templates/CentOS-5.6-x86_64-netboot-packages/ks.cfg +47 -0
  194. data/templates/CentOS-5.6-x86_64-netboot-packages/postinstall.sh +61 -0
  195. data/templates/CentOS-5.6-x86_64-netboot/definition.rb +16 -0
  196. data/templates/CentOS-5.6-x86_64-netboot/ks.cfg +45 -0
  197. data/templates/CentOS-5.6-x86_64-netboot/postinstall.sh +61 -0
  198. data/templates/CentOS-5.7-i386-netboot/definition.rb +16 -0
  199. data/templates/CentOS-5.7-i386-netboot/ks.cfg +47 -0
  200. data/templates/CentOS-5.7-i386-netboot/postinstall.sh +53 -0
  201. data/templates/CentOS-5.7-x86_64-netboot/definition.rb +16 -0
  202. data/templates/CentOS-5.7-x86_64-netboot/ks.cfg +47 -0
  203. data/templates/CentOS-5.7-x86_64-netboot/postinstall.sh +60 -0
  204. data/templates/CentOS-5.8-i386-netboot/definition.rb +16 -0
  205. data/templates/CentOS-5.8-i386-netboot/ks.cfg +47 -0
  206. data/templates/CentOS-5.8-i386-netboot/postinstall.sh +53 -0
  207. data/templates/CentOS-5.8-i386/definition.rb +16 -0
  208. data/templates/CentOS-5.8-i386/ks.cfg +47 -0
  209. data/templates/CentOS-5.8-i386/postinstall.sh +53 -0
  210. data/templates/CentOS-5.8-x86_64-netboot/definition.rb +16 -0
  211. data/templates/CentOS-5.8-x86_64-netboot/ks.cfg +47 -0
  212. data/templates/CentOS-5.8-x86_64-netboot/postinstall.sh +53 -0
  213. data/templates/CentOS-5.8-x86_64/definition.rb +16 -0
  214. data/templates/CentOS-5.8-x86_64/ks.cfg +47 -0
  215. data/templates/CentOS-5.8-x86_64/postinstall.sh +60 -0
  216. data/templates/CentOS-5.9-i386-netboot/definition.rb +16 -0
  217. data/templates/CentOS-5.9-i386-netboot/ks.cfg +47 -0
  218. data/templates/CentOS-5.9-i386-netboot/postinstall.sh +56 -0
  219. data/templates/CentOS-5.9-i386/definition.rb +16 -0
  220. data/templates/CentOS-5.9-i386/ks.cfg +47 -0
  221. data/templates/CentOS-5.9-i386/postinstall.sh +56 -0
  222. data/templates/CentOS-5.9-x86_64-netboot/definition.rb +16 -0
  223. data/templates/CentOS-5.9-x86_64-netboot/ks.cfg +47 -0
  224. data/templates/CentOS-5.9-x86_64-netboot/postinstall.sh +56 -0
  225. data/templates/CentOS-5.9-x86_64/definition.rb +16 -0
  226. data/templates/CentOS-5.9-x86_64/ks.cfg +47 -0
  227. data/templates/CentOS-5.9-x86_64/postinstall.sh +63 -0
  228. data/templates/CentOS-6.0-i386-netboot/base.sh +14 -0
  229. data/templates/CentOS-6.0-i386-netboot/chef.sh +3 -0
  230. data/templates/CentOS-6.0-i386-netboot/cleanup.sh +5 -0
  231. data/templates/CentOS-6.0-i386-netboot/definition.rb +40 -0
  232. data/templates/CentOS-6.0-i386-netboot/ks.cfg +42 -0
  233. data/templates/CentOS-6.0-i386-netboot/puppet.sh +12 -0
  234. data/templates/CentOS-6.0-i386-netboot/ruby.sh +3 -0
  235. data/templates/CentOS-6.0-i386-netboot/vagrant.sh +18 -0
  236. data/templates/CentOS-6.0-i386-netboot/virtualbox.sh +8 -0
  237. data/templates/CentOS-6.0-i386-netboot/zerodisk.sh +3 -0
  238. data/templates/CentOS-6.0-i386/base.sh +22 -0
  239. data/templates/CentOS-6.0-i386/chef.sh +3 -0
  240. data/templates/CentOS-6.0-i386/cleanup.sh +5 -0
  241. data/templates/CentOS-6.0-i386/definition.rb +40 -0
  242. data/templates/CentOS-6.0-i386/ks.cfg +42 -0
  243. data/templates/CentOS-6.0-i386/puppet.sh +12 -0
  244. data/templates/CentOS-6.0-i386/ruby.sh +3 -0
  245. data/templates/CentOS-6.0-i386/vagrant.sh +18 -0
  246. data/templates/CentOS-6.0-i386/virtualbox.sh +8 -0
  247. data/templates/CentOS-6.0-i386/zerodisk.sh +3 -0
  248. data/templates/CentOS-6.0-x86_64-minimal/base.sh +22 -0
  249. data/templates/CentOS-6.0-x86_64-minimal/chef.sh +3 -0
  250. data/templates/CentOS-6.0-x86_64-minimal/cleanup.sh +5 -0
  251. data/templates/CentOS-6.0-x86_64-minimal/definition.rb +40 -0
  252. data/templates/CentOS-6.0-x86_64-minimal/ks.cfg +42 -0
  253. data/templates/CentOS-6.0-x86_64-minimal/puppet.sh +12 -0
  254. data/templates/CentOS-6.0-x86_64-minimal/ruby.sh +3 -0
  255. data/templates/CentOS-6.0-x86_64-minimal/vagrant.sh +18 -0
  256. data/templates/CentOS-6.0-x86_64-minimal/virtualbox.sh +8 -0
  257. data/templates/CentOS-6.0-x86_64-minimal/zerodisk.sh +3 -0
  258. data/templates/CentOS-6.0-x86_64-netboot/base.sh +14 -0
  259. data/templates/CentOS-6.0-x86_64-netboot/chef.sh +3 -0
  260. data/templates/CentOS-6.0-x86_64-netboot/cleanup.sh +5 -0
  261. data/templates/CentOS-6.0-x86_64-netboot/definition.rb +40 -0
  262. data/templates/CentOS-6.0-x86_64-netboot/ks.cfg +42 -0
  263. data/templates/CentOS-6.0-x86_64-netboot/puppet.sh +12 -0
  264. data/templates/CentOS-6.0-x86_64-netboot/ruby.sh +3 -0
  265. data/templates/CentOS-6.0-x86_64-netboot/vagrant.sh +18 -0
  266. data/templates/CentOS-6.0-x86_64-netboot/virtualbox.sh +8 -0
  267. data/templates/CentOS-6.0-x86_64-netboot/zerodisk.sh +3 -0
  268. data/templates/CentOS-6.0-x86_64/base.sh +22 -0
  269. data/templates/CentOS-6.0-x86_64/chef.sh +3 -0
  270. data/templates/CentOS-6.0-x86_64/cleanup.sh +5 -0
  271. data/templates/CentOS-6.0-x86_64/definition.rb +40 -0
  272. data/templates/CentOS-6.0-x86_64/ks.cfg +42 -0
  273. data/templates/CentOS-6.0-x86_64/puppet.sh +12 -0
  274. data/templates/CentOS-6.0-x86_64/ruby.sh +3 -0
  275. data/templates/CentOS-6.0-x86_64/vagrant.sh +18 -0
  276. data/templates/CentOS-6.0-x86_64/virtualbox.sh +8 -0
  277. data/templates/CentOS-6.0-x86_64/zerodisk.sh +3 -0
  278. data/templates/CentOS-6.1-x86_64-minimal/base.sh +22 -0
  279. data/templates/CentOS-6.1-x86_64-minimal/chef.sh +3 -0
  280. data/templates/CentOS-6.1-x86_64-minimal/cleanup.sh +5 -0
  281. data/templates/CentOS-6.1-x86_64-minimal/definition.rb +40 -0
  282. data/templates/CentOS-6.1-x86_64-minimal/ks.cfg +42 -0
  283. data/templates/CentOS-6.1-x86_64-minimal/puppet.sh +12 -0
  284. data/templates/CentOS-6.1-x86_64-minimal/ruby.sh +3 -0
  285. data/templates/CentOS-6.1-x86_64-minimal/vagrant.sh +18 -0
  286. data/templates/CentOS-6.1-x86_64-minimal/virtualbox.sh +8 -0
  287. data/templates/CentOS-6.1-x86_64-minimal/zerodisk.sh +3 -0
  288. data/templates/CentOS-6.1-x86_64-netboot/base.sh +14 -0
  289. data/templates/CentOS-6.1-x86_64-netboot/chef.sh +3 -0
  290. data/templates/CentOS-6.1-x86_64-netboot/cleanup.sh +5 -0
  291. data/templates/CentOS-6.1-x86_64-netboot/definition.rb +40 -0
  292. data/templates/CentOS-6.1-x86_64-netboot/ks.cfg +42 -0
  293. data/templates/CentOS-6.1-x86_64-netboot/puppet.sh +12 -0
  294. data/templates/CentOS-6.1-x86_64-netboot/ruby.sh +3 -0
  295. data/templates/CentOS-6.1-x86_64-netboot/vagrant.sh +18 -0
  296. data/templates/CentOS-6.1-x86_64-netboot/virtualbox.sh +8 -0
  297. data/templates/CentOS-6.1-x86_64-netboot/zerodisk.sh +3 -0
  298. data/templates/CentOS-6.2-i386-minimal/base.sh +22 -0
  299. data/templates/CentOS-6.2-i386-minimal/chef.sh +3 -0
  300. data/templates/CentOS-6.2-i386-minimal/cleanup.sh +5 -0
  301. data/templates/CentOS-6.2-i386-minimal/definition.rb +40 -0
  302. data/templates/CentOS-6.2-i386-minimal/ks.cfg +42 -0
  303. data/templates/CentOS-6.2-i386-minimal/puppet.sh +12 -0
  304. data/templates/CentOS-6.2-i386-minimal/ruby.sh +3 -0
  305. data/templates/CentOS-6.2-i386-minimal/vagrant.sh +18 -0
  306. data/templates/CentOS-6.2-i386-minimal/virtualbox.sh +8 -0
  307. data/templates/CentOS-6.2-i386-minimal/zerodisk.sh +3 -0
  308. data/templates/CentOS-6.2-x86_64-minimal/base.sh +22 -0
  309. data/templates/CentOS-6.2-x86_64-minimal/chef.sh +3 -0
  310. data/templates/CentOS-6.2-x86_64-minimal/cleanup.sh +5 -0
  311. data/templates/CentOS-6.2-x86_64-minimal/definition.rb +40 -0
  312. data/templates/CentOS-6.2-x86_64-minimal/ks.cfg +42 -0
  313. data/templates/CentOS-6.2-x86_64-minimal/puppet.sh +12 -0
  314. data/templates/CentOS-6.2-x86_64-minimal/ruby.sh +3 -0
  315. data/templates/CentOS-6.2-x86_64-minimal/vagrant.sh +18 -0
  316. data/templates/CentOS-6.2-x86_64-minimal/virtualbox.sh +8 -0
  317. data/templates/CentOS-6.2-x86_64-minimal/zerodisk.sh +3 -0
  318. data/templates/CentOS-6.2-x86_64-netboot/base.sh +14 -0
  319. data/templates/CentOS-6.2-x86_64-netboot/chef.sh +3 -0
  320. data/templates/CentOS-6.2-x86_64-netboot/cleanup.sh +5 -0
  321. data/templates/CentOS-6.2-x86_64-netboot/definition.rb +40 -0
  322. data/templates/CentOS-6.2-x86_64-netboot/ks.cfg +42 -0
  323. data/templates/CentOS-6.2-x86_64-netboot/puppet.sh +12 -0
  324. data/templates/CentOS-6.2-x86_64-netboot/ruby.sh +3 -0
  325. data/templates/CentOS-6.2-x86_64-netboot/vagrant.sh +18 -0
  326. data/templates/CentOS-6.2-x86_64-netboot/virtualbox.sh +8 -0
  327. data/templates/CentOS-6.2-x86_64-netboot/zerodisk.sh +3 -0
  328. data/templates/CentOS-6.3-i386-minimal/base.sh +14 -0
  329. data/templates/CentOS-6.3-i386-minimal/chef.sh +3 -0
  330. data/templates/CentOS-6.3-i386-minimal/cleanup.sh +5 -0
  331. data/templates/CentOS-6.3-i386-minimal/definition.rb +49 -0
  332. data/templates/CentOS-6.3-i386-minimal/ks.cfg +78 -0
  333. data/templates/CentOS-6.3-i386-minimal/puppet.sh +12 -0
  334. data/templates/CentOS-6.3-i386-minimal/ruby.sh +3 -0
  335. data/templates/CentOS-6.3-i386-minimal/vagrant.sh +18 -0
  336. data/templates/CentOS-6.3-i386-minimal/virtualbox.sh +8 -0
  337. data/templates/CentOS-6.3-i386-minimal/zerodisk.sh +3 -0
  338. data/templates/CentOS-6.3-x86_64-minimal/base.sh +14 -0
  339. data/templates/CentOS-6.3-x86_64-minimal/chef.sh +3 -0
  340. data/templates/CentOS-6.3-x86_64-minimal/cleanup.sh +5 -0
  341. data/templates/CentOS-6.3-x86_64-minimal/definition.rb +40 -0
  342. data/templates/CentOS-6.3-x86_64-minimal/ks.cfg +42 -0
  343. data/templates/CentOS-6.3-x86_64-minimal/puppet.sh +12 -0
  344. data/templates/CentOS-6.3-x86_64-minimal/ruby.sh +3 -0
  345. data/templates/CentOS-6.3-x86_64-minimal/vagrant.sh +18 -0
  346. data/templates/CentOS-6.3-x86_64-minimal/virtualbox.sh +8 -0
  347. data/templates/CentOS-6.3-x86_64-minimal/zerodisk.sh +3 -0
  348. data/templates/CentOS-6.3-x86_64-netboot/base.sh +14 -0
  349. data/templates/CentOS-6.3-x86_64-netboot/cfengine.sh +69 -0
  350. data/templates/CentOS-6.3-x86_64-netboot/chef.sh +3 -0
  351. data/templates/CentOS-6.3-x86_64-netboot/cleanup.sh +5 -0
  352. data/templates/CentOS-6.3-x86_64-netboot/definition.rb +40 -0
  353. data/templates/CentOS-6.3-x86_64-netboot/ks.cfg +41 -0
  354. data/templates/CentOS-6.3-x86_64-netboot/puppet.sh +12 -0
  355. data/templates/CentOS-6.3-x86_64-netboot/ruby.sh +3 -0
  356. data/templates/CentOS-6.3-x86_64-netboot/vagrant.sh +18 -0
  357. data/templates/CentOS-6.3-x86_64-netboot/virtualbox.sh +8 -0
  358. data/templates/CentOS-6.3-x86_64-netboot/zerodisk.sh +3 -0
  359. data/templates/Debian-5.0.10-amd64-netboot/base.sh +9 -0
  360. data/templates/Debian-5.0.10-amd64-netboot/chef.sh +2 -0
  361. data/templates/Debian-5.0.10-amd64-netboot/cleanup.sh +10 -0
  362. data/templates/Debian-5.0.10-amd64-netboot/definition.rb +39 -0
  363. data/templates/Debian-5.0.10-amd64-netboot/postinstall.sh +60 -0
  364. data/templates/Debian-5.0.10-amd64-netboot/preseed.cfg +312 -0
  365. data/templates/Debian-5.0.10-amd64-netboot/puppet.sh +2 -0
  366. data/templates/Debian-5.0.10-amd64-netboot/ruby.sh +11 -0
  367. data/templates/Debian-5.0.10-amd64-netboot/vagrant.sh +14 -0
  368. data/templates/Debian-5.0.10-amd64-netboot/virtualbox.sh +15 -0
  369. data/templates/Debian-5.0.10-i386-netboot/base.sh +9 -0
  370. data/templates/Debian-5.0.10-i386-netboot/chef.sh +2 -0
  371. data/templates/Debian-5.0.10-i386-netboot/cleanup.sh +10 -0
  372. data/templates/Debian-5.0.10-i386-netboot/definition.rb +39 -0
  373. data/templates/Debian-5.0.10-i386-netboot/postinstall.sh +60 -0
  374. data/templates/Debian-5.0.10-i386-netboot/preseed.cfg +312 -0
  375. data/templates/Debian-5.0.10-i386-netboot/puppet.sh +2 -0
  376. data/templates/Debian-5.0.10-i386-netboot/ruby.sh +11 -0
  377. data/templates/Debian-5.0.10-i386-netboot/vagrant.sh +14 -0
  378. data/templates/Debian-5.0.10-i386-netboot/virtualbox.sh +15 -0
  379. data/templates/Debian-5.0.8-amd64-netboot/base.sh +9 -0
  380. data/templates/Debian-5.0.8-amd64-netboot/chef.sh +2 -0
  381. data/templates/Debian-5.0.8-amd64-netboot/cleanup.sh +10 -0
  382. data/templates/Debian-5.0.8-amd64-netboot/definition.rb +39 -0
  383. data/templates/Debian-5.0.8-amd64-netboot/postinstall.sh +60 -0
  384. data/templates/Debian-5.0.8-amd64-netboot/preseed.cfg +312 -0
  385. data/templates/Debian-5.0.8-amd64-netboot/puppet.sh +2 -0
  386. data/templates/Debian-5.0.8-amd64-netboot/ruby.sh +11 -0
  387. data/templates/Debian-5.0.8-amd64-netboot/vagrant.sh +14 -0
  388. data/templates/Debian-5.0.8-amd64-netboot/virtualbox.sh +15 -0
  389. data/templates/Debian-5.0.8-i386-netboot/base.sh +9 -0
  390. data/templates/Debian-5.0.8-i386-netboot/chef.sh +2 -0
  391. data/templates/Debian-5.0.8-i386-netboot/cleanup.sh +10 -0
  392. data/templates/Debian-5.0.8-i386-netboot/definition.rb +39 -0
  393. data/templates/Debian-5.0.8-i386-netboot/postinstall.sh +60 -0
  394. data/templates/Debian-5.0.8-i386-netboot/preseed.cfg +312 -0
  395. data/templates/Debian-5.0.8-i386-netboot/puppet.sh +2 -0
  396. data/templates/Debian-5.0.8-i386-netboot/ruby.sh +11 -0
  397. data/templates/Debian-5.0.8-i386-netboot/vagrant.sh +14 -0
  398. data/templates/Debian-5.0.8-i386-netboot/virtualbox.sh +15 -0
  399. data/templates/Debian-6.0.3-amd64-netboot/base.sh +27 -0
  400. data/templates/Debian-6.0.3-amd64-netboot/chef.sh +2 -0
  401. data/templates/Debian-6.0.3-amd64-netboot/cleanup-virtualbox.sh +2 -0
  402. data/templates/Debian-6.0.3-amd64-netboot/cleanup.sh +18 -0
  403. data/templates/Debian-6.0.3-amd64-netboot/definition.rb +40 -0
  404. data/templates/Debian-6.0.3-amd64-netboot/postinstall.sh +80 -0
  405. data/templates/Debian-6.0.3-amd64-netboot/preseed.cfg +312 -0
  406. data/templates/Debian-6.0.3-amd64-netboot/puppet.sh +2 -0
  407. data/templates/Debian-6.0.3-amd64-netboot/ruby.sh +10 -0
  408. data/templates/Debian-6.0.3-amd64-netboot/vagrant.sh +25 -0
  409. data/templates/Debian-6.0.3-amd64-netboot/virtualbox.sh +15 -0
  410. data/templates/Debian-6.0.3-amd64-netboot/zerodisk.sh +3 -0
  411. data/templates/Debian-6.0.3-i386-netboot/base.sh +27 -0
  412. data/templates/Debian-6.0.3-i386-netboot/chef.sh +2 -0
  413. data/templates/Debian-6.0.3-i386-netboot/cleanup-virtualbox.sh +2 -0
  414. data/templates/Debian-6.0.3-i386-netboot/cleanup.sh +18 -0
  415. data/templates/Debian-6.0.3-i386-netboot/definition.rb +41 -0
  416. data/templates/Debian-6.0.3-i386-netboot/postinstall.sh +80 -0
  417. data/templates/Debian-6.0.3-i386-netboot/preseed.cfg +312 -0
  418. data/templates/Debian-6.0.3-i386-netboot/puppet.sh +2 -0
  419. data/templates/Debian-6.0.3-i386-netboot/ruby.sh +10 -0
  420. data/templates/Debian-6.0.3-i386-netboot/vagrant.sh +25 -0
  421. data/templates/Debian-6.0.3-i386-netboot/virtualbox.sh +15 -0
  422. data/templates/Debian-6.0.3-i386-netboot/zerodisk.sh +3 -0
  423. data/templates/Debian-6.0.4-amd64-netboot/base.sh +27 -0
  424. data/templates/Debian-6.0.4-amd64-netboot/chef.sh +2 -0
  425. data/templates/Debian-6.0.4-amd64-netboot/cleanup-virtualbox.sh +4 -0
  426. data/templates/Debian-6.0.4-amd64-netboot/cleanup.sh +17 -0
  427. data/templates/Debian-6.0.4-amd64-netboot/definition.rb +49 -0
  428. data/templates/Debian-6.0.4-amd64-netboot/preseed.cfg +315 -0
  429. data/templates/Debian-6.0.4-amd64-netboot/puppet.sh +2 -0
  430. data/templates/Debian-6.0.4-amd64-netboot/ruby.sh +10 -0
  431. data/templates/Debian-6.0.4-amd64-netboot/vagrant.sh +25 -0
  432. data/templates/Debian-6.0.4-amd64-netboot/virtualbox.sh +13 -0
  433. data/templates/Debian-6.0.4-amd64-netboot/zerodisk.sh +3 -0
  434. data/templates/Debian-6.0.4-i386-netboot/base.sh +27 -0
  435. data/templates/Debian-6.0.4-i386-netboot/chef.sh +2 -0
  436. data/templates/Debian-6.0.4-i386-netboot/cleanup-virtualbox.sh +4 -0
  437. data/templates/Debian-6.0.4-i386-netboot/cleanup.sh +17 -0
  438. data/templates/Debian-6.0.4-i386-netboot/definition.rb +51 -0
  439. data/templates/Debian-6.0.4-i386-netboot/preseed.cfg +315 -0
  440. data/templates/Debian-6.0.4-i386-netboot/puppet.sh +2 -0
  441. data/templates/Debian-6.0.4-i386-netboot/ruby.sh +10 -0
  442. data/templates/Debian-6.0.4-i386-netboot/vagrant.sh +25 -0
  443. data/templates/Debian-6.0.4-i386-netboot/virtualbox.sh +13 -0
  444. data/templates/Debian-6.0.4-i386-netboot/zerodisk.sh +3 -0
  445. data/templates/Debian-6.0.5-amd64-netboot/base.sh +27 -0
  446. data/templates/Debian-6.0.5-amd64-netboot/chef.sh +2 -0
  447. data/templates/Debian-6.0.5-amd64-netboot/cleanup-virtualbox.sh +4 -0
  448. data/templates/Debian-6.0.5-amd64-netboot/cleanup.sh +17 -0
  449. data/templates/Debian-6.0.5-amd64-netboot/definition.rb +49 -0
  450. data/templates/Debian-6.0.5-amd64-netboot/preseed.cfg +315 -0
  451. data/templates/Debian-6.0.5-amd64-netboot/puppet.sh +2 -0
  452. data/templates/Debian-6.0.5-amd64-netboot/ruby.sh +10 -0
  453. data/templates/Debian-6.0.5-amd64-netboot/vagrant.sh +25 -0
  454. data/templates/Debian-6.0.5-amd64-netboot/virtualbox.sh +13 -0
  455. data/templates/Debian-6.0.5-amd64-netboot/zerodisk.sh +3 -0
  456. data/templates/Debian-6.0.5-i386-netboot/base.sh +27 -0
  457. data/templates/Debian-6.0.5-i386-netboot/chef.sh +2 -0
  458. data/templates/Debian-6.0.5-i386-netboot/cleanup-virtualbox.sh +4 -0
  459. data/templates/Debian-6.0.5-i386-netboot/cleanup.sh +17 -0
  460. data/templates/Debian-6.0.5-i386-netboot/definition.rb +51 -0
  461. data/templates/Debian-6.0.5-i386-netboot/preseed.cfg +315 -0
  462. data/templates/Debian-6.0.5-i386-netboot/puppet.sh +2 -0
  463. data/templates/Debian-6.0.5-i386-netboot/ruby.sh +10 -0
  464. data/templates/Debian-6.0.5-i386-netboot/vagrant.sh +25 -0
  465. data/templates/Debian-6.0.5-i386-netboot/virtualbox.sh +13 -0
  466. data/templates/Debian-6.0.5-i386-netboot/zerodisk.sh +3 -0
  467. data/templates/Debian-6.0.6-amd64-netboot/base.sh +27 -0
  468. data/templates/Debian-6.0.6-amd64-netboot/chef.sh +2 -0
  469. data/templates/Debian-6.0.6-amd64-netboot/cleanup-virtualbox.sh +4 -0
  470. data/templates/Debian-6.0.6-amd64-netboot/cleanup.sh +17 -0
  471. data/templates/Debian-6.0.6-amd64-netboot/definition.rb +49 -0
  472. data/templates/Debian-6.0.6-amd64-netboot/preseed.cfg +315 -0
  473. data/templates/Debian-6.0.6-amd64-netboot/puppet.sh +2 -0
  474. data/templates/Debian-6.0.6-amd64-netboot/ruby.sh +10 -0
  475. data/templates/Debian-6.0.6-amd64-netboot/vagrant.sh +25 -0
  476. data/templates/Debian-6.0.6-amd64-netboot/virtualbox.sh +14 -0
  477. data/templates/Debian-6.0.6-amd64-netboot/zerodisk.sh +3 -0
  478. data/templates/Debian-6.0.6-i386-netboot/base.sh +27 -0
  479. data/templates/Debian-6.0.6-i386-netboot/chef.sh +2 -0
  480. data/templates/Debian-6.0.6-i386-netboot/cleanup-virtualbox.sh +4 -0
  481. data/templates/Debian-6.0.6-i386-netboot/cleanup.sh +17 -0
  482. data/templates/Debian-6.0.6-i386-netboot/definition.rb +58 -0
  483. data/templates/Debian-6.0.6-i386-netboot/preseed.cfg +315 -0
  484. data/templates/Debian-6.0.6-i386-netboot/puppet.sh +2 -0
  485. data/templates/Debian-6.0.6-i386-netboot/ruby.sh +10 -0
  486. data/templates/Debian-6.0.6-i386-netboot/vagrant.sh +25 -0
  487. data/templates/Debian-6.0.6-i386-netboot/virtualbox.sh +13 -0
  488. data/templates/Debian-6.0.6-i386-netboot/zerodisk.sh +3 -0
  489. data/templates/Debian-7.0-b4-amd64-netboot/base.sh +26 -0
  490. data/templates/Debian-7.0-b4-amd64-netboot/chef.sh +2 -0
  491. data/templates/Debian-7.0-b4-amd64-netboot/cleanup-virtualbox.sh +4 -0
  492. data/templates/Debian-7.0-b4-amd64-netboot/cleanup.sh +17 -0
  493. data/templates/Debian-7.0-b4-amd64-netboot/definition.rb +51 -0
  494. data/templates/Debian-7.0-b4-amd64-netboot/preseed.cfg +313 -0
  495. data/templates/Debian-7.0-b4-amd64-netboot/puppet.sh +2 -0
  496. data/templates/Debian-7.0-b4-amd64-netboot/ruby.sh +10 -0
  497. data/templates/Debian-7.0-b4-amd64-netboot/vagrant.sh +25 -0
  498. data/templates/Debian-7.0-b4-amd64-netboot/virtualbox.sh +13 -0
  499. data/templates/Debian-7.0-b4-amd64-netboot/zerodisk.sh +3 -0
  500. data/templates/Debian-7.0-b4-i386-netboot/base.sh +26 -0
  501. data/templates/Debian-7.0-b4-i386-netboot/chef.sh +2 -0
  502. data/templates/Debian-7.0-b4-i386-netboot/cleanup-virtualbox.sh +4 -0
  503. data/templates/Debian-7.0-b4-i386-netboot/cleanup.sh +17 -0
  504. data/templates/Debian-7.0-b4-i386-netboot/definition.rb +52 -0
  505. data/templates/Debian-7.0-b4-i386-netboot/preseed.cfg +315 -0
  506. data/templates/Debian-7.0-b4-i386-netboot/puppet.sh +2 -0
  507. data/templates/Debian-7.0-b4-i386-netboot/ruby.sh +10 -0
  508. data/templates/Debian-7.0-b4-i386-netboot/vagrant.sh +25 -0
  509. data/templates/Debian-7.0-b4-i386-netboot/virtualbox.sh +13 -0
  510. data/templates/Debian-7.0-b4-i386-netboot/zerodisk.sh +3 -0
  511. data/templates/Fedora-14-amd64-netboot/definition.rb +16 -0
  512. data/templates/Fedora-14-amd64-netboot/ks.cfg +40 -0
  513. data/templates/Fedora-14-amd64-netboot/postinstall.sh +54 -0
  514. data/templates/Fedora-14-amd64/definition.rb +16 -0
  515. data/templates/Fedora-14-amd64/ks.cfg +41 -0
  516. data/templates/Fedora-14-amd64/postinstall.sh +54 -0
  517. data/templates/Fedora-14-i386-netboot/definition.rb +16 -0
  518. data/templates/Fedora-14-i386-netboot/ks.cfg +40 -0
  519. data/templates/Fedora-14-i386-netboot/postinstall.sh +54 -0
  520. data/templates/Fedora-14-i386/definition.rb +16 -0
  521. data/templates/Fedora-14-i386/ks.cfg +41 -0
  522. data/templates/Fedora-14-i386/postinstall.sh +54 -0
  523. data/templates/Fedora-15-i386-netboot/definition.rb +17 -0
  524. data/templates/Fedora-15-i386-netboot/ks.cfg +82 -0
  525. data/templates/Fedora-15-i386-netboot/postinstall.sh +18 -0
  526. data/templates/Fedora-15-i386/definition.rb +17 -0
  527. data/templates/Fedora-15-i386/ks.cfg +64 -0
  528. data/templates/Fedora-15-i386/postinstall.sh +33 -0
  529. data/templates/Fedora-15-x86_64-netboot/definition.rb +29 -0
  530. data/templates/Fedora-15-x86_64-netboot/ks.cfg +64 -0
  531. data/templates/Fedora-15-x86_64-netboot/postinstall.sh +33 -0
  532. data/templates/Fedora-15-x86_64/definition.rb +17 -0
  533. data/templates/Fedora-15-x86_64/ks.cfg +64 -0
  534. data/templates/Fedora-15-x86_64/postinstall.sh +33 -0
  535. data/templates/Fedora-16-i386/definition.rb +17 -0
  536. data/templates/Fedora-16-i386/ks.cfg +72 -0
  537. data/templates/Fedora-16-i386/postinstall.sh +35 -0
  538. data/templates/Fedora-16-x86_64-netboot/definition.rb +29 -0
  539. data/templates/Fedora-16-x86_64-netboot/ks.cfg +70 -0
  540. data/templates/Fedora-16-x86_64-netboot/postinstall.sh +26 -0
  541. data/templates/Fedora-16-x86_64/definition.rb +17 -0
  542. data/templates/Fedora-16-x86_64/ks.cfg +72 -0
  543. data/templates/Fedora-16-x86_64/postinstall.sh +35 -0
  544. data/templates/Fedora-17-i386/definition.rb +17 -0
  545. data/templates/Fedora-17-i386/ks.cfg +76 -0
  546. data/templates/Fedora-17-i386/postinstall.sh +35 -0
  547. data/templates/Fedora-17-x86_64/definition.rb +17 -0
  548. data/templates/Fedora-17-x86_64/ks.cfg +76 -0
  549. data/templates/Fedora-17-x86_64/postinstall.sh +35 -0
  550. data/templates/Fedora-18-i386/definition.rb +17 -0
  551. data/templates/Fedora-18-i386/ks.cfg +75 -0
  552. data/templates/Fedora-18-i386/postinstall.sh +40 -0
  553. data/templates/Fedora-18-x86_64/definition.rb +17 -0
  554. data/templates/Fedora-18-x86_64/ks.cfg +75 -0
  555. data/templates/Fedora-18-x86_64/postinstall.sh +43 -0
  556. data/templates/OracleLinux-6.3-x86_64-DVD/base.sh +30 -0
  557. data/templates/OracleLinux-6.3-x86_64-DVD/chef.sh +3 -0
  558. data/templates/OracleLinux-6.3-x86_64-DVD/cleanup.sh +5 -0
  559. data/templates/OracleLinux-6.3-x86_64-DVD/definition.rb +41 -0
  560. data/templates/OracleLinux-6.3-x86_64-DVD/ks.cfg +42 -0
  561. data/templates/OracleLinux-6.3-x86_64-DVD/nfs.sh +2 -0
  562. data/templates/OracleLinux-6.3-x86_64-DVD/puppet.sh +12 -0
  563. data/templates/OracleLinux-6.3-x86_64-DVD/ruby.sh +3 -0
  564. data/templates/OracleLinux-6.3-x86_64-DVD/vagrant.sh +18 -0
  565. data/templates/OracleLinux-6.3-x86_64-DVD/virtualbox.sh +8 -0
  566. data/templates/OracleLinux-6.3-x86_64-DVD/zerodisk.sh +3 -0
  567. data/templates/SLES-11-SP1-DVD-i586-GM/autoinst_de.xml +1127 -0
  568. data/templates/SLES-11-SP1-DVD-i586-GM/autoinst_en.xml +1127 -0
  569. data/templates/SLES-11-SP1-DVD-i586-GM/definition.rb +37 -0
  570. data/templates/SLES-11-SP1-DVD-i586-GM/postinstall.sh +46 -0
  571. data/templates/SLES-11-SP1-DVD-x86_64-GM/autoinst_de.xml +1171 -0
  572. data/templates/SLES-11-SP1-DVD-x86_64-GM/autoinst_en.xml +1171 -0
  573. data/templates/SLES-11-SP1-DVD-x86_64-GM/definition.rb +37 -0
  574. data/templates/SLES-11-SP1-DVD-x86_64-GM/postinstall.sh +46 -0
  575. data/templates/SLES-11-SP2-DVD-x86_64-GM/autoinst.xml +2578 -0
  576. data/templates/SLES-11-SP2-DVD-x86_64-GM/definition.rb +33 -0
  577. data/templates/SLES-11-SP2-DVD-x86_64-GM/postinstall.sh +51 -0
  578. data/templates/Sysrescuecd-2.0.0-experimental/autorun0 +3 -0
  579. data/templates/Sysrescuecd-2.0.0-experimental/definition.rb +20 -0
  580. data/templates/VMware-ESXi-5.0u2-x86_64/definition.rb +26 -0
  581. data/templates/VMware-ESXi-5.0u2-x86_64/ks.cfg +63 -0
  582. data/templates/VMware-ESXi-5.0u2-x86_64/vagrant_key.py +6 -0
  583. data/templates/VMware-ESXi-5.0u2-x86_64/vnc_enable.sh +40 -0
  584. data/templates/VMware-ESXi-5.1-x86_64/definition.rb +27 -0
  585. data/templates/VMware-ESXi-5.1-x86_64/ks.cfg +63 -0
  586. data/templates/VMware-ESXi-5.1-x86_64/vagrant_key.py +6 -0
  587. data/templates/VMware-ESXi-5.1-x86_64/vnc_enable.sh +39 -0
  588. data/templates/archlinux-i386-netboot/aif.cfg +28 -0
  589. data/templates/archlinux-i386-netboot/definition.rb +26 -0
  590. data/templates/archlinux-i386-netboot/postinstall.sh +75 -0
  591. data/templates/archlinux-i386-netboot/postinstall2.sh +30 -0
  592. data/templates/archlinux-i386/aif.cfg +33 -0
  593. data/templates/archlinux-i386/definition.rb +29 -0
  594. data/templates/archlinux-i386/postinstall.sh +106 -0
  595. data/templates/archlinux-x86_64-netboot/aif.cfg +28 -0
  596. data/templates/archlinux-x86_64-netboot/definition.rb +26 -0
  597. data/templates/archlinux-x86_64-netboot/postinstall.sh +75 -0
  598. data/templates/archlinux-x86_64-netboot/postinstall2.sh +30 -0
  599. data/templates/archlinux-x86_64/definition.rb +25 -0
  600. data/templates/archlinux-x86_64/postinstall.sh +104 -0
  601. data/templates/archlinux-x86_64/postinstall2.sh +37 -0
  602. data/templates/freebsd-8.2-experimental/definition.rb +19 -0
  603. data/templates/freebsd-8.2-experimental/postinstall.sh +191 -0
  604. data/templates/freebsd-8.2-pcbsd-i386-netboot/definition.rb +31 -0
  605. data/templates/freebsd-8.2-pcbsd-i386-netboot/pcinstall.fbg.cfg +58 -0
  606. data/templates/freebsd-8.2-pcbsd-i386-netboot/postinstall.sh +93 -0
  607. data/templates/freebsd-8.2-pcbsd-i386/definition.rb +32 -0
  608. data/templates/freebsd-8.2-pcbsd-i386/pcinstall.fbg.cfg +57 -0
  609. data/templates/freebsd-8.2-pcbsd-i386/postinstall.sh +93 -0
  610. data/templates/freebsd-9.0-RELEASE-amd64/definition.rb +19 -0
  611. data/templates/freebsd-9.0-RELEASE-amd64/postinstall.sh +93 -0
  612. data/templates/funtoo-latest-generic_64-stable/definition.rb +34 -0
  613. data/templates/funtoo-latest-generic_64-stable/postinstall.sh +177 -0
  614. data/templates/funtoo-latest-generic_64-stable/postinstall2.sh +83 -0
  615. data/templates/funtoo-latest-x86_64/definition.rb +37 -0
  616. data/templates/funtoo-latest-x86_64/postinstall.sh +401 -0
  617. data/templates/gentoo-latest-i386-experimental/definition.rb +45 -0
  618. data/templates/gentoo-latest-i386-experimental/postinstall.sh +184 -0
  619. data/templates/gentoo-latest-i686-experimental/base.sh +83 -0
  620. data/templates/gentoo-latest-i686-experimental/chef.sh +7 -0
  621. data/templates/gentoo-latest-i686-experimental/cleanup.sh +23 -0
  622. data/templates/gentoo-latest-i686-experimental/cron.sh +8 -0
  623. data/templates/gentoo-latest-i686-experimental/definition.rb +61 -0
  624. data/templates/gentoo-latest-i686-experimental/grub.sh +24 -0
  625. data/templates/gentoo-latest-i686-experimental/kernel.sh +108 -0
  626. data/templates/gentoo-latest-i686-experimental/nfs.sh +5 -0
  627. data/templates/gentoo-latest-i686-experimental/puppet.sh +7 -0
  628. data/templates/gentoo-latest-i686-experimental/reboot.sh +4 -0
  629. data/templates/gentoo-latest-i686-experimental/ruby_portage.sh +17 -0
  630. data/templates/gentoo-latest-i686-experimental/ruby_source.sh +15 -0
  631. data/templates/gentoo-latest-i686-experimental/settings.sh +36 -0
  632. data/templates/gentoo-latest-i686-experimental/syslog.sh +8 -0
  633. data/templates/gentoo-latest-i686-experimental/vagrant.sh +57 -0
  634. data/templates/gentoo-latest-i686-experimental/virtualbox.sh +18 -0
  635. data/templates/gentoo-latest-i686-experimental/zerodisk.sh +15 -0
  636. data/templates/gentoo-latest-x86_64-experimental/base.sh +83 -0
  637. data/templates/gentoo-latest-x86_64-experimental/chef.sh +7 -0
  638. data/templates/gentoo-latest-x86_64-experimental/cleanup.sh +23 -0
  639. data/templates/gentoo-latest-x86_64-experimental/cron.sh +8 -0
  640. data/templates/gentoo-latest-x86_64-experimental/definition.rb +58 -0
  641. data/templates/gentoo-latest-x86_64-experimental/grub.sh +24 -0
  642. data/templates/gentoo-latest-x86_64-experimental/kernel.sh +108 -0
  643. data/templates/gentoo-latest-x86_64-experimental/nfs.sh +5 -0
  644. data/templates/gentoo-latest-x86_64-experimental/puppet.sh +7 -0
  645. data/templates/gentoo-latest-x86_64-experimental/ruby.sh +17 -0
  646. data/templates/gentoo-latest-x86_64-experimental/settings.sh +33 -0
  647. data/templates/gentoo-latest-x86_64-experimental/syslog.sh +8 -0
  648. data/templates/gentoo-latest-x86_64-experimental/vagrant.sh +57 -0
  649. data/templates/gentoo-latest-x86_64-experimental/virtualbox.sh +18 -0
  650. data/templates/gentoo-latest-x86_64-experimental/zerodisk.sh +15 -0
  651. data/templates/openSUSE-11.4-DVD-i586/autoinst_de.xml +1284 -0
  652. data/templates/openSUSE-11.4-DVD-i586/autoinst_en.xml +1284 -0
  653. data/templates/openSUSE-11.4-DVD-i586/definition.rb +28 -0
  654. data/templates/openSUSE-11.4-DVD-i586/postinstall.sh +48 -0
  655. data/templates/openSUSE-11.4-DVD-x86_64/autoinst_de.xml +1459 -0
  656. data/templates/openSUSE-11.4-DVD-x86_64/autoinst_en.xml +1459 -0
  657. data/templates/openSUSE-11.4-DVD-x86_64/definition.rb +28 -0
  658. data/templates/openSUSE-11.4-DVD-x86_64/postinstall.sh +48 -0
  659. data/templates/openSUSE-11.4-NET-i586/autoinst_de.xml +1278 -0
  660. data/templates/openSUSE-11.4-NET-i586/autoinst_en.xml +1278 -0
  661. data/templates/openSUSE-11.4-NET-i586/definition.rb +28 -0
  662. data/templates/openSUSE-11.4-NET-i586/postinstall.sh +48 -0
  663. data/templates/openSUSE-11.4-NET-x86_64/autoinst_de.xml +1453 -0
  664. data/templates/openSUSE-11.4-NET-x86_64/autoinst_en.xml +1453 -0
  665. data/templates/openSUSE-11.4-NET-x86_64/definition.rb +28 -0
  666. data/templates/openSUSE-11.4-NET-x86_64/postinstall.sh +48 -0
  667. data/templates/openSUSE-12.1-DVD+NET-i586/autoinst_de.xml +1483 -0
  668. data/templates/openSUSE-12.1-DVD+NET-i586/autoinst_en.xml +1483 -0
  669. data/templates/openSUSE-12.1-DVD+NET-i586/definition.rb +44 -0
  670. data/templates/openSUSE-12.1-DVD+NET-i586/postinstall.sh +48 -0
  671. data/templates/openSUSE-12.1-DVD+NET-x86_64/autoinst_de.xml +1727 -0
  672. data/templates/openSUSE-12.1-DVD+NET-x86_64/autoinst_en.xml +1727 -0
  673. data/templates/openSUSE-12.1-DVD+NET-x86_64/definition.rb +44 -0
  674. data/templates/openSUSE-12.1-DVD+NET-x86_64/postinstall.sh +48 -0
  675. data/templates/openbsd50_amd64/README +28 -0
  676. data/templates/openbsd50_amd64/definition.rb +85 -0
  677. data/templates/openbsd50_amd64/postinstall.sh +81 -0
  678. data/templates/openbsd50_i386/README +28 -0
  679. data/templates/openbsd50_i386/definition.rb +84 -0
  680. data/templates/openbsd50_i386/postinstall.sh +80 -0
  681. data/templates/openbsd52_amd64/README +28 -0
  682. data/templates/openbsd52_amd64/definition.rb +85 -0
  683. data/templates/openbsd52_amd64/postinstall.sh +81 -0
  684. data/templates/openbsd52_i386/README +28 -0
  685. data/templates/openbsd52_i386/definition.rb +81 -0
  686. data/templates/openbsd52_i386/postinstall.sh +81 -0
  687. data/templates/openbsd52_i386_snap/README +28 -0
  688. data/templates/openbsd52_i386_snap/definition.rb +81 -0
  689. data/templates/openbsd52_i386_snap/postinstall.sh +81 -0
  690. data/templates/openindiana-148-ai-x86/auto_install/ai.dtd +58 -0
  691. data/templates/openindiana-148-ai-x86/auto_install/ai_manifest.xml +241 -0
  692. data/templates/openindiana-148-ai-x86/auto_install/configuration.dtd +44 -0
  693. data/templates/openindiana-148-ai-x86/auto_install/default.xml +121 -0
  694. data/templates/openindiana-148-ai-x86/auto_install/default.xml.orig +124 -0
  695. data/templates/openindiana-148-ai-x86/auto_install/sc_profiles/static_network.xml +105 -0
  696. data/templates/openindiana-148-ai-x86/auto_install/software.dtd +105 -0
  697. data/templates/openindiana-148-ai-x86/auto_install/target.dtd +196 -0
  698. data/templates/openindiana-148-ai-x86/default.xml +121 -0
  699. data/templates/openindiana-148-ai-x86/definition.rb +59 -0
  700. data/templates/openindiana-148-ai-x86/postinstall.sh +103 -0
  701. data/templates/openindiana-151a7-text-x86/auto_install/ai.dtd +58 -0
  702. data/templates/openindiana-151a7-text-x86/auto_install/ai_manifest.xml +241 -0
  703. data/templates/openindiana-151a7-text-x86/auto_install/configuration.dtd +44 -0
  704. data/templates/openindiana-151a7-text-x86/auto_install/default.xml +121 -0
  705. data/templates/openindiana-151a7-text-x86/auto_install/default.xml.orig +124 -0
  706. data/templates/openindiana-151a7-text-x86/auto_install/sc_profiles/static_network.xml +105 -0
  707. data/templates/openindiana-151a7-text-x86/auto_install/software.dtd +105 -0
  708. data/templates/openindiana-151a7-text-x86/auto_install/target.dtd +196 -0
  709. data/templates/openindiana-151a7-text-x86/default.xml +121 -0
  710. data/templates/openindiana-151a7-text-x86/definition.rb +56 -0
  711. data/templates/openindiana-151a7-text-x86/postinstall.sh +103 -0
  712. data/templates/opensuse-11.4-i386-experimental/README +11 -0
  713. data/templates/opensuse-11.4-i386-experimental/autoinst.xml +1269 -0
  714. data/templates/opensuse-11.4-i386-experimental/autoinst.xml.generated +1269 -0
  715. data/templates/opensuse-11.4-i386-experimental/autoinst.xml.tweaked +1269 -0
  716. data/templates/opensuse-11.4-i386-experimental/definition.rb +31 -0
  717. data/templates/opensuse-11.4-i386-experimental/postinstall.sh +90 -0
  718. data/templates/scientificlinux-5.9-i386/definition.rb +16 -0
  719. data/templates/scientificlinux-5.9-i386/ks.cfg +75 -0
  720. data/templates/scientificlinux-5.9-i386/postinstall.sh +39 -0
  721. data/templates/scientificlinux-5.9-x86_64/definition.rb +16 -0
  722. data/templates/scientificlinux-5.9-x86_64/ks.cfg +75 -0
  723. data/templates/scientificlinux-5.9-x86_64/postinstall.sh +39 -0
  724. data/templates/scientificlinux-6.1-i386-netboot/base.sh +1 -0
  725. data/templates/scientificlinux-6.1-i386-netboot/chef.sh +1 -0
  726. data/templates/scientificlinux-6.1-i386-netboot/cleanup.sh +4 -0
  727. data/templates/scientificlinux-6.1-i386-netboot/definition.rb +34 -0
  728. data/templates/scientificlinux-6.1-i386-netboot/ks.cfg +53 -0
  729. data/templates/scientificlinux-6.1-i386-netboot/postinstall.sh +30 -0
  730. data/templates/scientificlinux-6.1-i386-netboot/puppet.sh +1 -0
  731. data/templates/scientificlinux-6.1-i386-netboot/vagrant.sh +8 -0
  732. data/templates/scientificlinux-6.1-i386-netboot/virtualbox.sh +8 -0
  733. data/templates/scientificlinux-6.1-x86_64-netboot/base.sh +1 -0
  734. data/templates/scientificlinux-6.1-x86_64-netboot/chef.sh +1 -0
  735. data/templates/scientificlinux-6.1-x86_64-netboot/cleanup.sh +4 -0
  736. data/templates/scientificlinux-6.1-x86_64-netboot/definition.rb +35 -0
  737. data/templates/scientificlinux-6.1-x86_64-netboot/ks.cfg +53 -0
  738. data/templates/scientificlinux-6.1-x86_64-netboot/postinstall.sh +30 -0
  739. data/templates/scientificlinux-6.1-x86_64-netboot/puppet.sh +1 -0
  740. data/templates/scientificlinux-6.1-x86_64-netboot/vagrant.sh +8 -0
  741. data/templates/scientificlinux-6.1-x86_64-netboot/virtualbox.sh +8 -0
  742. data/templates/scientificlinux-6.2-i386-netboot/base.sh +1 -0
  743. data/templates/scientificlinux-6.2-i386-netboot/chef.sh +1 -0
  744. data/templates/scientificlinux-6.2-i386-netboot/cleanup.sh +4 -0
  745. data/templates/scientificlinux-6.2-i386-netboot/definition.rb +36 -0
  746. data/templates/scientificlinux-6.2-i386-netboot/ks.cfg +53 -0
  747. data/templates/scientificlinux-6.2-i386-netboot/postinstall.sh +30 -0
  748. data/templates/scientificlinux-6.2-i386-netboot/puppet.sh +1 -0
  749. data/templates/scientificlinux-6.2-i386-netboot/vagrant.sh +8 -0
  750. data/templates/scientificlinux-6.2-i386-netboot/virtualbox.sh +8 -0
  751. data/templates/scientificlinux-6.2-x86_64-netboot/base.sh +1 -0
  752. data/templates/scientificlinux-6.2-x86_64-netboot/chef.sh +1 -0
  753. data/templates/scientificlinux-6.2-x86_64-netboot/cleanup.sh +4 -0
  754. data/templates/scientificlinux-6.2-x86_64-netboot/definition.rb +36 -0
  755. data/templates/scientificlinux-6.2-x86_64-netboot/ks.cfg +53 -0
  756. data/templates/scientificlinux-6.2-x86_64-netboot/postinstall.sh +30 -0
  757. data/templates/scientificlinux-6.2-x86_64-netboot/puppet.sh +1 -0
  758. data/templates/scientificlinux-6.2-x86_64-netboot/vagrant.sh +8 -0
  759. data/templates/scientificlinux-6.2-x86_64-netboot/virtualbox.sh +8 -0
  760. data/templates/scientificlinux-6.3-i386-netboot/base.sh +1 -0
  761. data/templates/scientificlinux-6.3-i386-netboot/chef.sh +1 -0
  762. data/templates/scientificlinux-6.3-i386-netboot/cleanup.sh +4 -0
  763. data/templates/scientificlinux-6.3-i386-netboot/definition.rb +37 -0
  764. data/templates/scientificlinux-6.3-i386-netboot/ks.cfg +53 -0
  765. data/templates/scientificlinux-6.3-i386-netboot/postinstall.sh +30 -0
  766. data/templates/scientificlinux-6.3-i386-netboot/puppet.sh +1 -0
  767. data/templates/scientificlinux-6.3-i386-netboot/ruby.sh +1 -0
  768. data/templates/scientificlinux-6.3-i386-netboot/vagrant.sh +8 -0
  769. data/templates/scientificlinux-6.3-i386-netboot/virtualbox.sh +8 -0
  770. data/templates/scientificlinux-6.3-x86_64-netboot/base.sh +1 -0
  771. data/templates/scientificlinux-6.3-x86_64-netboot/chef.sh +1 -0
  772. data/templates/scientificlinux-6.3-x86_64-netboot/cleanup.sh +4 -0
  773. data/templates/scientificlinux-6.3-x86_64-netboot/definition.rb +37 -0
  774. data/templates/scientificlinux-6.3-x86_64-netboot/ks.cfg +53 -0
  775. data/templates/scientificlinux-6.3-x86_64-netboot/postinstall.sh +30 -0
  776. data/templates/scientificlinux-6.3-x86_64-netboot/puppet.sh +1 -0
  777. data/templates/scientificlinux-6.3-x86_64-netboot/ruby.sh +1 -0
  778. data/templates/scientificlinux-6.3-x86_64-netboot/rvm-ruby.sh +9 -0
  779. data/templates/scientificlinux-6.3-x86_64-netboot/vagrant.sh +8 -0
  780. data/templates/scientificlinux-6.3-x86_64-netboot/virtualbox.sh +8 -0
  781. data/templates/solaris-11-express-i386/auto_install/ai.dtd +58 -0
  782. data/templates/solaris-11-express-i386/auto_install/ai_manifest.xml +241 -0
  783. data/templates/solaris-11-express-i386/auto_install/configuration.dtd +44 -0
  784. data/templates/solaris-11-express-i386/auto_install/default.xml +124 -0
  785. data/templates/solaris-11-express-i386/auto_install/default.xml.orig +124 -0
  786. data/templates/solaris-11-express-i386/auto_install/sc_profiles/static_network.xml +105 -0
  787. data/templates/solaris-11-express-i386/auto_install/software.dtd +105 -0
  788. data/templates/solaris-11-express-i386/auto_install/target.dtd +196 -0
  789. data/templates/solaris-11-express-i386/default.xml +121 -0
  790. data/templates/solaris-11-express-i386/definition.rb +65 -0
  791. data/templates/solaris-11-express-i386/postinstall.sh +98 -0
  792. data/templates/ubuntu-10.04.2-amd64-netboot/definition.rb +23 -0
  793. data/templates/ubuntu-10.04.2-amd64-netboot/postinstall.sh +91 -0
  794. data/templates/ubuntu-10.04.2-amd64-netboot/preseed.cfg +89 -0
  795. data/templates/ubuntu-10.04.2-server-i386-netboot/definition.rb +23 -0
  796. data/templates/ubuntu-10.04.2-server-i386-netboot/postinstall.sh +91 -0
  797. data/templates/ubuntu-10.04.2-server-i386-netboot/preseed.cfg +89 -0
  798. data/templates/ubuntu-10.04.3-server-amd64-alt/definition.rb +57 -0
  799. data/templates/ubuntu-10.04.3-server-amd64-alt/postinstall.sh +250 -0
  800. data/templates/ubuntu-10.04.3-server-amd64-alt/preseed.cfg +124 -0
  801. data/templates/ubuntu-10.04.3-server-amd64/base.sh +11 -0
  802. data/templates/ubuntu-10.04.3-server-amd64/chef.sh +2 -0
  803. data/templates/ubuntu-10.04.3-server-amd64/cleanup.sh +19 -0
  804. data/templates/ubuntu-10.04.3-server-amd64/definition.rb +62 -0
  805. data/templates/ubuntu-10.04.3-server-amd64/preseed.cfg +87 -0
  806. data/templates/ubuntu-10.04.3-server-amd64/puppet.sh +1 -0
  807. data/templates/ubuntu-10.04.3-server-amd64/ruby.sh +24 -0
  808. data/templates/ubuntu-10.04.3-server-amd64/vagrant.sh +27 -0
  809. data/templates/ubuntu-10.04.3-server-amd64/virtualbox.sh +12 -0
  810. data/templates/ubuntu-10.04.3-server-i386/definition.rb +24 -0
  811. data/templates/ubuntu-10.04.3-server-i386/postinstall.sh +92 -0
  812. data/templates/ubuntu-10.04.3-server-i386/preseed.cfg +87 -0
  813. data/templates/ubuntu-10.04.4-server-amd64/definition.rb +24 -0
  814. data/templates/ubuntu-10.04.4-server-amd64/postinstall.sh +101 -0
  815. data/templates/ubuntu-10.04.4-server-amd64/preseed.cfg +87 -0
  816. data/templates/ubuntu-10.04.4-server-i386/definition.rb +24 -0
  817. data/templates/ubuntu-10.04.4-server-i386/postinstall.sh +92 -0
  818. data/templates/ubuntu-10.04.4-server-i386/preseed.cfg +87 -0
  819. data/templates/ubuntu-10.10-server-amd64-netboot/definition.rb +24 -0
  820. data/templates/ubuntu-10.10-server-amd64-netboot/postinstall.sh +91 -0
  821. data/templates/ubuntu-10.10-server-amd64-netboot/preseed.cfg +89 -0
  822. data/templates/ubuntu-10.10-server-amd64/base.sh +11 -0
  823. data/templates/ubuntu-10.10-server-amd64/chef.sh +2 -0
  824. data/templates/ubuntu-10.10-server-amd64/cleanup.sh +19 -0
  825. data/templates/ubuntu-10.10-server-amd64/definition.rb +36 -0
  826. data/templates/ubuntu-10.10-server-amd64/postinstall.sh +91 -0
  827. data/templates/ubuntu-10.10-server-amd64/preseed.cfg +87 -0
  828. data/templates/ubuntu-10.10-server-amd64/puppet.sh +1 -0
  829. data/templates/ubuntu-10.10-server-amd64/ruby.sh +24 -0
  830. data/templates/ubuntu-10.10-server-amd64/vagrant.sh +27 -0
  831. data/templates/ubuntu-10.10-server-amd64/virtualbox.sh +12 -0
  832. data/templates/ubuntu-10.10-server-i386-netboot/definition.rb +24 -0
  833. data/templates/ubuntu-10.10-server-i386-netboot/postinstall.sh +91 -0
  834. data/templates/ubuntu-10.10-server-i386-netboot/preseed.cfg +89 -0
  835. data/templates/ubuntu-10.10-server-i386/definition.rb +24 -0
  836. data/templates/ubuntu-10.10-server-i386/postinstall.sh +91 -0
  837. data/templates/ubuntu-10.10-server-i386/preseed.cfg +87 -0
  838. data/templates/ubuntu-11.04-server-amd64/apt-upgrade.sh +4 -0
  839. data/templates/ubuntu-11.04-server-amd64/chef.sh +1 -0
  840. data/templates/ubuntu-11.04-server-amd64/definition.rb +47 -0
  841. data/templates/ubuntu-11.04-server-amd64/network-cleanup.sh +14 -0
  842. data/templates/ubuntu-11.04-server-amd64/nfs-client.sh +3 -0
  843. data/templates/ubuntu-11.04-server-amd64/preseed.cfg +87 -0
  844. data/templates/ubuntu-11.04-server-amd64/puppet.sh +1 -0
  845. data/templates/ubuntu-11.04-server-amd64/remove-build-essentials.sh +3 -0
  846. data/templates/ubuntu-11.04-server-amd64/ruby.sh +29 -0
  847. data/templates/ubuntu-11.04-server-amd64/ssh-keys.sh +7 -0
  848. data/templates/ubuntu-11.04-server-amd64/sudo.sh +4 -0
  849. data/templates/ubuntu-11.04-server-amd64/timestamp.sh +1 -0
  850. data/templates/ubuntu-11.04-server-amd64/vbox_additions.sh +11 -0
  851. data/templates/ubuntu-11.04-server-amd64/zero-disk.sh +3 -0
  852. data/templates/ubuntu-11.04-server-i386/definition.rb +24 -0
  853. data/templates/ubuntu-11.04-server-i386/postinstall.sh +91 -0
  854. data/templates/ubuntu-11.04-server-i386/preseed.cfg +87 -0
  855. data/templates/ubuntu-11.10-server-amd64-ishaya/definition.rb +24 -0
  856. data/templates/ubuntu-11.10-server-amd64-ishaya/postinstall.sh +91 -0
  857. data/templates/ubuntu-11.10-server-amd64-ishaya/preseed.cfg +87 -0
  858. data/templates/ubuntu-11.10-server-amd64-ruby192/definition.rb +24 -0
  859. data/templates/ubuntu-11.10-server-amd64-ruby192/postinstall.sh +91 -0
  860. data/templates/ubuntu-11.10-server-amd64-ruby192/preseed.cfg +87 -0
  861. data/templates/ubuntu-11.10-server-amd64-rvm/definition.rb +35 -0
  862. data/templates/ubuntu-11.10-server-amd64-rvm/postinstall.sh +85 -0
  863. data/templates/ubuntu-11.10-server-amd64-rvm/preseed.cfg +93 -0
  864. data/templates/ubuntu-11.10-server-amd64/definition.rb +35 -0
  865. data/templates/ubuntu-11.10-server-amd64/postinstall.sh +89 -0
  866. data/templates/ubuntu-11.10-server-amd64/preseed.cfg +87 -0
  867. data/templates/ubuntu-11.10-server-i386/definition.rb +35 -0
  868. data/templates/ubuntu-11.10-server-i386/postinstall.sh +89 -0
  869. data/templates/ubuntu-11.10-server-i386/preseed.cfg +87 -0
  870. data/templates/ubuntu-12.04.1-server-amd64-packages/definition.rb +35 -0
  871. data/templates/ubuntu-12.04.1-server-amd64-packages/postinstall.sh +74 -0
  872. data/templates/ubuntu-12.04.1-server-amd64-packages/preseed.cfg +87 -0
  873. data/templates/ubuntu-12.04.1-server-amd64/definition.rb +35 -0
  874. data/templates/ubuntu-12.04.1-server-amd64/postinstall.sh +95 -0
  875. data/templates/ubuntu-12.04.1-server-amd64/preseed.cfg +87 -0
  876. data/templates/ubuntu-12.04.1-server-i386-packages/definition.rb +35 -0
  877. data/templates/ubuntu-12.04.1-server-i386-packages/postinstall.sh +75 -0
  878. data/templates/ubuntu-12.04.1-server-i386-packages/preseed.cfg +87 -0
  879. data/templates/ubuntu-12.04.1-server-i386/definition.rb +35 -0
  880. data/templates/ubuntu-12.04.1-server-i386/postinstall.sh +96 -0
  881. data/templates/ubuntu-12.04.1-server-i386/preseed.cfg +87 -0
  882. data/templates/ubuntu-12.04.2-server-amd64-packages/definition.rb +35 -0
  883. data/templates/ubuntu-12.04.2-server-amd64-packages/postinstall.sh +78 -0
  884. data/templates/ubuntu-12.04.2-server-amd64-packages/preseed.cfg +87 -0
  885. data/templates/ubuntu-12.04.2-server-amd64/definition.rb +35 -0
  886. data/templates/ubuntu-12.04.2-server-amd64/postinstall.sh +97 -0
  887. data/templates/ubuntu-12.04.2-server-amd64/preseed.cfg +87 -0
  888. data/templates/ubuntu-12.04.2-server-i386-packages/definition.rb +35 -0
  889. data/templates/ubuntu-12.04.2-server-i386-packages/postinstall.sh +75 -0
  890. data/templates/ubuntu-12.04.2-server-i386-packages/preseed.cfg +87 -0
  891. data/templates/ubuntu-12.04.2-server-i386/definition.rb +35 -0
  892. data/templates/ubuntu-12.04.2-server-i386/postinstall.sh +96 -0
  893. data/templates/ubuntu-12.04.2-server-i386/preseed.cfg +87 -0
  894. data/templates/ubuntu-12.10-server-amd64-packages/definition.rb +35 -0
  895. data/templates/ubuntu-12.10-server-amd64-packages/postinstall.sh +75 -0
  896. data/templates/ubuntu-12.10-server-amd64-packages/preseed.cfg +87 -0
  897. data/templates/ubuntu-12.10-server-amd64/definition.rb +35 -0
  898. data/templates/ubuntu-12.10-server-amd64/postinstall.sh +97 -0
  899. data/templates/ubuntu-12.10-server-amd64/preseed.cfg +87 -0
  900. data/templates/ubuntu-12.10-server-i386-packages/definition.rb +35 -0
  901. data/templates/ubuntu-12.10-server-i386-packages/postinstall.sh +75 -0
  902. data/templates/ubuntu-12.10-server-i386-packages/preseed.cfg +87 -0
  903. data/templates/ubuntu-12.10-server-i386/definition.rb +35 -0
  904. data/templates/ubuntu-12.10-server-i386/postinstall.sh +98 -0
  905. data/templates/ubuntu-12.10-server-i386/preseed.cfg +87 -0
  906. data/templates/ubuntu-8.04.4-server-amd64/definition.rb +26 -0
  907. data/templates/ubuntu-8.04.4-server-amd64/postinstall.sh +70 -0
  908. data/templates/ubuntu-8.04.4-server-amd64/preseed.cfg +87 -0
  909. data/templates/ubuntu-8.04.4-server-i386/definition.rb +25 -0
  910. data/templates/ubuntu-8.04.4-server-i386/postinstall.sh +70 -0
  911. data/templates/ubuntu-8.04.4-server-i386/preseed.cfg +87 -0
  912. data/templates/windows-2008R1-serverstandard-amd64/Autounattend.xml +146 -0
  913. data/templates/windows-2008R1-serverstandard-amd64/README.md +134 -0
  914. data/templates/windows-2008R1-serverstandard-amd64/cygwin-setup.exe +0 -0
  915. data/templates/windows-2008R1-serverstandard-amd64/definition.rb +114 -0
  916. data/templates/windows-2008R1-serverstandard-amd64/install-cygwin-sshd.bat +41 -0
  917. data/templates/windows-2008R1-serverstandard-amd64/install-guest-additions.bat +5 -0
  918. data/templates/windows-2008R1-serverstandard-amd64/install-winrm.bat +16 -0
  919. data/templates/windows-2008R1-serverstandard-amd64/oracle-cert.cer +0 -0
  920. data/templates/windows-2008R1-serverstandard-amd64/postinstall.sh +75 -0
  921. data/templates/windows-2008R1-serverstandard-amd64/sudo +2 -0
  922. data/templates/windows-2008R1-serverstandard-amd64/winrm.rb +8 -0
  923. data/templates/windows-2008R1-serverweb-amd64/Autounattend.xml +162 -0
  924. data/templates/windows-2008R1-serverweb-amd64/README.md +134 -0
  925. data/templates/windows-2008R1-serverweb-amd64/cygwin-setup.exe +0 -0
  926. data/templates/windows-2008R1-serverweb-amd64/definition.rb +131 -0
  927. data/templates/windows-2008R1-serverweb-amd64/install-cygwin-sshd.bat +40 -0
  928. data/templates/windows-2008R1-serverweb-amd64/install-guest-additions.bat +5 -0
  929. data/templates/windows-2008R1-serverweb-amd64/install-vbox-guest.bat +2 -0
  930. data/templates/windows-2008R1-serverweb-amd64/install-winrm.bat +16 -0
  931. data/templates/windows-2008R1-serverweb-amd64/oracle-cert.cer +0 -0
  932. data/templates/windows-2008R1-serverweb-amd64/postinstall.sh +74 -0
  933. data/templates/windows-2008R1-serverweb-amd64/sudo +2 -0
  934. data/templates/windows-2008R1-serverweb-amd64/winrm.rb +8 -0
  935. data/templates/windows-2008R1-serverweb-i386/Autounattend.xml +142 -0
  936. data/templates/windows-2008R1-serverweb-i386/README.md +136 -0
  937. data/templates/windows-2008R1-serverweb-i386/cygwin-setup.exe +0 -0
  938. data/templates/windows-2008R1-serverweb-i386/definition.rb +132 -0
  939. data/templates/windows-2008R1-serverweb-i386/install-cygwin-sshd.bat +40 -0
  940. data/templates/windows-2008R1-serverweb-i386/install-vbox-guest.bat +2 -0
  941. data/templates/windows-2008R1-serverweb-i386/install-winrm.bat +14 -0
  942. data/templates/windows-2008R1-serverweb-i386/oracle-cert.cer +0 -0
  943. data/templates/windows-2008R1-serverweb-i386/postinstall.sh +74 -0
  944. data/templates/windows-2008R1-serverweb-i386/sudo +2 -0
  945. data/templates/windows-2008R1-serverweb-i386/winrm.rb +8 -0
  946. data/templates/windows-2008R1-serverwebcore-amd64/Autounattend.xml +162 -0
  947. data/templates/windows-2008R1-serverwebcore-amd64/README.md +134 -0
  948. data/templates/windows-2008R1-serverwebcore-amd64/cygwin-setup.exe +0 -0
  949. data/templates/windows-2008R1-serverwebcore-amd64/definition.rb +132 -0
  950. data/templates/windows-2008R1-serverwebcore-amd64/install-cygwin-sshd.bat +41 -0
  951. data/templates/windows-2008R1-serverwebcore-amd64/install-vbox-guest.bat +2 -0
  952. data/templates/windows-2008R1-serverwebcore-amd64/install-winrm.bat +14 -0
  953. data/templates/windows-2008R1-serverwebcore-amd64/oracle-cert.cer +0 -0
  954. data/templates/windows-2008R1-serverwebcore-amd64/postinstall.sh +74 -0
  955. data/templates/windows-2008R1-serverwebcore-amd64/sudo +2 -0
  956. data/templates/windows-2008R1-serverwebcore-amd64/winrm.rb +8 -0
  957. data/templates/windows-2008R2-amd64/Autounattend.xml +132 -0
  958. data/templates/windows-2008R2-amd64/README.md +68 -0
  959. data/templates/windows-2008R2-amd64/cygwin-setup.exe +0 -0
  960. data/templates/windows-2008R2-amd64/definition.rb +16 -0
  961. data/templates/windows-2008R2-amd64/install-cygwin-sshd.bat +38 -0
  962. data/templates/windows-2008R2-amd64/install-winrm.bat +8 -0
  963. data/templates/windows-2008R2-amd64/oracle-cert.cer +0 -0
  964. data/templates/windows-2008R2-amd64/postinstall.sh +122 -0
  965. data/templates/windows-2008R2-amd64/win7/Autounattend.xml +180 -0
  966. data/templates/windows-2008R2-amd64/winrm.rb +8 -0
  967. data/templates/windows-2008R2-serverstandard-amd64-winrm/Autounattend.xml +230 -0
  968. data/templates/windows-2008R2-serverstandard-amd64-winrm/README.md +87 -0
  969. data/templates/windows-2008R2-serverstandard-amd64-winrm/definition.rb +33 -0
  970. data/templates/windows-2008R2-serverstandard-amd64-winrm/install-chef.bat +2 -0
  971. data/templates/windows-2008R2-serverstandard-amd64-winrm/install-vbox.bat +4 -0
  972. data/templates/windows-2008R2-serverstandard-amd64-winrm/oracle-cert.cer +0 -0
  973. data/templates/windows-2008R2-serverstandard-amd64-winrm/postinstall.sh +74 -0
  974. data/templates/windows-2008R2-serverstandard-amd64/Autounattend.xml +147 -0
  975. data/templates/windows-2008R2-serverstandard-amd64/README.md +142 -0
  976. data/templates/windows-2008R2-serverstandard-amd64/definition.rb +43 -0
  977. data/templates/windows-2008R2-serverstandard-amd64/install-cygwin-sshd.bat +41 -0
  978. data/templates/windows-2008R2-serverstandard-amd64/install-winrm.bat +11 -0
  979. data/templates/windows-2008R2-serverstandard-amd64/oracle-cert.cer +0 -0
  980. data/templates/windows-2008R2-serverstandard-amd64/postinstall.sh +74 -0
  981. data/templates/windows-2008R2-serverweb-amd64/Autounattend.xml +151 -0
  982. data/templates/windows-2008R2-serverweb-amd64/README.md +142 -0
  983. data/templates/windows-2008R2-serverweb-amd64/definition.rb +38 -0
  984. data/templates/windows-2008R2-serverweb-amd64/install-cygwin-sshd.bat +40 -0
  985. data/templates/windows-2008R2-serverweb-amd64/install-vbox-guest.bat +2 -0
  986. data/templates/windows-2008R2-serverweb-amd64/install-winrm.bat +11 -0
  987. data/templates/windows-2008R2-serverweb-amd64/oracle-cert.cer +0 -0
  988. data/templates/windows-2008R2-serverweb-amd64/postinstall.sh +74 -0
  989. data/templates/windows-2008R2-serverwebcore-amd64/Autounattend.xml +145 -0
  990. data/templates/windows-2008R2-serverwebcore-amd64/README.md +142 -0
  991. data/templates/windows-2008R2-serverwebcore-amd64/cygwin-setup.exe +0 -0
  992. data/templates/windows-2008R2-serverwebcore-amd64/definition.rb +46 -0
  993. data/templates/windows-2008R2-serverwebcore-amd64/install-cygwin-sshd.bat +41 -0
  994. data/templates/windows-2008R2-serverwebcore-amd64/install-vbox-guest.bat +2 -0
  995. data/templates/windows-2008R2-serverwebcore-amd64/install-winrm.bat +11 -0
  996. data/templates/windows-2008R2-serverwebcore-amd64/oracle-cert.cer +0 -0
  997. data/templates/windows-2008R2-serverwebcore-amd64/postinstall.sh +74 -0
  998. data/templates/windows-7-enterprise-amd64-winrm/Autounattend.xml +233 -0
  999. data/templates/windows-7-enterprise-amd64-winrm/README.md +52 -0
  1000. data/templates/windows-7-enterprise-amd64-winrm/definition.rb +27 -0
  1001. data/templates/windows-7-enterprise-amd64-winrm/install-chef.bat +2 -0
  1002. data/templates/windows-7-enterprise-amd64-winrm/install-fusion.bat +18 -0
  1003. data/templates/windows-7-enterprise-amd64-winrm/install-puppet.bat +4 -0
  1004. data/templates/windows-7-enterprise-amd64-winrm/install-vbox.bat +4 -0
  1005. data/templates/windows-7-enterprise-amd64-winrm/oracle-cert.cer +0 -0
  1006. data/templates/windows-7-enterprise-amd64-winrm/postinstall.bat +74 -0
  1007. data/templates/windows-7-enterprise-amd64/Autounattend.xml +155 -0
  1008. data/templates/windows-7-enterprise-amd64/README.md +52 -0
  1009. data/templates/windows-7-enterprise-amd64/definition.rb +40 -0
  1010. data/templates/windows-7-enterprise-amd64/install-cygwin-sshd.bat +40 -0
  1011. data/templates/windows-7-enterprise-amd64/install-vbox-guest.bat +2 -0
  1012. data/templates/windows-7-enterprise-amd64/install-winrm.bat +14 -0
  1013. data/templates/windows-7-enterprise-amd64/oracle-cert.cer +0 -0
  1014. data/templates/windows-7-enterprise-amd64/postinstall.sh +74 -0
  1015. data/templates/windows-7-enterprise-i386/Autounattend.xml +151 -0
  1016. data/templates/windows-7-enterprise-i386/README.md +169 -0
  1017. data/templates/windows-7-enterprise-i386/definition.rb +40 -0
  1018. data/templates/windows-7-enterprise-i386/install-cygwin-sshd.bat +40 -0
  1019. data/templates/windows-7-enterprise-i386/install-winrm.bat +14 -0
  1020. data/templates/windows-7-enterprise-i386/oracle-cert.cer +0 -0
  1021. data/templates/windows-7-enterprise-i386/postinstall.sh +74 -0
  1022. data/templates/windows-7-premium-amd64/Autounattend.xml +152 -0
  1023. data/templates/windows-7-premium-amd64/README.md +171 -0
  1024. data/templates/windows-7-premium-amd64/definition.rb +38 -0
  1025. data/templates/windows-7-premium-amd64/install-chefclient.bat +44 -0
  1026. data/templates/windows-7-premium-amd64/install-winrm.bat +11 -0
  1027. data/templates/windows-7-premium-amd64/oracle-cert.cer +0 -0
  1028. data/templates/windows-7-premium-amd64/postinstall.sh +124 -0
  1029. data/templates/windows-7-premium-amd64/winrm.rb +8 -0
  1030. data/templates/windows-7-professional-amd64/Autounattend.xml +152 -0
  1031. data/templates/windows-7-professional-amd64/README.md +171 -0
  1032. data/templates/windows-7-professional-amd64/definition.rb +41 -0
  1033. data/templates/windows-7-professional-amd64/install-cygwin-sshd.bat +40 -0
  1034. data/templates/windows-7-professional-amd64/install-winrm.bat +14 -0
  1035. data/templates/windows-7-professional-amd64/oracle-cert.cer +0 -0
  1036. data/templates/windows-7-professional-amd64/postinstall.sh +74 -0
  1037. data/templates/windows-7-ultimate-amd64/Autounattend.xml +152 -0
  1038. data/templates/windows-7-ultimate-amd64/README.md +89 -0
  1039. data/templates/windows-7-ultimate-amd64/definition.rb +41 -0
  1040. data/templates/windows-7-ultimate-amd64/install-cygwin-sshd.bat +40 -0
  1041. data/templates/windows-7-ultimate-amd64/install-winrm.bat +14 -0
  1042. data/templates/windows-7-ultimate-amd64/oracle-cert.cer +0 -0
  1043. data/templates/windows-7-ultimate-amd64/postinstall.sh +74 -0
  1044. data/templates/windows-7sp1-ultimate-amd64/Autounattend.xml +149 -0
  1045. data/templates/windows-7sp1-ultimate-amd64/README.md +89 -0
  1046. data/templates/windows-7sp1-ultimate-amd64/definition.rb +42 -0
  1047. data/templates/windows-7sp1-ultimate-amd64/install-cygwin-sshd.bat +40 -0
  1048. data/templates/windows-7sp1-ultimate-amd64/install-winrm.bat +14 -0
  1049. data/templates/windows-7sp1-ultimate-amd64/oracle-cert.cer +0 -0
  1050. data/templates/windows-7sp1-ultimate-amd64/postinstall.sh +74 -0
  1051. data/templates/windows-8-amd64/Autounattend.xml +140 -0
  1052. data/templates/windows-8-amd64/README.md +134 -0
  1053. data/templates/windows-8-amd64/cygwin-setup.exe +0 -0
  1054. data/templates/windows-8-amd64/definition.rb +101 -0
  1055. data/templates/windows-8-amd64/install-cygwin-sshd.bat +38 -0
  1056. data/templates/windows-8-amd64/install-winrm.bat +11 -0
  1057. data/templates/windows-8-amd64/oracle-cert.cer +0 -0
  1058. data/templates/windows-8-amd64/postinstall.sh +122 -0
  1059. data/templates/windows-8-amd64/winrm.rb +8 -0
  1060. data/templates/windows-8-i386/Autounattend.xml +140 -0
  1061. data/templates/windows-8-i386/README.md +134 -0
  1062. data/templates/windows-8-i386/cygwin-setup.exe +0 -0
  1063. data/templates/windows-8-i386/definition.rb +101 -0
  1064. data/templates/windows-8-i386/install-cygwin-sshd.bat +38 -0
  1065. data/templates/windows-8-i386/install-winrm.bat +11 -0
  1066. data/templates/windows-8-i386/oracle-cert.cer +0 -0
  1067. data/templates/windows-8-i386/postinstall.sh +122 -0
  1068. data/templates/windows-8-i386/winrm.rb +8 -0
  1069. data/templates/windows-8-preview-amd64/Autounattend.xml +140 -0
  1070. data/templates/windows-8-preview-amd64/README.md +134 -0
  1071. data/templates/windows-8-preview-amd64/cygwin-setup.exe +0 -0
  1072. data/templates/windows-8-preview-amd64/definition.rb +114 -0
  1073. data/templates/windows-8-preview-amd64/install-cygwin-sshd.bat +38 -0
  1074. data/templates/windows-8-preview-amd64/install-winrm.bat +11 -0
  1075. data/templates/windows-8-preview-amd64/oracle-cert.cer +0 -0
  1076. data/templates/windows-8-preview-amd64/postinstall.sh +122 -0
  1077. data/templates/windows-8-preview-amd64/winrm.rb +8 -0
  1078. data/test/build_realtest.rb +72 -0
  1079. data/test/definition_test.rb +11 -0
  1080. data/test/definitions/test_definition/_disabled_postinstall.sh +1 -0
  1081. data/test/definitions/test_definition/autorun0 +3 -0
  1082. data/test/definitions/test_definition/definition.rb +24 -0
  1083. data/test/definitions/test_definition/enabled_postinstall.sh +1 -0
  1084. data/test/environment_test.rb +67 -0
  1085. data/test/veewee/provider/virtualbox/box/helper/guest_additions_test.rb +95 -0
  1086. data/test/veewee/provider/virtualbox/box/helper/version.rb +67 -0
  1087. data/validation/features/steps/ssh_steps.old +170 -0
  1088. data/validation/features/steps/veewee_steps.rb +27 -0
  1089. data/validation/support/env.rb +1 -0
  1090. data/validation/vagrant-private.key +27 -0
  1091. data/validation/vagrant.pub +1 -0
  1092. data/validation/veewee-windows.feature +34 -0
  1093. data/validation/veewee.feature +45 -0
  1094. data/veewee.gemspec +50 -0
  1095. metadata +1403 -0
@@ -0,0 +1,100 @@
1
+ require 'pathname'
2
+ module Veewee
3
+ module Provider
4
+ module Virtualbox
5
+ module BoxCommand
6
+
7
+ # Shellutil.execute("vagrant package --base #{vmname} --include /tmp/Vagrantfile --output /tmp/#{vmname}.box", {:progress => "on"})
8
+
9
+ def export_vagrant(options)
10
+
11
+ # Check if box already exists
12
+ unless self.exists?
13
+ ui.info "#{name} is not found, maybe you need to build it first?"
14
+ exit
15
+ end
16
+
17
+ if File.exists?("#{name}.box")
18
+ if options["force"]
19
+ env.logger.debug("#{name}.box exists, but --force was provided")
20
+ env.logger.debug("removing #{name}.box first")
21
+ FileUtils.rm("#{name}.box")
22
+ env.logger.debug("#{name}.box removed")
23
+ else
24
+ raise Veewee::Error, "export file #{name}.box already exists. Use --force option to overwrite."
25
+ end
26
+ end
27
+
28
+
29
+ # We need to shutdown first
30
+ if self.running?
31
+ ui.info "Vagrant requires the box to be shutdown, before it can export"
32
+ ui.info "Sudo also needs to work for user #{definition.ssh_user}"
33
+ ui.info "Performing a clean shutdown now."
34
+
35
+ self.halt
36
+
37
+ #Wait for state poweroff
38
+ while (self.running?) do
39
+ ui.info ".",{:new_line => false}
40
+ sleep 1
41
+ end
42
+ ui.info ""
43
+ ui.info "Machine #{name} is powered off cleanly"
44
+ end
45
+
46
+ #Vagrant requires a relative path for output of boxes
47
+
48
+ #4.0.x. not using boxes as a subdir
49
+ boxdir=Pathname.new(Dir.pwd)
50
+
51
+ full_path=File.join(boxdir,name+".box")
52
+ path1=Pathname.new(full_path)
53
+ path2=Pathname.new(Dir.pwd)
54
+ box_path=path1.relative_path_from(path2).to_s
55
+
56
+ if File.exists?("#{box_path}")
57
+ raise Veewee::Error, "box #{name}.box already exists"
58
+ end
59
+
60
+ ui.info "Executing vagrant voodoo:"
61
+ export_command="vagrant package --base '#{name}' --output '#{box_path}'"
62
+ export_command += " --include #{options["include"].join(',')}" unless options["include"].empty?
63
+ export_command += " --vagrantfile #{options["vagrantfile"].join(' ')}" unless options["vagrantfile"].empty?
64
+ ui.info "#{export_command}"
65
+ shell_exec("#{export_command}") #hmm, needs to get the gem_home set?
66
+ ui.info ""
67
+
68
+ #add_ssh_nat_mapping back!!!!
69
+ #vagrant removes the mapping
70
+ #we need to restore it in order to be able to login again
71
+ self.add_ssh_nat_mapping
72
+
73
+ ui.info "To import it into vagrant type:"
74
+ ui.info "vagrant box add '#{name}' '#{box_path}'"
75
+ ui.info ""
76
+ ui.info "To use it:"
77
+ ui.info "vagrant init '#{name}'"
78
+ ui.info "vagrant up"
79
+ ui.info "vagrant ssh"
80
+ end
81
+
82
+ end #Module
83
+ end #Module
84
+ end #Module
85
+ end #Module
86
+
87
+
88
+ # #currently vagrant has a problem with the machine up, it calculates the wrong port to ssh to poweroff the system
89
+ # thebox.execute("shutdown -h now")
90
+ # thebox.wait_for_state("poweroff")
91
+
92
+
93
+ # Shellutil.execute("echo 'Vagrant::Config.run do |config|' > /tmp/Vagrantfile")
94
+ # Shellutil.execute("echo ' config.ssh.forwarded_port_key = \"ssh\"' >> /tmp/Vagrantfile")
95
+ # Shellutil.execute("echo ' config.raw.forward_port(\"ssh\",22,#{host_port})' >> /tmp/Vagrantfile")
96
+ # Shellutil.execute("echo 'end' >> /tmp/Vagrantfile")
97
+
98
+
99
+ #vagrant export disables the machine
100
+ # thebox.ssh_enable_vmachine({:hostport => host_port , :guestport => 22} )
@@ -0,0 +1,13 @@
1
+ module Veewee
2
+ module Provider
3
+ module Virtualbox
4
+ module BoxCommand
5
+
6
+ def halt(options={})
7
+ super(options)
8
+ end
9
+
10
+ end
11
+ end
12
+ end
13
+ end
@@ -0,0 +1,28 @@
1
+ module Veewee
2
+ module Provider
3
+ module Virtualbox
4
+ module BoxCommand
5
+
6
+ def build_info
7
+ info=super
8
+ info << { :filename => ".vbox_version",
9
+ :content => "#{self.vboxga_version}" }
10
+ end
11
+
12
+ # Transfer information provide by the provider to the box
13
+ #
14
+ #
15
+ def transfer_buildinfo(options)
16
+ super(options)
17
+ # with windows, we just use the mounted volume
18
+ if not (definition.winrm_user && definition.winrm_password)
19
+ iso_image="VBoxGuestAdditions_#{self.vboxga_version}.iso"
20
+ env.logger.info "About to transfer virtualbox guest additions iso to the box #{name} - #{ip_address} - #{ssh_options}"
21
+ self.copy_to_box("#{File.join(env.config.veewee.iso_dir,iso_image)}",File.basename(iso_image))
22
+ end
23
+ end
24
+
25
+ end
26
+ end
27
+ end
28
+ end
@@ -0,0 +1,62 @@
1
+ require 'veewee/provider/core/helper/scancode'
2
+ require 'veewee/provider/core/helper/tcp'
3
+ require 'veewee/provider/core/helper/shell'
4
+
5
+ module Veewee
6
+ module Provider
7
+ module Virtualbox
8
+ module BoxCommand
9
+ def console_type(sequence)
10
+ send_virtualbox_sequence(sequence)
11
+ end
12
+
13
+ def send_virtualbox_sequence(sequence)
14
+
15
+ ui.info ""
16
+
17
+ counter=0
18
+ sequence.each { |s|
19
+ counter=counter+1
20
+
21
+ ui.info "Typing:[#{counter}]: "+s
22
+
23
+ keycodes=Veewee::Provider::Core::Helper::Scancode.string_to_keycode(s)
24
+
25
+ # VBox seems to have issues with sending the scancodes as one big
26
+ # .join()-ed string. It seems to get them out or order or ignore some.
27
+ # A workaround is to send the scancodes one-by-one.
28
+ codes=""
29
+ for keycode in keycodes.split(' ') do
30
+ unless keycode=="wait"
31
+ send_keycode(keycode)
32
+ sleep 0.01
33
+ else
34
+ sleep 1
35
+ end
36
+ end
37
+ #sleep after each sequence (needs to be param)
38
+ sleep 0.5
39
+ }
40
+
41
+ ui.info "Done typing."
42
+ ui.info ""
43
+
44
+ end
45
+
46
+ def send_keycode(keycode)
47
+ command= "#{@vboxcmd} controlvm \"#{name}\" keyboardputscancode #{keycode}"
48
+ env.logger.info "#{command}"
49
+ sshresult=shell_exec("#{command}",{:mute => true})
50
+ unless sshresult.stdout.index("E_ACCESSDENIED").nil?
51
+ error= "There was an error typing the commands on the console"
52
+ error+="Probably the VM did not get started."
53
+ error+= ""
54
+ error+= "#{sshresult.stdout}"
55
+ raise Veewee::Error, error
56
+ end
57
+ end
58
+
59
+ end #Module
60
+ end #Module
61
+ end #Module
62
+ end #Module
@@ -0,0 +1,200 @@
1
+ module Veewee
2
+ module Provider
3
+ module Virtualbox
4
+ module BoxCommand
5
+
6
+ def add_ide_controller
7
+ #unless => "${vboxcmd} showvminfo \"${vname}\" | grep \"IDE Controller\" "
8
+ command ="#{@vboxcmd} storagectl \"#{name}\" --name \"IDE Controller\" --add ide"
9
+ shell_exec("#{command}")
10
+ end
11
+
12
+ def add_sata_controller
13
+ #unless => "${vboxcmd} showvminfo \"${vname}\" | grep \"SATA Controller\" ";
14
+ command ="#{@vboxcmd} storagectl \"#{name}\" --name \"SATA Controller\" --add sata --hostiocache #{definition.hostiocache} --sataportcount #{definition.disk_count}"
15
+ shell_exec("#{command}")
16
+ end
17
+
18
+ def attach_serial_console
19
+ command ="#{@vboxcmd} modifyvm \"#{name}\" --uart1 0x3F8 4"
20
+ shell_exec("#{command}")
21
+ command ="#{@vboxcmd} modifyvm \"#{name}\" --uartmode1 file \"#{File.join(FileUtils.pwd,name+"-serial-console"+".log")}\""
22
+ shell_exec("#{command}")
23
+ end
24
+
25
+ def add_ssh_nat_mapping
26
+
27
+ unless definition.nil?
28
+ unless definition.skip_nat_mapping == true
29
+ #Map SSH Ports
30
+ command="#{@vboxcmd} modifyvm \"#{name}\" --natpf#{self.natinterface} \"guestssh,tcp,,#{definition.ssh_host_port},,#{definition.ssh_guest_port}\""
31
+ shell_exec("#{command}")
32
+ end
33
+ end
34
+ end
35
+
36
+ def add_winrm_nat_mapping
37
+
38
+ unless definition.nil?
39
+ #Map SSH Ports
40
+ command="#{@vboxcmd} modifyvm \"#{name}\" --natpf1 'guestwinrm,tcp,,#{definition.winrm_host_port},,#{definition.winrm_guest_port}'"
41
+ shell_exec("#{command}")
42
+ end
43
+ end
44
+
45
+ def add_shared_folder
46
+ command="#{@vboxcmd} sharedfolder add \"#{name}\" --name \"veewee-validation\" --hostpath \"#{File.expand_path(env.validation_dir)}\" --automount"
47
+ shell_exec("#{command}")
48
+ end
49
+
50
+ def get_vbox_home
51
+ command="#{@vboxcmd} list systemproperties"
52
+ shell_results=shell_exec("#{command}")
53
+ # On windows Default machine path would include a drive letter, then ':'.
54
+ # So here we tell to split no more than 2 elements to keep the full path
55
+ # This should work for all OS as we just need to separate the parameter name with first ':' from the value
56
+ location=shell_results.stdout.split(/\n/).grep(/Default machine/)[0].split(":", 2)[1].strip
57
+ return location
58
+ end
59
+
60
+
61
+ def suppress_messages
62
+ day=24*60*60
63
+ update_date=Time.now+365*day
64
+
65
+ extraData = [
66
+ ["GUI/RegistrationData","triesLeft=0"],
67
+ ["GUI/SuppressMessages","confirmInputCapture,remindAboutAutoCapture,remindAboutMouseIntegrationOff,remindAboutMouseIntegrationOn,remindAboutWrongColorDepth"],
68
+ ["GUI/UpdateDate", "1 d, #{update_date.year}-#{update_date.month.to_s.rjust(2,'0')}-#{update_date.day.to_s.rjust(2,'0')}, stable"],
69
+ ["GUI/UpdateCheckCount","60"]
70
+ ]
71
+ extraData.each do |data|
72
+ command="#{@vboxcmd} setextradata global \"#{data[0]}\" \"#{data[1]}\""
73
+ shell_results=shell_exec("#{command}")
74
+ end
75
+
76
+ end
77
+
78
+ def create_disk
79
+ place=get_vbox_home
80
+ 1.upto(definition.disk_count) do |f|
81
+ ui.info "Creating new harddrive of size #{definition.disk_size.to_i}, format #{definition.disk_format}, variant #{definition.disk_variant} "
82
+ command ="#{@vboxcmd} createhd --filename \"#{File.join(place,name,name+"#{f}."+definition.disk_format.downcase)}\" --size \"#{definition.disk_size.to_i}\" --format #{definition.disk_format.downcase} --variant #{definition.disk_variant.downcase}"
83
+ shell_exec("#{command}")
84
+ end
85
+ end
86
+
87
+ def attach_disk_common(storagectl, device_number)
88
+ place=get_vbox_home
89
+
90
+ 1.upto(definition.disk_count) do |f|
91
+ location=name+"#{f}."+definition.disk_format.downcase
92
+
93
+ location="#{File.join(place,name,location)}"
94
+ ui.info "Attaching disk: #{location}"
95
+
96
+ command ="#{@vboxcmd} storageattach \"#{name}\" --storagectl \"#{storagectl}\" --port #{f-1} --device #{device_number} --type hdd --medium \"#{location}\""
97
+ shell_exec("#{command}")
98
+ end
99
+ end
100
+
101
+ def attach_disk_ide(device_number=0)
102
+ self.attach_disk_common("IDE Controller", device_number)
103
+ end
104
+
105
+ def attach_disk_sata(device_number=0)
106
+ self.attach_disk_common("SATA Controller", device_number)
107
+ end
108
+
109
+
110
+ def attach_isofile(device_number=0)
111
+ full_iso_file=File.join(env.config.veewee.iso_dir,definition.iso_file)
112
+ ui.info "Mounting cdrom: #{full_iso_file}"
113
+ command ="#{@vboxcmd} storageattach \"#{name}\" --storagectl \"IDE Controller\" --type dvddrive --port 0 --device #{device_number} --medium \"#{full_iso_file}\""
114
+ shell_exec("#{command}")
115
+ end
116
+
117
+ def attach_guest_additions
118
+ full_iso_file=File.join(env.config.veewee.iso_dir,"VBoxGuestAdditions_#{self.vboxga_version}.iso")
119
+ ui.info "Mounting guest additions: #{full_iso_file}"
120
+ command ="#{@vboxcmd} storageattach \"#{name}\" --storagectl \"IDE Controller\" --type dvddrive --port 1 --device 0 --medium \"#{full_iso_file}\""
121
+ shell_exec("#{command}")
122
+ end
123
+
124
+
125
+ def add_floppy_controller
126
+ # Create floppy controller
127
+ unless definition.floppy_files.nil?
128
+
129
+ command="#{@vboxcmd} storagectl \"#{name}\" --name \"Floppy Controller\" --add floppy"
130
+ shell_exec("#{command}")
131
+ end
132
+ end
133
+
134
+
135
+ def attach_floppy
136
+ unless definition.floppy_files.nil?
137
+
138
+ # Attach floppy to machine (the vfd extension is crucial to detect msdos type floppy)
139
+ floppy_file=File.join(definition.path,"virtualfloppy.vfd")
140
+ command="#{@vboxcmd} storageattach \"#{name}\" --storagectl \"Floppy Controller\" --port 0 --device 0 --type fdd --medium \"#{floppy_file}\""
141
+ shell_exec("#{command}")
142
+ end
143
+ end
144
+
145
+ def vbox_os_type_id(veewee_type_id)
146
+ type=env.ostypes[veewee_type_id][:vbox]
147
+ env.logger.info("Using VBOX os_type_id #{type}")
148
+ return type
149
+ end
150
+
151
+ def create_vm
152
+ command="#{@vboxcmd} createvm --name \"#{name}\" --ostype \"#{vbox_os_type_id(definition.os_type_id)}\" --register"
153
+
154
+ #Exec and system stop the execution here
155
+ shell_exec("#{command}")
156
+
157
+ ui.info "Creating vm #{name} : #{definition.memory_size}M - #{definition.cpu_count} CPU - #{vbox_os_type_id(definition.os_type_id)}"
158
+
159
+ #setting cpu's
160
+ command="#{@vboxcmd} modifyvm \"#{name}\" --cpus #{definition.cpu_count}"
161
+ shell_exec("#{command}")
162
+
163
+ #setting memory size
164
+ command="#{@vboxcmd} modifyvm \"#{name}\" --memory #{definition.memory_size}"
165
+ shell_exec("#{command}")
166
+
167
+ #setting video memory size
168
+ command="#{@vboxcmd} modifyvm \"#{name}\" --vram #{definition.video_memory_size}"
169
+ shell_exec("#{command}")
170
+
171
+ #setting bootorder
172
+ command="#{@vboxcmd} modifyvm \"#{name}\" --boot1 disk --boot2 dvd --boot3 none --boot4 none"
173
+ shell_exec("#{command}")
174
+
175
+ # Modify the vm to enable or disable hw virtualization extensions
176
+ vm_flags=%w{pagefusion acpi ioapic pae hpet hwvirtex hwvirtexcl nestedpaging largepages vtxvpid synthxcpu rtcuseutc}
177
+
178
+ vm_flags.each do |vm_flag|
179
+ if definition.instance_variable_defined?("@#{vm_flag}")
180
+ vm_flag_value=definition.instance_variable_get("@#{vm_flag}")
181
+ ui.info "Setting VM Flag #{vm_flag} to #{vm_flag_value}"
182
+ ui.warn "Used of #{vm_flag} is deprecated - specify your options in the definition file as \n :virtualbox => { :vm_options => [\"#{vm_flag}\" => \"#{vm_flag_value}\"]}"
183
+ command="#{@vboxcmd} modifyvm #{name} --#{vm_flag.to_s} #{vm_flag_value}"
184
+ shell_exec("#{command}")
185
+ end
186
+ end
187
+
188
+ unless definition.virtualbox[:vm_options][0].nil?
189
+ definition.virtualbox[:vm_options][0].each do |vm_flag,vm_flag_value|
190
+ ui.info "Setting VM Flag #{vm_flag} to #{vm_flag_value}"
191
+ command="#{@vboxcmd} modifyvm #{name} --#{vm_flag.to_s} #{vm_flag_value}"
192
+ shell_exec("#{command}")
193
+ end
194
+ end
195
+
196
+ end
197
+ end
198
+ end
199
+ end
200
+ end
@@ -0,0 +1,38 @@
1
+ module Veewee
2
+ module Provider
3
+ module Virtualbox
4
+ module BoxCommand
5
+
6
+ def forwarding(name)
7
+ command="#{@vboxcmd} showvminfo --details --machinereadable \"#{self.name}\""
8
+ shell_results=shell_exec("#{command}")
9
+ rules=shell_results.stdout.split(/\n/).grep(/^Forward/)
10
+ result=nil
11
+ rules.each do |rule|
12
+ #Forwarding(0)
13
+ nr=rule.split('=')[0].split('(')[1].split(')')[0].to_i + 1
14
+ # guestssh,tcp,,2222,,22
15
+ details=rule.split('=')[1].split('"')[1].split(',')
16
+ result = {
17
+ :nr => nr,
18
+ :name => details[0],
19
+ :protocol => details[1],
20
+ :host_ip => details[2],
21
+ :host_port => details[3],
22
+ :guest_ip => details[4],
23
+ :guest_port => details[5]
24
+ }
25
+ end
26
+ return result
27
+ end
28
+
29
+ def delete_forwarding(name)
30
+ forward=self.forwarding(name)
31
+ command="#{@vboxcmd} controlvm \"#{self.name}\" natpf#{self.natinterface} delete #{name}"
32
+ shell_results=shell_exec("#{command}")
33
+ end
34
+
35
+ end
36
+ end
37
+ end
38
+ end