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,41 @@
1
+ require 'optparse'
2
+
3
+ module Veewee
4
+ module Command
5
+ module Vagrant
6
+ class Undefine < ::Vagrant::Command::Base
7
+ def execute
8
+ options = {}
9
+
10
+ opts = OptionParser.new do |opts|
11
+ opts.banner = "Remove the definition of a basebox"
12
+ opts.separator ""
13
+ opts.separator "Usage: vagrant basebox undefine <boxname>"
14
+
15
+ opts.on("-d", "--debug", "enable debugging") do |d|
16
+ options['debug'] = d
17
+ end
18
+
19
+ end
20
+
21
+ # Parse the options
22
+ argv = parse_options(opts)
23
+ return if !argv
24
+ raise ::Vagrant::Errors::CLIInvalidUsage, :help => opts.help.chomp if argv.length < 1
25
+
26
+ begin
27
+ venv=Veewee::Environment.new(options)
28
+ venv.ui=@env.ui
29
+ definition_name=argv[0]
30
+ venv.definitions.undefine(definition_name,options)
31
+ venv.ui.info("Definition '#{definition_name}' successfully removed",:prefix => false)
32
+ rescue Veewee::Error => ex
33
+ venv.ui.error(ex,:prefix => false)
34
+ exit -1
35
+ end
36
+
37
+ end
38
+ end
39
+ end
40
+ end
41
+ end
@@ -0,0 +1,44 @@
1
+ require 'optparse'
2
+
3
+ module Veewee
4
+ module Command
5
+ module Vagrant
6
+ class Up < ::Vagrant::Command::Base
7
+ def execute
8
+ options = {}
9
+
10
+ opts = OptionParser.new do |opts|
11
+ opts.banner = "Starts a basebox that was built"
12
+ opts.separator ""
13
+ opts.separator "Usage: vagrant basebox up <boxname>"
14
+
15
+
16
+ opts.on("-n", "--nogui", "no gui") do |n|
17
+ options['nogui'] = n
18
+ end
19
+
20
+ opts.on("-d", "--debug", "enable debugging") do |d|
21
+ options['debug'] = d
22
+ end
23
+
24
+ end
25
+
26
+ # Parse the options
27
+ argv = parse_options(opts)
28
+ return if !argv
29
+ raise ::Vagrant::Errors::CLIInvalidUsage, :help => opts.help.chomp if argv.length < 1
30
+
31
+ begin
32
+ venv=Veewee::Environment.new(options)
33
+ venv.ui=@env.ui
34
+ venv.providers["virtualbox"].get_box(argv[0]).up(options)
35
+ rescue Veewee::Error => ex
36
+ venv.ui.error ex
37
+ exit -1
38
+ end
39
+
40
+ end
41
+ end
42
+ end
43
+ end
44
+ end
@@ -0,0 +1,46 @@
1
+ require 'optparse'
2
+
3
+ module Veewee
4
+ module Command
5
+ module Vagrant
6
+ class Validate < ::Vagrant::Command::Base
7
+ def execute
8
+ options = {
9
+ 'tags' => %w{vagrant puppet chef virtualbox}
10
+ }
11
+
12
+ opts = OptionParser.new do |opts|
13
+ opts.banner = "Validates a box against vagrant compliancy rules"
14
+ opts.separator ""
15
+ opts.separator "Usage: vagrant basebox validate <boxname>"
16
+
17
+ opts.on("-d", "--debug", "enable debugging") do |d|
18
+ options['debug'] = d
19
+ end
20
+
21
+ opts.on("-t", "--tags vagrant,puppet,chef", Array, "tags to validate") do |t|
22
+ options['tags'] = t
23
+ end
24
+
25
+ end
26
+
27
+ # Parse the options
28
+ argv = parse_options(opts)
29
+ return if !argv
30
+ raise ::Vagrant::Errors::CLIInvalidUsage, :help => opts.help.chomp if argv.length < 1
31
+
32
+ begin
33
+ venv=Veewee::Environment.new(options)
34
+ venv.ui=@env.ui
35
+ box_name=argv[0]
36
+ venv.providers["virtualbox"].get_box(box_name).validate_vagrant(options)
37
+ rescue Veewee::Error => ex
38
+ venv.ui.error(ex,:prefix => false)
39
+ exit -1
40
+ end
41
+
42
+ end
43
+ end
44
+ end
45
+ end
46
+ end
@@ -0,0 +1,39 @@
1
+ require 'optparse'
2
+
3
+ module Veewee
4
+ module Command
5
+ module Vagrant
6
+ class Winrm < ::Vagrant::Command::Base
7
+ def execute
8
+ options = {}
9
+
10
+ opts = OptionParser.new do |opts|
11
+ opts.banner = "Winrm into the basebox"
12
+ opts.separator ""
13
+ opts.separator "Usage: vagrant basebox winrm <boxname> <command>"
14
+
15
+ opts.on("-d", "--debug", "enable debugging") do |d|
16
+ options['debug'] = d
17
+ end
18
+
19
+ end
20
+
21
+ # Parse the options
22
+ argv = parse_options(opts)
23
+ return if !argv
24
+ raise ::Vagrant::Errors::CLIInvalidUsage, :help => opts.help.chomp if argv.length < 1
25
+
26
+ begin
27
+ venv=Veewee::Environment.new(options)
28
+ venv.ui=@env.ui
29
+ venv.providers["virtualbox"].get_box(argv[0]).winrm(argv[1])
30
+ rescue Veewee::Error => ex
31
+ venv.ui.error ex
32
+ exit -1
33
+ end
34
+
35
+ end
36
+ end
37
+ end
38
+ end
39
+ end
@@ -0,0 +1,171 @@
1
+ module Veewee
2
+ module Command
3
+ class Vbox< Veewee::Command::GroupBase
4
+
5
+ register "vbox", "Subcommand for VirtualBox"
6
+ desc "build [BOX_NAME]", "Build box"
7
+ method_option :force,:type => :boolean , :default => false, :aliases => "-f", :desc => "force the build"
8
+ method_option :debug,:type => :boolean , :default => false, :aliases => "-d", :desc => "enable debugging"
9
+ method_option :nogui,:type => :boolean , :default => false, :aliases => "-n", :desc => "no gui"
10
+ method_option :auto,:type => :boolean , :default => false, :aliases => "-a", :desc => "auto answers"
11
+ method_option :checksum , :type => :boolean , :default => false, :desc => "verify checksum"
12
+ method_option :redirectconsole,:type => :boolean , :default => false, :aliases => "-r", :desc => "redirects console output"
13
+ method_option :postinstall_include, :type => :array, :default => [], :aliases => "-i", :desc => "ruby regexp of postinstall filenames to additionally include"
14
+ method_option :postinstall_exclude, :type => :array, :default => [], :aliases => "-e", :desc => "ruby regexp of postinstall filenames to exclude"
15
+ def build(box_name)
16
+ venv=Veewee::Environment.new(options)
17
+ venv.ui=env.ui
18
+ venv.providers["virtualbox"].get_box(box_name).build(options)
19
+ end
20
+
21
+ method_option :force,:type => :boolean , :default => false, :aliases => "-f", :desc => "force the destroy"
22
+ method_option :debug,:type => :boolean , :default => false, :aliases => "-d", :desc => "enable debugging"
23
+ method_option :nogui,:type => :boolean , :default => false, :aliases => "-n", :desc => "no gui"
24
+ desc "destroy [BOXNAME]", "Destroys the basebox that was built"
25
+ def destroy(box_name)
26
+ venv=Veewee::Environment.new(options)
27
+ venv.ui=env.ui
28
+ venv.providers["virtualbox"].get_box(box_name).destroy(options)
29
+ end
30
+
31
+ method_option :debug,:type => :boolean , :default => false, :aliases => "-d", :desc => "enable debugging"
32
+ method_option :force,:type => :boolean , :default => false, :aliases => "-f", :desc => "force the shutdown"
33
+ desc "halt [BOXNAME]", "Activates a shutdown on the basebox"
34
+ def halt(box_name)
35
+ venv=Veewee::Environment.new(options)
36
+ venv.ui=env.ui
37
+ venv.providers["virtualbox"].get_box(box_name).halt(options)
38
+ end
39
+
40
+ method_option :debug,:type => :boolean , :default => false, :aliases => "-d", :desc => "enable debugging"
41
+ method_option :nogui,:type => :boolean , :default => false, :aliases => "-n", :desc => "no gui"
42
+ desc "up [BOXNAME]", "Starts a Box"
43
+ def up(box_name)
44
+ venv=Veewee::Environment.new(options)
45
+ venv.ui=env.ui
46
+ venv.providers["virtualbox"].get_box(box_name).up(options)
47
+ end
48
+
49
+ desc "ssh [BOXNAME] [COMMAND]", "Interactive ssh login"
50
+ method_option :debug,:type => :boolean , :default => false, :aliases => "-d", :desc => "enable debugging"
51
+ def ssh(box_name,command=nil)
52
+ venv=Veewee::Environment.new(options)
53
+ venv.ui=env.ui
54
+ venv.providers["virtualbox"].get_box(box_name).issh(command)
55
+ end
56
+
57
+
58
+ desc "winrm [BOXNAME] [COMMAND]", "Execute command via winrm"
59
+ method_option :debug,:type => :boolean , :default => false, :aliases => "-d", :desc => "enable debugging"
60
+ def winrm(box_name,command=nil)
61
+ venv=Veewee::Environment.new(options)
62
+ venv.ui=env.ui
63
+ venv.providers["virtualbox"].get_box(box_name).winrm(command,{:exitcode => "*"})
64
+ end
65
+
66
+ desc "copy [BOXNAME] [SRC] [DST]", "Copy a file to the VM"
67
+ method_option :debug,:type => :boolean , :default => false, :aliases => "-d", :desc => "enable debugging"
68
+ def copy(box_name,src,dst)
69
+ venv=Veewee::Environment.new(options)
70
+ venv.ui=env.ui
71
+ venv.providers["virtualbox"].get_box(box_name).copy_to_box(src,dst)
72
+ end
73
+
74
+
75
+ desc "define [BOXNAME] [TEMPLATE]", "Define a new basebox starting from a template"
76
+ method_option :force,:type => :boolean , :default => false, :aliases => "-f", :desc => "overwrite the definition"
77
+ method_option :debug,:type => :boolean , :default => false, :aliases => "-d", :desc => "enable debugging"
78
+ def define(definition_name, template_name)
79
+ begin
80
+ venv=Veewee::Environment.new(options)
81
+ venv.ui=env.ui
82
+ venv.definitions.define(definition_name,template_name,options)
83
+ env.ui.info "The basebox '#{definition_name}' has been successfully created from the template '#{template_name}'"
84
+ env.ui.info "You can now edit the definition files stored in definitions/#{definition_name} or build the box with:"
85
+ env.ui.info "veewee vbox build '#{definition_name}'"
86
+ rescue Error => ex
87
+ env.ui.error("#{ex}",:prefix => false)
88
+ exit -1
89
+ end
90
+ end
91
+
92
+ desc "undefine [BOXNAME]", "Removes the definition of a basebox "
93
+ method_option :debug,:type => :boolean , :default => false, :aliases => "-d", :desc => "enable debugging"
94
+ def undefine(definition_name)
95
+ env.ui.info "Removing definition #{definition_name}", :prefix => false
96
+ begin
97
+ venv=Veewee::Environment.new(options)
98
+ venv.ui=env.ui
99
+ venv.definitions.undefine(definition_name,options)
100
+ env.ui.info "Definition #{definition_name} successfully removed" , :prefix => false
101
+ rescue Error => ex
102
+ env.ui.error("#{ex}",:prefix => false)
103
+ exit -1
104
+ end
105
+ end
106
+
107
+ desc "ostypes", "List the available Operating System types"
108
+ method_option :debug,:type => :boolean , :default => false, :aliases => "-d", :desc => "enable debugging"
109
+ def ostypes
110
+ venv=Veewee::Environment.new(options)
111
+ venv.ui=env.ui
112
+ venv.ostypes.each do |name|
113
+ env.ui.info "- #{name}"
114
+ end
115
+ end
116
+
117
+ desc "templates", "List the currently available templates"
118
+ method_option :debug,:type => :boolean , :default => false, :aliases => "-d", :desc => "enable debugging"
119
+ def templates
120
+ env.ui.info "The following templates are available:",:prefix => false
121
+ venv=Veewee::Environment.new(options)
122
+ venv.ui=env.ui
123
+ venv.templates.each do |name,template|
124
+ env.ui.info "veewee vbox define '<box_name>' '#{name}'",:prefix => false
125
+ end
126
+ end
127
+
128
+ desc "list", "Lists all defined boxes"
129
+ method_option :debug,:type => :boolean , :default => false, :aliases => "-d", :desc => "enable debugging"
130
+ def list
131
+ env.ui.info "The following local definitions are available:",:prefix => false
132
+ venv=Veewee::Environment.new(options)
133
+ venv.ui=env.ui
134
+ venv.definitions.each do |name,definition|
135
+ env.ui.info "- #{name}",:prefix => false
136
+ end
137
+ end
138
+
139
+ desc "validate [NAME]", "Validates a box against vagrant compliancy rules"
140
+ method_option :debug,:type => :boolean , :default => false, :aliases => "-d", :desc => "enable debugging"
141
+ method_option :tags, :type => :array , :default => %w{vagrant virtualbox puppet chef}, :aliases => "-t", :desc => "tags to validate"
142
+ def validate(box_name)
143
+ begin
144
+ venv=Veewee::Environment.new(options)
145
+ venv.ui = ::Veewee::UI::Shell.new(venv, shell)
146
+
147
+ venv.providers["virtualbox"].get_box(box_name).validate_vagrant(options)
148
+ rescue Veewee::Error => ex
149
+ venv.ui.error(ex, :prefix => false)
150
+ exit -1
151
+ end
152
+ end
153
+
154
+ desc "screenshot [NAME] [PNGFILENAME]", "Takes a screenshot of the box"
155
+ def screenshot(box_name,pngfilename)
156
+ begin
157
+ venv=Veewee::Environment.new(options)
158
+ venv.ui = ::Veewee::UI::Shell.new(venv, shell)
159
+
160
+ venv.providers["virtualbox"].get_box(box_name).screenshot(pngfilename,options)
161
+ rescue Veewee::Error => ex
162
+ venv.ui.error(ex, :prefix => false)
163
+ exit -1
164
+ end
165
+ end
166
+
167
+
168
+ end
169
+
170
+ end
171
+ end
@@ -0,0 +1,13 @@
1
+ module Veewee
2
+ module Command
3
+ class VersionCommand < Base
4
+
5
+ register "version", "Prints the Veewee version information"
6
+ def execute
7
+ env.ui.info "Version : #{Veewee::VERSION} - use at your own risk"
8
+ end
9
+
10
+ end
11
+
12
+ end
13
+ end
@@ -0,0 +1,61 @@
1
+ require 'veewee/config/veewee'
2
+ require 'veewee/config/collection'
3
+
4
+ require 'fileutils'
5
+
6
+ module Veewee
7
+ class Config
8
+
9
+ attr_accessor :veewee
10
+ attr_reader :env
11
+
12
+ def initialize(options)
13
+ @env = options[:env]
14
+
15
+ # Initialize with defaults
16
+ @veewee = ::Veewee::Config::Veewee.new(self)
17
+
18
+ end
19
+
20
+ def define()
21
+ config = OpenStruct.new
22
+
23
+ # Expose the veewee config
24
+ config.veewee = @veewee
25
+
26
+ # Process config file
27
+ yield config
28
+
29
+ end
30
+
31
+ # We put a long name to not clash with any function in the Veewee file itself
32
+ def load_veewee_config()
33
+ veewee_configurator = self
34
+ begin
35
+ filename = File.join(Dir.pwd, "Veeweefile")
36
+ if File.exists?(filename)
37
+ veeweefile = File.read(filename)
38
+ veeweefile["Veewee::Config.run"] = "veewee_configurator.define"
39
+ # http://www.dan-manges.com/blog/ruby-dsls-instance-eval-with-delegation
40
+ instance_eval(veeweefile)
41
+ else
42
+ env.logger.info "No configfile found"
43
+ end
44
+ rescue LoadError => e
45
+ env.ui.error "An error occurred"
46
+ env.ui.error e.message
47
+ rescue NoMethodError => e
48
+ env.ui.error "Some method got an error in the configfile - Sorry"
49
+ env.ui.error $!
50
+ env.ui.error e.message
51
+ raise Veewee::Error "Some method got an error in the configfile - Sorry"
52
+ rescue Error => e
53
+ env.ui.error "Error processing configfile - Sorry"
54
+ env.ui.error e.message
55
+ raise Veewee::Error "Error processing configfile - Sorry"
56
+ end
57
+ return self
58
+ end
59
+
60
+ end #End Class
61
+ end #End Module
@@ -0,0 +1,82 @@
1
+ require 'veewee/config/component'
2
+ require 'ostruct'
3
+
4
+ module Veewee
5
+ class Config
6
+ class Collection
7
+
8
+ attr_accessor :components
9
+ attr_accessor :type
10
+ attr_accessor :config
11
+
12
+ attr_reader :env
13
+
14
+ def initialize(type,config)
15
+ @type=type
16
+ @components=Hash.new
17
+ @providers=config.providers
18
+ @config=config
19
+ @env=config.env
20
+ end
21
+
22
+ def define(name)
23
+ # We do this for vagrant syntax
24
+ # Depending on type, we create a variable of that type
25
+ # f.i. component_stub.vm or component_stub.lb
26
+ component_stub=OpenStruct.new
27
+ component_stub.send("#{@type}=",::Veewee::Config::Component.new(config))
28
+
29
+ env.logger.info("config collection"){ "First pass of reading the config"}
30
+ # Now we can 'execute' the config file using our stub component
31
+ # For guessing the provider type
32
+ yield component_stub
33
+
34
+ env.logger.debug("config collection"){ "Stubs collection type #{@type} is loaded"}
35
+
36
+ # After processing we extract the component again
37
+ component=component_stub.send("#{@type}")
38
+ provider=@providers[component.provider.to_s]
39
+
40
+ env.logger.debug("config collection"){ "We get here"}
41
+
42
+ abort "Provider #{component.provider.to_s} does not (yet) exist" if provider.nil?
43
+ real_component=provider.get_component(@type.capitalize,env)
44
+ begin
45
+
46
+ # And repeat the same process with a real component
47
+ env.logger.debug("config collection"){ "Component of #{@type}"}
48
+
49
+ component_stub.send("#{@type}=",real_component)
50
+
51
+ yield component_stub
52
+ # After processing we extract the component again
53
+ component=component_stub.send("#{@type}")
54
+ # And we set the name
55
+ component.name=name
56
+
57
+ # We set the provider for this component
58
+ component.provider=provider
59
+
60
+ # And register this component with the provider
61
+ # if it is a vm, we add to the hash vms
62
+ # if it is an ip, we add it to the hash ips
63
+ provider_collection=provider.instance_variable_get("@#{@type}s")
64
+ provider_collection[name]=component
65
+
66
+ # And we also add it to the global config element
67
+ # So we can have all components of a similar type in one place
68
+ config_collection=@config.instance_variable_get("@#{@type}s")
69
+ config_collection[name]=component
70
+
71
+ # Now we can ask the component to validate itself
72
+ #component_stub.validate
73
+ components[name.to_s]=component
74
+
75
+ rescue Error => e
76
+ env.ui.error "Error loading component with #{name} of type #{@type} for provider #{component.provider.type}"
77
+ end
78
+ end
79
+
80
+ end
81
+ end
82
+ end #Module Veewee