veewee 0.3.7 → 0.3.9

Sign up to get free protection for your applications and to get access to all the features.
Files changed (966) hide show
  1. data/.gitignore +5 -0
  2. data/.rvmrc +2 -1
  3. data/.travis.yml +8 -0
  4. data/CONTRIBUTE.md +51 -0
  5. data/Gemfile +11 -2
  6. data/README.md +88 -22
  7. data/Rakefile +11 -7
  8. data/bin/veewee +1 -0
  9. data/doc/TODO.md +76 -0
  10. data/doc/basics.md +200 -0
  11. data/doc/build_hooks.md +69 -0
  12. data/doc/changes.md +20 -0
  13. data/doc/commands.md +42 -0
  14. data/doc/customize.md +145 -0
  15. data/doc/fusion.md +5 -1
  16. data/doc/installation.md +90 -9
  17. data/doc/kvm.md +52 -42
  18. data/doc/parallels.md +3 -0
  19. data/doc/providers.md +6 -21
  20. data/doc/requirements.md +69 -5
  21. data/doc/vagrant.md +26 -93
  22. data/doc/vbox.md +78 -1
  23. data/doc/veeweefile.md +25 -0
  24. data/lib/fission.old/cli.rb +76 -0
  25. data/lib/fission.old/command.rb +15 -0
  26. data/lib/fission.old/command/clone.rb +68 -0
  27. data/lib/fission.old/command/delete.rb +71 -0
  28. data/lib/fission.old/command/snapshot_create.rb +52 -0
  29. data/lib/fission.old/command/snapshot_list.rb +45 -0
  30. data/lib/fission.old/command/snapshot_revert.rb +54 -0
  31. data/lib/fission.old/command/start.rb +69 -0
  32. data/lib/fission.old/command/status.rb +31 -0
  33. data/lib/fission.old/command/stop.rb +49 -0
  34. data/lib/fission.old/command/suspend.rb +67 -0
  35. data/lib/fission.old/config.rb +34 -0
  36. data/lib/fission.old/core_ext/class.rb +5 -0
  37. data/lib/fission.old/core_ext/file.rb +7 -0
  38. data/lib/fission.old/core_ext/object.rb +112 -0
  39. data/lib/fission.old/error.rb +10 -0
  40. data/lib/fission.old/fusion.rb +17 -0
  41. data/lib/fission.old/leasesfile.rb +74 -0
  42. data/lib/fission.old/metadata.rb +39 -0
  43. data/lib/fission.old/response.rb +16 -0
  44. data/lib/fission.old/ui.rb +22 -0
  45. data/lib/fission.old/version.rb +3 -0
  46. data/lib/fission.old/vm.rb +370 -0
  47. data/lib/veewee/command/fusion.rb +16 -142
  48. data/lib/veewee/command/group_base.rb +111 -7
  49. data/lib/veewee/command/kvm.rb +19 -104
  50. data/lib/veewee/command/parallels.rb +15 -105
  51. data/lib/veewee/command/vagrant/build.rb +2 -2
  52. data/lib/veewee/command/vagrant/export.rb +0 -2
  53. data/lib/veewee/command/vbox.rb +21 -134
  54. data/lib/veewee/config.rb +2 -3
  55. data/lib/veewee/config/ostypes.yml +21 -1
  56. data/lib/veewee/definition.rb +42 -11
  57. data/lib/veewee/definitions.rb +27 -6
  58. data/lib/veewee/environment.rb +34 -25
  59. data/lib/veewee/error.rb +1 -1
  60. data/lib/veewee/provider/core/box/build.rb +71 -7
  61. data/lib/veewee/provider/core/box/exec.rb +1 -1
  62. data/lib/veewee/provider/core/box/floppy.rb +1 -1
  63. data/lib/veewee/provider/core/box/ssh.rb +2 -2
  64. data/lib/veewee/provider/core/box/validate_tags.rb +137 -30
  65. data/lib/veewee/provider/core/box/vnc.rb +1 -1
  66. data/lib/veewee/provider/core/box/wincp.rb +8 -8
  67. data/lib/veewee/provider/core/helper/iso.rb +41 -15
  68. data/lib/veewee/provider/core/helper/scancode.rb +46 -43
  69. data/lib/veewee/provider/core/helper/shell.rb +3 -2
  70. data/lib/veewee/provider/core/helper/ssh.rb +21 -10
  71. data/lib/veewee/provider/core/helper/tcp.rb +19 -6
  72. data/lib/veewee/provider/core/helper/web.rb +1 -1
  73. data/lib/veewee/provider/core/helper/winrm.rb +3 -0
  74. data/lib/veewee/provider/core/provider.rb +1 -1
  75. data/lib/veewee/provider/kvm/box.rb +7 -0
  76. data/lib/veewee/provider/kvm/box/create.rb +122 -71
  77. data/lib/veewee/provider/kvm/box/destroy.rb +5 -6
  78. data/lib/veewee/provider/kvm/box/export_vagrant.rb +143 -0
  79. data/lib/veewee/provider/kvm/box/helper/status.rb +6 -2
  80. data/lib/veewee/provider/kvm/provider.rb +26 -21
  81. data/lib/veewee/provider/kvm/templates/Vagrantfile +45 -0
  82. data/lib/veewee/provider/parallels/box.rb +1 -0
  83. data/lib/veewee/provider/parallels/box/export.rb +184 -0
  84. data/lib/veewee/provider/parallels/box/helper/buildinfo.rb +7 -5
  85. data/lib/veewee/provider/parallels/box/helper/console_type.rb +12 -6
  86. data/lib/veewee/provider/virtualbox/box.rb +19 -5
  87. data/lib/veewee/provider/virtualbox/box/create.rb +1 -1
  88. data/lib/veewee/provider/virtualbox/box/export_vagrant.rb +90 -8
  89. data/lib/veewee/provider/virtualbox/box/helper/console_type.rb +3 -1
  90. data/lib/veewee/provider/virtualbox/box/helper/create.rb +48 -23
  91. data/lib/veewee/provider/virtualbox/box/helper/forwarding.rb +5 -1
  92. data/lib/veewee/provider/virtualbox/box/helper/version.rb +4 -1
  93. data/lib/veewee/provider/virtualbox/box/up.rb +6 -6
  94. data/lib/veewee/provider/virtualbox/provider.rb +3 -1
  95. data/lib/veewee/provider/vmfusion/box.rb +1 -1
  96. data/lib/veewee/provider/vmfusion/box/export.rb +125 -0
  97. data/lib/veewee/provider/vmfusion/box/helper/buildinfo.rb +6 -2
  98. data/lib/veewee/provider/vmfusion/box/helper/ip.rb +6 -1
  99. data/lib/veewee/provider/vmfusion/box/poweroff.rb +1 -1
  100. data/lib/veewee/provider/vmfusion/box/ssh.rb +1 -1
  101. data/lib/veewee/provider/vmfusion/box/template.rb +10 -3
  102. data/lib/veewee/provider/vmfusion/box/template.vmx.erb +19 -5
  103. data/lib/veewee/templates/Vagrantfile.erb +11 -0
  104. data/lib/veewee/version.rb +1 -1
  105. data/templates/.ubuntu/base.sh +20 -0
  106. data/templates/.ubuntu/chef.sh +49 -0
  107. data/templates/.ubuntu/cleanup.sh +25 -0
  108. data/templates/.ubuntu/puppet.sh +15 -0
  109. data/templates/.ubuntu/ruby.sh +7 -0
  110. data/templates/.ubuntu/vagrant.sh +27 -0
  111. data/templates/.ubuntu/virtualbox.sh +15 -0
  112. data/templates/.ubuntu/zerodisk.sh +11 -0
  113. data/templates/CentOS-4.8-i386/ks.cfg +3 -3
  114. data/templates/CentOS-4.8-i386/postinstall.sh +3 -0
  115. data/templates/CentOS-5.5-i386-netboot/definition.rb +1 -1
  116. data/templates/CentOS-5.5-i386-netboot/ks.cfg +3 -3
  117. data/templates/CentOS-5.5-i386-netboot/postinstall.sh +3 -0
  118. data/templates/CentOS-5.5-x86_64-netboot/definition.rb +1 -1
  119. data/templates/CentOS-5.5-x86_64-netboot/ks.cfg +3 -3
  120. data/templates/CentOS-5.5-x86_64-netboot/postinstall.sh +4 -0
  121. data/templates/CentOS-5.6-i386-netboot/definition.rb +1 -1
  122. data/templates/CentOS-5.6-i386-netboot/ks.cfg +3 -3
  123. data/templates/CentOS-5.6-i386/ks.cfg +3 -3
  124. data/templates/CentOS-5.6-i386/postinstall.sh +3 -0
  125. data/templates/CentOS-5.6-x86_64-netboot-packages/definition.rb +1 -1
  126. data/templates/CentOS-5.6-x86_64-netboot-packages/ks.cfg +3 -3
  127. data/templates/CentOS-5.6-x86_64-netboot-packages/postinstall.sh +3 -0
  128. data/templates/CentOS-5.6-x86_64-netboot/definition.rb +1 -1
  129. data/templates/CentOS-5.6-x86_64-netboot/ks.cfg +3 -3
  130. data/templates/CentOS-5.6-x86_64-netboot/postinstall.sh +4 -0
  131. data/templates/CentOS-5.7-i386-netboot/definition.rb +1 -1
  132. data/templates/CentOS-5.7-i386-netboot/ks.cfg +3 -3
  133. data/templates/CentOS-5.7-i386-netboot/postinstall.sh +3 -0
  134. data/templates/CentOS-5.7-x86_64-netboot/definition.rb +1 -1
  135. data/templates/CentOS-5.7-x86_64-netboot/ks.cfg +3 -3
  136. data/templates/CentOS-5.7-x86_64-netboot/postinstall.sh +3 -0
  137. data/templates/CentOS-5.8-i386-netboot/definition.rb +1 -1
  138. data/templates/CentOS-5.8-i386-netboot/ks.cfg +3 -3
  139. data/templates/CentOS-5.8-i386-netboot/postinstall.sh +3 -0
  140. data/templates/CentOS-5.8-i386/definition.rb +1 -1
  141. data/templates/CentOS-5.8-i386/ks.cfg +3 -3
  142. data/templates/CentOS-5.8-i386/postinstall.sh +3 -0
  143. data/templates/CentOS-5.8-x86_64-netboot/definition.rb +1 -1
  144. data/templates/CentOS-5.8-x86_64-netboot/ks.cfg +5 -5
  145. data/templates/CentOS-5.8-x86_64-netboot/postinstall.sh +3 -0
  146. data/templates/CentOS-5.8-x86_64-reallyminimal/README.md +3 -0
  147. data/templates/CentOS-5.8-x86_64-reallyminimal/definition.rb +33 -0
  148. data/templates/CentOS-5.8-x86_64-reallyminimal/ks.cfg +102 -0
  149. data/templates/CentOS-5.8-x86_64-reallyminimal/postinstall.sh +132 -0
  150. data/templates/CentOS-5.8-x86_64/definition.rb +1 -1
  151. data/templates/CentOS-5.8-x86_64/ks.cfg +3 -3
  152. data/templates/CentOS-5.8-x86_64/postinstall.sh +3 -0
  153. data/templates/CentOS-5.9-i386-netboot/base.sh +9 -0
  154. data/templates/CentOS-5.9-i386-netboot/cfengine.sh +69 -0
  155. data/templates/CentOS-5.9-i386-netboot/chef.sh +3 -0
  156. data/templates/CentOS-5.9-i386-netboot/cleanup.sh +7 -0
  157. data/templates/CentOS-5.9-i386-netboot/definition.rb +43 -0
  158. data/templates/CentOS-5.9-i386-netboot/ks.cfg +47 -0
  159. data/templates/CentOS-5.9-i386-netboot/puppet.sh +18 -0
  160. data/templates/CentOS-5.9-i386-netboot/ruby.sh +12 -0
  161. data/templates/CentOS-5.9-i386-netboot/vagrant.sh +18 -0
  162. data/templates/CentOS-5.9-i386-netboot/virtualbox.sh +8 -0
  163. data/templates/CentOS-5.9-i386-netboot/vmfusion.sh +7 -0
  164. data/templates/{Debian-7.0-b4-amd64-netboot → CentOS-5.9-i386-netboot}/zerodisk.sh +0 -0
  165. data/templates/CentOS-5.9-i386/base.sh +9 -0
  166. data/templates/CentOS-5.9-i386/cfengine.sh +69 -0
  167. data/templates/CentOS-5.9-i386/chef.sh +3 -0
  168. data/templates/CentOS-5.9-i386/cleanup.sh +7 -0
  169. data/templates/CentOS-5.9-i386/definition.rb +43 -0
  170. data/templates/CentOS-5.9-i386/ks.cfg +47 -0
  171. data/templates/CentOS-5.9-i386/puppet.sh +18 -0
  172. data/templates/CentOS-5.9-i386/ruby.sh +12 -0
  173. data/templates/CentOS-5.9-i386/vagrant.sh +18 -0
  174. data/templates/CentOS-5.9-i386/virtualbox.sh +8 -0
  175. data/templates/CentOS-5.9-i386/vmfusion.sh +7 -0
  176. data/templates/{Debian-7.0-b4-i386-netboot → CentOS-5.9-i386}/zerodisk.sh +0 -0
  177. data/templates/CentOS-5.9-x86_64-netboot/base.sh +9 -0
  178. data/templates/CentOS-5.9-x86_64-netboot/cfengine.sh +69 -0
  179. data/templates/CentOS-5.9-x86_64-netboot/chef.sh +3 -0
  180. data/templates/CentOS-5.9-x86_64-netboot/cleanup.sh +7 -0
  181. data/templates/CentOS-5.9-x86_64-netboot/definition.rb +43 -0
  182. data/templates/CentOS-5.9-x86_64-netboot/ks.cfg +47 -0
  183. data/templates/CentOS-5.9-x86_64-netboot/puppet.sh +18 -0
  184. data/templates/CentOS-5.9-x86_64-netboot/ruby.sh +12 -0
  185. data/templates/CentOS-5.9-x86_64-netboot/vagrant.sh +18 -0
  186. data/templates/CentOS-5.9-x86_64-netboot/virtualbox.sh +8 -0
  187. data/templates/CentOS-5.9-x86_64-netboot/vmfusion.sh +7 -0
  188. data/templates/CentOS-5.9-x86_64-netboot/zerodisk.sh +3 -0
  189. data/templates/CentOS-5.9-x86_64/base.sh +9 -0
  190. data/templates/CentOS-5.9-x86_64/cfengine.sh +69 -0
  191. data/templates/CentOS-5.9-x86_64/chef.sh +3 -0
  192. data/templates/CentOS-5.9-x86_64/cleanup.sh +7 -0
  193. data/templates/CentOS-5.9-x86_64/definition.rb +43 -0
  194. data/templates/CentOS-5.9-x86_64/ks.cfg +47 -0
  195. data/templates/CentOS-5.9-x86_64/puppet.sh +18 -0
  196. data/templates/CentOS-5.9-x86_64/ruby.sh +12 -0
  197. data/templates/CentOS-5.9-x86_64/vagrant.sh +18 -0
  198. data/templates/CentOS-5.9-x86_64/virtualbox.sh +8 -0
  199. data/templates/CentOS-5.9-x86_64/vmfusion.sh +7 -0
  200. data/templates/CentOS-5.9-x86_64/zerodisk.sh +3 -0
  201. data/templates/CentOS-6.0-i386-netboot/base.sh +3 -0
  202. data/templates/CentOS-6.0-i386-netboot/definition.rb +1 -1
  203. data/templates/CentOS-6.0-i386-netboot/puppet.sh +7 -1
  204. data/templates/CentOS-6.0-i386/base.sh +2 -0
  205. data/templates/CentOS-6.0-i386/definition.rb +1 -1
  206. data/templates/CentOS-6.0-i386/puppet.sh +7 -1
  207. data/templates/CentOS-6.0-x86_64-minimal/base.sh +2 -0
  208. data/templates/CentOS-6.0-x86_64-minimal/definition.rb +2 -2
  209. data/templates/CentOS-6.0-x86_64-minimal/puppet.sh +7 -1
  210. data/templates/CentOS-6.0-x86_64-netboot/base.sh +2 -0
  211. data/templates/CentOS-6.0-x86_64-netboot/definition.rb +2 -2
  212. data/templates/CentOS-6.0-x86_64-netboot/puppet.sh +7 -1
  213. data/templates/CentOS-6.0-x86_64/base.sh +2 -0
  214. data/templates/CentOS-6.0-x86_64/definition.rb +2 -2
  215. data/templates/CentOS-6.0-x86_64/puppet.sh +7 -1
  216. data/templates/CentOS-6.1-x86_64-minimal/base.sh +2 -0
  217. data/templates/CentOS-6.1-x86_64-minimal/definition.rb +2 -2
  218. data/templates/CentOS-6.1-x86_64-minimal/puppet.sh +7 -1
  219. data/templates/CentOS-6.1-x86_64-netboot/base.sh +2 -0
  220. data/templates/CentOS-6.1-x86_64-netboot/definition.rb +2 -2
  221. data/templates/CentOS-6.1-x86_64-netboot/puppet.sh +7 -1
  222. data/templates/CentOS-6.2-i386-minimal/base.sh +2 -0
  223. data/templates/CentOS-6.2-i386-minimal/definition.rb +1 -1
  224. data/templates/CentOS-6.2-i386-minimal/puppet.sh +7 -1
  225. data/templates/CentOS-6.2-x86_64-minimal/base.sh +2 -0
  226. data/templates/CentOS-6.2-x86_64-minimal/definition.rb +2 -2
  227. data/templates/CentOS-6.2-x86_64-minimal/puppet.sh +7 -1
  228. data/templates/CentOS-6.2-x86_64-netboot/definition.rb +2 -2
  229. data/templates/CentOS-6.2-x86_64-netboot/puppet.sh +7 -1
  230. data/templates/CentOS-6.3-i386-minimal/base.sh +2 -0
  231. data/templates/CentOS-6.3-i386-minimal/puppet.sh +7 -1
  232. data/templates/CentOS-6.3-x86_64-minimal/base.sh +2 -0
  233. data/templates/CentOS-6.3-x86_64-minimal/definition.rb +1 -1
  234. data/templates/CentOS-6.3-x86_64-minimal/puppet.sh +7 -1
  235. data/templates/CentOS-6.3-x86_64-netboot/base.sh +2 -0
  236. data/templates/CentOS-6.3-x86_64-netboot/cfengine.sh +69 -0
  237. data/templates/CentOS-6.3-x86_64-netboot/definition.rb +1 -1
  238. data/templates/CentOS-6.3-x86_64-netboot/puppet.sh +7 -1
  239. data/templates/CentOS-6.3-x86_64-reallyminimal/README.md +12 -0
  240. data/templates/CentOS-6.3-x86_64-reallyminimal/definition.rb +33 -0
  241. data/templates/CentOS-6.3-x86_64-reallyminimal/ks.cfg +100 -0
  242. data/templates/CentOS-6.3-x86_64-reallyminimal/postinstall.sh +138 -0
  243. data/templates/CentOS-6.4-i386-minimal/base.sh +16 -0
  244. data/templates/CentOS-6.4-i386-minimal/chef.sh +2 -0
  245. data/templates/CentOS-6.4-i386-minimal/cleanup.sh +8 -0
  246. data/templates/CentOS-6.4-i386-minimal/definition.rb +38 -0
  247. data/templates/CentOS-6.4-i386-minimal/ks.cfg +36 -0
  248. data/templates/CentOS-6.4-i386-minimal/puppet.sh +18 -0
  249. data/templates/CentOS-6.4-i386-minimal/vagrant.sh +18 -0
  250. data/templates/CentOS-6.4-i386-minimal/virtualbox.sh +8 -0
  251. data/templates/CentOS-6.4-i386-minimal/vmfusion.sh +7 -0
  252. data/templates/CentOS-6.4-i386-minimal/zerodisk.sh +3 -0
  253. data/templates/CentOS-6.4-i386-netboot/base.sh +16 -0
  254. data/templates/CentOS-6.4-i386-netboot/cfengine.sh +69 -0
  255. data/templates/CentOS-6.4-i386-netboot/chef.sh +3 -0
  256. data/templates/CentOS-6.4-i386-netboot/cleanup.sh +8 -0
  257. data/templates/CentOS-6.4-i386-netboot/definition.rb +40 -0
  258. data/templates/CentOS-6.4-i386-netboot/ks.cfg +41 -0
  259. data/templates/CentOS-6.4-i386-netboot/puppet.sh +18 -0
  260. data/templates/CentOS-6.4-i386-netboot/ruby.sh +3 -0
  261. data/templates/CentOS-6.4-i386-netboot/vagrant.sh +18 -0
  262. data/templates/CentOS-6.4-i386-netboot/virtualbox.sh +8 -0
  263. data/templates/CentOS-6.4-i386-netboot/vmfusion.sh +7 -0
  264. data/templates/CentOS-6.4-i386-netboot/zerodisk.sh +3 -0
  265. data/templates/CentOS-6.4-x86_64-minimal/base.sh +16 -0
  266. data/templates/CentOS-6.4-x86_64-minimal/chef.sh +2 -0
  267. data/templates/CentOS-6.4-x86_64-minimal/cleanup.sh +8 -0
  268. data/templates/CentOS-6.4-x86_64-minimal/definition.rb +38 -0
  269. data/templates/CentOS-6.4-x86_64-minimal/ks.cfg +36 -0
  270. data/templates/CentOS-6.4-x86_64-minimal/puppet.sh +18 -0
  271. data/templates/CentOS-6.4-x86_64-minimal/vagrant.sh +18 -0
  272. data/templates/CentOS-6.4-x86_64-minimal/virtualbox.sh +8 -0
  273. data/templates/CentOS-6.4-x86_64-minimal/vmfusion.sh +7 -0
  274. data/templates/CentOS-6.4-x86_64-minimal/zerodisk.sh +3 -0
  275. data/templates/CentOS-6.4-x86_64-netboot/base.sh +16 -0
  276. data/templates/CentOS-6.4-x86_64-netboot/cfengine.sh +69 -0
  277. data/templates/CentOS-6.4-x86_64-netboot/chef.sh +3 -0
  278. data/templates/CentOS-6.4-x86_64-netboot/cleanup.sh +8 -0
  279. data/templates/CentOS-6.4-x86_64-netboot/definition.rb +40 -0
  280. data/templates/CentOS-6.4-x86_64-netboot/ks.cfg +41 -0
  281. data/templates/CentOS-6.4-x86_64-netboot/puppet.sh +18 -0
  282. data/templates/CentOS-6.4-x86_64-netboot/ruby.sh +3 -0
  283. data/templates/CentOS-6.4-x86_64-netboot/vagrant.sh +18 -0
  284. data/templates/CentOS-6.4-x86_64-netboot/virtualbox.sh +8 -0
  285. data/templates/CentOS-6.4-x86_64-netboot/vmfusion.sh +7 -0
  286. data/templates/CentOS-6.4-x86_64-netboot/zerodisk.sh +3 -0
  287. data/templates/Debian-5.0.10-amd64-netboot/base.sh +4 -0
  288. data/templates/Debian-5.0.10-amd64-netboot/definition.rb +10 -1
  289. data/templates/Debian-5.0.10-amd64-netboot/preseed.cfg +5 -3
  290. data/templates/Debian-5.0.10-amd64-netboot/ruby.sh +7 -6
  291. data/templates/Debian-5.0.10-amd64-netboot/vagrant.sh +4 -0
  292. data/templates/Debian-5.0.10-amd64-netboot/virtualbox.sh +12 -7
  293. data/templates/Debian-5.0.10-amd64-netboot/zerodisk.sh +3 -0
  294. data/templates/Debian-5.0.10-i386-netboot/base.sh +4 -0
  295. data/templates/Debian-5.0.10-i386-netboot/definition.rb +10 -1
  296. data/templates/Debian-5.0.10-i386-netboot/preseed.cfg +5 -3
  297. data/templates/Debian-5.0.10-i386-netboot/ruby.sh +7 -6
  298. data/templates/Debian-5.0.10-i386-netboot/vagrant.sh +4 -0
  299. data/templates/Debian-5.0.10-i386-netboot/virtualbox.sh +12 -7
  300. data/templates/Debian-5.0.10-i386-netboot/zerodisk.sh +3 -0
  301. data/templates/Debian-5.0.8-amd64-netboot/base.sh +4 -0
  302. data/templates/Debian-5.0.8-amd64-netboot/definition.rb +10 -1
  303. data/templates/Debian-5.0.8-amd64-netboot/preseed.cfg +5 -3
  304. data/templates/Debian-5.0.8-amd64-netboot/vagrant.sh +4 -0
  305. data/templates/Debian-5.0.8-amd64-netboot/virtualbox.sh +12 -7
  306. data/templates/Debian-5.0.8-amd64-netboot/zerodisk.sh +3 -0
  307. data/templates/Debian-5.0.8-i386-netboot/base.sh +4 -0
  308. data/templates/Debian-5.0.8-i386-netboot/definition.rb +10 -1
  309. data/templates/Debian-5.0.8-i386-netboot/preseed.cfg +5 -3
  310. data/templates/Debian-5.0.8-i386-netboot/vagrant.sh +4 -0
  311. data/templates/Debian-5.0.8-i386-netboot/virtualbox.sh +12 -7
  312. data/templates/Debian-5.0.8-i386-netboot/zerodisk.sh +3 -0
  313. data/templates/Debian-6.0.3-amd64-netboot/definition.rb +3 -1
  314. data/templates/Debian-6.0.3-amd64-netboot/preseed.cfg +2 -2
  315. data/templates/Debian-6.0.3-i386-netboot/definition.rb +3 -1
  316. data/templates/Debian-6.0.3-i386-netboot/preseed.cfg +2 -2
  317. data/templates/Debian-6.0.4-amd64-netboot/definition.rb +3 -1
  318. data/templates/Debian-6.0.4-amd64-netboot/preseed.cfg +2 -2
  319. data/templates/Debian-6.0.4-i386-netboot/definition.rb +4 -2
  320. data/templates/Debian-6.0.4-i386-netboot/preseed.cfg +2 -2
  321. data/templates/Debian-6.0.5-amd64-netboot/definition.rb +3 -1
  322. data/templates/Debian-6.0.5-amd64-netboot/preseed.cfg +2 -2
  323. data/templates/Debian-6.0.5-i386-netboot/definition.rb +3 -1
  324. data/templates/Debian-6.0.5-i386-netboot/preseed.cfg +3 -3
  325. data/templates/Debian-6.0.6-amd64-netboot/base.sh +6 -2
  326. data/templates/Debian-6.0.6-amd64-netboot/chef.sh +1 -1
  327. data/templates/Debian-6.0.6-amd64-netboot/definition.rb +5 -3
  328. data/templates/Debian-6.0.6-amd64-netboot/preseed.cfg +2 -2
  329. data/templates/Debian-6.0.6-amd64-netboot/puppet.sh +1 -1
  330. data/templates/Debian-6.0.6-amd64-netboot/ruby.sh +25 -9
  331. data/templates/Debian-6.0.6-amd64-netboot/vagrant.sh +0 -2
  332. data/templates/Debian-6.0.6-amd64-netboot/virtualbox.sh +17 -12
  333. data/templates/Debian-6.0.6-amd64-netboot/vmfusion.sh +7 -0
  334. data/templates/Debian-6.0.6-i386-netboot/base.sh +0 -1
  335. data/templates/Debian-6.0.6-i386-netboot/cleanup.sh +1 -0
  336. data/templates/Debian-6.0.6-i386-netboot/definition.rb +11 -2
  337. data/templates/Debian-6.0.6-i386-netboot/preseed.cfg +3 -3
  338. data/templates/Debian-6.0.6-i386-netboot/virtualbox.sh +3 -0
  339. data/templates/Debian-6.0.7-amd64-netboot/base.sh +27 -0
  340. data/templates/{Debian-7.0-b4-amd64-netboot → Debian-6.0.7-amd64-netboot}/chef.sh +0 -0
  341. data/templates/{Debian-6.0.6-amd64-netboot → Debian-6.0.7-amd64-netboot}/cleanup-virtualbox.sh +0 -0
  342. data/templates/{Debian-7.0-b4-amd64-netboot → Debian-6.0.7-amd64-netboot}/cleanup.sh +0 -0
  343. data/templates/Debian-6.0.7-amd64-netboot/definition.rb +50 -0
  344. data/templates/{Debian-7.0-b4-i386-netboot → Debian-6.0.7-amd64-netboot}/preseed.cfg +2 -2
  345. data/templates/Debian-6.0.7-amd64-netboot/puppet.sh +7 -0
  346. data/templates/Debian-6.0.7-amd64-netboot/ruby.sh +10 -0
  347. data/templates/{Debian-7.0-b4-amd64-netboot → Debian-6.0.7-amd64-netboot}/vagrant.sh +0 -0
  348. data/templates/{Debian-7.0-b4-amd64-netboot → Debian-6.0.7-amd64-netboot}/virtualbox.sh +6 -1
  349. data/templates/Debian-6.0.7-amd64-netboot/vmfusion.sh +7 -0
  350. data/templates/Debian-6.0.7-amd64-netboot/zerodisk.sh +3 -0
  351. data/templates/Debian-6.0.7-i386-netboot/base.sh +26 -0
  352. data/templates/{Debian-7.0-b4-i386-netboot → Debian-6.0.7-i386-netboot}/chef.sh +0 -0
  353. data/templates/{Debian-7.0-b4-amd64-netboot → Debian-6.0.7-i386-netboot}/cleanup-virtualbox.sh +0 -0
  354. data/templates/Debian-6.0.7-i386-netboot/cleanup.sh +18 -0
  355. data/templates/Debian-6.0.7-i386-netboot/definition.rb +59 -0
  356. data/templates/Debian-6.0.7-i386-netboot/preseed.cfg +315 -0
  357. data/templates/Debian-6.0.7-i386-netboot/puppet.sh +7 -0
  358. data/templates/{Debian-7.0-b4-amd64-netboot → Debian-6.0.7-i386-netboot}/ruby.sh +0 -0
  359. data/templates/{Debian-7.0-b4-i386-netboot → Debian-6.0.7-i386-netboot}/vagrant.sh +0 -0
  360. data/templates/{Debian-7.0-b4-i386-netboot → Debian-6.0.7-i386-netboot}/virtualbox.sh +3 -0
  361. data/templates/Debian-6.0.7-i386-netboot/vmfusion.sh +7 -0
  362. data/templates/Debian-6.0.7-i386-netboot/zerodisk.sh +3 -0
  363. data/templates/Debian-7.0-amd64-netboot/base.sh +25 -0
  364. data/templates/Debian-7.0-amd64-netboot/chef.sh +49 -0
  365. data/templates/{Debian-7.0-b4-i386-netboot → Debian-7.0-amd64-netboot}/cleanup-virtualbox.sh +0 -0
  366. data/templates/Debian-7.0-amd64-netboot/cleanup.sh +18 -0
  367. data/templates/Debian-7.0-amd64-netboot/definition.rb +55 -0
  368. data/templates/{Debian-7.0-b4-amd64-netboot → Debian-7.0-amd64-netboot}/preseed.cfg +4 -4
  369. data/templates/Debian-7.0-amd64-netboot/puppet.sh +7 -0
  370. data/templates/{Debian-7.0-b4-i386-netboot → Debian-7.0-amd64-netboot}/ruby.sh +0 -0
  371. data/templates/Debian-7.0-amd64-netboot/vagrant.sh +21 -0
  372. data/templates/Debian-7.0-amd64-netboot/virtualbox.sh +34 -0
  373. data/templates/Debian-7.0-amd64-netboot/vmfusion.sh +7 -0
  374. data/templates/Debian-7.0-amd64-netboot/zerodisk.sh +3 -0
  375. data/templates/{Debian-7.0-b4-amd64-netboot → Debian-7.0-i386-netboot}/base.sh +1 -1
  376. data/templates/Debian-7.0-i386-netboot/chef.sh +2 -0
  377. data/templates/Debian-7.0-i386-netboot/cleanup-virtualbox.sh +4 -0
  378. data/templates/{Debian-7.0-b4-i386-netboot → Debian-7.0-i386-netboot}/cleanup.sh +0 -0
  379. data/templates/Debian-7.0-i386-netboot/definition.rb +56 -0
  380. data/templates/Debian-7.0-i386-netboot/preseed.cfg +315 -0
  381. data/templates/Debian-7.0-i386-netboot/puppet.sh +7 -0
  382. data/templates/Debian-7.0-i386-netboot/ruby.sh +10 -0
  383. data/templates/Debian-7.0-i386-netboot/vagrant.sh +23 -0
  384. data/templates/Debian-7.0-i386-netboot/virtualbox.sh +34 -0
  385. data/templates/Debian-7.0-i386-netboot/vmfusion.sh +7 -0
  386. data/templates/Debian-7.0-i386-netboot/zerodisk.sh +3 -0
  387. data/templates/Debian-7.1.0-amd64-netboot/base.sh +25 -0
  388. data/templates/Debian-7.1.0-amd64-netboot/chef.sh +49 -0
  389. data/templates/Debian-7.1.0-amd64-netboot/cleanup-virtualbox.sh +4 -0
  390. data/templates/Debian-7.1.0-amd64-netboot/cleanup.sh +18 -0
  391. data/templates/Debian-7.1.0-amd64-netboot/definition.rb +53 -0
  392. data/templates/Debian-7.1.0-amd64-netboot/preseed.cfg +313 -0
  393. data/templates/Debian-7.1.0-amd64-netboot/puppet.sh +7 -0
  394. data/templates/Debian-7.1.0-amd64-netboot/ruby.sh +10 -0
  395. data/templates/Debian-7.1.0-amd64-netboot/vagrant.sh +21 -0
  396. data/templates/Debian-7.1.0-amd64-netboot/virtualbox.sh +34 -0
  397. data/templates/Debian-7.1.0-amd64-netboot/vmfusion.sh +7 -0
  398. data/templates/Debian-7.1.0-amd64-netboot/zerodisk.sh +3 -0
  399. data/templates/{Debian-7.0-b4-i386-netboot → Debian-7.1.0-i386-netboot}/base.sh +1 -1
  400. data/templates/Debian-7.1.0-i386-netboot/chef.sh +2 -0
  401. data/templates/Debian-7.1.0-i386-netboot/cleanup-virtualbox.sh +4 -0
  402. data/templates/Debian-7.1.0-i386-netboot/cleanup.sh +17 -0
  403. data/templates/{Debian-7.0-b4-i386-netboot → Debian-7.1.0-i386-netboot}/definition.rb +5 -5
  404. data/templates/Debian-7.1.0-i386-netboot/preseed.cfg +315 -0
  405. data/templates/Debian-7.1.0-i386-netboot/puppet.sh +7 -0
  406. data/templates/Debian-7.1.0-i386-netboot/ruby.sh +10 -0
  407. data/templates/Debian-7.1.0-i386-netboot/vagrant.sh +23 -0
  408. data/templates/Debian-7.1.0-i386-netboot/virtualbox.sh +34 -0
  409. data/templates/Debian-7.1.0-i386-netboot/vmfusion.sh +7 -0
  410. data/templates/Debian-7.1.0-i386-netboot/zerodisk.sh +3 -0
  411. data/templates/Debian-7.2.0-amd64-netboot/base.sh +25 -0
  412. data/templates/Debian-7.2.0-amd64-netboot/chef.sh +49 -0
  413. data/templates/Debian-7.2.0-amd64-netboot/cleanup-virtualbox.sh +4 -0
  414. data/templates/Debian-7.2.0-amd64-netboot/cleanup.sh +18 -0
  415. data/templates/Debian-7.2.0-amd64-netboot/definition.rb +53 -0
  416. data/templates/Debian-7.2.0-amd64-netboot/preseed.cfg +313 -0
  417. data/templates/Debian-7.2.0-amd64-netboot/puppet.sh +7 -0
  418. data/templates/Debian-7.2.0-amd64-netboot/ruby.sh +10 -0
  419. data/templates/Debian-7.2.0-amd64-netboot/vagrant.sh +21 -0
  420. data/templates/Debian-7.2.0-amd64-netboot/virtualbox.sh +34 -0
  421. data/templates/Debian-7.2.0-amd64-netboot/vmfusion.sh +7 -0
  422. data/templates/Debian-7.2.0-amd64-netboot/zerodisk.sh +3 -0
  423. data/templates/Debian-7.2.0-i386-netboot/base.sh +26 -0
  424. data/templates/Debian-7.2.0-i386-netboot/chef.sh +2 -0
  425. data/templates/Debian-7.2.0-i386-netboot/cleanup-virtualbox.sh +4 -0
  426. data/templates/Debian-7.2.0-i386-netboot/cleanup.sh +17 -0
  427. data/templates/{Debian-7.0-b4-amd64-netboot → Debian-7.2.0-i386-netboot}/definition.rb +5 -5
  428. data/templates/Debian-7.2.0-i386-netboot/preseed.cfg +315 -0
  429. data/templates/Debian-7.2.0-i386-netboot/puppet.sh +7 -0
  430. data/templates/Debian-7.2.0-i386-netboot/ruby.sh +10 -0
  431. data/templates/Debian-7.2.0-i386-netboot/vagrant.sh +23 -0
  432. data/templates/Debian-7.2.0-i386-netboot/virtualbox.sh +34 -0
  433. data/templates/Debian-7.2.0-i386-netboot/vmfusion.sh +7 -0
  434. data/templates/Debian-7.2.0-i386-netboot/zerodisk.sh +3 -0
  435. data/templates/Fedora-14-amd64-netboot/ks.cfg +3 -3
  436. data/templates/Fedora-14-amd64/ks.cfg +3 -3
  437. data/templates/Fedora-14-i386-netboot/ks.cfg +3 -3
  438. data/templates/Fedora-14-i386/ks.cfg +3 -3
  439. data/templates/Fedora-15-i386-netboot/ks.cfg +2 -2
  440. data/templates/Fedora-15-i386/ks.cfg +2 -2
  441. data/templates/Fedora-15-x86_64-netboot/ks.cfg +2 -2
  442. data/templates/Fedora-15-x86_64/definition.rb +1 -1
  443. data/templates/Fedora-15-x86_64/ks.cfg +2 -2
  444. data/templates/Fedora-16-i386/ks.cfg +2 -2
  445. data/templates/Fedora-16-x86_64-netboot/ks.cfg +2 -2
  446. data/templates/Fedora-16-x86_64/ks.cfg +2 -2
  447. data/templates/Fedora-17-i386/ks.cfg +2 -2
  448. data/templates/Fedora-17-x86_64/ks.cfg +2 -2
  449. data/templates/Fedora-18-i386/base.sh +12 -0
  450. data/templates/Fedora-18-i386/chef.sh +17 -0
  451. data/templates/Fedora-18-i386/cleanup.sh +6 -0
  452. data/templates/Fedora-18-i386/definition.rb +32 -10
  453. data/templates/Fedora-18-i386/ks.cfg +2 -2
  454. data/templates/Fedora-18-i386/puppet.sh +2 -0
  455. data/templates/Fedora-18-i386/ruby.sh +3 -0
  456. data/templates/Fedora-18-i386/vagrant.sh +18 -0
  457. data/templates/Fedora-18-i386/virtualbox.sh +8 -0
  458. data/templates/Fedora-18-i386/vmfusion.sh +7 -0
  459. data/templates/Fedora-18-i386/zerodisk.sh +3 -0
  460. data/templates/Fedora-18-x86_64/base.sh +12 -0
  461. data/templates/Fedora-18-x86_64/chef.sh +17 -0
  462. data/templates/Fedora-18-x86_64/cleanup.sh +6 -0
  463. data/templates/Fedora-18-x86_64/definition.rb +32 -10
  464. data/templates/Fedora-18-x86_64/ks.cfg +2 -2
  465. data/templates/Fedora-18-x86_64/puppet.sh +2 -0
  466. data/templates/Fedora-18-x86_64/ruby.sh +3 -0
  467. data/templates/Fedora-18-x86_64/vagrant.sh +18 -0
  468. data/templates/Fedora-18-x86_64/virtualbox.sh +8 -0
  469. data/templates/Fedora-18-x86_64/vmfusion.sh +7 -0
  470. data/templates/Fedora-18-x86_64/zerodisk.sh +3 -0
  471. data/templates/Fedora-19-i386/base.sh +9 -0
  472. data/templates/Fedora-19-i386/chef.sh +17 -0
  473. data/templates/Fedora-19-i386/cleanup.sh +6 -0
  474. data/templates/Fedora-19-i386/definition.rb +39 -0
  475. data/templates/Fedora-19-i386/ks.cfg +83 -0
  476. data/templates/Fedora-19-i386/puppet.sh +2 -0
  477. data/templates/Fedora-19-i386/ruby.sh +3 -0
  478. data/templates/Fedora-19-i386/vagrant.sh +18 -0
  479. data/templates/Fedora-19-i386/virtualbox.sh +4 -0
  480. data/templates/Fedora-19-i386/vmfusion.sh +7 -0
  481. data/templates/Fedora-19-i386/zerodisk.sh +3 -0
  482. data/templates/Fedora-19-x86_64/base.sh +9 -0
  483. data/templates/Fedora-19-x86_64/chef.sh +17 -0
  484. data/templates/Fedora-19-x86_64/cleanup.sh +6 -0
  485. data/templates/Fedora-19-x86_64/definition.rb +39 -0
  486. data/templates/Fedora-19-x86_64/ks.cfg +83 -0
  487. data/templates/Fedora-19-x86_64/puppet.sh +2 -0
  488. data/templates/Fedora-19-x86_64/ruby.sh +3 -0
  489. data/templates/Fedora-19-x86_64/vagrant.sh +18 -0
  490. data/templates/Fedora-19-x86_64/virtualbox.sh +4 -0
  491. data/templates/Fedora-19-x86_64/vmfusion.sh +7 -0
  492. data/templates/Fedora-19-x86_64/zerodisk.sh +3 -0
  493. data/templates/OSX/NOTICE.erb +23 -0
  494. data/templates/OSX/chef-omnibus.sh +6 -0
  495. data/templates/OSX/definition.rb +31 -0
  496. data/templates/OSX/fix_user_perms.sh +3 -0
  497. data/templates/OSX/postinstall.sh +28 -0
  498. data/templates/OSX/prepare_veewee_iso/prepare_veewee_iso.sh +281 -0
  499. data/templates/OSX/prepare_veewee_iso/support/10_8_AP_bomlist +34 -0
  500. data/templates/OSX/prepare_veewee_iso/support/OSInstall.collection +9 -0
  501. data/templates/OSX/prepare_veewee_iso/support/PartitionInfo.plist +0 -0
  502. data/templates/OSX/prepare_veewee_iso/support/com.vagrantup.veewee.plist +14 -0
  503. data/templates/OSX/prepare_veewee_iso/support/minstallconfig.xml +16 -0
  504. data/templates/OSX/prepare_veewee_iso/support/pkg-postinstall +25 -0
  505. data/templates/OSX/prepare_veewee_iso/support/shadowhash +1 -0
  506. data/templates/OSX/prepare_veewee_iso/support/vagrant.plist +804 -0
  507. data/templates/OSX/puppet.sh +18 -0
  508. data/templates/OSX/rvm.bash +17 -0
  509. data/templates/OSX/xcode-cli-tools.sh +19 -0
  510. data/templates/OracleLinux-5.9-i386-DVD/base.sh +26 -0
  511. data/templates/OracleLinux-5.9-i386-DVD/chef.sh +3 -0
  512. data/templates/OracleLinux-5.9-i386-DVD/cleanup.sh +8 -0
  513. data/templates/OracleLinux-5.9-i386-DVD/definition.rb +37 -0
  514. data/templates/OracleLinux-5.9-i386-DVD/ks.cfg +35 -0
  515. data/templates/OracleLinux-5.9-i386-DVD/proxy.sh +4 -0
  516. data/templates/OracleLinux-5.9-i386-DVD/puppet.sh +3 -0
  517. data/templates/OracleLinux-5.9-i386-DVD/ruby.sh +36 -0
  518. data/templates/OracleLinux-5.9-i386-DVD/vagrant.sh +21 -0
  519. data/templates/OracleLinux-5.9-i386-DVD/virtualbox.sh +8 -0
  520. data/templates/OracleLinux-5.9-i386-DVD/zerodisk.sh +3 -0
  521. data/templates/OracleLinux-5.9-x86_64-DVD/base.sh +26 -0
  522. data/templates/OracleLinux-5.9-x86_64-DVD/chef.sh +3 -0
  523. data/templates/OracleLinux-5.9-x86_64-DVD/cleanup.sh +8 -0
  524. data/templates/OracleLinux-5.9-x86_64-DVD/definition.rb +37 -0
  525. data/templates/OracleLinux-5.9-x86_64-DVD/ks.cfg +35 -0
  526. data/templates/OracleLinux-5.9-x86_64-DVD/proxy.sh +4 -0
  527. data/templates/OracleLinux-5.9-x86_64-DVD/puppet.sh +3 -0
  528. data/templates/OracleLinux-5.9-x86_64-DVD/ruby.sh +36 -0
  529. data/templates/OracleLinux-5.9-x86_64-DVD/vagrant.sh +21 -0
  530. data/templates/OracleLinux-5.9-x86_64-DVD/virtualbox.sh +8 -0
  531. data/templates/OracleLinux-5.9-x86_64-DVD/zerodisk.sh +3 -0
  532. data/templates/OracleLinux-6.3-x86_64-DVD/definition.rb +1 -0
  533. data/templates/OracleLinux-6.3-x86_64-DVD/nfs.sh +2 -0
  534. data/templates/OracleLinux-6.3-x86_64-DVD/puppet.sh +6 -0
  535. data/templates/OracleLinux-6.4-i386-DVD/base.sh +25 -0
  536. data/templates/OracleLinux-6.4-i386-DVD/chef.sh +3 -0
  537. data/templates/OracleLinux-6.4-i386-DVD/cleanup.sh +9 -0
  538. data/templates/OracleLinux-6.4-i386-DVD/definition.rb +39 -0
  539. data/templates/OracleLinux-6.4-i386-DVD/ks.cfg +36 -0
  540. data/templates/OracleLinux-6.4-i386-DVD/proxy.sh +4 -0
  541. data/templates/OracleLinux-6.4-i386-DVD/puppet.sh +10 -0
  542. data/templates/OracleLinux-6.4-i386-DVD/ruby.sh +5 -0
  543. data/templates/OracleLinux-6.4-i386-DVD/vagrant.sh +21 -0
  544. data/templates/OracleLinux-6.4-i386-DVD/virtualbox.sh +8 -0
  545. data/templates/OracleLinux-6.4-i386-DVD/zerodisk.sh +3 -0
  546. data/templates/OracleLinux-6.4-x86_64-DVD/base.sh +25 -0
  547. data/templates/OracleLinux-6.4-x86_64-DVD/chef.sh +3 -0
  548. data/templates/OracleLinux-6.4-x86_64-DVD/cleanup.sh +9 -0
  549. data/templates/OracleLinux-6.4-x86_64-DVD/definition.rb +39 -0
  550. data/templates/OracleLinux-6.4-x86_64-DVD/ks.cfg +36 -0
  551. data/templates/OracleLinux-6.4-x86_64-DVD/proxy.sh +4 -0
  552. data/templates/OracleLinux-6.4-x86_64-DVD/puppet.sh +10 -0
  553. data/templates/OracleLinux-6.4-x86_64-DVD/ruby.sh +5 -0
  554. data/templates/OracleLinux-6.4-x86_64-DVD/vagrant.sh +21 -0
  555. data/templates/OracleLinux-6.4-x86_64-DVD/virtualbox.sh +8 -0
  556. data/templates/OracleLinux-6.4-x86_64-DVD/zerodisk.sh +3 -0
  557. data/templates/SLES-11-SP2-DVD-x86_64-GM/autoinst.xml +2578 -0
  558. data/templates/SLES-11-SP2-DVD-x86_64-GM/definition.rb +33 -0
  559. data/templates/SLES-11-SP2-DVD-x86_64-GM/postinstall.sh +51 -0
  560. data/templates/VMware-ESXi-5.0u2-x86_64/definition.rb +26 -0
  561. data/templates/VMware-ESXi-5.0u2-x86_64/ks.cfg +63 -0
  562. data/templates/VMware-ESXi-5.0u2-x86_64/vagrant_key.py +6 -0
  563. data/templates/VMware-ESXi-5.0u2-x86_64/vnc_enable.sh +40 -0
  564. data/templates/VMware-ESXi-5.1-x86_64/definition.rb +27 -0
  565. data/templates/VMware-ESXi-5.1-x86_64/ks.cfg +63 -0
  566. data/templates/VMware-ESXi-5.1-x86_64/vagrant_key.py +6 -0
  567. data/templates/VMware-ESXi-5.1-x86_64/vnc_enable.sh +41 -0
  568. data/templates/archlinux-x86_64/README.md +51 -0
  569. data/templates/archlinux-x86_64/aur.sh +22 -0
  570. data/templates/archlinux-x86_64/base.sh +46 -0
  571. data/templates/archlinux-x86_64/basedevel.sh +6 -0
  572. data/templates/archlinux-x86_64/bootloader.sh +11 -0
  573. data/templates/archlinux-x86_64/chef.sh +31 -0
  574. data/templates/archlinux-x86_64/cleanup.sh +18 -0
  575. data/templates/archlinux-x86_64/definition.rb +57 -23
  576. data/templates/archlinux-x86_64/pacman.sh +28 -0
  577. data/templates/archlinux-x86_64/puppet.sh +22 -0
  578. data/templates/archlinux-x86_64/reboot.sh +22 -0
  579. data/templates/archlinux-x86_64/ruby.sh +27 -0
  580. data/templates/archlinux-x86_64/ssh.sh +18 -0
  581. data/templates/archlinux-x86_64/sudo.sh +12 -0
  582. data/templates/archlinux-x86_64/user.sh +11 -0
  583. data/templates/archlinux-x86_64/vagrant.sh +27 -0
  584. data/templates/archlinux-x86_64/virtualbox.sh +23 -0
  585. data/templates/archlinux-x86_64/zerodisk.sh +11 -0
  586. data/templates/freebsd-8.2-pcbsd-amd64/definition.rb +26 -0
  587. data/templates/freebsd-8.2-pcbsd-amd64/pcinstall.fbg.cfg +57 -0
  588. data/templates/freebsd-8.2-pcbsd-amd64/postinstall.sh +95 -0
  589. data/templates/freebsd-8.2-pcbsd-i386-netboot/pcinstall.fbg.cfg +2 -2
  590. data/templates/freebsd-8.2-pcbsd-i386-netboot/postinstall.sh +32 -30
  591. data/templates/freebsd-8.2-pcbsd-i386/pcinstall.fbg.cfg +1 -1
  592. data/templates/freebsd-8.2-pcbsd-i386/postinstall.sh +31 -29
  593. data/templates/freebsd-9.0-RELEASE-amd64/definition.rb +22 -9
  594. data/templates/freebsd-9.0-RELEASE-amd64/install.sh +103 -0
  595. data/templates/freebsd-9.0-RELEASE-amd64/postinstall.sh +72 -48
  596. data/templates/freebsd-9.1-RELEASE-amd64/definition.rb +32 -0
  597. data/templates/freebsd-9.1-RELEASE-amd64/install.sh +95 -0
  598. data/templates/freebsd-9.1-RELEASE-amd64/postinstall.csh +136 -0
  599. data/templates/funtoo-latest-x86_64/definition.rb +8 -6
  600. data/templates/funtoo-latest-x86_64/postinstall.sh +16 -0
  601. data/templates/gentoo-latest-amd64/base.sh +89 -0
  602. data/templates/gentoo-latest-amd64/chef.sh +7 -0
  603. data/templates/gentoo-latest-amd64/cleanup.sh +23 -0
  604. data/templates/gentoo-latest-amd64/cron.sh +8 -0
  605. data/templates/gentoo-latest-amd64/definition.rb +59 -0
  606. data/templates/gentoo-latest-amd64/grub.sh +23 -0
  607. data/templates/gentoo-latest-amd64/kernel.sh +109 -0
  608. data/templates/gentoo-latest-amd64/nfs.sh +11 -0
  609. data/templates/gentoo-latest-amd64/puppet.sh +7 -0
  610. data/templates/gentoo-latest-amd64/reboot.sh +4 -0
  611. data/templates/gentoo-latest-amd64/ruby.sh +17 -0
  612. data/templates/gentoo-latest-amd64/settings.sh +37 -0
  613. data/templates/gentoo-latest-amd64/syslog.sh +8 -0
  614. data/templates/gentoo-latest-amd64/vagrant.sh +57 -0
  615. data/templates/gentoo-latest-amd64/virtualbox.sh +23 -0
  616. data/templates/gentoo-latest-amd64/zerodisk.sh +15 -0
  617. data/templates/gentoo-latest-i686/base.sh +84 -0
  618. data/templates/gentoo-latest-i686/chef.sh +7 -0
  619. data/templates/gentoo-latest-i686/cleanup.sh +23 -0
  620. data/templates/gentoo-latest-i686/cron.sh +8 -0
  621. data/templates/gentoo-latest-i686/definition.rb +61 -0
  622. data/templates/gentoo-latest-i686/grub.sh +24 -0
  623. data/templates/gentoo-latest-i686/kernel.sh +109 -0
  624. data/templates/gentoo-latest-i686/nfs.sh +11 -0
  625. data/templates/gentoo-latest-i686/puppet.sh +7 -0
  626. data/templates/gentoo-latest-i686/reboot.sh +4 -0
  627. data/templates/gentoo-latest-i686/ruby_portage.sh +17 -0
  628. data/templates/gentoo-latest-i686/ruby_source.sh +15 -0
  629. data/templates/gentoo-latest-i686/settings.sh +40 -0
  630. data/templates/gentoo-latest-i686/syslog.sh +8 -0
  631. data/templates/gentoo-latest-i686/vagrant.sh +57 -0
  632. data/templates/gentoo-latest-i686/virtualbox.sh +18 -0
  633. data/templates/gentoo-latest-i686/zerodisk.sh +15 -0
  634. data/templates/nixos-minimal-0.2-i686/configuration.nix +39 -0
  635. data/templates/nixos-minimal-0.2-i686/definition.rb +50 -0
  636. data/templates/nixos-minimal-0.2-i686/postinstall.sh +28 -0
  637. data/templates/openSUSE-12.3-x86_64-NET_EN/README.md +5 -0
  638. data/templates/openSUSE-12.3-x86_64-NET_EN/autoinst.xml +211 -0
  639. data/templates/openSUSE-12.3-x86_64-NET_EN/definition.rb +37 -0
  640. data/templates/openSUSE-12.3-x86_64-NET_EN/postinstall.sh +37 -0
  641. data/templates/openSUSE-12.3-x86_64-NET_EN/virtualbox.sh +16 -0
  642. data/templates/openbsd50_amd64/definition.rb +1 -1
  643. data/templates/openbsd50_i386/definition.rb +1 -1
  644. data/templates/openbsd52_amd64/definition.rb +1 -1
  645. data/templates/openbsd52_i386/definition.rb +3 -7
  646. data/templates/openbsd52_i386_snap/README +28 -0
  647. data/templates/openbsd52_i386_snap/definition.rb +81 -0
  648. data/templates/openbsd52_i386_snap/postinstall.sh +81 -0
  649. data/templates/openbsd53_amd64/README +28 -0
  650. data/templates/openbsd53_amd64/base.sh +40 -0
  651. data/templates/openbsd53_amd64/chef.sh +2 -0
  652. data/templates/openbsd53_amd64/definition.rb +91 -0
  653. data/templates/openbsd53_amd64/puppet.sh +3 -0
  654. data/templates/openbsd53_amd64/ruby.sh +14 -0
  655. data/templates/openbsd53_amd64/vagrant.sh +27 -0
  656. data/templates/openbsd53_i386/README +28 -0
  657. data/templates/openbsd53_i386/base.sh +40 -0
  658. data/templates/openbsd53_i386/chef.sh +2 -0
  659. data/templates/openbsd53_i386/definition.rb +91 -0
  660. data/templates/openbsd53_i386/puppet.sh +3 -0
  661. data/templates/openbsd53_i386/ruby.sh +14 -0
  662. data/templates/openbsd53_i386/vagrant.sh +27 -0
  663. data/templates/openindiana-151a7-text-x86/auto_install/ai.dtd +58 -0
  664. data/templates/openindiana-151a7-text-x86/auto_install/ai_manifest.xml +241 -0
  665. data/templates/openindiana-151a7-text-x86/auto_install/configuration.dtd +44 -0
  666. data/templates/openindiana-151a7-text-x86/auto_install/default.xml +121 -0
  667. data/templates/openindiana-151a7-text-x86/auto_install/default.xml.orig +124 -0
  668. data/templates/openindiana-151a7-text-x86/auto_install/sc_profiles/static_network.xml +105 -0
  669. data/templates/openindiana-151a7-text-x86/auto_install/software.dtd +105 -0
  670. data/templates/openindiana-151a7-text-x86/auto_install/target.dtd +196 -0
  671. data/templates/openindiana-151a7-text-x86/default.xml +121 -0
  672. data/templates/openindiana-151a7-text-x86/definition.rb +56 -0
  673. data/templates/openindiana-151a7-text-x86/postinstall.sh +103 -0
  674. data/templates/scientificlinux-5.7-i386/definition.rb +16 -0
  675. data/templates/scientificlinux-5.7-i386/ks.cfg +75 -0
  676. data/templates/scientificlinux-5.7-i386/postinstall.sh +39 -0
  677. data/templates/scientificlinux-5.7-x86_64/definition.rb +16 -0
  678. data/templates/scientificlinux-5.7-x86_64/ks.cfg +75 -0
  679. data/templates/scientificlinux-5.7-x86_64/postinstall.sh +39 -0
  680. data/templates/scientificlinux-5.9-i386/definition.rb +16 -0
  681. data/templates/scientificlinux-5.9-i386/ks.cfg +75 -0
  682. data/templates/scientificlinux-5.9-i386/postinstall.sh +39 -0
  683. data/templates/scientificlinux-5.9-x86_64/definition.rb +16 -0
  684. data/templates/scientificlinux-5.9-x86_64/ks.cfg +75 -0
  685. data/templates/scientificlinux-5.9-x86_64/postinstall.sh +39 -0
  686. data/templates/scientificlinux-6.4-i386-netboot/base.sh +14 -0
  687. data/templates/scientificlinux-6.4-i386-netboot/cfengine.sh +69 -0
  688. data/templates/scientificlinux-6.4-i386-netboot/chef.sh +3 -0
  689. data/templates/scientificlinux-6.4-i386-netboot/cleanup.sh +5 -0
  690. data/templates/scientificlinux-6.4-i386-netboot/definition.rb +40 -0
  691. data/templates/scientificlinux-6.4-i386-netboot/ks.cfg +41 -0
  692. data/templates/scientificlinux-6.4-i386-netboot/puppet.sh +18 -0
  693. data/templates/scientificlinux-6.4-i386-netboot/ruby.sh +3 -0
  694. data/templates/scientificlinux-6.4-i386-netboot/vagrant.sh +18 -0
  695. data/templates/scientificlinux-6.4-i386-netboot/virtualbox.sh +8 -0
  696. data/templates/scientificlinux-6.4-i386-netboot/zerodisk.sh +3 -0
  697. data/templates/scientificlinux-6.4-x86_64-netboot/base.sh +14 -0
  698. data/templates/scientificlinux-6.4-x86_64-netboot/cfengine.sh +69 -0
  699. data/templates/scientificlinux-6.4-x86_64-netboot/chef.sh +3 -0
  700. data/templates/scientificlinux-6.4-x86_64-netboot/cleanup.sh +5 -0
  701. data/templates/scientificlinux-6.4-x86_64-netboot/definition.rb +40 -0
  702. data/templates/scientificlinux-6.4-x86_64-netboot/ks.cfg +41 -0
  703. data/templates/scientificlinux-6.4-x86_64-netboot/puppet.sh +18 -0
  704. data/templates/scientificlinux-6.4-x86_64-netboot/ruby.sh +3 -0
  705. data/templates/scientificlinux-6.4-x86_64-netboot/vagrant.sh +18 -0
  706. data/templates/scientificlinux-6.4-x86_64-netboot/virtualbox.sh +8 -0
  707. data/templates/scientificlinux-6.4-x86_64-netboot/zerodisk.sh +3 -0
  708. data/templates/solaris-10-ga-x86/README.md +39 -0
  709. data/templates/solaris-10-ga-x86/chef.sh +10 -0
  710. data/templates/solaris-10-ga-x86/cleanup.sh +18 -0
  711. data/templates/solaris-10-ga-x86/definition.rb +39 -0
  712. data/templates/solaris-10-ga-x86/jumpstart/begin +28 -0
  713. data/templates/solaris-10-ga-x86/jumpstart/finish +35 -0
  714. data/templates/solaris-10-ga-x86/jumpstart/profile +41 -0
  715. data/templates/solaris-10-ga-x86/jumpstart/rules +96 -0
  716. data/templates/solaris-10-ga-x86/jumpstart/rules.ok +2 -0
  717. data/templates/solaris-10-ga-x86/jumpstart/sysidcfg +16 -0
  718. data/templates/solaris-10-ga-x86/postinstall.sh +90 -0
  719. data/templates/solaris-10-ga-x86/puppet.sh +4 -0
  720. data/templates/solaris-10-ga-x86/update-terminfo.sh +84 -0
  721. data/templates/ubuntu-10.04.4-server-amd64-netboot/base.sh +24 -0
  722. data/templates/ubuntu-10.04.4-server-amd64-netboot/chef.sh +2 -0
  723. data/templates/ubuntu-10.04.4-server-amd64-netboot/cleanup.sh +22 -0
  724. data/templates/ubuntu-10.04.4-server-amd64-netboot/definition.rb +44 -0
  725. data/templates/ubuntu-10.04.4-server-amd64-netboot/preseed.cfg +89 -0
  726. data/templates/ubuntu-10.04.4-server-amd64-netboot/puppet.sh +7 -0
  727. data/templates/ubuntu-10.04.4-server-amd64-netboot/ruby.sh +24 -0
  728. data/templates/ubuntu-10.04.4-server-amd64-netboot/vagrant.sh +14 -0
  729. data/templates/ubuntu-10.04.4-server-amd64-netboot/virtualbox.sh +10 -0
  730. data/templates/ubuntu-10.04.4-server-amd64-netboot/vmfusion.sh +7 -0
  731. data/templates/ubuntu-10.04.4-server-amd64-netboot/zerodisk.sh +3 -0
  732. data/templates/ubuntu-10.04.4-server-amd64/base.sh +24 -0
  733. data/templates/ubuntu-10.04.4-server-amd64/chef.sh +2 -0
  734. data/templates/ubuntu-10.04.4-server-amd64/cleanup.sh +22 -0
  735. data/templates/ubuntu-10.04.4-server-amd64/definition.rb +29 -8
  736. data/templates/ubuntu-10.04.4-server-amd64/puppet.sh +7 -0
  737. data/templates/ubuntu-10.04.4-server-amd64/ruby.sh +24 -0
  738. data/templates/ubuntu-10.04.4-server-amd64/vagrant.sh +14 -0
  739. data/templates/ubuntu-10.04.4-server-amd64/virtualbox.sh +10 -0
  740. data/templates/ubuntu-10.04.4-server-amd64/vmfusion.sh +7 -0
  741. data/templates/ubuntu-10.04.4-server-amd64/zerodisk.sh +3 -0
  742. data/templates/ubuntu-10.04.4-server-i386-netboot/base.sh +24 -0
  743. data/templates/ubuntu-10.04.4-server-i386-netboot/chef.sh +2 -0
  744. data/templates/ubuntu-10.04.4-server-i386-netboot/cleanup.sh +22 -0
  745. data/templates/ubuntu-10.04.4-server-i386-netboot/definition.rb +44 -0
  746. data/templates/ubuntu-10.04.4-server-i386-netboot/preseed.cfg +89 -0
  747. data/templates/ubuntu-10.04.4-server-i386-netboot/puppet.sh +7 -0
  748. data/templates/ubuntu-10.04.4-server-i386-netboot/ruby.sh +24 -0
  749. data/templates/ubuntu-10.04.4-server-i386-netboot/vagrant.sh +14 -0
  750. data/templates/ubuntu-10.04.4-server-i386-netboot/virtualbox.sh +10 -0
  751. data/templates/ubuntu-10.04.4-server-i386-netboot/vmfusion.sh +7 -0
  752. data/templates/ubuntu-10.04.4-server-i386-netboot/zerodisk.sh +3 -0
  753. data/templates/ubuntu-10.04.4-server-i386/base.sh +24 -0
  754. data/templates/ubuntu-10.04.4-server-i386/chef.sh +2 -0
  755. data/templates/ubuntu-10.04.4-server-i386/cleanup.sh +22 -0
  756. data/templates/ubuntu-10.04.4-server-i386/definition.rb +28 -7
  757. data/templates/ubuntu-10.04.4-server-i386/puppet.sh +7 -0
  758. data/templates/ubuntu-10.04.4-server-i386/ruby.sh +24 -0
  759. data/templates/ubuntu-10.04.4-server-i386/vagrant.sh +14 -0
  760. data/templates/ubuntu-10.04.4-server-i386/virtualbox.sh +10 -0
  761. data/templates/ubuntu-10.04.4-server-i386/vmfusion.sh +7 -0
  762. data/templates/ubuntu-10.04.4-server-i386/zerodisk.sh +3 -0
  763. data/templates/ubuntu-10.10-server-amd64/base.sh +5 -2
  764. data/templates/ubuntu-10.10-server-amd64/cleanup.sh +1 -1
  765. data/templates/ubuntu-10.10-server-amd64/definition.rb +61 -35
  766. data/templates/ubuntu-10.10-server-amd64/preseed.cfg +1 -1
  767. data/templates/ubuntu-10.10-server-amd64/ruby.sh +6 -6
  768. data/templates/ubuntu-10.10-server-amd64/vagrant.sh +1 -1
  769. data/templates/ubuntu-11.04-server-amd64/definition.rb +1 -1
  770. data/templates/ubuntu-12.04.1-server-amd64-packages/postinstall.sh +2 -2
  771. data/templates/ubuntu-12.04.1-server-amd64/postinstall.sh +2 -2
  772. data/templates/ubuntu-12.04.1-server-i386-packages/postinstall.sh +1 -1
  773. data/templates/ubuntu-12.04.1-server-i386/postinstall.sh +1 -1
  774. data/templates/ubuntu-12.04.2-desktop-amd64/definition.rb +36 -0
  775. data/templates/ubuntu-12.04.2-desktop-amd64/postinstall.sh +106 -0
  776. data/templates/ubuntu-12.04.2-desktop-amd64/preseed.cfg +86 -0
  777. data/templates/ubuntu-12.04.2-server-amd64-netboot/definition.rb +36 -0
  778. data/templates/{ubuntu-10.04.4-server-i386 → ubuntu-12.04.2-server-amd64-netboot}/postinstall.sh +25 -21
  779. data/templates/ubuntu-12.04.2-server-amd64-netboot/preseed.cfg +99 -0
  780. data/templates/ubuntu-12.04.2-server-amd64-packages/definition.rb +35 -0
  781. data/templates/{ubuntu-12.10-server-i386-packages → ubuntu-12.04.2-server-amd64-packages}/postinstall.sh +14 -11
  782. data/templates/ubuntu-12.04.2-server-amd64-packages/preseed.cfg +87 -0
  783. data/templates/ubuntu-12.04.2-server-amd64/base.sh +20 -0
  784. data/templates/ubuntu-12.04.2-server-amd64/chef.sh +2 -0
  785. data/templates/ubuntu-12.04.2-server-amd64/cleanup.sh +23 -0
  786. data/templates/ubuntu-12.04.2-server-amd64/definition.rb +45 -0
  787. data/templates/ubuntu-12.04.2-server-amd64/preseed.cfg +87 -0
  788. data/templates/ubuntu-12.04.2-server-amd64/puppet.sh +7 -0
  789. data/templates/ubuntu-12.04.2-server-amd64/ruby.sh +26 -0
  790. data/templates/ubuntu-12.04.2-server-amd64/vagrant.sh +12 -0
  791. data/templates/ubuntu-12.04.2-server-amd64/virtualbox.sh +18 -0
  792. data/templates/ubuntu-12.04.2-server-amd64/vmfusion.sh +7 -0
  793. data/templates/ubuntu-12.04.2-server-amd64/vmtools.sh +33 -0
  794. data/templates/ubuntu-12.04.2-server-amd64/zerodisk.sh +3 -0
  795. data/templates/ubuntu-12.04.2-server-i386-netboot/definition.rb +36 -0
  796. data/templates/{ubuntu-10.04.4-server-amd64 → ubuntu-12.04.2-server-i386-netboot}/postinstall.sh +25 -30
  797. data/templates/ubuntu-12.04.2-server-i386-netboot/preseed.cfg +99 -0
  798. data/templates/ubuntu-12.04.2-server-i386-packages/definition.rb +35 -0
  799. data/templates/{ubuntu-12.10-server-amd64-packages → ubuntu-12.04.2-server-i386-packages}/postinstall.sh +5 -5
  800. data/templates/ubuntu-12.04.2-server-i386-packages/preseed.cfg +87 -0
  801. data/templates/ubuntu-12.04.2-server-i386/definition.rb +35 -0
  802. data/templates/ubuntu-12.04.2-server-i386/postinstall.sh +96 -0
  803. data/templates/ubuntu-12.04.2-server-i386/preseed.cfg +87 -0
  804. data/templates/ubuntu-12.04.3-desktop-i386/README.md +51 -0
  805. data/templates/ubuntu-12.04.3-desktop-i386/apt.sh +8 -0
  806. data/templates/ubuntu-12.04.3-desktop-i386/build_time.sh +1 -0
  807. data/templates/ubuntu-12.04.3-desktop-i386/chef.sh +3 -0
  808. data/templates/ubuntu-12.04.3-desktop-i386/cleanup.sh +16 -0
  809. data/templates/ubuntu-12.04.3-desktop-i386/definition.rb +57 -0
  810. data/templates/ubuntu-12.04.3-desktop-i386/preseed.cfg +106 -0
  811. data/templates/ubuntu-12.04.3-desktop-i386/puppet.sh +4 -0
  812. data/templates/ubuntu-12.04.3-desktop-i386/ruby.sh +25 -0
  813. data/templates/ubuntu-12.04.3-desktop-i386/sudo.sh +5 -0
  814. data/templates/ubuntu-12.04.3-desktop-i386/vagrant.sh +6 -0
  815. data/templates/ubuntu-12.04.3-desktop-i386/vbox.sh +18 -0
  816. data/templates/ubuntu-12.04.3-server-amd64/base.sh +20 -0
  817. data/templates/ubuntu-12.04.3-server-amd64/chef.sh +2 -0
  818. data/templates/ubuntu-12.04.3-server-amd64/cleanup.sh +23 -0
  819. data/templates/ubuntu-12.04.3-server-amd64/definition.rb +45 -0
  820. data/templates/ubuntu-12.04.3-server-amd64/preseed.cfg +87 -0
  821. data/templates/ubuntu-12.04.3-server-amd64/puppet.sh +7 -0
  822. data/templates/ubuntu-12.04.3-server-amd64/ruby.sh +26 -0
  823. data/templates/ubuntu-12.04.3-server-amd64/vagrant.sh +12 -0
  824. data/templates/ubuntu-12.04.3-server-amd64/virtualbox.sh +18 -0
  825. data/templates/ubuntu-12.04.3-server-amd64/vmfusion.sh +7 -0
  826. data/templates/ubuntu-12.04.3-server-amd64/vmtools.sh +33 -0
  827. data/templates/ubuntu-12.04.3-server-amd64/zerodisk.sh +3 -0
  828. data/templates/ubuntu-12.04.3-server-i386/apt.sh +7 -0
  829. data/templates/ubuntu-12.04.3-server-i386/build_time.sh +1 -0
  830. data/templates/ubuntu-12.04.3-server-i386/chef.sh +3 -0
  831. data/templates/ubuntu-12.04.3-server-i386/cleanup.sh +16 -0
  832. data/templates/ubuntu-12.04.3-server-i386/definition.rb +45 -0
  833. data/templates/ubuntu-12.04.3-server-i386/preseed.cfg +61 -0
  834. data/templates/ubuntu-12.04.3-server-i386/puppet.sh +4 -0
  835. data/templates/ubuntu-12.04.3-server-i386/ruby.sh +25 -0
  836. data/templates/ubuntu-12.04.3-server-i386/sudo.sh +5 -0
  837. data/templates/ubuntu-12.04.3-server-i386/vagrant.sh +6 -0
  838. data/templates/ubuntu-12.04.3-server-i386/vbox.sh +18 -0
  839. data/templates/ubuntu-12.10-desktop-amd64/definition.rb +40 -0
  840. data/templates/ubuntu-12.10-desktop-amd64/postinstall.sh +106 -0
  841. data/templates/ubuntu-12.10-desktop-amd64/preseed.cfg +86 -0
  842. data/templates/ubuntu-12.10-server-amd64-packages/base.sh +20 -0
  843. data/templates/ubuntu-12.10-server-amd64-packages/chef.sh +49 -0
  844. data/templates/ubuntu-12.10-server-amd64-packages/cleanup.sh +25 -0
  845. data/templates/ubuntu-12.10-server-amd64-packages/definition.rb +11 -2
  846. data/templates/ubuntu-12.10-server-amd64-packages/puppet.sh +15 -0
  847. data/templates/ubuntu-12.10-server-amd64-packages/ruby.sh +7 -0
  848. data/templates/ubuntu-12.10-server-amd64-packages/vagrant.sh +27 -0
  849. data/templates/ubuntu-12.10-server-amd64-packages/virtualbox.sh +15 -0
  850. data/templates/ubuntu-12.10-server-amd64-packages/zerodisk.sh +11 -0
  851. data/templates/ubuntu-12.10-server-amd64/postinstall.sh +1 -1
  852. data/templates/ubuntu-12.10-server-i386-packages/base.sh +20 -0
  853. data/templates/ubuntu-12.10-server-i386-packages/chef.sh +49 -0
  854. data/templates/ubuntu-12.10-server-i386-packages/cleanup.sh +25 -0
  855. data/templates/ubuntu-12.10-server-i386-packages/definition.rb +11 -2
  856. data/templates/ubuntu-12.10-server-i386-packages/puppet.sh +15 -0
  857. data/templates/ubuntu-12.10-server-i386-packages/ruby.sh +7 -0
  858. data/templates/ubuntu-12.10-server-i386-packages/vagrant.sh +27 -0
  859. data/templates/ubuntu-12.10-server-i386-packages/virtualbox.sh +15 -0
  860. data/templates/ubuntu-12.10-server-i386-packages/zerodisk.sh +11 -0
  861. data/templates/ubuntu-12.10-server-i386/postinstall.sh +1 -1
  862. data/templates/ubuntu-13.04-server-amd64-rvm/apt.sh +8 -0
  863. data/templates/ubuntu-13.04-server-amd64-rvm/build_time.sh +1 -0
  864. data/templates/ubuntu-13.04-server-amd64-rvm/chef.sh +1 -0
  865. data/templates/ubuntu-13.04-server-amd64-rvm/cleanup.sh +16 -0
  866. data/templates/ubuntu-13.04-server-amd64-rvm/definition.rb +45 -0
  867. data/templates/ubuntu-13.04-server-amd64-rvm/preseed.cfg +61 -0
  868. data/templates/ubuntu-13.04-server-amd64-rvm/puppet.sh +1 -0
  869. data/templates/ubuntu-13.04-server-amd64-rvm/rvm.sh +7 -0
  870. data/templates/ubuntu-13.04-server-amd64-rvm/sudo.sh +5 -0
  871. data/templates/ubuntu-13.04-server-amd64-rvm/vagrant.sh +6 -0
  872. data/templates/ubuntu-13.04-server-amd64-rvm/vbox.sh +18 -0
  873. data/templates/ubuntu-13.04-server-amd64/apt.sh +7 -0
  874. data/templates/ubuntu-13.04-server-amd64/build_time.sh +1 -0
  875. data/templates/ubuntu-13.04-server-amd64/chef.sh +3 -0
  876. data/templates/ubuntu-13.04-server-amd64/cleanup.sh +16 -0
  877. data/templates/ubuntu-13.04-server-amd64/definition.rb +45 -0
  878. data/templates/ubuntu-13.04-server-amd64/preseed.cfg +61 -0
  879. data/templates/ubuntu-13.04-server-amd64/puppet.sh +4 -0
  880. data/templates/ubuntu-13.04-server-amd64/ruby.sh +25 -0
  881. data/templates/ubuntu-13.04-server-amd64/sudo.sh +5 -0
  882. data/templates/ubuntu-13.04-server-amd64/vagrant.sh +6 -0
  883. data/templates/ubuntu-13.04-server-amd64/vbox.sh +18 -0
  884. data/templates/ubuntu-8.04.4-server-amd64/preseed.cfg +7 -7
  885. data/templates/ubuntu-8.04.4-server-i386/preseed.cfg +7 -7
  886. data/templates/windows-2008R1-serverstandard-amd64/Autounattend.xml +1 -0
  887. data/templates/windows-2008R1-serverweb-amd64/Autounattend.xml +1 -0
  888. data/templates/windows-2008R1-serverweb-amd64/install-cygwin-sshd.bat +1 -1
  889. data/templates/windows-2008R1-serverweb-i386/Autounattend.xml +6 -2
  890. data/templates/windows-2008R1-serverweb-i386/install-cygwin-sshd.bat +1 -1
  891. data/templates/windows-2008R1-serverwebcore-amd64/Autounattend.xml +1 -0
  892. data/templates/windows-2008R2-amd64/Autounattend.xml +4 -3
  893. data/templates/windows-2008R2-amd64/win7/Autounattend.xml +5 -3
  894. data/templates/windows-2008R2-serverstandard-amd64-winrm/Autounattend.xml +17 -12
  895. data/templates/windows-2008R2-serverstandard-amd64-winrm/install-vbox.bat +0 -2
  896. data/templates/windows-2008R2-serverstandard-amd64/Autounattend.xml +4 -5
  897. data/templates/windows-2008R2-serverstandard-amd64/definition.rb +3 -3
  898. data/templates/windows-2008R2-serverstandard-amd64/install-cygwin-sshd.bat +3 -2
  899. data/templates/windows-2008R2-serverweb-amd64/Autounattend.xml +4 -1
  900. data/templates/windows-2008R2-serverweb-amd64/install-cygwin-sshd.bat +1 -1
  901. data/templates/windows-2012-serverstandard-amd64/Autounattend.xml +235 -0
  902. data/templates/windows-2012-serverstandard-amd64/README.md +68 -0
  903. data/templates/windows-2012-serverstandard-amd64/definition.rb +29 -0
  904. data/templates/windows-2012-serverstandard-amd64/install-chef.bat +37 -0
  905. data/templates/windows-2012-serverstandard-amd64/install-puppet.bat +37 -0
  906. data/templates/windows-2012-serverstandard-amd64/install-vbox.bat +4 -0
  907. data/templates/windows-2012-serverstandard-amd64/oracle-cert.cer +0 -0
  908. data/templates/windows-2012R2-serverdatacenter-amd64/Autounattend.xml +235 -0
  909. data/templates/windows-2012R2-serverdatacenter-amd64/README.md +68 -0
  910. data/templates/windows-2012R2-serverdatacenter-amd64/definition.rb +33 -0
  911. data/templates/windows-2012R2-serverdatacenter-amd64/install-chef.bat +37 -0
  912. data/templates/windows-2012R2-serverdatacenter-amd64/install-puppet.bat +37 -0
  913. data/templates/windows-2012R2-serverdatacenter-amd64/install-vbox.bat +4 -0
  914. data/templates/windows-2012R2-serverdatacenter-amd64/oracle-cert.cer +0 -0
  915. data/templates/windows-7-enterprise-amd64-winrm/Autounattend.xml +17 -10
  916. data/templates/windows-7-enterprise-amd64/Autounattend.xml +4 -3
  917. data/templates/windows-7-enterprise-amd64/install-cygwin-sshd.bat +1 -1
  918. data/templates/windows-7-enterprise-i386/Autounattend.xml +4 -3
  919. data/templates/windows-7-enterprise-i386/install-cygwin-sshd.bat +1 -1
  920. data/templates/windows-7-premium-amd64/Autounattend.xml +4 -4
  921. data/templates/windows-7-professional-amd64/Autounattend.xml +4 -4
  922. data/templates/windows-7-professional-amd64/install-cygwin-sshd.bat +1 -1
  923. data/templates/windows-7-professional-amd64/postinstall.sh +2 -2
  924. data/templates/windows-7-ultimate-amd64/Autounattend.xml +4 -4
  925. data/templates/windows-7-ultimate-amd64/install-cygwin-sshd.bat +1 -1
  926. data/templates/windows-7sp1-ultimate-amd64/Autounattend.xml +4 -3
  927. data/templates/windows-7sp1-ultimate-amd64/install-cygwin-sshd.bat +2 -2
  928. data/test/build_realtest.rb +15 -5
  929. data/test/environment_test.rb +2 -1
  930. data/veewee.gemspec +6 -4
  931. metadata +689 -87
  932. data/doc/README-changes.txt +0 -20
  933. data/doc/TODO +0 -60
  934. data/doc/definition.md +0 -83
  935. data/doc/install.md +0 -16
  936. data/doc/running.md +0 -83
  937. data/doc/template.md +0 -153
  938. data/lib/veewee/provider/vmfusion/box/export_ova.rb +0 -49
  939. data/templates/Debian-5.0.10-amd64-netboot/postinstall.sh +0 -60
  940. data/templates/Debian-5.0.10-i386-netboot/postinstall.sh +0 -60
  941. data/templates/Debian-5.0.8-amd64-netboot/postinstall.sh +0 -60
  942. data/templates/Debian-5.0.8-i386-netboot/postinstall.sh +0 -60
  943. data/templates/Debian-7.0-b4-amd64-netboot/puppet.sh +0 -2
  944. data/templates/Debian-7.0-b4-i386-netboot/puppet.sh +0 -2
  945. data/templates/Fedora-18-i386/postinstall.sh +0 -40
  946. data/templates/Fedora-18-x86_64/postinstall.sh +0 -43
  947. data/templates/archlinux-i386-netboot/aif.cfg +0 -28
  948. data/templates/archlinux-i386-netboot/definition.rb +0 -26
  949. data/templates/archlinux-i386-netboot/postinstall.sh +0 -75
  950. data/templates/archlinux-i386-netboot/postinstall2.sh +0 -30
  951. data/templates/archlinux-x86_64-netboot/aif.cfg +0 -28
  952. data/templates/archlinux-x86_64-netboot/definition.rb +0 -26
  953. data/templates/archlinux-x86_64-netboot/postinstall.sh +0 -75
  954. data/templates/archlinux-x86_64-netboot/postinstall2.sh +0 -30
  955. data/templates/archlinux-x86_64/aif.cfg +0 -33
  956. data/templates/archlinux-x86_64/postinstall.sh +0 -90
  957. data/templates/archlinux-x86_64/postinstall2.sh +0 -38
  958. data/templates/gentoo-latest-i386-experimental/definition.rb +0 -45
  959. data/templates/gentoo-latest-i386-experimental/postinstall.sh +0 -184
  960. data/templates/gentoo-latest-x86_64-experimental/definition.rb +0 -45
  961. data/templates/gentoo-latest-x86_64-experimental/postinstall.sh +0 -214
  962. data/validation/features/steps/ssh_steps.old +0 -170
  963. data/validation/features/steps/veewee_steps.rb +0 -27
  964. data/validation/support/env.rb +0 -1
  965. data/validation/veewee-windows.feature +0 -34
  966. data/validation/veewee.feature +0 -45
@@ -0,0 +1,6 @@
1
+ yum -y erase gtk2 libX11 hicolor-icon-theme avahi freetype bitstream-vera-fonts
2
+ yum -y clean all
3
+ rm -rf VBoxGuestAdditions_*.iso
4
+
5
+ # Remove traces of mac address from network configuration
6
+ sed -i /HWADDR/d /etc/sysconfig/network-scripts/ifcfg-eth0
@@ -0,0 +1,39 @@
1
+ Veewee::Session.declare({
2
+ # Minimum RAM requirement for installation is 512MB.
3
+ :cpu_count => '1',
4
+ :memory_size=> '512',
5
+ :disk_size => '10140',
6
+ :disk_format => 'VDI',
7
+ :hostiocache => 'off',
8
+ :hwvirtext => 'on',
9
+ :os_type_id => 'Fedora_64',
10
+ :iso_file => "Fedora-19-x86_64-DVD.iso",
11
+ :iso_src => "http://download.fedoraproject.org/pub/fedora/linux/releases/19/Fedora/x86_64/iso/Fedora-19-x86_64-DVD.iso",
12
+ :iso_sha1 => "73e45acf91d73146c7a71f7e8ca72762833aeadd",
13
+ :iso_download_timeout => 1000,
14
+ :boot_wait => "10",
15
+ :boot_cmd_sequence => [ '<Tab> linux text net.ifnames=0 biosdevname=0 ks=http://%IP%:%PORT%/ks.cfg<Enter><Enter>' ],
16
+ :kickstart_port => "7122",
17
+ :kickstart_timeout => 10000,
18
+ :kickstart_file => "ks.cfg",
19
+ :ssh_login_timeout => "10000",
20
+ :ssh_user => "vagrant",
21
+ :ssh_password => "vagrant",
22
+ :ssh_key => "",
23
+ :ssh_host_port => "7222",
24
+ :ssh_guest_port => "22",
25
+ :sudo_cmd => "echo '%p'|sudo -S sh '%f'",
26
+ :shutdown_cmd => "/sbin/halt -h -p",
27
+ :postinstall_files => [
28
+ "base.sh",
29
+ "ruby.sh",
30
+ "chef.sh",
31
+ "puppet.sh",
32
+ "vagrant.sh",
33
+ "virtualbox.sh",
34
+ #"vmfusion.sh",
35
+ "cleanup.sh",
36
+ "zerodisk.sh"
37
+ ],
38
+ :postinstall_timeout => 10000
39
+ })
@@ -0,0 +1,83 @@
1
+ # Kickstart file automatically generated by anaconda.
2
+
3
+ install
4
+ cdrom
5
+ lang en_US.UTF-8
6
+ keyboard 'us'
7
+ # note we set biosdevname=0 when launching install
8
+ # this means we will be using standard ethernet devices, e.g. eth[0,1,2] eth
9
+ network --onboot yes --device eth0 --bootproto dhcp --noipv6 --hostname=localhost.localdomain
10
+ timezone --utc America/New_York
11
+ rootpw --iscrypted $6$n/NGsk5H2aiBMXL4$r/oPkJtB5rasvQHPo9AvIJBe6sNVlQbpZxvTRMN7.qZk/Sn9u2qZ0XgNxflUvK20y7OIWdr/vv7MED6gzkBiH0
12
+ selinux --enforcing
13
+ auth --enableshadow --passalgo=sha512
14
+ firewall --service=ssh
15
+
16
+ # Avoiding warning message on Storage device breaking automated generation
17
+ zerombr
18
+
19
+ # The following is the partition information you requested
20
+ # Note that any partitions you deleted are not expressed
21
+ # here so unless you clear all partitions first, this is
22
+ # not guaranteed to work
23
+ clearpart --all --initlabel
24
+
25
+ #part biosboot --fstype=biosboot --size=1
26
+ part /boot --fstype=ext4 --size=500
27
+ part pv.2 --grow --size=500
28
+
29
+ volgroup vg_vagrant --pesize=32768 pv.2
30
+ logvol / --fstype=ext4 --name=lv_root --vgname=vg_vagrant --size=1024 --grow
31
+ logvol swap --fstype=swap --name=lv_swap --vgname=vg_vagrant --size=528 --grow --maxsize=1056
32
+ bootloader --location=mbr --append="norhgb net.ifnames=0 biosdevname=0"
33
+ services --enabled network
34
+ reboot
35
+
36
+ %packages
37
+ @core
38
+
39
+ # Requirements for vagrant
40
+ bzip2
41
+ deltarpm
42
+ gcc
43
+ gcc-c++
44
+ kernel-devel
45
+ kernel-headers
46
+ make
47
+ net-tools
48
+ openssl-devel
49
+ perl
50
+ readline-devel
51
+ sqlite-devel
52
+ tar
53
+ wget
54
+ zlib-devel
55
+ %end
56
+
57
+ %post
58
+ # Make ssh quicker in disconnected situations.
59
+ echo 'UseDNS no' >> /etc/ssh/sshd_config
60
+
61
+ # Disable udev persistent net rules
62
+ # We do this so that we do not persist rules mapped to virtual machines
63
+ # instances created from this basebox.
64
+ ln -s /dev/null /etc/udev/rule.d/70-persistent-net.rules
65
+
66
+ # Add Vagrant user and group.
67
+ /usr/sbin/groupadd vagrant
68
+ /usr/sbin/useradd vagrant -g vagrant
69
+ echo "vagrant"|passwd --stdin vagrant
70
+
71
+ # Give Vagrant user permission to sudo.
72
+ echo 'Defaults:vagrant !requiretty' > /etc/sudoers.d/vagrant
73
+ echo '%vagrant ALL=(ALL) NOPASSWD: ALL' >> /etc/sudoers.d/vagrant
74
+ chmod 440 /etc/sudoers.d/vagrant
75
+
76
+ # Install vagrant authorized ssh key.
77
+ mkdir /home/vagrant/.ssh
78
+ curl -L 'http://github.com/mitchellh/vagrant/raw/master/keys/vagrant.pub' > /home/vagrant/.ssh/authorized_keys
79
+ chown vagrant:vagrant -R /home/vagrant/.ssh
80
+ chmod 700 /home/vagrant/.ssh
81
+ chmod 600 /home/vagrant/.ssh/authorized_keys
82
+ chcon -R unconfined_u:object_r:user_home_t:s0 /home/vagrant/.ssh
83
+ %end
@@ -0,0 +1,2 @@
1
+ # Install Puppet
2
+ yum -y install puppet facter
@@ -0,0 +1,3 @@
1
+ # Install Ruby
2
+ yum -y install ruby ruby-devel rubygems
3
+
@@ -0,0 +1,18 @@
1
+ # Vagrant specific
2
+ date > /etc/vagrant_box_build_time
3
+
4
+ # Add vagrant user
5
+ /usr/sbin/groupadd vagrant
6
+ /usr/sbin/useradd vagrant -g vagrant -G wheel
7
+ echo "vagrant"|passwd --stdin vagrant
8
+ echo "vagrant ALL=(ALL) NOPASSWD: ALL" >> /etc/sudoers.d/vagrant
9
+ chmod 0440 /etc/sudoers.d/vagrant
10
+
11
+ # Installing vagrant keys
12
+ mkdir -pm 700 /home/vagrant/.ssh
13
+ wget --no-check-certificate 'https://raw.github.com/mitchellh/vagrant/master/keys/vagrant.pub' -O /home/vagrant/.ssh/authorized_keys
14
+ chmod 0600 /home/vagrant/.ssh/authorized_keys
15
+ chown -R vagrant /home/vagrant/.ssh
16
+
17
+ # Customize the message of the day
18
+ echo 'Welcome to your Vagrant-built virtual machine.' > /etc/motd
@@ -0,0 +1,4 @@
1
+ # Installing the virtualbox guest additions
2
+ mount /dev/sr1 /mnt
3
+ sh /mnt/VBoxLinuxAdditions.run
4
+ umount /mnt
@@ -0,0 +1,7 @@
1
+ cd /tmp
2
+ mkdir -p /mnt/cdrom
3
+ mount -o loop /home/vagrant/linux.iso /mnt/cdrom
4
+ tar zxf /mnt/cdrom/VMwareTools-*.tar.gz -C /tmp/
5
+ /tmp/vmware-tools-distrib/vmware-install.pl -d
6
+ umount /mnt/cdrom
7
+ rm /home/vagrant/linux.iso
@@ -0,0 +1,3 @@
1
+ # Zero out the free space to save space in the final image:
2
+ dd if=/dev/zero of=/EMPTY bs=1M
3
+ rm -f /EMPTY
@@ -0,0 +1,23 @@
1
+ OS X doesn't provide kickstart-like functionality in its installer, so the
2
+ template instead includes a shell script that will prepare an ISO such that it
3
+ runs an automated install. This makes use of built-in support that exists to
4
+ support NetInstall images built with Apple's System Image Utility.
5
+
6
+ The script is located at:
7
+
8
+ definitions/<%= definition_name %>/prepare_veewee_iso/prepare_veewee_iso.sh,
9
+
10
+ and can be passed either the path to an "Install [OS X].app" or the
11
+ InstallESD.dmg within. The output DMG is saved to a new file in veewee's 'iso'
12
+ directory unless an alternate output path is given. The file is saved in the form:
13
+
14
+ OSX_InstallESD_{OS_VERS}_{OS_BUILD}.dmg
15
+
16
+ Depending on the host and guest OS versions, additional tools may need to be
17
+ either downloaded from Apple or extracted from the source installer image, and
18
+ this will take place automatically.
19
+
20
+ Once the ISO is prepared, its filename will be automatically set in the
21
+ definition.rb file.
22
+
23
+ For more details see comments in the script.
@@ -0,0 +1,6 @@
1
+ #!/bin/bash
2
+
3
+ # http://wiki.opscode.com/display/chef/Installing+Omnibus+Chef+Client+on+Linux+and+Mac
4
+ true && curl -L https://www.opscode.com/chef/install.sh | bash
5
+
6
+ exit
@@ -0,0 +1,31 @@
1
+ Veewee::Definition.declare({
2
+ :cpu_count => '1',
3
+ :memory_size=> '2048',
4
+ :disk_size => '40000',
5
+ :disk_format => 'VDI',
6
+ :hostiocache => 'off',
7
+ # Currently supported os_type_ids: Darwin_10_7, Darwin_10_7_64, Darwin_10_8_64
8
+ :os_type_id => 'Darwin_10_8_64',
9
+ # iso_file must be the output of the prepare_veewee_iso.sh script included with this template,
10
+ # which modifies an installer downloaded from the Mac App Store for a fully-automated install
11
+ :iso_file => "%OSX_ISO%",
12
+ :iso_download_timeout => "1000",
13
+ :boot_wait => "60",
14
+ :ssh_login_timeout => "10000",
15
+ :ssh_user => "vagrant",
16
+ :ssh_password => "vagrant",
17
+ :ssh_key => "",
18
+ :ssh_host_port => "7222",
19
+ :ssh_guest_port => "22",
20
+ :sudo_cmd => "echo '%p'|sudo -S sh '%f'",
21
+ :shutdown_cmd => "shutdown -h now",
22
+ :postinstall_files => [
23
+ "postinstall.sh", # Base configuration (vagrant user, keys, guest OS tools, etc.)
24
+ "xcode-cli-tools.sh", # Xcode CLI tools
25
+ # "rvm.bash", # RVM (not using to allow chef/puppet to use system Ruby by default)
26
+ "chef-omnibus.sh", # Chef Omnibus install
27
+ "puppet.sh", # Puppet install from Hashicorp's puppet-boostrap repo
28
+ "fix_user_perms.sh" # some folders in vagrant's got created as root in the above script
29
+ ],
30
+ :postinstall_timeout => "10000"
31
+ })
@@ -0,0 +1,3 @@
1
+ #!/bin/sh
2
+
3
+ chown -R vagrant:staff /Users/vagrant
@@ -0,0 +1,28 @@
1
+ #!/bin/sh
2
+ date > /etc/vagrant_box_build_time
3
+ OSX_VERS=$(sw_vers -productVersion | awk -F "." '{print $2}')
4
+
5
+ # Install VMware tools if we were built with VMware
6
+ if [ -e .vmfusion_version ]; then
7
+ TMPMOUNT=`/usr/bin/mktemp -d /tmp/vmware-tools.XXXX`
8
+ hdiutil attach darwin.iso -mountpoint "$TMPMOUNT"
9
+ installer -pkg "$TMPMOUNT/Install VMware Tools.app/Contents/Resources/VMware Tools.pkg" -target /
10
+ # This usually fails
11
+ hdiutil detach "$TMPMOUNT"
12
+ rm -rf "$TMPMOUNT"
13
+ rm darwin.iso
14
+ fi
15
+
16
+ # Set computer/hostname
17
+ COMPNAME=vagrant-osx-10${OSX_VERS}
18
+ scutil --set ComputerName ${COMPNAME}
19
+ scutil --set HostName ${COMPNAME}.vagrantup.com
20
+
21
+ # Installing vagrant keys
22
+ mkdir /Users/vagrant/.ssh
23
+ chmod 700 /Users/vagrant/.ssh
24
+ curl -k 'https://raw.github.com/mitchellh/vagrant/master/keys/vagrant.pub' > /Users/vagrant/.ssh/authorized_keys
25
+ chmod 600 /Users/vagrant/.ssh/authorized_keys
26
+ chown -R vagrant /Users/vagrant/.ssh
27
+
28
+ exit
@@ -0,0 +1,281 @@
1
+ #!/bin/sh
2
+ #
3
+ # Preparation script for an OS X automated installation for use with VeeWee/Vagrant
4
+ #
5
+ # Usage:
6
+ # sudo prepare_veewee_iso.sh /path/to/OSXinstaller.app.or.dmg /path/to/veewee/iso/my-new-iso.dmg
7
+ #
8
+ # and configure this iso in your definition. You must run this with root privileges, because
9
+ # it should be mounted with ownerships respected.
10
+ #
11
+ # What the script does, in more detail:
12
+ #
13
+ # 1. Mounts the InstallESD.dmg using a shadow file, so the original DMG is left
14
+ # unchanged.
15
+ # 2. Depending on the version of OS X being built, the AutoPartition.app from
16
+ # System Image Utility is copied to the ISO's 'Packages/Extra' directory.
17
+ # A 10.7 image requires a download of Apple's Server Admin Tools package in
18
+ # order to extract this utility, so this is done if needed. AutoPartition.app
19
+ # makes use of PartitionInfo.plist, which is also copied over.
20
+ # 3. minstallconfig.xml and PartitionInfo.plist are also copied, which are looked
21
+ # for by the installer environment's rc.* files that first load with the system.
22
+ # This allows us to never actually modify the BaseSystem.dmg and only drop in
23
+ # these extra files.
24
+ # 3. A 'veewee-config.pkg' installer package is built, which is added to the OS X
25
+ # install by way of the OSInstall.collection file. This package creates the
26
+ # 'vagrant' user, configures sshd and sudoers, and disables setup assistants.
27
+ # 4. veewee-config.pkg and the various support utilities are copied, and the disk
28
+ # image is saved to the output path.
29
+ #
30
+ #
31
+ # Idea and much of the implementation thanks to Pepijn Bruienne, who's also provided
32
+ # some process notes here: https://gist.github.com/4542016. The sample minstallconfig.xml,
33
+ # use of OSInstall.collection and readme documentation provided with Greg Neagle's
34
+ # createOSXInstallPkg tool also proved very helpful. (http://code.google.com/p/munki/wiki/InstallingOSX)
35
+ # User creation via package install method also credited to Greg.
36
+ #
37
+ # TODO:
38
+ # - explicitly set a shadowfile path, so we don't depend on the source ESD being on a writable volume
39
+ # - support loading environment details so we can copy to an alternate iso_dir
40
+ # - rewrite this thing in Python
41
+
42
+ usage() {
43
+ cat <<EOF
44
+ Usage:
45
+ $(basename "$0") "/path/to/InstallESD.dmg" [/path/to/output/directory]
46
+ $(basename "$0") "/path/to/Install OS X [Mountain] Lion.app" [/path/to/output/directory]
47
+
48
+ Description:
49
+ Converts a 10.7/10.8 installer image to a new image that contains components
50
+ used to perform an automated installation. If the second argument is omitted,
51
+ it will be installed to 'veewee/iso/'. The new image will be named 'OSX_InstallESD_[osversion].dmg.'
52
+
53
+ EOF
54
+ }
55
+
56
+ msg_status() {
57
+ echo "\033[0;32m-- $1\033[0m"
58
+ }
59
+ msg_error() {
60
+ echo "\033[0;31m-- $1\033[0m"
61
+ }
62
+
63
+ if [ $# -eq 0 ]; then
64
+ usage
65
+ exit 1
66
+ fi
67
+
68
+ if [ $(id -u) -ne 0 ]; then
69
+ msg_error "This script must be run as root, as it saves a disk image with ownerships enabled."
70
+ exit 1
71
+ fi
72
+
73
+ ESD="$1"
74
+ if [ ! -e "$ESD" ]; then
75
+ msg_error "Input installer image $ESD could not be found! Exiting.."
76
+ exit 1
77
+ fi
78
+
79
+ if [ -d "$ESD" ]; then
80
+ # we might be an install .app
81
+ if [ -e "$ESD/Contents/SharedSupport/InstallESD.dmg" ]; then
82
+ ESD="$ESD/Contents/SharedSupport/InstallESD.dmg"
83
+ else
84
+ msg_error "Can't locate an InstallESD.dmg in this source location $ESD!"
85
+ fi
86
+ fi
87
+
88
+ SCRIPT_DIR="$(cd $(dirname "$0"); pwd)"
89
+ VEEWEE_DIR="$(cd "$SCRIPT_DIR/../../../"; pwd)"
90
+ VEEWEE_UID=$(stat -f %u "$VEEWEE_DIR")
91
+ VEEWEE_GID=$(stat -f %g "$VEEWEE_DIR")
92
+ DEFINITION_DIR="$(cd $SCRIPT_DIR/..; pwd)"
93
+
94
+ if [ "$2" == "" ]; then
95
+ DEFAULT_ISO_DIR=1
96
+ OLDPWD=$(pwd)
97
+ cd "$SCRIPT_DIR"
98
+ # default to the veewee/iso directory
99
+ if [ ! -d "../../../iso" ]; then
100
+ mkdir "../../../iso"
101
+ chown $VEEWEE_UID:$VEEWEE_GID "../../../iso"
102
+ fi
103
+ OUT_DIR="$(cd $SCRIPT_DIR; cd ../../../iso; pwd)"
104
+ cd "$OLDPWD" # Rest of script depends on being in the working directory if we were passed relative paths
105
+ else
106
+ OUT_DIR="$2"
107
+ fi
108
+
109
+ if [ ! -d "$OUT_DIR" ]; then
110
+ msg_status "Destination dir $OUT_DIR doesn't exist, creating.."
111
+ mkdir -p "$OUT_DIR"
112
+ fi
113
+
114
+ if [ -e "$ESD.shadow" ]; then
115
+ msg_status "Removing old shadow file.."
116
+ rm "$ESD.shadow"
117
+ fi
118
+
119
+ MNT_ESD=`/usr/bin/mktemp -d /tmp/veewee-osx-esd.XXXX`
120
+ msg_status "Attaching input OS X installer image with shadow file.."
121
+ hdiutil attach "$ESD" -mountpoint "$MNT_ESD" -shadow -nobrowse -owners on
122
+ if [ $? -ne 0 ]; then
123
+ [ ! -e "$ESD" ] && msg_error "Could not find $ESD in $(pwd)"
124
+ msg_error "Could not mount $ESD on $MNT_ESD"
125
+ exit 1
126
+ fi
127
+ DMG_OS_VERS=$(/usr/libexec/PlistBuddy -c 'Print :ProductVersion' "$MNT_ESD/System/Library/CoreServices/SystemVersion.plist")
128
+ DMG_OS_VERS_MAJOR=$(echo $DMG_OS_VERS | awk -F "." '{print $2}')
129
+ DMG_OS_BUILD=$(/usr/libexec/PlistBuddy -c 'Print :ProductBuildVersion' "$MNT_ESD/System/Library/CoreServices/SystemVersion.plist")
130
+ OUTPUT_DMG="$OUT_DIR/OSX_InstallESD_${DMG_OS_VERS}_${DMG_OS_BUILD}.dmg"
131
+ if [ -e "$OUTPUT_DMG" ]; then
132
+ msg_error "Output file $OUTPUT_DMG already exists! We're not going to overwrite it, exiting.."
133
+ hdiutil detach "$MNT_ESD"
134
+ exit 1
135
+ fi
136
+
137
+ SUPPORT_DIR="$SCRIPT_DIR/support"
138
+
139
+ # We need to copy over the AutoPartition.app from System Image Utility, and it needs to match the version of the Guest OS
140
+ # 10.7 systems need to get Server Admin Tools here:
141
+ # http://support.apple.com/kb/DL1596
142
+ # direct link: http://support.apple.com/downloads/DL1596/en_US/ServerAdminTools.dmg
143
+ AUTOPART_APP_IN_SIU="System Image Utility.app/Contents/Library/Automator/Create Image.action/Contents/Resources/AutoPartition.app"
144
+ OSX_VERS=$(sw_vers -productVersion | awk -F "." '{print $2}')
145
+ if [ $DMG_OS_VERS_MAJOR -eq 8 ]; then
146
+ if [ $OSX_VERS -eq 7 ]; then
147
+ msg_status "To build Mountain Lion on Lion, we need to extract AutoPartition.app from within the 10.8 installer ESD."
148
+ SIU_TMPDIR=$(/usr/bin/mktemp -d /tmp/siu-108.XXXX)
149
+ msg_status "Expanding flat package.."
150
+ pkgutil --verbose --expand "$MNT_ESD/Packages/Essentials.pkg" "$SIU_TMPDIR/expanded"
151
+
152
+ msg_status "Generating BOM.."
153
+ mkbom -s -i "$SUPPORT_DIR/10_8_AP_bomlist" "$SUPPORT_DIR/BOM"
154
+
155
+ msg_status "Extracting AutoPartition.app using ditto.."
156
+ ditto --bom "$SUPPORT_DIR/BOM" -x "$SIU_TMPDIR/expanded/Payload" "$SIU_TMPDIR/ditto"
157
+ if [ ! -d "$SUPPORT_DIR/AutoPartition-10.${DMG_OS_VERS_MAJOR}" ]; then
158
+ mkdir "$SUPPORT_DIR/AutoPartition-10.${DMG_OS_VERS_MAJOR}"
159
+ fi
160
+
161
+ msg_status "Copying out AutoPartition.app.."
162
+ cp -R "$SIU_TMPDIR/ditto/System/Library/CoreServices/$AUTOPART_APP_IN_SIU" "$SUPPORT_DIR/AutoPartition-10.${DMG_OS_VERS_MAJOR}/"
163
+ msg_status "Removing temporary extracted files.."
164
+ rm -rf "$SIU_TMPDIR"
165
+ rm "$SUPPORT_DIR/BOM"
166
+
167
+ AUTOPART_TOOL="$SUPPORT_DIR/AutoPartition-10.${DMG_OS_VERS_MAJOR}/AutoPartition.app"
168
+
169
+ elif [ $OSX_VERS -eq 8 ]; then
170
+ AUTOPART_TOOL="/System/Library/CoreServices/$AUTOPART_APP_IN_SIU"
171
+ if [ ! -e "$AUTOPART_TOOL" ]; then
172
+ msg_error "We're on Mountain Lion, and should have System Image Utility available at $AUTOPART_TOOL, but it's not available for some reason."
173
+ exit 1
174
+ fi
175
+ cp -R "$AUTOPART_TOOL" "$SUPPORT_DIR/AutoPartition-10.${DMG_OS_VERS_MAJOR}/"
176
+ fi
177
+ # on Lion, we first check if Server Admin Tools are already installed..
178
+ elif [ $DMG_OS_VERS_MAJOR -eq 7 ]; then
179
+ msg_status "Building OS X 10.${DMG_OS_VERS_MAJOR}, so trying to locate System Image Utility from Server Admin Tools.."
180
+ AUTOPART_TOOL="/Applications/Server/$AUTOPART_APP_IN_SIU"
181
+ # TODO: Sanity-check that this is actually the right version of SIU
182
+ if [ ! -d "$AUTOPART_TOOL" ]; then
183
+ # then we check if _we_ installed them in support/AutoPartition-10.7
184
+ AUTOPART_TOOL="$SUPPORT_DIR/AutoPartition-10.${DMG_OS_VERS_MAJOR}/AutoPartition.app"
185
+ if [ ! -d "$AUTOPART_TOOL" ]; then
186
+ # Lion SAT download
187
+ SAT_URL=http://support.apple.com/downloads/DL1596/en_US/ServerAdminTools.dmg
188
+
189
+ msg_status "It doesn't seem to be installed and VeeWee hasn't yet cached it in the support dir.."
190
+ msg_status "Attempting download of the Server Admin Tools.."
191
+ SAT_TMPDIR=$(/usr/bin/mktemp -d /tmp/server-admin-tools.XXXX)
192
+
193
+ curl -L "$SAT_URL" -o "$SAT_TMPDIR/sat.dmg"
194
+ msg_status "Attaching Server Admin Tools.."
195
+ hdiutil attach "$SAT_TMPDIR/sat.dmg" -mountpoint "$SAT_TMPDIR/mnt"
196
+
197
+ msg_status "Expanding package.."
198
+ pkgutil --expand "$SAT_TMPDIR/mnt/ServerAdminTools.pkg" "$SAT_TMPDIR/expanded"
199
+ hdiutil detach "$SAT_TMPDIR/mnt"
200
+ mkdir "$SAT_TMPDIR/cpio-extract"
201
+
202
+ msg_status "Extracting payload.."
203
+ tar -xz -C "$SAT_TMPDIR/cpio-extract" -f "$SAT_TMPDIR/expanded/ServerAdminTools.pkg/Payload"
204
+ if [ ! -d "$SUPPORT_DIR/AutoPartition-10.${DMG_OS_VERS_MAJOR}" ]; then
205
+ mkdir "$SUPPORT_DIR/AutoPartition-10.${DMG_OS_VERS_MAJOR}"
206
+ fi
207
+
208
+ msg_status "Copying out AutoPartition.app"
209
+ cp -R "$SAT_TMPDIR/cpio-extract/Applications/Server/$AUTOPART_APP_IN_SIU" "$SUPPORT_DIR/AutoPartition-10.${DMG_OS_VERS_MAJOR}/"
210
+
211
+ rm -rf "$SAT_TMPDIR"
212
+ # AUTOPART_TOOL="$SUPPORT_DIR/AutoPartition-${DMG_OS_VERS_MAJOR}/AutoPartition.app"
213
+ else msg_status "Found AutoPartition.app at $AUTOPART_TOOL.."
214
+ fi
215
+ fi
216
+ elif [ $DMG_OS_VERS_MAJOR -lt 7 ]; then
217
+ msg_error "VeeWee currently doesn't support building guest OS X versions prior to 10.7."
218
+ exit 1
219
+ fi
220
+
221
+ # Build our post-installation pkg that will create a vagrant user and enable ssh
222
+ msg_status "Making firstboot installer pkg.."
223
+
224
+ # payload items
225
+ mkdir -p "$SUPPORT_DIR/pkgroot/private/var/db/dslocal/nodes/Default/users"
226
+ mkdir -p "$SUPPORT_DIR/pkgroot/private/var/db/shadow/hash"
227
+ cp "$SUPPORT_DIR/vagrant.plist" "$SUPPORT_DIR/pkgroot/private/var/db/dslocal/nodes/Default/users/vagrant.plist"
228
+ VAGRANT_GUID=$(/usr/libexec/PlistBuddy -c 'Print :generateduid:0' "$SUPPORT_DIR/vagrant.plist")
229
+ cp "$SUPPORT_DIR/shadowhash" "$SUPPORT_DIR/pkgroot/private/var/db/shadow/hash/$VAGRANT_GUID"
230
+
231
+ # postinstall script
232
+ mkdir -p "$SUPPORT_DIR/tmp/Scripts"
233
+ cp "$SUPPORT_DIR/pkg-postinstall" "$SUPPORT_DIR/tmp/Scripts/postinstall"
234
+ # executability should be copied over, warn if we had to chmod again
235
+ if [ ! -x "$SUPPORT_DIR/tmp/Scripts/postinstall" ]; then
236
+ msg_status "'postinstall' script was for some reason not executable. Setting it again now, but it should have been already set when copying the definition."
237
+ chmod a+x "$SUPPORT_DIR/tmp/Scripts/postinstall"
238
+ fi
239
+
240
+ # build it
241
+ BUILT_PKG="$SUPPORT_DIR/tmp/veewee-config.pkg"
242
+ pkgbuild --quiet \
243
+ --root "$SUPPORT_DIR/pkgroot" \
244
+ --scripts "$SUPPORT_DIR/tmp/Scripts" \
245
+ --identifier com.vagrantup.veewee-config \
246
+ --version 0.1 \
247
+ "$BUILT_PKG"
248
+ rm -rf "$SUPPORT_DIR/pkgroot"
249
+
250
+ # Add our auto-setup files: minstallconfig.xml, OSInstall.collection and PartitionInfo.plist
251
+ msg_status "Adding automated components.."
252
+ mkdir "$MNT_ESD/Packages/Extras"
253
+ cp "$SUPPORT_DIR/minstallconfig.xml" "$MNT_ESD/Packages/Extras/"
254
+ cp "$SUPPORT_DIR/OSInstall.collection" "$MNT_ESD/Packages/"
255
+ cp "$SUPPORT_DIR/PartitionInfo.plist" "$MNT_ESD/Packages/Extras/"
256
+ cp -R "$AUTOPART_TOOL" "$MNT_ESD/Packages/Extras/AutoPartition.app"
257
+ cp "$BUILT_PKG" "$MNT_ESD/Packages/"
258
+ rm -rf "$SUPPORT_DIR/tmp"
259
+
260
+ msg_status "Unmounting.."
261
+ hdiutil detach "$MNT_ESD"
262
+
263
+ msg_status "Converting to final output file.."
264
+ hdiutil convert -format UDZO -o "$OUTPUT_DMG" -shadow "$ESD.shadow" "$ESD"
265
+ rm "$ESD.shadow"
266
+ rm -rf "$MNT_ESD"
267
+
268
+ msg_status "Fixing permissions.."
269
+ chown -R $VEEWEE_UID:$VEEWEE_GID \
270
+ "$OUTPUT_DMG" \
271
+ "$SUPPORT_DIR/AutoPartition-10.${DMG_OS_VERS_MAJOR}"
272
+
273
+ if [ -n "$DEFAULT_ISO_DIR" ]; then
274
+ DEFINITION_FILE="$DEFINITION_DIR/definition.rb"
275
+ msg_status "Setting ISO file in definition "$DEFINITION_FILE".."
276
+ ISO_FILE=$(basename "$OUTPUT_DMG")
277
+ # Explicitly use -e in order to use double quotes around sed command
278
+ sed -i -e "s/%OSX_ISO%/${ISO_FILE}/" "$DEFINITION_FILE"
279
+ fi
280
+
281
+ msg_status "Done."