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,95 @@
1
+ require 'test/unit'
2
+ require 'veewee/provider/virtualbox/box/helper/guest_additions'
3
+ require 'veewee/provider/virtualbox/box/helper/version'
4
+ require 'logger'
5
+
6
+ class TestVboxGuestAdditionsHelper < Test::Unit::TestCase
7
+ include Veewee::Provider::Virtualbox::BoxCommand
8
+ def setup
9
+ @fd = IO.sysopen("/dev/null", "w")
10
+ end
11
+
12
+ def ui
13
+ @ui ||= Logger.new(IO.new(@fd))
14
+ end
15
+
16
+ def affected_versions
17
+ {
18
+ "4.2.1" => "4.2.0",
19
+ "4.1.23" => "4.1.22"
20
+ }
21
+ end
22
+
23
+ def verify_version(vbox_version, guest_version, msg="", scope)
24
+ set_vbox_version(vbox_version)
25
+
26
+ scope.class.instance_eval do
27
+ define_method :download_iso do |url, isofile|
28
+ expected_url_prefix = "http://download.virtualbox.org/virtualbox/#{guest_version}/"
29
+
30
+ assert(url.include?(expected_url_prefix), msg)
31
+ assert_equal("VBoxGuestAdditions_#{guest_version}.iso", isofile, msg)
32
+ end
33
+ end
34
+
35
+ download_vbox_guest_additions_iso({})
36
+ end
37
+
38
+ def verify_affected_versions(msg="", scope)
39
+ affected_versions.each do |vbox_version, guest_version|
40
+ verify_version(vbox_version, guest_version, msg, scope)
41
+ end
42
+ end
43
+
44
+ def test_affected_osx_version_returns_downpatched_ga_version
45
+ set_ruby_platform("darwin")
46
+ msg = "affected osx version did not return downpatched ga version"
47
+
48
+ verify_affected_versions(msg, self)
49
+ end
50
+
51
+ def test_unaffected_osx_version_returns_same_version
52
+ set_ruby_platform("darwin")
53
+ msg = "unaffected osx version did not return same version"
54
+ verify_version("4.1.22","4.1.22", msg, self)
55
+ end
56
+
57
+ def test_affected_linux_version_returns_same_version
58
+ set_ruby_platform("linux")
59
+ msg = "affected linux version did not return same version"
60
+ affected_versions.keys.each do |version|
61
+ verify_version(version, version, msg, self)
62
+ end
63
+ end
64
+
65
+ def test_unaffected_linux_version_returns_same_version
66
+ set_ruby_platform("linux")
67
+ msg = "unaffected linux version did not return same version"
68
+ verify_version("4.0.19","4.0.19", msg, self)
69
+ end
70
+
71
+ def test_affected_mswin_version_returns_same_version
72
+ set_ruby_platform("mswin")
73
+ msg = "affected mswin version did not return same version"
74
+ affected_versions.keys.each do |version|
75
+ verify_version(version, version, msg, self)
76
+ end
77
+ end
78
+
79
+ def test_unaffected_mswin_version_returns_same_version
80
+ set_ruby_platform("mswin")
81
+ msg = "unaffected mswin version did not return same version"
82
+ verify_version("4.0.19","4.0.19", msg, self)
83
+ end
84
+
85
+ private
86
+ def set_ruby_platform(platform)
87
+ Object.const_set("RUBY_PLATFORM", platform)
88
+ end
89
+
90
+ def set_vbox_version(ver)
91
+ Veewee::Provider::Virtualbox::BoxCommand.send(:define_method, :vbox_version) do
92
+ ver
93
+ end
94
+ end
95
+ end
@@ -0,0 +1,67 @@
1
+ require 'test/unit'
2
+ require 'veewee/provider/virtualbox/box/helper/version'
3
+ require 'logger'
4
+
5
+ class TestVboxGuestAdditionsHelper < Test::Unit::TestCase
6
+ include Veewee::Provider::Virtualbox::BoxCommand
7
+
8
+ def affected_versions
9
+ {
10
+ "4.2.1" => "4.2.0",
11
+ "4.1.23" => "4.1.22"
12
+ }
13
+ end
14
+
15
+ def test_affected_osx_version_returns_downpatched_ga_version
16
+ set_ruby_platform("darwin")
17
+ affected_versions.each do |vbox_version, guest_version|
18
+ set_vbox_version(vbox_version)
19
+ assert_equal(guest_version, self.vboxga_version)
20
+ end
21
+ end
22
+
23
+ def test_unaffected_osx_version_returns_same_version
24
+ set_ruby_platform("darwin")
25
+ set_vbox_version("4.1.22")
26
+ assert_equal("4.1.22", self.vboxga_version)
27
+ end
28
+
29
+ def test_affected_linux_version_returns_same_version
30
+ set_ruby_platform("linux")
31
+ affected_versions.keys.each do |version|
32
+ set_vbox_version(version)
33
+ assert_equal(version, self.vboxga_version)
34
+ end
35
+ end
36
+
37
+ def test_unaffected_linux_version_returns_same_version
38
+ set_ruby_platform("linux")
39
+ set_vbox_version("4.0.19")
40
+ assert_equal("4.0.19", self.vboxga_version)
41
+ end
42
+
43
+ def test_affected_mswin_version_returns_same_version
44
+ set_ruby_platform("mswin")
45
+ affected_versions.keys.each do |version|
46
+ set_vbox_version(version)
47
+ assert_equal(version, self.vboxga_version)
48
+ end
49
+ end
50
+
51
+ def test_unaffected_mswin_version_returns_same_version
52
+ set_ruby_platform("mswin")
53
+ set_vbox_version("4.0.19")
54
+ assert_equal("4.0.19", self.vboxga_version)
55
+ end
56
+
57
+ private
58
+ def set_ruby_platform(platform)
59
+ Object.const_set("RUBY_PLATFORM", platform)
60
+ end
61
+
62
+ def set_vbox_version(ver)
63
+ Veewee::Provider::Virtualbox::BoxCommand.send(:define_method, :vbox_version) do
64
+ ver
65
+ end
66
+ end
67
+ end
@@ -0,0 +1,170 @@
1
+ # http://stackoverflow.com/questions/216202/why-does-an-ssh-remote-command-get-fewer-environment-variables-then-when-run-manu
2
+
3
+ Given /^I have no public keys set$/ do
4
+ @auth_methods = %w(password)
5
+ end
6
+
7
+ Then /^I can ssh to "([^\"]*)" with the following credentials:$/ do |host, table|
8
+ @auth_methods ||= %w(publickey password)
9
+
10
+ credentials = table.hashes
11
+ credentials.each do |creds|
12
+ lambda {
13
+ Net::SSH.start(host, creds["username"], :password => creds["password"], :auth_methods => @auth_methods)
14
+ }.should_not raise_error(Net::SSH::AuthenticationFailed)
15
+ end
16
+ end
17
+
18
+ Then /^I can ssh to the following hosts with these credentials:$/ do |table|
19
+ @keys ||= []
20
+ @auth_methods ||= %w(password)
21
+ environment_details = table.hashes
22
+
23
+ environment_details.each do |environment|
24
+ # initialize a list of keys and auth methods for just this environment, as
25
+ # environment can have environment-specific keys mixed with global keys
26
+ environment_keys = Array.new(@keys)
27
+ environment_auth_methods = Array.new(@auth_methods)
28
+
29
+ # you can pass in a keyfile in the environment details, so we need to
30
+ if environment["keyfile"]
31
+ environment_keys << environment["keyfile"]
32
+ environment_auth_methods << "publickey"
33
+ end
34
+
35
+ lambda {
36
+ Net::SSH.start(environment["hostname"], environment["username"], :password => environment["password"],
37
+ :auth_methods => environment_auth_methods,
38
+ :keys => environment_keys)
39
+ }.should_not raise_error(Net::SSH::AuthenticationFailed)
40
+ end
41
+ end
42
+
43
+ Given /^I have the following public keys:$/ do |table|
44
+ @keys = []
45
+ public_key_paths = table.hashes
46
+
47
+ public_key_paths.each do |key|
48
+ File.exist?(key["keyfile"]).should be_true
49
+ @keys << key["keyfile"]
50
+ end
51
+
52
+ @auth_methods ||= %w(password)
53
+ @auth_methods << "publickey"
54
+ end
55
+
56
+ When /^I ssh to "([^\"]*)" with the following credentials:$/ do |hostname, table|
57
+ @keys = []
58
+ @auth_methods ||= %w(password)
59
+ environment = table.hashes.first
60
+ environment_keys = Array.new(@keys)
61
+ environment_auth_methods = Array.new(@auth_methods)
62
+ if environment["keyfile"]
63
+ environment_keys << environment["keyfile"]
64
+ environment_auth_methods << "publickey"
65
+ end
66
+ environment_port=ENV['VEEWEE_SSH_PORT'] || 7222
67
+ if environment["port"]
68
+ environment_port=environment["port"]
69
+ end
70
+
71
+
72
+ lambda {
73
+ # This is the list of authorization methods to try. It defaults to “publickey”, “hostbased”, “password”, and “keyboard-interactive”. (These are also the only authorization methods that are supported.) If
74
+ # http://net-ssh.rubyforge.org/ssh/v1/chapter-2.html
75
+ key_auth_tried = false
76
+ ssh_options = {:password => environment["password"], :auth_methods => environment_auth_methods, :port => environment_port, :keys => environment_keys}
77
+ # ssh_options[:verbose] => :debug
78
+ begin
79
+ print "."
80
+ @connection = Net::SSH.start(environment["hostname"], environment["username"], ssh_options)
81
+ rescue Net::SSH::AuthenticationFailed
82
+ ssh_options[:keys] = Array.new([File.join(File.dirname(__FILE__),'./../../vagrant')])
83
+ ssh_options.delete(:password)
84
+ ssh_options[:auth_methods] = ['publickey']
85
+ if key_auth_tried
86
+ raise
87
+ else
88
+ key_auth_tried = true
89
+ retry
90
+ end
91
+ rescue Net::SSH::Disconnect, Errno::ECONNREFUSED, Errno::EHOSTUNREACH, Errno::ECONNABORTED, Errno::ECONNRESET, Errno::ENETUNREACH
92
+ sleep 5
93
+ end
94
+ }.should_not raise_error
95
+ end
96
+
97
+ #
98
+ When /^I run "([^\"]*)"$/ do |command|
99
+ @stdout=nil
100
+ @stderr=nil
101
+ @status=-9999
102
+ channel = @connection.open_channel do |ch|
103
+ ch.request_pty do |ch, success|
104
+ if success
105
+ # puts "pty successfully obtained"
106
+ else
107
+ # puts "could not obtain pty"
108
+ end
109
+ end
110
+ ch.exec "#{command}" do |ch, success|
111
+ raise "could not execute command" unless success
112
+
113
+ # "on_data" is called when the process writes something to stdout
114
+ ch.on_data do |c, data|
115
+ if @stdout.nil?
116
+ @stdout=data
117
+ else
118
+ @stdout+=data
119
+ end
120
+ end
121
+
122
+ # "on_extended_data" is called when the process writes something to stderr
123
+ ch.on_extended_data do |c, type, data|
124
+ if @stderr.nil?
125
+ @stderr=data
126
+ else
127
+ @stderr+=data
128
+ end
129
+ end
130
+
131
+ #exit code
132
+ #http://groups.google.com/group/comp.lang.ruby/browse_thread/thread/a806b0f5dae4e1e2
133
+ channel.on_request("exit-status") do |ch, data|
134
+ exit_code = data.read_long
135
+ @status=exit_code
136
+ end
137
+
138
+ channel.on_request("exit-signal") do |ch, data|
139
+ puts "SIGNAL: #{data.read_long}"
140
+ end
141
+
142
+ ch.on_close {
143
+ puts "done!"
144
+ }
145
+ end
146
+ end
147
+ channel.wait
148
+ if !@stdout.nil?
149
+ if @output.nil?
150
+ @output=""
151
+ end
152
+ @output=@output+@stdout
153
+ end
154
+ if !@stderr.nil?
155
+
156
+ if @output.nil?
157
+ @output=""
158
+ end
159
+ @output=@output+@stderr
160
+ end
161
+ puts @output
162
+
163
+ #@output = @connection.exec!(command)
164
+
165
+ end
166
+
167
+ Then /^I should see "([^\"]*)" in the output$/ do |string|
168
+ @output.should =~ /#{string}/
169
+ end
170
+
@@ -0,0 +1,27 @@
1
+ # http://stackoverflow.com/questions/216202/why-does-an-ssh-remote-command-get-fewer-environment-variables-then-when-run-manu
2
+
3
+ Given /^a veeweebox was build$/ do
4
+ @environment=Veewee::Environment.new()
5
+ @provider_name=ENV['VEEWEE_PROVIDER']
6
+ @definition_name=ENV['VEEWEE_BOXNAME']
7
+ @box_name=ENV['VEEWEE_BOXNAME']
8
+ @box=@environment.providers[@provider_name].get_box(@box_name)
9
+ end
10
+
11
+ When /^I sudorun "([^\"]*)" over ssh$/ do |command|
12
+ @box.exec("echo '#{command}' > /tmp/validation.sh && chmod a+x /tmp/validation.sh")
13
+ @sshresult=@box.exec(@box.sudo("/tmp/validation.sh"))
14
+ end
15
+
16
+ When /^I run "([^\"]*)" over ssh$/ do |command|
17
+ @sshresult=@box.exec(command, {:exitcode => '*'})
18
+ end
19
+
20
+ Then /^I should see the provided username in the output$/ do
21
+ @sshresult.stdout.should =~ /#{ENV["VEEWEE_SSH_USER"]}/
22
+ end
23
+
24
+ Then /^I should see "([^\"]*)" in the output$/ do |string|
25
+ @sshresult.stdout.should =~ /#{string}/
26
+ end
27
+
@@ -0,0 +1 @@
1
+ require 'net/ssh'
@@ -0,0 +1,27 @@
1
+ -----BEGIN RSA PRIVATE KEY-----
2
+ MIIEogIBAAKCAQEA6NF8iallvQVp22WDkTkyrtvp9eWW6A8YVr+kz4TjGYe7gHzI
3
+ w+niNltGEFHzD8+v1I2YJ6oXevct1YeS0o9HZyN1Q9qgCgzUFtdOKLv6IedplqoP
4
+ kcmF0aYet2PkEDo3MlTBckFXPITAMzF8dJSIFo9D8HfdOV0IAdx4O7PtixWKn5y2
5
+ hMNG0zQPyUecp4pzC6kivAIhyfHilFR61RGL+GPXQ2MWZWFYbAGjyiYJnAmCP3NO
6
+ Td0jMZEnDkbUvxhMmBYSdETk1rRgm+R4LOzFUGaHqHDLKLX+FIPKcF96hrucXzcW
7
+ yLbIbEgE98OHlnVYCzRdK8jlqm8tehUc9c9WhQIBIwKCAQEA4iqWPJXtzZA68mKd
8
+ ELs4jJsdyky+ewdZeNds5tjcnHU5zUYE25K+ffJED9qUWICcLZDc81TGWjHyAqD1
9
+ Bw7XpgUwFgeUJwUlzQurAv+/ySnxiwuaGJfhFM1CaQHzfXphgVml+fZUvnJUTvzf
10
+ TK2Lg6EdbUE9TarUlBf/xPfuEhMSlIE5keb/Zz3/LUlRg8yDqz5w+QWVJ4utnKnK
11
+ iqwZN0mwpwU7YSyJhlT4YV1F3n4YjLswM5wJs2oqm0jssQu/BT0tyEXNDYBLEF4A
12
+ sClaWuSJ2kjq7KhrrYXzagqhnSei9ODYFShJu8UWVec3Ihb5ZXlzO6vdNQ1J9Xsf
13
+ 4m+2ywKBgQD6qFxx/Rv9CNN96l/4rb14HKirC2o/orApiHmHDsURs5rUKDx0f9iP
14
+ cXN7S1uePXuJRK/5hsubaOCx3Owd2u9gD6Oq0CsMkE4CUSiJcYrMANtx54cGH7Rk
15
+ EjFZxK8xAv1ldELEyxrFqkbE4BKd8QOt414qjvTGyAK+OLD3M2QdCQKBgQDtx8pN
16
+ CAxR7yhHbIWT1AH66+XWN8bXq7l3RO/ukeaci98JfkbkxURZhtxV/HHuvUhnPLdX
17
+ 3TwygPBYZFNo4pzVEhzWoTtnEtrFueKxyc3+LjZpuo+mBlQ6ORtfgkr9gBVphXZG
18
+ YEzkCD3lVdl8L4cw9BVpKrJCs1c5taGjDgdInQKBgHm/fVvv96bJxc9x1tffXAcj
19
+ 3OVdUN0UgXNCSaf/3A/phbeBQe9xS+3mpc4r6qvx+iy69mNBeNZ0xOitIjpjBo2+
20
+ dBEjSBwLk5q5tJqHmy/jKMJL4n9ROlx93XS+njxgibTvU6Fp9w+NOFD/HvxB3Tcz
21
+ 6+jJF85D5BNAG3DBMKBjAoGBAOAxZvgsKN+JuENXsST7F89Tck2iTcQIT8g5rwWC
22
+ P9Vt74yboe2kDT531w8+egz7nAmRBKNM751U/95P9t88EDacDI/Z2OwnuFQHCPDF
23
+ llYOUI+SpLJ6/vURRbHSnnn8a/XG+nzedGH5JGqEJNQsz+xT2axM0/W/CRknmGaJ
24
+ kda/AoGANWrLCz708y7VYgAtW2Uf1DPOIYMdvo6fxIB5i9ZfISgcJ/bbCUkFrhoH
25
+ +vq/5CIWxCPp0f85R4qxxQ5ihxJ0YDQT9Jpx4TMss4PSavPaBH3RXow5Ohe+bYoQ
26
+ NE5OgEXk2wVfZczCZpigBKbKZHNYcelXtTt/nP3rsCuGcM4h53s=
27
+ -----END RSA PRIVATE KEY-----
@@ -0,0 +1 @@
1
+ ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAQEA6NF8iallvQVp22WDkTkyrtvp9eWW6A8YVr+kz4TjGYe7gHzIw+niNltGEFHzD8+v1I2YJ6oXevct1YeS0o9HZyN1Q9qgCgzUFtdOKLv6IedplqoPkcmF0aYet2PkEDo3MlTBckFXPITAMzF8dJSIFo9D8HfdOV0IAdx4O7PtixWKn5y2hMNG0zQPyUecp4pzC6kivAIhyfHilFR61RGL+GPXQ2MWZWFYbAGjyiYJnAmCP3NOTd0jMZEnDkbUvxhMmBYSdETk1rRgm+R4LOzFUGaHqHDLKLX+FIPKcF96hrucXzcWyLbIbEgE98OHlnVYCzRdK8jlqm8tehUc9c9WhQ== vagrant insecure public key
@@ -0,0 +1,34 @@
1
+ Feature: veewee box validation
2
+ As a valid veewee box
3
+ I need to comply to a set of rules
4
+ In order to make sure it works on Windows with Winrm
5
+
6
+ @vmfusion @virtualbox @kvm
7
+ Scenario: Valid definition
8
+ Given a veeweebox was build
9
+ And I run "whoami" over ssh
10
+ Then I should see the provided username in the output
11
+
12
+ @vmfusion @virtualbox @kvm
13
+ Scenario: Checking ruby
14
+ Given a veeweebox was build
15
+ And I run "ruby --version > %TEMP%\devnull && echo %ERRORLEVEL%" over ssh
16
+ Then I should see "0" in the output
17
+
18
+ @vmfusion @virtualbox @kvm
19
+ Scenario: Checking gem
20
+ Given a veeweebox was build
21
+ And I run "gem --version > %TEMP%\devnull && echo %ERRORLEVEL%" over ssh
22
+ Then I should see "0" in the output
23
+
24
+ @vmfusion @virtualbox @kvm
25
+ Scenario: Checking chef
26
+ Given a veeweebox was build
27
+ And I run "chef-client --version > %TEMP%\devnull && echo %ERRORLEVEL%" over ssh
28
+ Then I should see "0" in the output
29
+
30
+ @vagrant
31
+ Scenario: Checking shared folders
32
+ Given a veeweebox was build
33
+ And I run "net use|grep veewee-validation" over ssh
34
+ Then I should see "veewee-validation" in the output
@@ -0,0 +1,45 @@
1
+ Feature: veewee box validation
2
+ As a valid veewee box
3
+ I need to comply to a set of rules
4
+
5
+ @vmfusion @virtualbox @kvm @parallels
6
+ Scenario: Valid definition
7
+ Given a veeweebox was build
8
+ And I run "whoami" over ssh
9
+ Then I should see the provided username in the output
10
+
11
+ @vmfusion @virtualbox @kvm @parallels
12
+ Scenario: Checking sudo
13
+ Given a veeweebox was build
14
+ And I sudorun "whoami" over ssh
15
+ Then I should see "root" in the output
16
+
17
+ @vmfusion @virtualbox @kvm @parallels
18
+ Scenario: Checking ruby
19
+ Given a veeweebox was build
20
+ And I run ". /etc/profile ;ruby --version 2> /dev/null 1> /dev/null; echo $?" over ssh
21
+ Then I should see "0" in the output
22
+
23
+ @vmfusion @virtualbox @kvm @parallels
24
+ Scenario: Checking gem
25
+ Given a veeweebox was build
26
+ And I run ". /etc/profile; gem --version 2> /dev/null 1> /dev/null ; echo $?" over ssh
27
+ Then I should see "0" in the output
28
+
29
+ @chef
30
+ Scenario: Checking chef
31
+ Given a veeweebox was build
32
+ And I run ". /etc/profile ;chef-client --version 2> /dev/null 1>/dev/null; echo $?" over ssh
33
+ Then I should see "0" in the output
34
+
35
+ @puppet
36
+ Scenario: Checking puppet
37
+ Given a veeweebox was build
38
+ And I run ". /etc/profile ; puppet --version 2> /dev/null 1>/dev/null; echo $?" over ssh
39
+ Then I should see "0" in the output
40
+
41
+ @vagrant
42
+ Scenario: Checking shared folders
43
+ Given a veeweebox was build
44
+ And I run "mount|grep veewee-validation" over ssh
45
+ Then I should see "veewee-validation" in the output