HeSYINUvSBZfxqA-veewee 0.2.0.2 → 0.203.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (293) hide show
  1. data/README.md +53 -26
  2. data/Rakefile +41 -36
  3. data/lib/veewee.rb +2 -0
  4. data/lib/veewee/command.rb +1 -59
  5. data/lib/veewee/command/basebox.rb +63 -0
  6. data/lib/veewee/command/basebox_build.rb +32 -0
  7. data/lib/veewee/command/basebox_define.rb +28 -0
  8. data/lib/veewee/command/basebox_destroy.rb +22 -0
  9. data/lib/veewee/command/basebox_export.rb +22 -0
  10. data/lib/veewee/command/basebox_list.rb +23 -0
  11. data/lib/veewee/command/basebox_ostypes.rb +23 -0
  12. data/lib/veewee/command/basebox_templates.rb +23 -0
  13. data/lib/veewee/command/basebox_undefine.rb +22 -0
  14. data/lib/veewee/command/basebox_validate.rb +26 -0
  15. data/lib/veewee/config.rb +1 -2
  16. data/lib/veewee/export.rb +2 -2
  17. data/lib/veewee/scancode.rb +1 -1
  18. data/lib/veewee/session.rb +373 -249
  19. data/lib/veewee/transaction.rb +2 -11
  20. data/lib/veewee/version.rb +1 -1
  21. data/templates/CentOS-4.8-i386/definition.rb +1 -1
  22. data/templates/CentOS-4.8-i386/postinstall.sh +1 -1
  23. data/templates/CentOS-5.5-x86_64-netboot/definition.rb +16 -0
  24. data/templates/CentOS-5.5-x86_64-netboot/ks.cfg +46 -0
  25. data/templates/CentOS-5.5-x86_64-netboot/postinstall.sh +60 -0
  26. data/templates/CentOS-5.6-i386-netboot/definition.rb +1 -1
  27. data/templates/CentOS-5.6-i386-netboot/ks.cfg +2 -2
  28. data/templates/CentOS-5.6-i386-netboot/postinstall.sh +1 -1
  29. data/templates/CentOS-5.6-i386/postinstall.sh +1 -1
  30. data/templates/CentOS-5.6-x86_64-netboot/definition.rb +1 -1
  31. data/templates/CentOS-5.6-x86_64-netboot/ks.cfg +1 -1
  32. data/templates/CentOS-5.6-x86_64-netboot/postinstall.sh +3 -2
  33. data/templates/CentOS-5.7-i386-netboot/definition.rb +16 -0
  34. data/templates/CentOS-5.7-i386-netboot/ks.cfg +45 -0
  35. data/templates/CentOS-5.7-i386-netboot/postinstall.sh +53 -0
  36. data/templates/CentOS-5.7-x86_64-netboot/definition.rb +16 -0
  37. data/templates/CentOS-5.7-x86_64-netboot/ks.cfg +45 -0
  38. data/templates/CentOS-5.7-x86_64-netboot/postinstall.sh +60 -0
  39. data/templates/CentOS-6.0-i386-netboot/ks.cfg +1 -1
  40. data/templates/CentOS-6.0-i386-netboot/postinstall.sh +1 -1
  41. data/templates/CentOS-6.0-i386/postinstall.sh +2 -2
  42. data/templates/CentOS-6.0-x86_64-minimal/definition.rb +17 -0
  43. data/templates/CentOS-6.0-x86_64-minimal/ks.cfg +37 -0
  44. data/templates/CentOS-6.0-x86_64-minimal/postinstall.sh +58 -0
  45. data/templates/CentOS-6.0-x86_64-netboot/ks.cfg +1 -1
  46. data/templates/CentOS-6.0-x86_64-netboot/postinstall.sh +1 -1
  47. data/templates/CentOS-6.0-x86_64/postinstall.sh +2 -2
  48. data/templates/CentOS-6.1-x86_64-minimal/definition.rb +15 -0
  49. data/templates/CentOS-6.1-x86_64-minimal/ks.cfg +37 -0
  50. data/templates/CentOS-6.1-x86_64-minimal/postinstall.sh +50 -0
  51. data/templates/CentOS-6.2-x86_64-minimal/definition.rb +15 -0
  52. data/templates/CentOS-6.2-x86_64-minimal/ks.cfg +37 -0
  53. data/templates/CentOS-6.2-x86_64-minimal/postinstall.sh +50 -0
  54. data/templates/Debian-5.0.8-amd64-netboot/postinstall.sh +1 -1
  55. data/templates/Debian-5.0.8-i386-netboot/postinstall.sh +1 -1
  56. data/templates/{Debian-6.0.2-amd64-netboot → Debian-6.0.3-amd64-netboot}/definition.rb +3 -3
  57. data/templates/Debian-6.0.3-amd64-netboot/postinstall.sh +80 -0
  58. data/templates/{Debian-6.0.2-amd64-netboot → Debian-6.0.3-amd64-netboot}/preseed.cfg +0 -0
  59. data/templates/{Debian-6.0.2-i386-netboot → Debian-6.0.3-i386-netboot}/definition.rb +3 -3
  60. data/templates/{Debian-6.0.2-i386-netboot → Debian-6.0.3-i386-netboot}/postinstall.sh +2 -2
  61. data/templates/{Debian-6.0.2-i386-netboot → Debian-6.0.3-i386-netboot}/preseed.cfg +0 -0
  62. data/templates/Fedora-14-amd64-netboot/definition.rb +1 -1
  63. data/templates/Fedora-14-amd64-netboot/postinstall.sh +1 -1
  64. data/templates/Fedora-14-amd64/definition.rb +1 -1
  65. data/templates/Fedora-14-amd64/postinstall.sh +1 -1
  66. data/templates/Fedora-14-i386-netboot/postinstall.sh +1 -1
  67. data/templates/Fedora-14-i386/postinstall.sh +1 -1
  68. data/templates/Fedora-15-x86_64-netboot/definition.rb +29 -0
  69. data/templates/Fedora-15-x86_64-netboot/ks.cfg +64 -0
  70. data/templates/Fedora-15-x86_64-netboot/postinstall.sh +33 -0
  71. data/templates/Fedora-15-x86_64/definition.rb +17 -0
  72. data/templates/Fedora-15-x86_64/ks.cfg +64 -0
  73. data/templates/Fedora-15-x86_64/postinstall.sh +33 -0
  74. data/templates/Fedora-16-i386/definition.rb +17 -0
  75. data/templates/Fedora-16-i386/ks.cfg +72 -0
  76. data/templates/Fedora-16-i386/postinstall.sh +35 -0
  77. data/templates/Fedora-16-x86_64/definition.rb +17 -0
  78. data/templates/Fedora-16-x86_64/ks.cfg +72 -0
  79. data/templates/Fedora-16-x86_64/postinstall.sh +35 -0
  80. data/templates/SLES-11-SP1-DVD-i586-GM/autoinst_de.xml +1127 -0
  81. data/templates/SLES-11-SP1-DVD-i586-GM/autoinst_en.xml +1127 -0
  82. data/templates/SLES-11-SP1-DVD-i586-GM/definition.rb +37 -0
  83. data/templates/SLES-11-SP1-DVD-i586-GM/postinstall.sh +43 -0
  84. data/templates/SLES-11-SP1-DVD-x86_64-GM/autoinst_de.xml +1171 -0
  85. data/templates/SLES-11-SP1-DVD-x86_64-GM/autoinst_en.xml +1171 -0
  86. data/templates/SLES-11-SP1-DVD-x86_64-GM/definition.rb +37 -0
  87. data/templates/SLES-11-SP1-DVD-x86_64-GM/postinstall.sh +43 -0
  88. data/templates/archlinux-i386-netboot/aif.cfg +28 -0
  89. data/templates/archlinux-i386-netboot/definition.rb +26 -0
  90. data/templates/archlinux-i386-netboot/postinstall.sh +75 -0
  91. data/templates/archlinux-i386-netboot/postinstall2.sh +30 -0
  92. data/templates/archlinux-i386/postinstall.sh +12 -1
  93. data/templates/archlinux-x86_64-netboot/aif.cfg +28 -0
  94. data/templates/archlinux-x86_64-netboot/definition.rb +26 -0
  95. data/templates/archlinux-x86_64-netboot/postinstall.sh +75 -0
  96. data/templates/archlinux-x86_64-netboot/postinstall2.sh +30 -0
  97. data/templates/archlinux-x86_64/aif.cfg +1 -1
  98. data/templates/archlinux-x86_64/definition.rb +1 -1
  99. data/templates/archlinux-x86_64/postinstall.sh +16 -21
  100. data/templates/archlinux-x86_64/postinstall2.sh +38 -0
  101. data/templates/freebsd-8.2-pcbsd-i386-netboot/definition.rb +2 -4
  102. data/templates/freebsd-8.2-pcbsd-i386-netboot/postinstall.sh +1 -1
  103. data/templates/freebsd-8.2-pcbsd-i386/definition.rb +3 -2
  104. data/templates/freebsd-8.2-pcbsd-i386/postinstall.sh +1 -1
  105. data/templates/funtoo-latest-generic_64-stable/definition.rb +34 -0
  106. data/templates/funtoo-latest-generic_64-stable/postinstall.sh +177 -0
  107. data/templates/funtoo-latest-generic_64-stable/postinstall2.sh +83 -0
  108. data/templates/gentoo-latest-i386-experimental/definition.rb +9 -9
  109. data/templates/gentoo-latest-i386-experimental/postinstall.sh +1 -1
  110. data/templates/gentoo-latest-x86_64-experimental/definition.rb +34 -0
  111. data/templates/gentoo-latest-x86_64-experimental/postinstall.sh +214 -0
  112. data/templates/openSUSE-11.4-DVD-i586/autoinst_de.xml +1284 -0
  113. data/templates/openSUSE-11.4-DVD-i586/autoinst_en.xml +1284 -0
  114. data/templates/openSUSE-11.4-DVD-i586/definition.rb +28 -0
  115. data/templates/openSUSE-11.4-DVD-i586/postinstall.sh +43 -0
  116. data/templates/openSUSE-11.4-DVD-x86_64/autoinst_de.xml +1459 -0
  117. data/templates/openSUSE-11.4-DVD-x86_64/autoinst_en.xml +1459 -0
  118. data/templates/openSUSE-11.4-DVD-x86_64/definition.rb +28 -0
  119. data/templates/openSUSE-11.4-DVD-x86_64/postinstall.sh +43 -0
  120. data/templates/openSUSE-11.4-NET-i586/autoinst_de.xml +1278 -0
  121. data/templates/openSUSE-11.4-NET-i586/autoinst_en.xml +1278 -0
  122. data/templates/openSUSE-11.4-NET-i586/definition.rb +28 -0
  123. data/templates/openSUSE-11.4-NET-i586/postinstall.sh +43 -0
  124. data/templates/openSUSE-11.4-NET-x86_64/autoinst_de.xml +1453 -0
  125. data/templates/openSUSE-11.4-NET-x86_64/autoinst_en.xml +1453 -0
  126. data/templates/openSUSE-11.4-NET-x86_64/definition.rb +28 -0
  127. data/templates/openSUSE-11.4-NET-x86_64/postinstall.sh +43 -0
  128. data/templates/openSUSE-12.1-DVD+NET-i586/autoinst_de.xml +1483 -0
  129. data/templates/openSUSE-12.1-DVD+NET-i586/autoinst_en.xml +1483 -0
  130. data/templates/openSUSE-12.1-DVD+NET-i586/definition.rb +44 -0
  131. data/templates/openSUSE-12.1-DVD+NET-i586/postinstall.sh +43 -0
  132. data/templates/openSUSE-12.1-DVD+NET-x86_64/autoinst_de.xml +1727 -0
  133. data/templates/openSUSE-12.1-DVD+NET-x86_64/autoinst_en.xml +1727 -0
  134. data/templates/openSUSE-12.1-DVD+NET-x86_64/definition.rb +44 -0
  135. data/templates/openSUSE-12.1-DVD+NET-x86_64/postinstall.sh +43 -0
  136. data/templates/openbsd50_amd64/README +28 -0
  137. data/templates/openbsd50_amd64/definition.rb +84 -0
  138. data/templates/openbsd50_amd64/postinstall.sh +81 -0
  139. data/templates/openbsd50_i386/.definition.rb.swp +0 -0
  140. data/templates/openbsd50_i386/README +28 -0
  141. data/templates/openbsd50_i386/definition.rb +84 -0
  142. data/templates/openbsd50_i386/postinstall.sh +80 -0
  143. data/templates/openindiana-148-ai-x86/definition.rb +1 -1
  144. data/templates/openindiana-148-ai-x86/postinstall.sh +1 -1
  145. data/templates/opensuse-11.4-i386-experimental/postinstall.sh +1 -1
  146. data/templates/scientificlinux-6.1-i386-netboot/definition.rb +16 -0
  147. data/templates/scientificlinux-6.1-i386-netboot/ks.cfg +53 -0
  148. data/templates/scientificlinux-6.1-i386-netboot/postinstall.sh +30 -0
  149. data/templates/scientificlinux-6.1-x86_64-netboot/definition.rb +16 -0
  150. data/templates/scientificlinux-6.1-x86_64-netboot/ks.cfg +53 -0
  151. data/templates/scientificlinux-6.1-x86_64-netboot/postinstall.sh +30 -0
  152. data/templates/solaris-11-express-i386/definition.rb +1 -1
  153. data/templates/solaris-11-express-i386/postinstall.sh +1 -1
  154. data/templates/ubuntu-10.04.2-amd64-netboot/postinstall.sh +1 -1
  155. data/templates/ubuntu-10.04.2-server-i386-netboot/postinstall.sh +1 -1
  156. data/templates/{ubuntu-10.04.2-server-amd64-alt → ubuntu-10.04.3-server-amd64-alt}/definition.rb +6 -6
  157. data/templates/{ubuntu-10.04.2-server-amd64-alt → ubuntu-10.04.3-server-amd64-alt}/postinstall.sh +1 -1
  158. data/templates/{ubuntu-10.04.2-server-amd64-alt → ubuntu-10.04.3-server-amd64-alt}/preseed.cfg +0 -0
  159. data/templates/{ubuntu-10.04.2-server-amd64 → ubuntu-10.04.3-server-amd64}/definition.rb +3 -6
  160. data/templates/{ubuntu-10.04.2-server-amd64 → ubuntu-10.04.3-server-amd64}/postinstall.sh +1 -1
  161. data/templates/{ubuntu-10.04.2-server-amd64 → ubuntu-10.04.3-server-amd64}/preseed.cfg +0 -0
  162. data/templates/{ubuntu-10.04.2-server-i386 → ubuntu-10.04.3-server-i386}/definition.rb +4 -4
  163. data/templates/{ubuntu-10.04.2-server-i386 → ubuntu-10.04.3-server-i386}/postinstall.sh +1 -1
  164. data/templates/{ubuntu-10.04.2-server-i386 → ubuntu-10.04.3-server-i386}/preseed.cfg +0 -0
  165. data/templates/ubuntu-10.10-server-amd64-netboot/postinstall.sh +1 -1
  166. data/templates/ubuntu-10.10-server-amd64/postinstall.sh +1 -1
  167. data/templates/ubuntu-10.10-server-i386-netboot/postinstall.sh +1 -1
  168. data/templates/ubuntu-10.10-server-i386/postinstall.sh +1 -1
  169. data/templates/ubuntu-11.04-server-amd64/postinstall.sh +7 -1
  170. data/templates/ubuntu-11.04-server-i386/definition.rb +1 -1
  171. data/templates/ubuntu-11.04-server-i386/postinstall.sh +1 -1
  172. data/templates/ubuntu-11.10-server-amd64-ishaya/definition.rb +24 -0
  173. data/templates/{Debian-6.0.2-amd64-netboot → ubuntu-11.10-server-amd64-ishaya}/postinstall.sh +42 -23
  174. data/templates/ubuntu-11.10-server-amd64-ishaya/preseed.cfg +87 -0
  175. data/templates/ubuntu-11.10-server-amd64-ruby192/definition.rb +24 -0
  176. data/templates/ubuntu-11.10-server-amd64-ruby192/postinstall.sh +90 -0
  177. data/templates/ubuntu-11.10-server-amd64-ruby192/preseed.cfg +87 -0
  178. data/templates/ubuntu-11.10-server-amd64/definition.rb +35 -0
  179. data/templates/ubuntu-11.10-server-amd64/postinstall.sh +88 -0
  180. data/templates/ubuntu-11.10-server-amd64/preseed.cfg +87 -0
  181. data/templates/ubuntu-11.10-server-i386/definition.rb +35 -0
  182. data/templates/ubuntu-11.10-server-i386/postinstall.sh +88 -0
  183. data/templates/ubuntu-11.10-server-i386/preseed.cfg +87 -0
  184. data/templates/ubuntu-8.04.4-server-amd64/definition.rb +1 -0
  185. data/templates/ubuntu-8.04.4-server-amd64/postinstall.sh +8 -7
  186. data/templates/ubuntu-8.04.4-server-amd64/preseed.cfg +0 -1
  187. data/templates/ubuntu-8.04.4-server-i386/definition.rb +1 -1
  188. data/templates/ubuntu-8.04.4-server-i386/postinstall.sh +25 -3
  189. data/templates/windows-2008R1-serverstandard-amd64/Autounattend.xml +146 -0
  190. data/templates/windows-2008R1-serverstandard-amd64/README.md +134 -0
  191. data/templates/windows-2008R1-serverstandard-amd64/cygwin-setup.exe +0 -0
  192. data/templates/windows-2008R1-serverstandard-amd64/definition.rb +114 -0
  193. data/templates/windows-2008R1-serverstandard-amd64/install-cygwin-sshd.bat +40 -0
  194. data/templates/windows-2008R1-serverstandard-amd64/install-guest-additions.bat +5 -0
  195. data/templates/windows-2008R1-serverstandard-amd64/install-winrm.bat +14 -0
  196. data/templates/windows-2008R1-serverstandard-amd64/oracle-cert.cer +0 -0
  197. data/templates/windows-2008R1-serverstandard-amd64/postinstall.sh +74 -0
  198. data/templates/windows-2008R1-serverstandard-amd64/sudo +2 -0
  199. data/templates/windows-2008R1-serverstandard-amd64/winrm.rb +8 -0
  200. data/templates/windows-2008R2-amd64/cygwin-setup.exe +0 -0
  201. data/templates/windows-2008R2-amd64/install-winrm.bat +2 -0
  202. data/templates/windows-2008R2-amd64/postinstall.sh +1 -1
  203. data/templates/windows-2008R2-serverstandard-amd64/Autounattend.xml +147 -0
  204. data/templates/windows-2008R2-serverstandard-amd64/README.md +142 -0
  205. data/templates/windows-2008R2-serverstandard-amd64/definition.rb +44 -0
  206. data/templates/windows-2008R2-serverstandard-amd64/install-cygwin-sshd.bat +41 -0
  207. data/templates/windows-2008R2-serverstandard-amd64/install-winrm.bat +11 -0
  208. data/templates/windows-2008R2-serverstandard-amd64/oracle-cert.cer +0 -0
  209. data/templates/windows-2008R2-serverstandard-amd64/postinstall.sh +74 -0
  210. data/templates/windows-7-enterprise-amd64/Autounattend.xml +149 -0
  211. data/templates/windows-7-enterprise-amd64/README.md +52 -0
  212. data/templates/windows-7-enterprise-amd64/definition.rb +39 -0
  213. data/templates/windows-7-enterprise-amd64/install-cygwin-sshd.bat +40 -0
  214. data/templates/windows-7-enterprise-amd64/install-winrm.bat +14 -0
  215. data/templates/windows-7-enterprise-amd64/oracle-cert.cer +0 -0
  216. data/templates/windows-7-enterprise-amd64/postinstall.sh +74 -0
  217. data/templates/windows-7-enterprise-i386/Autounattend.xml +151 -0
  218. data/templates/windows-7-enterprise-i386/README.md +169 -0
  219. data/templates/windows-7-enterprise-i386/definition.rb +40 -0
  220. data/templates/windows-7-enterprise-i386/install-cygwin-sshd.bat +40 -0
  221. data/templates/windows-7-enterprise-i386/install-winrm.bat +14 -0
  222. data/templates/windows-7-enterprise-i386/oracle-cert.cer +0 -0
  223. data/templates/windows-7-enterprise-i386/postinstall.sh +74 -0
  224. data/templates/windows-7-premium-amd64/Autounattend.xml +152 -0
  225. data/templates/windows-7-premium-amd64/README.md +171 -0
  226. data/templates/windows-7-premium-amd64/definition.rb +38 -0
  227. data/templates/windows-7-premium-amd64/install-chefclient.bat +44 -0
  228. data/templates/windows-7-premium-amd64/install-winrm.bat +11 -0
  229. data/templates/windows-7-premium-amd64/oracle-cert.cer +0 -0
  230. data/templates/windows-7-premium-amd64/postinstall.sh +124 -0
  231. data/templates/windows-7-premium-amd64/winrm.rb +8 -0
  232. data/templates/windows-7-professional-amd64/Autounattend.xml +152 -0
  233. data/templates/windows-7-professional-amd64/README.md +171 -0
  234. data/templates/windows-7-professional-amd64/definition.rb +41 -0
  235. data/templates/windows-7-professional-amd64/install-cygwin-sshd.bat +40 -0
  236. data/templates/windows-7-professional-amd64/install-winrm.bat +14 -0
  237. data/templates/windows-7-professional-amd64/oracle-cert.cer +0 -0
  238. data/templates/windows-7-professional-amd64/postinstall.sh +74 -0
  239. data/templates/windows-7-ultimate-amd64/Autounattend.xml +152 -0
  240. data/templates/windows-7-ultimate-amd64/README.md +89 -0
  241. data/templates/windows-7-ultimate-amd64/definition.rb +41 -0
  242. data/templates/windows-7-ultimate-amd64/install-cygwin-sshd.bat +40 -0
  243. data/templates/windows-7-ultimate-amd64/install-winrm.bat +14 -0
  244. data/templates/windows-7-ultimate-amd64/oracle-cert.cer +0 -0
  245. data/templates/windows-7-ultimate-amd64/postinstall.sh +74 -0
  246. data/templates/windows-7sp1-ultimate-amd64/Autounattend.xml +152 -0
  247. data/templates/windows-7sp1-ultimate-amd64/README.md +89 -0
  248. data/templates/windows-7sp1-ultimate-amd64/definition.rb +42 -0
  249. data/templates/windows-7sp1-ultimate-amd64/install-cygwin-sshd.bat +40 -0
  250. data/templates/windows-7sp1-ultimate-amd64/install-winrm.bat +14 -0
  251. data/templates/windows-7sp1-ultimate-amd64/oracle-cert.cer +0 -0
  252. data/templates/windows-7sp1-ultimate-amd64/postinstall.sh +74 -0
  253. data/templates/windows-8-preview-dev-amd64/Autounattend.xml +140 -0
  254. data/templates/windows-8-preview-dev-amd64/README.md +134 -0
  255. data/templates/windows-8-preview-dev-amd64/cygwin-setup.exe +0 -0
  256. data/templates/windows-8-preview-dev-amd64/definition.rb +114 -0
  257. data/templates/windows-8-preview-dev-amd64/install-cygwin-sshd.bat +38 -0
  258. data/templates/windows-8-preview-dev-amd64/install-winrm.bat +11 -0
  259. data/templates/windows-8-preview-dev-amd64/oracle-cert.cer +0 -0
  260. data/templates/windows-8-preview-dev-amd64/postinstall.sh +122 -0
  261. data/templates/windows-8-preview-dev-amd64/winrm.rb +8 -0
  262. data/validation/features/steps/ssh_steps.rb +1 -1
  263. data/validation/vagrant.feature +35 -35
  264. data/veewee.gemspec +9 -8
  265. metadata +247 -82
  266. data/.gitignore +0 -15
  267. data/Gemfile +0 -3
  268. data/Gemfile.lock +0 -69
  269. data/HeSYINUvSBZfxqA-veewee.gemspec +0 -33
  270. data/vendor/cache/Platform-0.4.0.gem +0 -0
  271. data/vendor/cache/archive-tar-minitar-0.5.2.gem +0 -0
  272. data/vendor/cache/builder-3.0.0.gem +0 -0
  273. data/vendor/cache/cucumber-1.0.2.gem +0 -0
  274. data/vendor/cache/diff-lcs-1.1.2.gem +0 -0
  275. data/vendor/cache/erubis-2.7.0.gem +0 -0
  276. data/vendor/cache/ffi-1.0.9.gem +0 -0
  277. data/vendor/cache/gherkin-2.4.6.gem +0 -0
  278. data/vendor/cache/highline-1.6.2.gem +0 -0
  279. data/vendor/cache/i18n-0.5.0.gem +0 -0
  280. data/vendor/cache/json-1.5.3.gem +0 -0
  281. data/vendor/cache/net-scp-1.0.4.gem +0 -0
  282. data/vendor/cache/net-ssh-2.1.4.gem +0 -0
  283. data/vendor/cache/open4-1.1.0.gem +0 -0
  284. data/vendor/cache/popen4-0.1.2.gem +0 -0
  285. data/vendor/cache/progressbar-0.9.1.gem +0 -0
  286. data/vendor/cache/rspec-2.5.0.gem +0 -0
  287. data/vendor/cache/rspec-core-2.5.2.gem +0 -0
  288. data/vendor/cache/rspec-expectations-2.5.0.gem +0 -0
  289. data/vendor/cache/rspec-mocks-2.5.0.gem +0 -0
  290. data/vendor/cache/term-ansicolor-1.0.6.gem +0 -0
  291. data/vendor/cache/thor-0.14.6.gem +0 -0
  292. data/vendor/cache/vagrant-0.8.2.gem +0 -0
  293. data/vendor/cache/virtualbox-0.9.1.gem +0 -0
data/README.md CHANGED
@@ -32,39 +32,66 @@ If you don't use rvm, be sure to execute vagrant through bundle exec
32
32
 
33
33
  $ vagrant basebox templates
34
34
  The following templates are available:
35
- vagrant basebox define '<boxname>' 'ubuntu-10.10-server-i386-netboot'
36
- vagrant basebox define '<boxname>' 'ubuntu-10.10-server-amd64-netboot'
37
- vagrant basebox define '<boxname>' 'solaris-11-express-i386'
38
- vagrant basebox define '<boxname>' 'freebsd-8.2-pcbsd-i386-netboot'
35
+ vagrant basebox define '<boxname>' 'CentOS-4.8-i386'
36
+ vagrant basebox define '<boxname>' 'CentOS-5.5-x86_64-netboot'
37
+ vagrant basebox define '<boxname>' 'CentOS-5.6-i386'
38
+ vagrant basebox define '<boxname>' 'CentOS-5.6-i386-netboot'
39
+ vagrant basebox define '<boxname>' 'CentOS-5.6-x86_64-netboot'
40
+ vagrant basebox define '<boxname>' 'CentOS-5.7-i386-netboot'
41
+ vagrant basebox define '<boxname>' 'CentOS-5.7-x86_64-netboot'
42
+ vagrant basebox define '<boxname>' 'CentOS-6.0-i386'
43
+ vagrant basebox define '<boxname>' 'CentOS-6.0-i386-netboot'
44
+ vagrant basebox define '<boxname>' 'CentOS-6.0-x86_64'
45
+ vagrant basebox define '<boxname>' 'CentOS-6.0-x86_64-minimal'
46
+ vagrant basebox define '<boxname>' 'CentOS-6.0-x86_64-netboot'
47
+ vagrant basebox define '<boxname>' 'Debian-5.0.8-amd64-netboot'
48
+ vagrant basebox define '<boxname>' 'Debian-5.0.8-i386-netboot'
49
+ vagrant basebox define '<boxname>' 'Debian-6.0.3-amd64-netboot'
50
+ vagrant basebox define '<boxname>' 'Debian-6.0.3-i386-netboot'
51
+ vagrant basebox define '<boxname>' 'Fedora-14-amd64'
39
52
  vagrant basebox define '<boxname>' 'Fedora-14-amd64-netboot'
40
- vagrant basebox define '<boxname>' 'ubuntu-11.04-server-amd64'
53
+ vagrant basebox define '<boxname>' 'Fedora-14-i386'
54
+ vagrant basebox define '<boxname>' 'Fedora-14-i386-netboot'
55
+ vagrant basebox define '<boxname>' 'Fedora-15-i386'
56
+ vagrant basebox define '<boxname>' 'Fedora-15-i386-netboot'
57
+ vagrant basebox define '<boxname>' 'Fedora-15-x86_64'
58
+ vagrant basebox define '<boxname>' 'Fedora-15-x86_64-netboot'
59
+ vagrant basebox define '<boxname>' 'Sysrescuecd-2.0.0-experimental'
60
+ vagrant basebox define '<boxname>' 'archlinux-i386'
61
+ vagrant basebox define '<boxname>' 'archlinux-i386-netboot'
62
+ vagrant basebox define '<boxname>' 'archlinux-x86_64'
63
+ vagrant basebox define '<boxname>' 'archlinux-x86_64-netboot'
41
64
  vagrant basebox define '<boxname>' 'freebsd-8.2-experimental'
42
- vagrant basebox define '<boxname>' 'archlinux-i686'
43
- vagrant basebox define '<boxname>' 'CentOS-5.6-i386-netboot'
65
+ vagrant basebox define '<boxname>' 'freebsd-8.2-pcbsd-i386'
66
+ vagrant basebox define '<boxname>' 'freebsd-8.2-pcbsd-i386-netboot'
67
+ vagrant basebox define '<boxname>' 'gentoo-latest-i386-experimental'
68
+ vagrant basebox define '<boxname>' 'openSUSE-11.4-DVD-i586'
69
+ vagrant basebox define '<boxname>' 'openSUSE-11.4-DVD-x86_64'
70
+ vagrant basebox define '<boxname>' 'openSUSE-11.4-NET-i586'
71
+ vagrant basebox define '<boxname>' 'openSUSE-11.4-NET-x86_64'
44
72
  vagrant basebox define '<boxname>' 'openindiana-148-ai-x86'
45
- vagrant basebox define '<boxname>' 'ubuntu-10.10-server-i386'
46
- vagrant basebox define '<boxname>' 'ubuntu-10.04.2-server-i386'
73
+ vagrant basebox define '<boxname>' 'opensuse-11.4-i386-experimental'
74
+ vagrant basebox define '<boxname>' 'scientificlinux-6.1-i386-netboot'
75
+ vagrant basebox define '<boxname>' 'scientificlinux-6.1-x86_64-netboot'
76
+ vagrant basebox define '<boxname>' 'solaris-11-express-i386'
47
77
  vagrant basebox define '<boxname>' 'ubuntu-10.04.2-amd64-netboot'
48
- vagrant basebox define '<boxname>' 'Sysrescuecd-2.0.0-experimental'
49
- vagrant basebox define '<boxname>' 'Debian-6.0.1a-amd64-netboot'
50
- vagrant basebox define '<boxname>' 'freebsd-8.2-pcbsd-i386'
51
- vagrant basebox define '<boxname>' 'Fedora-14-i386'
52
- vagrant basebox define '<boxname>' 'Fedora-14-amd64'
53
78
  vagrant basebox define '<boxname>' 'ubuntu-10.04.2-server-i386-netboot'
54
- vagrant basebox define '<boxname>' 'opensuse-11.4-i386-experimental'
55
- vagrant basebox define '<boxname>' 'CentOS-4.8-i386'
56
- vagrant basebox define '<boxname>' 'ubuntu-10.04.2-server-amd64'
79
+ vagrant basebox define '<boxname>' 'ubuntu-10.04.3-server-amd64'
80
+ vagrant basebox define '<boxname>' 'ubuntu-10.04.3-server-amd64-alt'
81
+ vagrant basebox define '<boxname>' 'ubuntu-10.04.3-server-i386'
82
+ vagrant basebox define '<boxname>' 'ubuntu-10.10-server-amd64'
83
+ vagrant basebox define '<boxname>' 'ubuntu-10.10-server-amd64-netboot'
84
+ vagrant basebox define '<boxname>' 'ubuntu-10.10-server-i386'
85
+ vagrant basebox define '<boxname>' 'ubuntu-10.10-server-i386-netboot'
86
+ vagrant basebox define '<boxname>' 'ubuntu-11.04-server-amd64'
87
+ vagrant basebox define '<boxname>' 'ubuntu-11.04-server-i386'
88
+ vagrant basebox define '<boxname>' 'ubuntu-11.10-server-amd64'
89
+ vagrant basebox define '<boxname>' 'ubuntu-11.10-server-amd64-ishaya'
90
+ vagrant basebox define '<boxname>' 'ubuntu-11.10-server-amd64-ruby192'
91
+ vagrant basebox define '<boxname>' 'ubuntu-11.10-server-i386'
57
92
  vagrant basebox define '<boxname>' 'ubuntu-8.04.4-server-amd64'
58
- vagrant basebox define '<boxname>' 'gentoo-latest-i386-experimental'
59
93
  vagrant basebox define '<boxname>' 'ubuntu-8.04.4-server-i386'
60
94
  vagrant basebox define '<boxname>' 'windows-2008R2-amd64'
61
- vagrant basebox define '<boxname>' 'Fedora-14-i386-netboot'
62
- vagrant basebox define '<boxname>' 'archlinux-64-experimental'
63
- vagrant basebox define '<boxname>' 'Debian-6.0.1a-i386-netboot'
64
- vagrant basebox define '<boxname>' 'ubuntu-10.10-server-amd64'
65
- vagrant basebox define '<boxname>' 'archlinux-64-aif-experimental'
66
- vagrant basebox define '<boxname>' 'ubuntu-11.04-server-i386'
67
- vagrant basebox define '<boxname>' 'CentOS-5.6-i386'
68
95
 
69
96
 
70
97
  ## Define a new box
@@ -131,7 +158,7 @@ Put your isofile inside the 'currentdir'/iso directory or if you don't run
131
158
  - Mount the ISO File :iso_file
132
159
  - Boot up the machine and wait for :boot_time
133
160
  - Send the keystrokes in :boot_cmd_sequence
134
- - Startup a webserver on :kickstart_port to wait for a request for the :kickstart_file
161
+ - Startup a webserver on :kickstart_port to wait for a request for the :kickstart_file (don't navigate to the file in your browser or the server will stop and the installer will not be able to find your preseed)
135
162
  - Wait for ssh login to work with :ssh_user , :ssh_password
136
163
  - Sudo execute the :postinstall_files
137
164
 
data/Rakefile CHANGED
@@ -4,67 +4,72 @@ require 'bundler/setup'
4
4
  Bundler::GemHelper.install_tasks
5
5
 
6
6
  #Setup some base variables to use
7
- veewee_dir= "."
8
- definition_dir= File.expand_path(File.join(veewee_dir, "definitions"))
9
- lib_dir= File.expand_path(File.join(veewee_dir, "lib"))
10
- box_dir= File.expand_path(File.join(veewee_dir, "boxes"))
11
- template_dir=File.expand_path(File.join(veewee_dir, "templates"))
12
- vbox_dir=File.expand_path(File.join(veewee_dir, "tmp"))
13
- tmp_dir=File.expand_path(File.join(veewee_dir, "tmp"))
14
- iso_dir=File.expand_path(File.join(veewee_dir, "iso"))
7
+ veewee_dir = "."
8
+ lib_dir = File.expand_path(File.join(veewee_dir, "lib"))
9
+ box_dir = File.expand_path(File.join(veewee_dir, "boxes"))
10
+ vbox_dir = File.expand_path(File.join(veewee_dir, "tmp"))
11
+ tmp_dir = File.expand_path(File.join(veewee_dir, "tmp"))
12
+ iso_dir = File.expand_path(File.join(veewee_dir, "iso"))
13
+ definition_dir = File.expand_path(File.join(veewee_dir, "definitions"))
14
+ template_dir = File.expand_path(File.join(veewee_dir, "templates"))
15
15
 
16
16
 
17
17
  #Load Veewee::Session libraries
18
- Dir.glob(File.join(lib_dir, '**','*.rb')).each {|f|
19
- require f }
18
+ Dir.glob(File.join(lib_dir, '**','*.rb')).each { |f| require f }
20
19
 
21
20
  #Initialize
22
- Veewee::Session.setenv({:veewee_dir => veewee_dir, :definition_dir => definition_dir,
23
- :template_dir => template_dir, :iso_dir => iso_dir, :box_dir => box_dir, :tmp_dir => tmp_dir})
21
+ Veewee::Session.setenv({
22
+ :veewee_dir => veewee_dir,
23
+ :definition_dir => definition_dir,
24
+ :template_dir => template_dir,
25
+ :iso_dir => iso_dir,
26
+ :box_dir => box_dir,
27
+ :tmp_dir => tmp_dir
28
+ })
24
29
 
25
30
  desc 'Default: list templates'
26
31
  task :default => [:templates]
27
32
 
28
33
  desc 'List templates'
29
34
  task :templates do
30
- Veewee::Session.list_templates
35
+ Veewee::Session.list_templates
31
36
  end
32
37
 
33
38
  desc 'Define box'
34
39
  task :define, [:boxname,:template_name] do |t,args|
35
- if args.to_hash.size!=2
36
- puts "needs two arguments: rake define['boxname','template_name']"
37
- exit
38
- end
39
- Veewee::Session.define(args.boxname,args.template_name)
40
+ if args.to_hash.size!=2
41
+ puts "needs two arguments: rake define['boxname','template_name']"
42
+ exit
43
+ end
44
+ Veewee::Session.define(args.boxname,args.template_name)
40
45
  end
41
46
 
42
47
  desc 'Undefine box'
43
48
  task :undefine, [:boxname] do |t,args|
44
- if args.to_hash.size!=1
45
- puts "needs one arguments: rake undefine[\"yourname\"]"
46
- exit
47
- end
48
- Veewee::Session.undefine(args.boxname)
49
+ if args.to_hash.size!=1
50
+ puts "needs one arguments: rake undefine[\"yourname\"]"
51
+ exit
52
+ end
53
+ Veewee::Session.undefine(args.boxname)
49
54
  end
50
55
 
51
56
  desc 'List Definitions'
52
- task :definitions do
53
- Veewee::Session.list_definitions
57
+ task :definitions do
58
+ Veewee::Session.list_definitions
54
59
  end
55
60
 
56
61
  desc 'Build box'
57
62
  task :build, [:boxname] do |t,args|
58
- if args.to_hash.size!=1
59
- puts "needs one arguments: rake build['boxname']"
60
- exit
61
- end
62
- Veewee::Session.build(args.boxname)
63
+ if args.to_hash.size!=1
64
+ puts "needs one arguments: rake build['boxname']"
65
+ exit
66
+ end
67
+ Veewee::Session.build(args.boxname)
63
68
  end
64
69
 
65
70
  desc 'List boxes'
66
71
  task :boxes do
67
- Veewee::Session.list_boxes
72
+ Veewee::Session.list_boxes
68
73
  end
69
74
 
70
75
  desc 'Export box'
@@ -73,20 +78,20 @@ task :export, [:boxname] do |t,args|
73
78
  puts "needs one arguments: rake export['boxname']"
74
79
  exit
75
80
  end
76
- Veewee::Session.export_box(args.boxname)
81
+ Veewee::Session.export_box(args.boxname)
77
82
  end
78
83
 
79
84
  desc 'Remove box'
80
85
  task :remove_box, [:boxname] do |t,args|
81
- Veewee::Session.remove_box(args.boxname)
86
+ Veewee::Session.remove_box(args.boxname)
82
87
  end
83
88
 
84
89
  desc 'List ostypes available'
85
90
  task :list_ostypes do |t,args|
86
- Veewee::Session.list_ostypes
91
+ Veewee::Session.list_ostypes
87
92
  end
88
93
 
89
94
  desc 'Clean all unfinished builds'
90
- task :clean do
91
- Veewee::Session.clean
95
+ task :clean do
96
+ Veewee::Session.clean
92
97
  end
data/lib/veewee.rb CHANGED
@@ -1,2 +1,4 @@
1
1
  require 'vagrant'
2
2
  require 'veewee/command'
3
+
4
+ Vagrant.commands.register(:basebox) { Veewee::Command::Basebox }
@@ -19,64 +19,6 @@ Veewee::Session.setenv({:veewee_dir => veewee_dir, :definition_dir => definition
19
19
  :template_dir => template_dir, :iso_dir => iso_dir, :box_dir => box_dir, :tmp_dir => tmp_dir, :validation_dir => validation_dir})
20
20
 
21
21
  module Veewee
22
- class Command < Vagrant::Command::GroupBase
23
- register "basebox","Commands to manage baseboxes"
24
-
25
- desc "templates", "List the currently available basebox templates"
26
- def templates
27
- Veewee::Session.list_templates
28
- end
29
-
30
- desc "define BOXNAME TEMPLATE", "Define a new basebox starting from a template"
31
- method_option :force,:type => :boolean , :default => false, :aliases => "-f", :desc => "overwrite the definition"
32
- def define(boxname, template)
33
- Veewee::Session.define(boxname,template,options)
34
- end
35
-
36
- desc "undefine BOXNAME", "Removes the definition of a basebox "
37
- def undefine(boxname)
38
- Veewee::Session.undefine(boxname)
39
- end
40
-
41
- desc "build BOXNAME", "Build the box BOXNAME"
42
- method_option :force,:type => :boolean , :default => false, :aliases => "-f", :desc => "overwrite the basebox"
43
- method_option :nogui,:type => :boolean , :default => false, :aliases => "-n", :desc => "no gui"
44
-
45
- def build(boxname)
46
- Veewee::Session.build(boxname,options)
22
+ module Command
47
23
  end
48
-
49
- desc "ostypes", "List the available Operating System types"
50
- def ostypes
51
- Veewee::Session.list_ostypes
52
- end
53
-
54
- desc "destroy BOXNAME", "Destroys the virtualmachine that was build for a basebox"
55
- def destroy(boxname)
56
- Veewee::Session.destroy_vm(boxname)
57
- end
58
-
59
- desc "list", "Lists all defined baseboxes"
60
- def list
61
- Veewee::Session.list_definitions
62
- end
63
-
64
- desc "export [NAME]", "Exports the basebox to the vagrant box format"
65
- method_options :force => :boolean
66
- def export(boxname)
67
- if (!boxname.nil?)
68
- Veewee::Session.export_box(boxname)
69
- end
70
- end
71
-
72
- desc "validate [NAME]", "Validates a box against vagrant compliancy rules"
73
- method_option :user,:default => "vagrant", :aliases => "-u", :desc => "user to login with"
74
- def validate(boxname)
75
- if (!boxname.nil?)
76
- Veewee::Session.validate_box(boxname,options)
77
- end
78
- end
79
-
80
- end
81
-
82
24
  end
@@ -0,0 +1,63 @@
1
+ require 'optparse'
2
+
3
+ module Veewee
4
+ module Command
5
+ class Basebox < Vagrant::Command::Base
6
+ def initialize(argv, env)
7
+ super
8
+
9
+ @main_args, @sub_command, @sub_args = split_main_and_subcommand(argv)
10
+
11
+ @subcommands = Vagrant::Registry.new
12
+ @subcommands.register(:templates) { Veewee::Command::BaseboxTemplates }
13
+ @subcommands.register(:list) { Veewee::Command::BaseboxList }
14
+ @subcommands.register(:define) { Veewee::Command::BaseboxDefine }
15
+ @subcommands.register(:undefine) { Veewee::Command::BaseboxUndefine }
16
+ @subcommands.register(:build) { Veewee::Command::BaseboxBuild }
17
+ @subcommands.register(:ostypes) { Veewee::Command::BaseboxOstypes }
18
+ @subcommands.register(:destroy) { Veewee::Command::BaseboxDestroy }
19
+ @subcommands.register(:export) { Veewee::Command::BaseboxExport }
20
+ @subcommands.register(:validate) { Veewee::Command::BaseboxValidate }
21
+ end
22
+
23
+ def execute
24
+ if @main_args.include?("-h") || @main_args.include?("--help")
25
+ # Print the help for all the box commands.
26
+ return help
27
+ end
28
+
29
+ # If we reached this far then we must have a subcommand. If not,
30
+ # then we also just print the help and exit.
31
+ command_class = @subcommands.get(@sub_command.to_sym) if @sub_command
32
+ return help if !command_class || !@sub_command
33
+ @logger.debug("Invoking command class: #{command_class} #{@sub_args.inspect}")
34
+
35
+ # Initialize and execute the command class
36
+ command_class.new(@sub_args, @env).execute
37
+ end
38
+
39
+ # Prints the help out for this command
40
+ def help
41
+ opts = OptionParser.new do |opts|
42
+ opts.banner = "Usage: vagrant basebox <command> [<args>]"
43
+ opts.separator ""
44
+ opts.separator "Available subcommands:"
45
+
46
+ # Add the available subcommands as separators in order to print them
47
+ # out as well.
48
+ keys = []
49
+ @subcommands.each { |key, value| keys << key.to_s }
50
+
51
+ keys.sort.each do |key|
52
+ opts.separator " #{key}"
53
+ end
54
+
55
+ opts.separator ""
56
+ opts.separator "For help on any individual command run `vagrant basebox COMMAND -h`"
57
+ end
58
+
59
+ @env.ui.info(opts.help, :prefix => false)
60
+ end
61
+ end
62
+ end
63
+ end
@@ -0,0 +1,32 @@
1
+ require 'optparse'
2
+
3
+ module Veewee
4
+ module Command
5
+ class BaseboxBuild < Vagrant::Command::Base
6
+ def execute
7
+ options = {}
8
+
9
+ opts = OptionParser.new do |opts|
10
+ opts.banner = "Build the box <boxname>"
11
+ opts.separator ""
12
+ opts.separator "Usage: vagrant basebox build <boxname>"
13
+
14
+ opts.on("-f", "--force", "overwrite the basebox") do |f|
15
+ options['force'] = f
16
+ end
17
+
18
+ opts.on("-n", "--nogui", "no gui") do |n|
19
+ options['nogui'] = n
20
+ end
21
+ end
22
+
23
+ # Parse the options
24
+ argv = parse_options(opts)
25
+ return if !argv
26
+ raise Vagrant::Errors::CLIInvalidUsage, :help => opts.help.chomp if argv.length < 1
27
+
28
+ Veewee::Session.build(argv[0], options)
29
+ end
30
+ end
31
+ end
32
+ end
@@ -0,0 +1,28 @@
1
+ require 'optparse'
2
+
3
+ module Veewee
4
+ module Command
5
+ class BaseboxDefine < Vagrant::Command::Base
6
+ def execute
7
+ options = {}
8
+
9
+ opts = OptionParser.new do |opts|
10
+ opts.banner = "Define a new basebox starting from a template"
11
+ opts.separator ""
12
+ opts.separator "Usage: vagrant basebox define <boxname> <template>"
13
+
14
+ opts.on("-f", "--force", "overwrite the definition") do |f|
15
+ options['force'] = f
16
+ end
17
+ end
18
+
19
+ # Parse the options
20
+ argv = parse_options(opts)
21
+ return if !argv
22
+ raise Vagrant::Errors::CLIInvalidUsage, :help => opts.help.chomp if argv.length < 2
23
+
24
+ Veewee::Session.define(argv[0], argv[1], options)
25
+ end
26
+ end
27
+ end
28
+ end
@@ -0,0 +1,22 @@
1
+ module Veewee
2
+ module Command
3
+ class BaseboxDestroy < Vagrant::Command::Base
4
+ def execute
5
+ options = {}
6
+
7
+ opts = OptionParser.new do |opts|
8
+ opts.banner = "Destroys the virtualmachine that was build for a basebox"
9
+ opts.separator ""
10
+ opts.separator "Usage: vagrant basebox destroy <boxname>"
11
+ end
12
+
13
+ # Parse the options
14
+ argv = parse_options(opts)
15
+ return if !argv
16
+ raise Vagrant::Errors::CLIInvalidUsage, :help => opts.help.chomp if argv.length < 1
17
+
18
+ Veewee::Session.destroy_vm(argv[0])
19
+ end
20
+ end
21
+ end
22
+ end