veewee 0.3.7 → 0.3.9
Sign up to get free protection for your applications and to get access to all the features.
- data/.gitignore +5 -0
- data/.rvmrc +2 -1
- data/.travis.yml +8 -0
- data/CONTRIBUTE.md +51 -0
- data/Gemfile +11 -2
- data/README.md +88 -22
- data/Rakefile +11 -7
- data/bin/veewee +1 -0
- data/doc/TODO.md +76 -0
- data/doc/basics.md +200 -0
- data/doc/build_hooks.md +69 -0
- data/doc/changes.md +20 -0
- data/doc/commands.md +42 -0
- data/doc/customize.md +145 -0
- data/doc/fusion.md +5 -1
- data/doc/installation.md +90 -9
- data/doc/kvm.md +52 -42
- data/doc/parallels.md +3 -0
- data/doc/providers.md +6 -21
- data/doc/requirements.md +69 -5
- data/doc/vagrant.md +26 -93
- data/doc/vbox.md +78 -1
- data/doc/veeweefile.md +25 -0
- data/lib/fission.old/cli.rb +76 -0
- data/lib/fission.old/command.rb +15 -0
- data/lib/fission.old/command/clone.rb +68 -0
- data/lib/fission.old/command/delete.rb +71 -0
- data/lib/fission.old/command/snapshot_create.rb +52 -0
- data/lib/fission.old/command/snapshot_list.rb +45 -0
- data/lib/fission.old/command/snapshot_revert.rb +54 -0
- data/lib/fission.old/command/start.rb +69 -0
- data/lib/fission.old/command/status.rb +31 -0
- data/lib/fission.old/command/stop.rb +49 -0
- data/lib/fission.old/command/suspend.rb +67 -0
- data/lib/fission.old/config.rb +34 -0
- data/lib/fission.old/core_ext/class.rb +5 -0
- data/lib/fission.old/core_ext/file.rb +7 -0
- data/lib/fission.old/core_ext/object.rb +112 -0
- data/lib/fission.old/error.rb +10 -0
- data/lib/fission.old/fusion.rb +17 -0
- data/lib/fission.old/leasesfile.rb +74 -0
- data/lib/fission.old/metadata.rb +39 -0
- data/lib/fission.old/response.rb +16 -0
- data/lib/fission.old/ui.rb +22 -0
- data/lib/fission.old/version.rb +3 -0
- data/lib/fission.old/vm.rb +370 -0
- data/lib/veewee/command/fusion.rb +16 -142
- data/lib/veewee/command/group_base.rb +111 -7
- data/lib/veewee/command/kvm.rb +19 -104
- data/lib/veewee/command/parallels.rb +15 -105
- data/lib/veewee/command/vagrant/build.rb +2 -2
- data/lib/veewee/command/vagrant/export.rb +0 -2
- data/lib/veewee/command/vbox.rb +21 -134
- data/lib/veewee/config.rb +2 -3
- data/lib/veewee/config/ostypes.yml +21 -1
- data/lib/veewee/definition.rb +42 -11
- data/lib/veewee/definitions.rb +27 -6
- data/lib/veewee/environment.rb +34 -25
- data/lib/veewee/error.rb +1 -1
- data/lib/veewee/provider/core/box/build.rb +71 -7
- data/lib/veewee/provider/core/box/exec.rb +1 -1
- data/lib/veewee/provider/core/box/floppy.rb +1 -1
- data/lib/veewee/provider/core/box/ssh.rb +2 -2
- data/lib/veewee/provider/core/box/validate_tags.rb +137 -30
- data/lib/veewee/provider/core/box/vnc.rb +1 -1
- data/lib/veewee/provider/core/box/wincp.rb +8 -8
- data/lib/veewee/provider/core/helper/iso.rb +41 -15
- data/lib/veewee/provider/core/helper/scancode.rb +46 -43
- data/lib/veewee/provider/core/helper/shell.rb +3 -2
- data/lib/veewee/provider/core/helper/ssh.rb +21 -10
- data/lib/veewee/provider/core/helper/tcp.rb +19 -6
- data/lib/veewee/provider/core/helper/web.rb +1 -1
- data/lib/veewee/provider/core/helper/winrm.rb +3 -0
- data/lib/veewee/provider/core/provider.rb +1 -1
- data/lib/veewee/provider/kvm/box.rb +7 -0
- data/lib/veewee/provider/kvm/box/create.rb +122 -71
- data/lib/veewee/provider/kvm/box/destroy.rb +5 -6
- data/lib/veewee/provider/kvm/box/export_vagrant.rb +143 -0
- data/lib/veewee/provider/kvm/box/helper/status.rb +6 -2
- data/lib/veewee/provider/kvm/provider.rb +26 -21
- data/lib/veewee/provider/kvm/templates/Vagrantfile +45 -0
- data/lib/veewee/provider/parallels/box.rb +1 -0
- data/lib/veewee/provider/parallels/box/export.rb +184 -0
- data/lib/veewee/provider/parallels/box/helper/buildinfo.rb +7 -5
- data/lib/veewee/provider/parallels/box/helper/console_type.rb +12 -6
- data/lib/veewee/provider/virtualbox/box.rb +19 -5
- data/lib/veewee/provider/virtualbox/box/create.rb +1 -1
- data/lib/veewee/provider/virtualbox/box/export_vagrant.rb +90 -8
- data/lib/veewee/provider/virtualbox/box/helper/console_type.rb +3 -1
- data/lib/veewee/provider/virtualbox/box/helper/create.rb +48 -23
- data/lib/veewee/provider/virtualbox/box/helper/forwarding.rb +5 -1
- data/lib/veewee/provider/virtualbox/box/helper/version.rb +4 -1
- data/lib/veewee/provider/virtualbox/box/up.rb +6 -6
- data/lib/veewee/provider/virtualbox/provider.rb +3 -1
- data/lib/veewee/provider/vmfusion/box.rb +1 -1
- data/lib/veewee/provider/vmfusion/box/export.rb +125 -0
- data/lib/veewee/provider/vmfusion/box/helper/buildinfo.rb +6 -2
- data/lib/veewee/provider/vmfusion/box/helper/ip.rb +6 -1
- data/lib/veewee/provider/vmfusion/box/poweroff.rb +1 -1
- data/lib/veewee/provider/vmfusion/box/ssh.rb +1 -1
- data/lib/veewee/provider/vmfusion/box/template.rb +10 -3
- data/lib/veewee/provider/vmfusion/box/template.vmx.erb +19 -5
- data/lib/veewee/templates/Vagrantfile.erb +11 -0
- data/lib/veewee/version.rb +1 -1
- data/templates/.ubuntu/base.sh +20 -0
- data/templates/.ubuntu/chef.sh +49 -0
- data/templates/.ubuntu/cleanup.sh +25 -0
- data/templates/.ubuntu/puppet.sh +15 -0
- data/templates/.ubuntu/ruby.sh +7 -0
- data/templates/.ubuntu/vagrant.sh +27 -0
- data/templates/.ubuntu/virtualbox.sh +15 -0
- data/templates/.ubuntu/zerodisk.sh +11 -0
- data/templates/CentOS-4.8-i386/ks.cfg +3 -3
- data/templates/CentOS-4.8-i386/postinstall.sh +3 -0
- data/templates/CentOS-5.5-i386-netboot/definition.rb +1 -1
- data/templates/CentOS-5.5-i386-netboot/ks.cfg +3 -3
- data/templates/CentOS-5.5-i386-netboot/postinstall.sh +3 -0
- data/templates/CentOS-5.5-x86_64-netboot/definition.rb +1 -1
- data/templates/CentOS-5.5-x86_64-netboot/ks.cfg +3 -3
- data/templates/CentOS-5.5-x86_64-netboot/postinstall.sh +4 -0
- data/templates/CentOS-5.6-i386-netboot/definition.rb +1 -1
- data/templates/CentOS-5.6-i386-netboot/ks.cfg +3 -3
- data/templates/CentOS-5.6-i386/ks.cfg +3 -3
- data/templates/CentOS-5.6-i386/postinstall.sh +3 -0
- data/templates/CentOS-5.6-x86_64-netboot-packages/definition.rb +1 -1
- data/templates/CentOS-5.6-x86_64-netboot-packages/ks.cfg +3 -3
- data/templates/CentOS-5.6-x86_64-netboot-packages/postinstall.sh +3 -0
- data/templates/CentOS-5.6-x86_64-netboot/definition.rb +1 -1
- data/templates/CentOS-5.6-x86_64-netboot/ks.cfg +3 -3
- data/templates/CentOS-5.6-x86_64-netboot/postinstall.sh +4 -0
- data/templates/CentOS-5.7-i386-netboot/definition.rb +1 -1
- data/templates/CentOS-5.7-i386-netboot/ks.cfg +3 -3
- data/templates/CentOS-5.7-i386-netboot/postinstall.sh +3 -0
- data/templates/CentOS-5.7-x86_64-netboot/definition.rb +1 -1
- data/templates/CentOS-5.7-x86_64-netboot/ks.cfg +3 -3
- data/templates/CentOS-5.7-x86_64-netboot/postinstall.sh +3 -0
- data/templates/CentOS-5.8-i386-netboot/definition.rb +1 -1
- data/templates/CentOS-5.8-i386-netboot/ks.cfg +3 -3
- data/templates/CentOS-5.8-i386-netboot/postinstall.sh +3 -0
- data/templates/CentOS-5.8-i386/definition.rb +1 -1
- data/templates/CentOS-5.8-i386/ks.cfg +3 -3
- data/templates/CentOS-5.8-i386/postinstall.sh +3 -0
- data/templates/CentOS-5.8-x86_64-netboot/definition.rb +1 -1
- data/templates/CentOS-5.8-x86_64-netboot/ks.cfg +5 -5
- data/templates/CentOS-5.8-x86_64-netboot/postinstall.sh +3 -0
- data/templates/CentOS-5.8-x86_64-reallyminimal/README.md +3 -0
- data/templates/CentOS-5.8-x86_64-reallyminimal/definition.rb +33 -0
- data/templates/CentOS-5.8-x86_64-reallyminimal/ks.cfg +102 -0
- data/templates/CentOS-5.8-x86_64-reallyminimal/postinstall.sh +132 -0
- data/templates/CentOS-5.8-x86_64/definition.rb +1 -1
- data/templates/CentOS-5.8-x86_64/ks.cfg +3 -3
- data/templates/CentOS-5.8-x86_64/postinstall.sh +3 -0
- data/templates/CentOS-5.9-i386-netboot/base.sh +9 -0
- data/templates/CentOS-5.9-i386-netboot/cfengine.sh +69 -0
- data/templates/CentOS-5.9-i386-netboot/chef.sh +3 -0
- data/templates/CentOS-5.9-i386-netboot/cleanup.sh +7 -0
- data/templates/CentOS-5.9-i386-netboot/definition.rb +43 -0
- data/templates/CentOS-5.9-i386-netboot/ks.cfg +47 -0
- data/templates/CentOS-5.9-i386-netboot/puppet.sh +18 -0
- data/templates/CentOS-5.9-i386-netboot/ruby.sh +12 -0
- data/templates/CentOS-5.9-i386-netboot/vagrant.sh +18 -0
- data/templates/CentOS-5.9-i386-netboot/virtualbox.sh +8 -0
- data/templates/CentOS-5.9-i386-netboot/vmfusion.sh +7 -0
- data/templates/{Debian-7.0-b4-amd64-netboot → CentOS-5.9-i386-netboot}/zerodisk.sh +0 -0
- data/templates/CentOS-5.9-i386/base.sh +9 -0
- data/templates/CentOS-5.9-i386/cfengine.sh +69 -0
- data/templates/CentOS-5.9-i386/chef.sh +3 -0
- data/templates/CentOS-5.9-i386/cleanup.sh +7 -0
- data/templates/CentOS-5.9-i386/definition.rb +43 -0
- data/templates/CentOS-5.9-i386/ks.cfg +47 -0
- data/templates/CentOS-5.9-i386/puppet.sh +18 -0
- data/templates/CentOS-5.9-i386/ruby.sh +12 -0
- data/templates/CentOS-5.9-i386/vagrant.sh +18 -0
- data/templates/CentOS-5.9-i386/virtualbox.sh +8 -0
- data/templates/CentOS-5.9-i386/vmfusion.sh +7 -0
- data/templates/{Debian-7.0-b4-i386-netboot → CentOS-5.9-i386}/zerodisk.sh +0 -0
- data/templates/CentOS-5.9-x86_64-netboot/base.sh +9 -0
- data/templates/CentOS-5.9-x86_64-netboot/cfengine.sh +69 -0
- data/templates/CentOS-5.9-x86_64-netboot/chef.sh +3 -0
- data/templates/CentOS-5.9-x86_64-netboot/cleanup.sh +7 -0
- data/templates/CentOS-5.9-x86_64-netboot/definition.rb +43 -0
- data/templates/CentOS-5.9-x86_64-netboot/ks.cfg +47 -0
- data/templates/CentOS-5.9-x86_64-netboot/puppet.sh +18 -0
- data/templates/CentOS-5.9-x86_64-netboot/ruby.sh +12 -0
- data/templates/CentOS-5.9-x86_64-netboot/vagrant.sh +18 -0
- data/templates/CentOS-5.9-x86_64-netboot/virtualbox.sh +8 -0
- data/templates/CentOS-5.9-x86_64-netboot/vmfusion.sh +7 -0
- data/templates/CentOS-5.9-x86_64-netboot/zerodisk.sh +3 -0
- data/templates/CentOS-5.9-x86_64/base.sh +9 -0
- data/templates/CentOS-5.9-x86_64/cfengine.sh +69 -0
- data/templates/CentOS-5.9-x86_64/chef.sh +3 -0
- data/templates/CentOS-5.9-x86_64/cleanup.sh +7 -0
- data/templates/CentOS-5.9-x86_64/definition.rb +43 -0
- data/templates/CentOS-5.9-x86_64/ks.cfg +47 -0
- data/templates/CentOS-5.9-x86_64/puppet.sh +18 -0
- data/templates/CentOS-5.9-x86_64/ruby.sh +12 -0
- data/templates/CentOS-5.9-x86_64/vagrant.sh +18 -0
- data/templates/CentOS-5.9-x86_64/virtualbox.sh +8 -0
- data/templates/CentOS-5.9-x86_64/vmfusion.sh +7 -0
- data/templates/CentOS-5.9-x86_64/zerodisk.sh +3 -0
- data/templates/CentOS-6.0-i386-netboot/base.sh +3 -0
- data/templates/CentOS-6.0-i386-netboot/definition.rb +1 -1
- data/templates/CentOS-6.0-i386-netboot/puppet.sh +7 -1
- data/templates/CentOS-6.0-i386/base.sh +2 -0
- data/templates/CentOS-6.0-i386/definition.rb +1 -1
- data/templates/CentOS-6.0-i386/puppet.sh +7 -1
- data/templates/CentOS-6.0-x86_64-minimal/base.sh +2 -0
- data/templates/CentOS-6.0-x86_64-minimal/definition.rb +2 -2
- data/templates/CentOS-6.0-x86_64-minimal/puppet.sh +7 -1
- data/templates/CentOS-6.0-x86_64-netboot/base.sh +2 -0
- data/templates/CentOS-6.0-x86_64-netboot/definition.rb +2 -2
- data/templates/CentOS-6.0-x86_64-netboot/puppet.sh +7 -1
- data/templates/CentOS-6.0-x86_64/base.sh +2 -0
- data/templates/CentOS-6.0-x86_64/definition.rb +2 -2
- data/templates/CentOS-6.0-x86_64/puppet.sh +7 -1
- data/templates/CentOS-6.1-x86_64-minimal/base.sh +2 -0
- data/templates/CentOS-6.1-x86_64-minimal/definition.rb +2 -2
- data/templates/CentOS-6.1-x86_64-minimal/puppet.sh +7 -1
- data/templates/CentOS-6.1-x86_64-netboot/base.sh +2 -0
- data/templates/CentOS-6.1-x86_64-netboot/definition.rb +2 -2
- data/templates/CentOS-6.1-x86_64-netboot/puppet.sh +7 -1
- data/templates/CentOS-6.2-i386-minimal/base.sh +2 -0
- data/templates/CentOS-6.2-i386-minimal/definition.rb +1 -1
- data/templates/CentOS-6.2-i386-minimal/puppet.sh +7 -1
- data/templates/CentOS-6.2-x86_64-minimal/base.sh +2 -0
- data/templates/CentOS-6.2-x86_64-minimal/definition.rb +2 -2
- data/templates/CentOS-6.2-x86_64-minimal/puppet.sh +7 -1
- data/templates/CentOS-6.2-x86_64-netboot/definition.rb +2 -2
- data/templates/CentOS-6.2-x86_64-netboot/puppet.sh +7 -1
- data/templates/CentOS-6.3-i386-minimal/base.sh +2 -0
- data/templates/CentOS-6.3-i386-minimal/puppet.sh +7 -1
- data/templates/CentOS-6.3-x86_64-minimal/base.sh +2 -0
- data/templates/CentOS-6.3-x86_64-minimal/definition.rb +1 -1
- data/templates/CentOS-6.3-x86_64-minimal/puppet.sh +7 -1
- data/templates/CentOS-6.3-x86_64-netboot/base.sh +2 -0
- data/templates/CentOS-6.3-x86_64-netboot/cfengine.sh +69 -0
- data/templates/CentOS-6.3-x86_64-netboot/definition.rb +1 -1
- data/templates/CentOS-6.3-x86_64-netboot/puppet.sh +7 -1
- data/templates/CentOS-6.3-x86_64-reallyminimal/README.md +12 -0
- data/templates/CentOS-6.3-x86_64-reallyminimal/definition.rb +33 -0
- data/templates/CentOS-6.3-x86_64-reallyminimal/ks.cfg +100 -0
- data/templates/CentOS-6.3-x86_64-reallyminimal/postinstall.sh +138 -0
- data/templates/CentOS-6.4-i386-minimal/base.sh +16 -0
- data/templates/CentOS-6.4-i386-minimal/chef.sh +2 -0
- data/templates/CentOS-6.4-i386-minimal/cleanup.sh +8 -0
- data/templates/CentOS-6.4-i386-minimal/definition.rb +38 -0
- data/templates/CentOS-6.4-i386-minimal/ks.cfg +36 -0
- data/templates/CentOS-6.4-i386-minimal/puppet.sh +18 -0
- data/templates/CentOS-6.4-i386-minimal/vagrant.sh +18 -0
- data/templates/CentOS-6.4-i386-minimal/virtualbox.sh +8 -0
- data/templates/CentOS-6.4-i386-minimal/vmfusion.sh +7 -0
- data/templates/CentOS-6.4-i386-minimal/zerodisk.sh +3 -0
- data/templates/CentOS-6.4-i386-netboot/base.sh +16 -0
- data/templates/CentOS-6.4-i386-netboot/cfengine.sh +69 -0
- data/templates/CentOS-6.4-i386-netboot/chef.sh +3 -0
- data/templates/CentOS-6.4-i386-netboot/cleanup.sh +8 -0
- data/templates/CentOS-6.4-i386-netboot/definition.rb +40 -0
- data/templates/CentOS-6.4-i386-netboot/ks.cfg +41 -0
- data/templates/CentOS-6.4-i386-netboot/puppet.sh +18 -0
- data/templates/CentOS-6.4-i386-netboot/ruby.sh +3 -0
- data/templates/CentOS-6.4-i386-netboot/vagrant.sh +18 -0
- data/templates/CentOS-6.4-i386-netboot/virtualbox.sh +8 -0
- data/templates/CentOS-6.4-i386-netboot/vmfusion.sh +7 -0
- data/templates/CentOS-6.4-i386-netboot/zerodisk.sh +3 -0
- data/templates/CentOS-6.4-x86_64-minimal/base.sh +16 -0
- data/templates/CentOS-6.4-x86_64-minimal/chef.sh +2 -0
- data/templates/CentOS-6.4-x86_64-minimal/cleanup.sh +8 -0
- data/templates/CentOS-6.4-x86_64-minimal/definition.rb +38 -0
- data/templates/CentOS-6.4-x86_64-minimal/ks.cfg +36 -0
- data/templates/CentOS-6.4-x86_64-minimal/puppet.sh +18 -0
- data/templates/CentOS-6.4-x86_64-minimal/vagrant.sh +18 -0
- data/templates/CentOS-6.4-x86_64-minimal/virtualbox.sh +8 -0
- data/templates/CentOS-6.4-x86_64-minimal/vmfusion.sh +7 -0
- data/templates/CentOS-6.4-x86_64-minimal/zerodisk.sh +3 -0
- data/templates/CentOS-6.4-x86_64-netboot/base.sh +16 -0
- data/templates/CentOS-6.4-x86_64-netboot/cfengine.sh +69 -0
- data/templates/CentOS-6.4-x86_64-netboot/chef.sh +3 -0
- data/templates/CentOS-6.4-x86_64-netboot/cleanup.sh +8 -0
- data/templates/CentOS-6.4-x86_64-netboot/definition.rb +40 -0
- data/templates/CentOS-6.4-x86_64-netboot/ks.cfg +41 -0
- data/templates/CentOS-6.4-x86_64-netboot/puppet.sh +18 -0
- data/templates/CentOS-6.4-x86_64-netboot/ruby.sh +3 -0
- data/templates/CentOS-6.4-x86_64-netboot/vagrant.sh +18 -0
- data/templates/CentOS-6.4-x86_64-netboot/virtualbox.sh +8 -0
- data/templates/CentOS-6.4-x86_64-netboot/vmfusion.sh +7 -0
- data/templates/CentOS-6.4-x86_64-netboot/zerodisk.sh +3 -0
- data/templates/Debian-5.0.10-amd64-netboot/base.sh +4 -0
- data/templates/Debian-5.0.10-amd64-netboot/definition.rb +10 -1
- data/templates/Debian-5.0.10-amd64-netboot/preseed.cfg +5 -3
- data/templates/Debian-5.0.10-amd64-netboot/ruby.sh +7 -6
- data/templates/Debian-5.0.10-amd64-netboot/vagrant.sh +4 -0
- data/templates/Debian-5.0.10-amd64-netboot/virtualbox.sh +12 -7
- data/templates/Debian-5.0.10-amd64-netboot/zerodisk.sh +3 -0
- data/templates/Debian-5.0.10-i386-netboot/base.sh +4 -0
- data/templates/Debian-5.0.10-i386-netboot/definition.rb +10 -1
- data/templates/Debian-5.0.10-i386-netboot/preseed.cfg +5 -3
- data/templates/Debian-5.0.10-i386-netboot/ruby.sh +7 -6
- data/templates/Debian-5.0.10-i386-netboot/vagrant.sh +4 -0
- data/templates/Debian-5.0.10-i386-netboot/virtualbox.sh +12 -7
- data/templates/Debian-5.0.10-i386-netboot/zerodisk.sh +3 -0
- data/templates/Debian-5.0.8-amd64-netboot/base.sh +4 -0
- data/templates/Debian-5.0.8-amd64-netboot/definition.rb +10 -1
- data/templates/Debian-5.0.8-amd64-netboot/preseed.cfg +5 -3
- data/templates/Debian-5.0.8-amd64-netboot/vagrant.sh +4 -0
- data/templates/Debian-5.0.8-amd64-netboot/virtualbox.sh +12 -7
- data/templates/Debian-5.0.8-amd64-netboot/zerodisk.sh +3 -0
- data/templates/Debian-5.0.8-i386-netboot/base.sh +4 -0
- data/templates/Debian-5.0.8-i386-netboot/definition.rb +10 -1
- data/templates/Debian-5.0.8-i386-netboot/preseed.cfg +5 -3
- data/templates/Debian-5.0.8-i386-netboot/vagrant.sh +4 -0
- data/templates/Debian-5.0.8-i386-netboot/virtualbox.sh +12 -7
- data/templates/Debian-5.0.8-i386-netboot/zerodisk.sh +3 -0
- data/templates/Debian-6.0.3-amd64-netboot/definition.rb +3 -1
- data/templates/Debian-6.0.3-amd64-netboot/preseed.cfg +2 -2
- data/templates/Debian-6.0.3-i386-netboot/definition.rb +3 -1
- data/templates/Debian-6.0.3-i386-netboot/preseed.cfg +2 -2
- data/templates/Debian-6.0.4-amd64-netboot/definition.rb +3 -1
- data/templates/Debian-6.0.4-amd64-netboot/preseed.cfg +2 -2
- data/templates/Debian-6.0.4-i386-netboot/definition.rb +4 -2
- data/templates/Debian-6.0.4-i386-netboot/preseed.cfg +2 -2
- data/templates/Debian-6.0.5-amd64-netboot/definition.rb +3 -1
- data/templates/Debian-6.0.5-amd64-netboot/preseed.cfg +2 -2
- data/templates/Debian-6.0.5-i386-netboot/definition.rb +3 -1
- data/templates/Debian-6.0.5-i386-netboot/preseed.cfg +3 -3
- data/templates/Debian-6.0.6-amd64-netboot/base.sh +6 -2
- data/templates/Debian-6.0.6-amd64-netboot/chef.sh +1 -1
- data/templates/Debian-6.0.6-amd64-netboot/definition.rb +5 -3
- data/templates/Debian-6.0.6-amd64-netboot/preseed.cfg +2 -2
- data/templates/Debian-6.0.6-amd64-netboot/puppet.sh +1 -1
- data/templates/Debian-6.0.6-amd64-netboot/ruby.sh +25 -9
- data/templates/Debian-6.0.6-amd64-netboot/vagrant.sh +0 -2
- data/templates/Debian-6.0.6-amd64-netboot/virtualbox.sh +17 -12
- data/templates/Debian-6.0.6-amd64-netboot/vmfusion.sh +7 -0
- data/templates/Debian-6.0.6-i386-netboot/base.sh +0 -1
- data/templates/Debian-6.0.6-i386-netboot/cleanup.sh +1 -0
- data/templates/Debian-6.0.6-i386-netboot/definition.rb +11 -2
- data/templates/Debian-6.0.6-i386-netboot/preseed.cfg +3 -3
- data/templates/Debian-6.0.6-i386-netboot/virtualbox.sh +3 -0
- data/templates/Debian-6.0.7-amd64-netboot/base.sh +27 -0
- data/templates/{Debian-7.0-b4-amd64-netboot → Debian-6.0.7-amd64-netboot}/chef.sh +0 -0
- data/templates/{Debian-6.0.6-amd64-netboot → Debian-6.0.7-amd64-netboot}/cleanup-virtualbox.sh +0 -0
- data/templates/{Debian-7.0-b4-amd64-netboot → Debian-6.0.7-amd64-netboot}/cleanup.sh +0 -0
- data/templates/Debian-6.0.7-amd64-netboot/definition.rb +50 -0
- data/templates/{Debian-7.0-b4-i386-netboot → Debian-6.0.7-amd64-netboot}/preseed.cfg +2 -2
- data/templates/Debian-6.0.7-amd64-netboot/puppet.sh +7 -0
- data/templates/Debian-6.0.7-amd64-netboot/ruby.sh +10 -0
- data/templates/{Debian-7.0-b4-amd64-netboot → Debian-6.0.7-amd64-netboot}/vagrant.sh +0 -0
- data/templates/{Debian-7.0-b4-amd64-netboot → Debian-6.0.7-amd64-netboot}/virtualbox.sh +6 -1
- data/templates/Debian-6.0.7-amd64-netboot/vmfusion.sh +7 -0
- data/templates/Debian-6.0.7-amd64-netboot/zerodisk.sh +3 -0
- data/templates/Debian-6.0.7-i386-netboot/base.sh +26 -0
- data/templates/{Debian-7.0-b4-i386-netboot → Debian-6.0.7-i386-netboot}/chef.sh +0 -0
- data/templates/{Debian-7.0-b4-amd64-netboot → Debian-6.0.7-i386-netboot}/cleanup-virtualbox.sh +0 -0
- data/templates/Debian-6.0.7-i386-netboot/cleanup.sh +18 -0
- data/templates/Debian-6.0.7-i386-netboot/definition.rb +59 -0
- data/templates/Debian-6.0.7-i386-netboot/preseed.cfg +315 -0
- data/templates/Debian-6.0.7-i386-netboot/puppet.sh +7 -0
- data/templates/{Debian-7.0-b4-amd64-netboot → Debian-6.0.7-i386-netboot}/ruby.sh +0 -0
- data/templates/{Debian-7.0-b4-i386-netboot → Debian-6.0.7-i386-netboot}/vagrant.sh +0 -0
- data/templates/{Debian-7.0-b4-i386-netboot → Debian-6.0.7-i386-netboot}/virtualbox.sh +3 -0
- data/templates/Debian-6.0.7-i386-netboot/vmfusion.sh +7 -0
- data/templates/Debian-6.0.7-i386-netboot/zerodisk.sh +3 -0
- data/templates/Debian-7.0-amd64-netboot/base.sh +25 -0
- data/templates/Debian-7.0-amd64-netboot/chef.sh +49 -0
- data/templates/{Debian-7.0-b4-i386-netboot → Debian-7.0-amd64-netboot}/cleanup-virtualbox.sh +0 -0
- data/templates/Debian-7.0-amd64-netboot/cleanup.sh +18 -0
- data/templates/Debian-7.0-amd64-netboot/definition.rb +55 -0
- data/templates/{Debian-7.0-b4-amd64-netboot → Debian-7.0-amd64-netboot}/preseed.cfg +4 -4
- data/templates/Debian-7.0-amd64-netboot/puppet.sh +7 -0
- data/templates/{Debian-7.0-b4-i386-netboot → Debian-7.0-amd64-netboot}/ruby.sh +0 -0
- data/templates/Debian-7.0-amd64-netboot/vagrant.sh +21 -0
- data/templates/Debian-7.0-amd64-netboot/virtualbox.sh +34 -0
- data/templates/Debian-7.0-amd64-netboot/vmfusion.sh +7 -0
- data/templates/Debian-7.0-amd64-netboot/zerodisk.sh +3 -0
- data/templates/{Debian-7.0-b4-amd64-netboot → Debian-7.0-i386-netboot}/base.sh +1 -1
- data/templates/Debian-7.0-i386-netboot/chef.sh +2 -0
- data/templates/Debian-7.0-i386-netboot/cleanup-virtualbox.sh +4 -0
- data/templates/{Debian-7.0-b4-i386-netboot → Debian-7.0-i386-netboot}/cleanup.sh +0 -0
- data/templates/Debian-7.0-i386-netboot/definition.rb +56 -0
- data/templates/Debian-7.0-i386-netboot/preseed.cfg +315 -0
- data/templates/Debian-7.0-i386-netboot/puppet.sh +7 -0
- data/templates/Debian-7.0-i386-netboot/ruby.sh +10 -0
- data/templates/Debian-7.0-i386-netboot/vagrant.sh +23 -0
- data/templates/Debian-7.0-i386-netboot/virtualbox.sh +34 -0
- data/templates/Debian-7.0-i386-netboot/vmfusion.sh +7 -0
- data/templates/Debian-7.0-i386-netboot/zerodisk.sh +3 -0
- data/templates/Debian-7.1.0-amd64-netboot/base.sh +25 -0
- data/templates/Debian-7.1.0-amd64-netboot/chef.sh +49 -0
- data/templates/Debian-7.1.0-amd64-netboot/cleanup-virtualbox.sh +4 -0
- data/templates/Debian-7.1.0-amd64-netboot/cleanup.sh +18 -0
- data/templates/Debian-7.1.0-amd64-netboot/definition.rb +53 -0
- data/templates/Debian-7.1.0-amd64-netboot/preseed.cfg +313 -0
- data/templates/Debian-7.1.0-amd64-netboot/puppet.sh +7 -0
- data/templates/Debian-7.1.0-amd64-netboot/ruby.sh +10 -0
- data/templates/Debian-7.1.0-amd64-netboot/vagrant.sh +21 -0
- data/templates/Debian-7.1.0-amd64-netboot/virtualbox.sh +34 -0
- data/templates/Debian-7.1.0-amd64-netboot/vmfusion.sh +7 -0
- data/templates/Debian-7.1.0-amd64-netboot/zerodisk.sh +3 -0
- data/templates/{Debian-7.0-b4-i386-netboot → Debian-7.1.0-i386-netboot}/base.sh +1 -1
- data/templates/Debian-7.1.0-i386-netboot/chef.sh +2 -0
- data/templates/Debian-7.1.0-i386-netboot/cleanup-virtualbox.sh +4 -0
- data/templates/Debian-7.1.0-i386-netboot/cleanup.sh +17 -0
- data/templates/{Debian-7.0-b4-i386-netboot → Debian-7.1.0-i386-netboot}/definition.rb +5 -5
- data/templates/Debian-7.1.0-i386-netboot/preseed.cfg +315 -0
- data/templates/Debian-7.1.0-i386-netboot/puppet.sh +7 -0
- data/templates/Debian-7.1.0-i386-netboot/ruby.sh +10 -0
- data/templates/Debian-7.1.0-i386-netboot/vagrant.sh +23 -0
- data/templates/Debian-7.1.0-i386-netboot/virtualbox.sh +34 -0
- data/templates/Debian-7.1.0-i386-netboot/vmfusion.sh +7 -0
- data/templates/Debian-7.1.0-i386-netboot/zerodisk.sh +3 -0
- data/templates/Debian-7.2.0-amd64-netboot/base.sh +25 -0
- data/templates/Debian-7.2.0-amd64-netboot/chef.sh +49 -0
- data/templates/Debian-7.2.0-amd64-netboot/cleanup-virtualbox.sh +4 -0
- data/templates/Debian-7.2.0-amd64-netboot/cleanup.sh +18 -0
- data/templates/Debian-7.2.0-amd64-netboot/definition.rb +53 -0
- data/templates/Debian-7.2.0-amd64-netboot/preseed.cfg +313 -0
- data/templates/Debian-7.2.0-amd64-netboot/puppet.sh +7 -0
- data/templates/Debian-7.2.0-amd64-netboot/ruby.sh +10 -0
- data/templates/Debian-7.2.0-amd64-netboot/vagrant.sh +21 -0
- data/templates/Debian-7.2.0-amd64-netboot/virtualbox.sh +34 -0
- data/templates/Debian-7.2.0-amd64-netboot/vmfusion.sh +7 -0
- data/templates/Debian-7.2.0-amd64-netboot/zerodisk.sh +3 -0
- data/templates/Debian-7.2.0-i386-netboot/base.sh +26 -0
- data/templates/Debian-7.2.0-i386-netboot/chef.sh +2 -0
- data/templates/Debian-7.2.0-i386-netboot/cleanup-virtualbox.sh +4 -0
- data/templates/Debian-7.2.0-i386-netboot/cleanup.sh +17 -0
- data/templates/{Debian-7.0-b4-amd64-netboot → Debian-7.2.0-i386-netboot}/definition.rb +5 -5
- data/templates/Debian-7.2.0-i386-netboot/preseed.cfg +315 -0
- data/templates/Debian-7.2.0-i386-netboot/puppet.sh +7 -0
- data/templates/Debian-7.2.0-i386-netboot/ruby.sh +10 -0
- data/templates/Debian-7.2.0-i386-netboot/vagrant.sh +23 -0
- data/templates/Debian-7.2.0-i386-netboot/virtualbox.sh +34 -0
- data/templates/Debian-7.2.0-i386-netboot/vmfusion.sh +7 -0
- data/templates/Debian-7.2.0-i386-netboot/zerodisk.sh +3 -0
- data/templates/Fedora-14-amd64-netboot/ks.cfg +3 -3
- data/templates/Fedora-14-amd64/ks.cfg +3 -3
- data/templates/Fedora-14-i386-netboot/ks.cfg +3 -3
- data/templates/Fedora-14-i386/ks.cfg +3 -3
- data/templates/Fedora-15-i386-netboot/ks.cfg +2 -2
- data/templates/Fedora-15-i386/ks.cfg +2 -2
- data/templates/Fedora-15-x86_64-netboot/ks.cfg +2 -2
- data/templates/Fedora-15-x86_64/definition.rb +1 -1
- data/templates/Fedora-15-x86_64/ks.cfg +2 -2
- data/templates/Fedora-16-i386/ks.cfg +2 -2
- data/templates/Fedora-16-x86_64-netboot/ks.cfg +2 -2
- data/templates/Fedora-16-x86_64/ks.cfg +2 -2
- data/templates/Fedora-17-i386/ks.cfg +2 -2
- data/templates/Fedora-17-x86_64/ks.cfg +2 -2
- data/templates/Fedora-18-i386/base.sh +12 -0
- data/templates/Fedora-18-i386/chef.sh +17 -0
- data/templates/Fedora-18-i386/cleanup.sh +6 -0
- data/templates/Fedora-18-i386/definition.rb +32 -10
- data/templates/Fedora-18-i386/ks.cfg +2 -2
- data/templates/Fedora-18-i386/puppet.sh +2 -0
- data/templates/Fedora-18-i386/ruby.sh +3 -0
- data/templates/Fedora-18-i386/vagrant.sh +18 -0
- data/templates/Fedora-18-i386/virtualbox.sh +8 -0
- data/templates/Fedora-18-i386/vmfusion.sh +7 -0
- data/templates/Fedora-18-i386/zerodisk.sh +3 -0
- data/templates/Fedora-18-x86_64/base.sh +12 -0
- data/templates/Fedora-18-x86_64/chef.sh +17 -0
- data/templates/Fedora-18-x86_64/cleanup.sh +6 -0
- data/templates/Fedora-18-x86_64/definition.rb +32 -10
- data/templates/Fedora-18-x86_64/ks.cfg +2 -2
- data/templates/Fedora-18-x86_64/puppet.sh +2 -0
- data/templates/Fedora-18-x86_64/ruby.sh +3 -0
- data/templates/Fedora-18-x86_64/vagrant.sh +18 -0
- data/templates/Fedora-18-x86_64/virtualbox.sh +8 -0
- data/templates/Fedora-18-x86_64/vmfusion.sh +7 -0
- data/templates/Fedora-18-x86_64/zerodisk.sh +3 -0
- data/templates/Fedora-19-i386/base.sh +9 -0
- data/templates/Fedora-19-i386/chef.sh +17 -0
- data/templates/Fedora-19-i386/cleanup.sh +6 -0
- data/templates/Fedora-19-i386/definition.rb +39 -0
- data/templates/Fedora-19-i386/ks.cfg +83 -0
- data/templates/Fedora-19-i386/puppet.sh +2 -0
- data/templates/Fedora-19-i386/ruby.sh +3 -0
- data/templates/Fedora-19-i386/vagrant.sh +18 -0
- data/templates/Fedora-19-i386/virtualbox.sh +4 -0
- data/templates/Fedora-19-i386/vmfusion.sh +7 -0
- data/templates/Fedora-19-i386/zerodisk.sh +3 -0
- data/templates/Fedora-19-x86_64/base.sh +9 -0
- data/templates/Fedora-19-x86_64/chef.sh +17 -0
- data/templates/Fedora-19-x86_64/cleanup.sh +6 -0
- data/templates/Fedora-19-x86_64/definition.rb +39 -0
- data/templates/Fedora-19-x86_64/ks.cfg +83 -0
- data/templates/Fedora-19-x86_64/puppet.sh +2 -0
- data/templates/Fedora-19-x86_64/ruby.sh +3 -0
- data/templates/Fedora-19-x86_64/vagrant.sh +18 -0
- data/templates/Fedora-19-x86_64/virtualbox.sh +4 -0
- data/templates/Fedora-19-x86_64/vmfusion.sh +7 -0
- data/templates/Fedora-19-x86_64/zerodisk.sh +3 -0
- data/templates/OSX/NOTICE.erb +23 -0
- data/templates/OSX/chef-omnibus.sh +6 -0
- data/templates/OSX/definition.rb +31 -0
- data/templates/OSX/fix_user_perms.sh +3 -0
- data/templates/OSX/postinstall.sh +28 -0
- data/templates/OSX/prepare_veewee_iso/prepare_veewee_iso.sh +281 -0
- data/templates/OSX/prepare_veewee_iso/support/10_8_AP_bomlist +34 -0
- data/templates/OSX/prepare_veewee_iso/support/OSInstall.collection +9 -0
- data/templates/OSX/prepare_veewee_iso/support/PartitionInfo.plist +0 -0
- data/templates/OSX/prepare_veewee_iso/support/com.vagrantup.veewee.plist +14 -0
- data/templates/OSX/prepare_veewee_iso/support/minstallconfig.xml +16 -0
- data/templates/OSX/prepare_veewee_iso/support/pkg-postinstall +25 -0
- data/templates/OSX/prepare_veewee_iso/support/shadowhash +1 -0
- data/templates/OSX/prepare_veewee_iso/support/vagrant.plist +804 -0
- data/templates/OSX/puppet.sh +18 -0
- data/templates/OSX/rvm.bash +17 -0
- data/templates/OSX/xcode-cli-tools.sh +19 -0
- data/templates/OracleLinux-5.9-i386-DVD/base.sh +26 -0
- data/templates/OracleLinux-5.9-i386-DVD/chef.sh +3 -0
- data/templates/OracleLinux-5.9-i386-DVD/cleanup.sh +8 -0
- data/templates/OracleLinux-5.9-i386-DVD/definition.rb +37 -0
- data/templates/OracleLinux-5.9-i386-DVD/ks.cfg +35 -0
- data/templates/OracleLinux-5.9-i386-DVD/proxy.sh +4 -0
- data/templates/OracleLinux-5.9-i386-DVD/puppet.sh +3 -0
- data/templates/OracleLinux-5.9-i386-DVD/ruby.sh +36 -0
- data/templates/OracleLinux-5.9-i386-DVD/vagrant.sh +21 -0
- data/templates/OracleLinux-5.9-i386-DVD/virtualbox.sh +8 -0
- data/templates/OracleLinux-5.9-i386-DVD/zerodisk.sh +3 -0
- data/templates/OracleLinux-5.9-x86_64-DVD/base.sh +26 -0
- data/templates/OracleLinux-5.9-x86_64-DVD/chef.sh +3 -0
- data/templates/OracleLinux-5.9-x86_64-DVD/cleanup.sh +8 -0
- data/templates/OracleLinux-5.9-x86_64-DVD/definition.rb +37 -0
- data/templates/OracleLinux-5.9-x86_64-DVD/ks.cfg +35 -0
- data/templates/OracleLinux-5.9-x86_64-DVD/proxy.sh +4 -0
- data/templates/OracleLinux-5.9-x86_64-DVD/puppet.sh +3 -0
- data/templates/OracleLinux-5.9-x86_64-DVD/ruby.sh +36 -0
- data/templates/OracleLinux-5.9-x86_64-DVD/vagrant.sh +21 -0
- data/templates/OracleLinux-5.9-x86_64-DVD/virtualbox.sh +8 -0
- data/templates/OracleLinux-5.9-x86_64-DVD/zerodisk.sh +3 -0
- data/templates/OracleLinux-6.3-x86_64-DVD/definition.rb +1 -0
- data/templates/OracleLinux-6.3-x86_64-DVD/nfs.sh +2 -0
- data/templates/OracleLinux-6.3-x86_64-DVD/puppet.sh +6 -0
- data/templates/OracleLinux-6.4-i386-DVD/base.sh +25 -0
- data/templates/OracleLinux-6.4-i386-DVD/chef.sh +3 -0
- data/templates/OracleLinux-6.4-i386-DVD/cleanup.sh +9 -0
- data/templates/OracleLinux-6.4-i386-DVD/definition.rb +39 -0
- data/templates/OracleLinux-6.4-i386-DVD/ks.cfg +36 -0
- data/templates/OracleLinux-6.4-i386-DVD/proxy.sh +4 -0
- data/templates/OracleLinux-6.4-i386-DVD/puppet.sh +10 -0
- data/templates/OracleLinux-6.4-i386-DVD/ruby.sh +5 -0
- data/templates/OracleLinux-6.4-i386-DVD/vagrant.sh +21 -0
- data/templates/OracleLinux-6.4-i386-DVD/virtualbox.sh +8 -0
- data/templates/OracleLinux-6.4-i386-DVD/zerodisk.sh +3 -0
- data/templates/OracleLinux-6.4-x86_64-DVD/base.sh +25 -0
- data/templates/OracleLinux-6.4-x86_64-DVD/chef.sh +3 -0
- data/templates/OracleLinux-6.4-x86_64-DVD/cleanup.sh +9 -0
- data/templates/OracleLinux-6.4-x86_64-DVD/definition.rb +39 -0
- data/templates/OracleLinux-6.4-x86_64-DVD/ks.cfg +36 -0
- data/templates/OracleLinux-6.4-x86_64-DVD/proxy.sh +4 -0
- data/templates/OracleLinux-6.4-x86_64-DVD/puppet.sh +10 -0
- data/templates/OracleLinux-6.4-x86_64-DVD/ruby.sh +5 -0
- data/templates/OracleLinux-6.4-x86_64-DVD/vagrant.sh +21 -0
- data/templates/OracleLinux-6.4-x86_64-DVD/virtualbox.sh +8 -0
- data/templates/OracleLinux-6.4-x86_64-DVD/zerodisk.sh +3 -0
- data/templates/SLES-11-SP2-DVD-x86_64-GM/autoinst.xml +2578 -0
- data/templates/SLES-11-SP2-DVD-x86_64-GM/definition.rb +33 -0
- data/templates/SLES-11-SP2-DVD-x86_64-GM/postinstall.sh +51 -0
- data/templates/VMware-ESXi-5.0u2-x86_64/definition.rb +26 -0
- data/templates/VMware-ESXi-5.0u2-x86_64/ks.cfg +63 -0
- data/templates/VMware-ESXi-5.0u2-x86_64/vagrant_key.py +6 -0
- data/templates/VMware-ESXi-5.0u2-x86_64/vnc_enable.sh +40 -0
- data/templates/VMware-ESXi-5.1-x86_64/definition.rb +27 -0
- data/templates/VMware-ESXi-5.1-x86_64/ks.cfg +63 -0
- data/templates/VMware-ESXi-5.1-x86_64/vagrant_key.py +6 -0
- data/templates/VMware-ESXi-5.1-x86_64/vnc_enable.sh +41 -0
- data/templates/archlinux-x86_64/README.md +51 -0
- data/templates/archlinux-x86_64/aur.sh +22 -0
- data/templates/archlinux-x86_64/base.sh +46 -0
- data/templates/archlinux-x86_64/basedevel.sh +6 -0
- data/templates/archlinux-x86_64/bootloader.sh +11 -0
- data/templates/archlinux-x86_64/chef.sh +31 -0
- data/templates/archlinux-x86_64/cleanup.sh +18 -0
- data/templates/archlinux-x86_64/definition.rb +57 -23
- data/templates/archlinux-x86_64/pacman.sh +28 -0
- data/templates/archlinux-x86_64/puppet.sh +22 -0
- data/templates/archlinux-x86_64/reboot.sh +22 -0
- data/templates/archlinux-x86_64/ruby.sh +27 -0
- data/templates/archlinux-x86_64/ssh.sh +18 -0
- data/templates/archlinux-x86_64/sudo.sh +12 -0
- data/templates/archlinux-x86_64/user.sh +11 -0
- data/templates/archlinux-x86_64/vagrant.sh +27 -0
- data/templates/archlinux-x86_64/virtualbox.sh +23 -0
- data/templates/archlinux-x86_64/zerodisk.sh +11 -0
- data/templates/freebsd-8.2-pcbsd-amd64/definition.rb +26 -0
- data/templates/freebsd-8.2-pcbsd-amd64/pcinstall.fbg.cfg +57 -0
- data/templates/freebsd-8.2-pcbsd-amd64/postinstall.sh +95 -0
- data/templates/freebsd-8.2-pcbsd-i386-netboot/pcinstall.fbg.cfg +2 -2
- data/templates/freebsd-8.2-pcbsd-i386-netboot/postinstall.sh +32 -30
- data/templates/freebsd-8.2-pcbsd-i386/pcinstall.fbg.cfg +1 -1
- data/templates/freebsd-8.2-pcbsd-i386/postinstall.sh +31 -29
- data/templates/freebsd-9.0-RELEASE-amd64/definition.rb +22 -9
- data/templates/freebsd-9.0-RELEASE-amd64/install.sh +103 -0
- data/templates/freebsd-9.0-RELEASE-amd64/postinstall.sh +72 -48
- data/templates/freebsd-9.1-RELEASE-amd64/definition.rb +32 -0
- data/templates/freebsd-9.1-RELEASE-amd64/install.sh +95 -0
- data/templates/freebsd-9.1-RELEASE-amd64/postinstall.csh +136 -0
- data/templates/funtoo-latest-x86_64/definition.rb +8 -6
- data/templates/funtoo-latest-x86_64/postinstall.sh +16 -0
- data/templates/gentoo-latest-amd64/base.sh +89 -0
- data/templates/gentoo-latest-amd64/chef.sh +7 -0
- data/templates/gentoo-latest-amd64/cleanup.sh +23 -0
- data/templates/gentoo-latest-amd64/cron.sh +8 -0
- data/templates/gentoo-latest-amd64/definition.rb +59 -0
- data/templates/gentoo-latest-amd64/grub.sh +23 -0
- data/templates/gentoo-latest-amd64/kernel.sh +109 -0
- data/templates/gentoo-latest-amd64/nfs.sh +11 -0
- data/templates/gentoo-latest-amd64/puppet.sh +7 -0
- data/templates/gentoo-latest-amd64/reboot.sh +4 -0
- data/templates/gentoo-latest-amd64/ruby.sh +17 -0
- data/templates/gentoo-latest-amd64/settings.sh +37 -0
- data/templates/gentoo-latest-amd64/syslog.sh +8 -0
- data/templates/gentoo-latest-amd64/vagrant.sh +57 -0
- data/templates/gentoo-latest-amd64/virtualbox.sh +23 -0
- data/templates/gentoo-latest-amd64/zerodisk.sh +15 -0
- data/templates/gentoo-latest-i686/base.sh +84 -0
- data/templates/gentoo-latest-i686/chef.sh +7 -0
- data/templates/gentoo-latest-i686/cleanup.sh +23 -0
- data/templates/gentoo-latest-i686/cron.sh +8 -0
- data/templates/gentoo-latest-i686/definition.rb +61 -0
- data/templates/gentoo-latest-i686/grub.sh +24 -0
- data/templates/gentoo-latest-i686/kernel.sh +109 -0
- data/templates/gentoo-latest-i686/nfs.sh +11 -0
- data/templates/gentoo-latest-i686/puppet.sh +7 -0
- data/templates/gentoo-latest-i686/reboot.sh +4 -0
- data/templates/gentoo-latest-i686/ruby_portage.sh +17 -0
- data/templates/gentoo-latest-i686/ruby_source.sh +15 -0
- data/templates/gentoo-latest-i686/settings.sh +40 -0
- data/templates/gentoo-latest-i686/syslog.sh +8 -0
- data/templates/gentoo-latest-i686/vagrant.sh +57 -0
- data/templates/gentoo-latest-i686/virtualbox.sh +18 -0
- data/templates/gentoo-latest-i686/zerodisk.sh +15 -0
- data/templates/nixos-minimal-0.2-i686/configuration.nix +39 -0
- data/templates/nixos-minimal-0.2-i686/definition.rb +50 -0
- data/templates/nixos-minimal-0.2-i686/postinstall.sh +28 -0
- data/templates/openSUSE-12.3-x86_64-NET_EN/README.md +5 -0
- data/templates/openSUSE-12.3-x86_64-NET_EN/autoinst.xml +211 -0
- data/templates/openSUSE-12.3-x86_64-NET_EN/definition.rb +37 -0
- data/templates/openSUSE-12.3-x86_64-NET_EN/postinstall.sh +37 -0
- data/templates/openSUSE-12.3-x86_64-NET_EN/virtualbox.sh +16 -0
- data/templates/openbsd50_amd64/definition.rb +1 -1
- data/templates/openbsd50_i386/definition.rb +1 -1
- data/templates/openbsd52_amd64/definition.rb +1 -1
- data/templates/openbsd52_i386/definition.rb +3 -7
- data/templates/openbsd52_i386_snap/README +28 -0
- data/templates/openbsd52_i386_snap/definition.rb +81 -0
- data/templates/openbsd52_i386_snap/postinstall.sh +81 -0
- data/templates/openbsd53_amd64/README +28 -0
- data/templates/openbsd53_amd64/base.sh +40 -0
- data/templates/openbsd53_amd64/chef.sh +2 -0
- data/templates/openbsd53_amd64/definition.rb +91 -0
- data/templates/openbsd53_amd64/puppet.sh +3 -0
- data/templates/openbsd53_amd64/ruby.sh +14 -0
- data/templates/openbsd53_amd64/vagrant.sh +27 -0
- data/templates/openbsd53_i386/README +28 -0
- data/templates/openbsd53_i386/base.sh +40 -0
- data/templates/openbsd53_i386/chef.sh +2 -0
- data/templates/openbsd53_i386/definition.rb +91 -0
- data/templates/openbsd53_i386/puppet.sh +3 -0
- data/templates/openbsd53_i386/ruby.sh +14 -0
- data/templates/openbsd53_i386/vagrant.sh +27 -0
- data/templates/openindiana-151a7-text-x86/auto_install/ai.dtd +58 -0
- data/templates/openindiana-151a7-text-x86/auto_install/ai_manifest.xml +241 -0
- data/templates/openindiana-151a7-text-x86/auto_install/configuration.dtd +44 -0
- data/templates/openindiana-151a7-text-x86/auto_install/default.xml +121 -0
- data/templates/openindiana-151a7-text-x86/auto_install/default.xml.orig +124 -0
- data/templates/openindiana-151a7-text-x86/auto_install/sc_profiles/static_network.xml +105 -0
- data/templates/openindiana-151a7-text-x86/auto_install/software.dtd +105 -0
- data/templates/openindiana-151a7-text-x86/auto_install/target.dtd +196 -0
- data/templates/openindiana-151a7-text-x86/default.xml +121 -0
- data/templates/openindiana-151a7-text-x86/definition.rb +56 -0
- data/templates/openindiana-151a7-text-x86/postinstall.sh +103 -0
- data/templates/scientificlinux-5.7-i386/definition.rb +16 -0
- data/templates/scientificlinux-5.7-i386/ks.cfg +75 -0
- data/templates/scientificlinux-5.7-i386/postinstall.sh +39 -0
- data/templates/scientificlinux-5.7-x86_64/definition.rb +16 -0
- data/templates/scientificlinux-5.7-x86_64/ks.cfg +75 -0
- data/templates/scientificlinux-5.7-x86_64/postinstall.sh +39 -0
- data/templates/scientificlinux-5.9-i386/definition.rb +16 -0
- data/templates/scientificlinux-5.9-i386/ks.cfg +75 -0
- data/templates/scientificlinux-5.9-i386/postinstall.sh +39 -0
- data/templates/scientificlinux-5.9-x86_64/definition.rb +16 -0
- data/templates/scientificlinux-5.9-x86_64/ks.cfg +75 -0
- data/templates/scientificlinux-5.9-x86_64/postinstall.sh +39 -0
- data/templates/scientificlinux-6.4-i386-netboot/base.sh +14 -0
- data/templates/scientificlinux-6.4-i386-netboot/cfengine.sh +69 -0
- data/templates/scientificlinux-6.4-i386-netboot/chef.sh +3 -0
- data/templates/scientificlinux-6.4-i386-netboot/cleanup.sh +5 -0
- data/templates/scientificlinux-6.4-i386-netboot/definition.rb +40 -0
- data/templates/scientificlinux-6.4-i386-netboot/ks.cfg +41 -0
- data/templates/scientificlinux-6.4-i386-netboot/puppet.sh +18 -0
- data/templates/scientificlinux-6.4-i386-netboot/ruby.sh +3 -0
- data/templates/scientificlinux-6.4-i386-netboot/vagrant.sh +18 -0
- data/templates/scientificlinux-6.4-i386-netboot/virtualbox.sh +8 -0
- data/templates/scientificlinux-6.4-i386-netboot/zerodisk.sh +3 -0
- data/templates/scientificlinux-6.4-x86_64-netboot/base.sh +14 -0
- data/templates/scientificlinux-6.4-x86_64-netboot/cfengine.sh +69 -0
- data/templates/scientificlinux-6.4-x86_64-netboot/chef.sh +3 -0
- data/templates/scientificlinux-6.4-x86_64-netboot/cleanup.sh +5 -0
- data/templates/scientificlinux-6.4-x86_64-netboot/definition.rb +40 -0
- data/templates/scientificlinux-6.4-x86_64-netboot/ks.cfg +41 -0
- data/templates/scientificlinux-6.4-x86_64-netboot/puppet.sh +18 -0
- data/templates/scientificlinux-6.4-x86_64-netboot/ruby.sh +3 -0
- data/templates/scientificlinux-6.4-x86_64-netboot/vagrant.sh +18 -0
- data/templates/scientificlinux-6.4-x86_64-netboot/virtualbox.sh +8 -0
- data/templates/scientificlinux-6.4-x86_64-netboot/zerodisk.sh +3 -0
- data/templates/solaris-10-ga-x86/README.md +39 -0
- data/templates/solaris-10-ga-x86/chef.sh +10 -0
- data/templates/solaris-10-ga-x86/cleanup.sh +18 -0
- data/templates/solaris-10-ga-x86/definition.rb +39 -0
- data/templates/solaris-10-ga-x86/jumpstart/begin +28 -0
- data/templates/solaris-10-ga-x86/jumpstart/finish +35 -0
- data/templates/solaris-10-ga-x86/jumpstart/profile +41 -0
- data/templates/solaris-10-ga-x86/jumpstart/rules +96 -0
- data/templates/solaris-10-ga-x86/jumpstart/rules.ok +2 -0
- data/templates/solaris-10-ga-x86/jumpstart/sysidcfg +16 -0
- data/templates/solaris-10-ga-x86/postinstall.sh +90 -0
- data/templates/solaris-10-ga-x86/puppet.sh +4 -0
- data/templates/solaris-10-ga-x86/update-terminfo.sh +84 -0
- data/templates/ubuntu-10.04.4-server-amd64-netboot/base.sh +24 -0
- data/templates/ubuntu-10.04.4-server-amd64-netboot/chef.sh +2 -0
- data/templates/ubuntu-10.04.4-server-amd64-netboot/cleanup.sh +22 -0
- data/templates/ubuntu-10.04.4-server-amd64-netboot/definition.rb +44 -0
- data/templates/ubuntu-10.04.4-server-amd64-netboot/preseed.cfg +89 -0
- data/templates/ubuntu-10.04.4-server-amd64-netboot/puppet.sh +7 -0
- data/templates/ubuntu-10.04.4-server-amd64-netboot/ruby.sh +24 -0
- data/templates/ubuntu-10.04.4-server-amd64-netboot/vagrant.sh +14 -0
- data/templates/ubuntu-10.04.4-server-amd64-netboot/virtualbox.sh +10 -0
- data/templates/ubuntu-10.04.4-server-amd64-netboot/vmfusion.sh +7 -0
- data/templates/ubuntu-10.04.4-server-amd64-netboot/zerodisk.sh +3 -0
- data/templates/ubuntu-10.04.4-server-amd64/base.sh +24 -0
- data/templates/ubuntu-10.04.4-server-amd64/chef.sh +2 -0
- data/templates/ubuntu-10.04.4-server-amd64/cleanup.sh +22 -0
- data/templates/ubuntu-10.04.4-server-amd64/definition.rb +29 -8
- data/templates/ubuntu-10.04.4-server-amd64/puppet.sh +7 -0
- data/templates/ubuntu-10.04.4-server-amd64/ruby.sh +24 -0
- data/templates/ubuntu-10.04.4-server-amd64/vagrant.sh +14 -0
- data/templates/ubuntu-10.04.4-server-amd64/virtualbox.sh +10 -0
- data/templates/ubuntu-10.04.4-server-amd64/vmfusion.sh +7 -0
- data/templates/ubuntu-10.04.4-server-amd64/zerodisk.sh +3 -0
- data/templates/ubuntu-10.04.4-server-i386-netboot/base.sh +24 -0
- data/templates/ubuntu-10.04.4-server-i386-netboot/chef.sh +2 -0
- data/templates/ubuntu-10.04.4-server-i386-netboot/cleanup.sh +22 -0
- data/templates/ubuntu-10.04.4-server-i386-netboot/definition.rb +44 -0
- data/templates/ubuntu-10.04.4-server-i386-netboot/preseed.cfg +89 -0
- data/templates/ubuntu-10.04.4-server-i386-netboot/puppet.sh +7 -0
- data/templates/ubuntu-10.04.4-server-i386-netboot/ruby.sh +24 -0
- data/templates/ubuntu-10.04.4-server-i386-netboot/vagrant.sh +14 -0
- data/templates/ubuntu-10.04.4-server-i386-netboot/virtualbox.sh +10 -0
- data/templates/ubuntu-10.04.4-server-i386-netboot/vmfusion.sh +7 -0
- data/templates/ubuntu-10.04.4-server-i386-netboot/zerodisk.sh +3 -0
- data/templates/ubuntu-10.04.4-server-i386/base.sh +24 -0
- data/templates/ubuntu-10.04.4-server-i386/chef.sh +2 -0
- data/templates/ubuntu-10.04.4-server-i386/cleanup.sh +22 -0
- data/templates/ubuntu-10.04.4-server-i386/definition.rb +28 -7
- data/templates/ubuntu-10.04.4-server-i386/puppet.sh +7 -0
- data/templates/ubuntu-10.04.4-server-i386/ruby.sh +24 -0
- data/templates/ubuntu-10.04.4-server-i386/vagrant.sh +14 -0
- data/templates/ubuntu-10.04.4-server-i386/virtualbox.sh +10 -0
- data/templates/ubuntu-10.04.4-server-i386/vmfusion.sh +7 -0
- data/templates/ubuntu-10.04.4-server-i386/zerodisk.sh +3 -0
- data/templates/ubuntu-10.10-server-amd64/base.sh +5 -2
- data/templates/ubuntu-10.10-server-amd64/cleanup.sh +1 -1
- data/templates/ubuntu-10.10-server-amd64/definition.rb +61 -35
- data/templates/ubuntu-10.10-server-amd64/preseed.cfg +1 -1
- data/templates/ubuntu-10.10-server-amd64/ruby.sh +6 -6
- data/templates/ubuntu-10.10-server-amd64/vagrant.sh +1 -1
- data/templates/ubuntu-11.04-server-amd64/definition.rb +1 -1
- data/templates/ubuntu-12.04.1-server-amd64-packages/postinstall.sh +2 -2
- data/templates/ubuntu-12.04.1-server-amd64/postinstall.sh +2 -2
- data/templates/ubuntu-12.04.1-server-i386-packages/postinstall.sh +1 -1
- data/templates/ubuntu-12.04.1-server-i386/postinstall.sh +1 -1
- data/templates/ubuntu-12.04.2-desktop-amd64/definition.rb +36 -0
- data/templates/ubuntu-12.04.2-desktop-amd64/postinstall.sh +106 -0
- data/templates/ubuntu-12.04.2-desktop-amd64/preseed.cfg +86 -0
- data/templates/ubuntu-12.04.2-server-amd64-netboot/definition.rb +36 -0
- data/templates/{ubuntu-10.04.4-server-i386 → ubuntu-12.04.2-server-amd64-netboot}/postinstall.sh +25 -21
- data/templates/ubuntu-12.04.2-server-amd64-netboot/preseed.cfg +99 -0
- data/templates/ubuntu-12.04.2-server-amd64-packages/definition.rb +35 -0
- data/templates/{ubuntu-12.10-server-i386-packages → ubuntu-12.04.2-server-amd64-packages}/postinstall.sh +14 -11
- data/templates/ubuntu-12.04.2-server-amd64-packages/preseed.cfg +87 -0
- data/templates/ubuntu-12.04.2-server-amd64/base.sh +20 -0
- data/templates/ubuntu-12.04.2-server-amd64/chef.sh +2 -0
- data/templates/ubuntu-12.04.2-server-amd64/cleanup.sh +23 -0
- data/templates/ubuntu-12.04.2-server-amd64/definition.rb +45 -0
- data/templates/ubuntu-12.04.2-server-amd64/preseed.cfg +87 -0
- data/templates/ubuntu-12.04.2-server-amd64/puppet.sh +7 -0
- data/templates/ubuntu-12.04.2-server-amd64/ruby.sh +26 -0
- data/templates/ubuntu-12.04.2-server-amd64/vagrant.sh +12 -0
- data/templates/ubuntu-12.04.2-server-amd64/virtualbox.sh +18 -0
- data/templates/ubuntu-12.04.2-server-amd64/vmfusion.sh +7 -0
- data/templates/ubuntu-12.04.2-server-amd64/vmtools.sh +33 -0
- data/templates/ubuntu-12.04.2-server-amd64/zerodisk.sh +3 -0
- data/templates/ubuntu-12.04.2-server-i386-netboot/definition.rb +36 -0
- data/templates/{ubuntu-10.04.4-server-amd64 → ubuntu-12.04.2-server-i386-netboot}/postinstall.sh +25 -30
- data/templates/ubuntu-12.04.2-server-i386-netboot/preseed.cfg +99 -0
- data/templates/ubuntu-12.04.2-server-i386-packages/definition.rb +35 -0
- data/templates/{ubuntu-12.10-server-amd64-packages → ubuntu-12.04.2-server-i386-packages}/postinstall.sh +5 -5
- data/templates/ubuntu-12.04.2-server-i386-packages/preseed.cfg +87 -0
- data/templates/ubuntu-12.04.2-server-i386/definition.rb +35 -0
- data/templates/ubuntu-12.04.2-server-i386/postinstall.sh +96 -0
- data/templates/ubuntu-12.04.2-server-i386/preseed.cfg +87 -0
- data/templates/ubuntu-12.04.3-desktop-i386/README.md +51 -0
- data/templates/ubuntu-12.04.3-desktop-i386/apt.sh +8 -0
- data/templates/ubuntu-12.04.3-desktop-i386/build_time.sh +1 -0
- data/templates/ubuntu-12.04.3-desktop-i386/chef.sh +3 -0
- data/templates/ubuntu-12.04.3-desktop-i386/cleanup.sh +16 -0
- data/templates/ubuntu-12.04.3-desktop-i386/definition.rb +57 -0
- data/templates/ubuntu-12.04.3-desktop-i386/preseed.cfg +106 -0
- data/templates/ubuntu-12.04.3-desktop-i386/puppet.sh +4 -0
- data/templates/ubuntu-12.04.3-desktop-i386/ruby.sh +25 -0
- data/templates/ubuntu-12.04.3-desktop-i386/sudo.sh +5 -0
- data/templates/ubuntu-12.04.3-desktop-i386/vagrant.sh +6 -0
- data/templates/ubuntu-12.04.3-desktop-i386/vbox.sh +18 -0
- data/templates/ubuntu-12.04.3-server-amd64/base.sh +20 -0
- data/templates/ubuntu-12.04.3-server-amd64/chef.sh +2 -0
- data/templates/ubuntu-12.04.3-server-amd64/cleanup.sh +23 -0
- data/templates/ubuntu-12.04.3-server-amd64/definition.rb +45 -0
- data/templates/ubuntu-12.04.3-server-amd64/preseed.cfg +87 -0
- data/templates/ubuntu-12.04.3-server-amd64/puppet.sh +7 -0
- data/templates/ubuntu-12.04.3-server-amd64/ruby.sh +26 -0
- data/templates/ubuntu-12.04.3-server-amd64/vagrant.sh +12 -0
- data/templates/ubuntu-12.04.3-server-amd64/virtualbox.sh +18 -0
- data/templates/ubuntu-12.04.3-server-amd64/vmfusion.sh +7 -0
- data/templates/ubuntu-12.04.3-server-amd64/vmtools.sh +33 -0
- data/templates/ubuntu-12.04.3-server-amd64/zerodisk.sh +3 -0
- data/templates/ubuntu-12.04.3-server-i386/apt.sh +7 -0
- data/templates/ubuntu-12.04.3-server-i386/build_time.sh +1 -0
- data/templates/ubuntu-12.04.3-server-i386/chef.sh +3 -0
- data/templates/ubuntu-12.04.3-server-i386/cleanup.sh +16 -0
- data/templates/ubuntu-12.04.3-server-i386/definition.rb +45 -0
- data/templates/ubuntu-12.04.3-server-i386/preseed.cfg +61 -0
- data/templates/ubuntu-12.04.3-server-i386/puppet.sh +4 -0
- data/templates/ubuntu-12.04.3-server-i386/ruby.sh +25 -0
- data/templates/ubuntu-12.04.3-server-i386/sudo.sh +5 -0
- data/templates/ubuntu-12.04.3-server-i386/vagrant.sh +6 -0
- data/templates/ubuntu-12.04.3-server-i386/vbox.sh +18 -0
- data/templates/ubuntu-12.10-desktop-amd64/definition.rb +40 -0
- data/templates/ubuntu-12.10-desktop-amd64/postinstall.sh +106 -0
- data/templates/ubuntu-12.10-desktop-amd64/preseed.cfg +86 -0
- data/templates/ubuntu-12.10-server-amd64-packages/base.sh +20 -0
- data/templates/ubuntu-12.10-server-amd64-packages/chef.sh +49 -0
- data/templates/ubuntu-12.10-server-amd64-packages/cleanup.sh +25 -0
- data/templates/ubuntu-12.10-server-amd64-packages/definition.rb +11 -2
- data/templates/ubuntu-12.10-server-amd64-packages/puppet.sh +15 -0
- data/templates/ubuntu-12.10-server-amd64-packages/ruby.sh +7 -0
- data/templates/ubuntu-12.10-server-amd64-packages/vagrant.sh +27 -0
- data/templates/ubuntu-12.10-server-amd64-packages/virtualbox.sh +15 -0
- data/templates/ubuntu-12.10-server-amd64-packages/zerodisk.sh +11 -0
- data/templates/ubuntu-12.10-server-amd64/postinstall.sh +1 -1
- data/templates/ubuntu-12.10-server-i386-packages/base.sh +20 -0
- data/templates/ubuntu-12.10-server-i386-packages/chef.sh +49 -0
- data/templates/ubuntu-12.10-server-i386-packages/cleanup.sh +25 -0
- data/templates/ubuntu-12.10-server-i386-packages/definition.rb +11 -2
- data/templates/ubuntu-12.10-server-i386-packages/puppet.sh +15 -0
- data/templates/ubuntu-12.10-server-i386-packages/ruby.sh +7 -0
- data/templates/ubuntu-12.10-server-i386-packages/vagrant.sh +27 -0
- data/templates/ubuntu-12.10-server-i386-packages/virtualbox.sh +15 -0
- data/templates/ubuntu-12.10-server-i386-packages/zerodisk.sh +11 -0
- data/templates/ubuntu-12.10-server-i386/postinstall.sh +1 -1
- data/templates/ubuntu-13.04-server-amd64-rvm/apt.sh +8 -0
- data/templates/ubuntu-13.04-server-amd64-rvm/build_time.sh +1 -0
- data/templates/ubuntu-13.04-server-amd64-rvm/chef.sh +1 -0
- data/templates/ubuntu-13.04-server-amd64-rvm/cleanup.sh +16 -0
- data/templates/ubuntu-13.04-server-amd64-rvm/definition.rb +45 -0
- data/templates/ubuntu-13.04-server-amd64-rvm/preseed.cfg +61 -0
- data/templates/ubuntu-13.04-server-amd64-rvm/puppet.sh +1 -0
- data/templates/ubuntu-13.04-server-amd64-rvm/rvm.sh +7 -0
- data/templates/ubuntu-13.04-server-amd64-rvm/sudo.sh +5 -0
- data/templates/ubuntu-13.04-server-amd64-rvm/vagrant.sh +6 -0
- data/templates/ubuntu-13.04-server-amd64-rvm/vbox.sh +18 -0
- data/templates/ubuntu-13.04-server-amd64/apt.sh +7 -0
- data/templates/ubuntu-13.04-server-amd64/build_time.sh +1 -0
- data/templates/ubuntu-13.04-server-amd64/chef.sh +3 -0
- data/templates/ubuntu-13.04-server-amd64/cleanup.sh +16 -0
- data/templates/ubuntu-13.04-server-amd64/definition.rb +45 -0
- data/templates/ubuntu-13.04-server-amd64/preseed.cfg +61 -0
- data/templates/ubuntu-13.04-server-amd64/puppet.sh +4 -0
- data/templates/ubuntu-13.04-server-amd64/ruby.sh +25 -0
- data/templates/ubuntu-13.04-server-amd64/sudo.sh +5 -0
- data/templates/ubuntu-13.04-server-amd64/vagrant.sh +6 -0
- data/templates/ubuntu-13.04-server-amd64/vbox.sh +18 -0
- data/templates/ubuntu-8.04.4-server-amd64/preseed.cfg +7 -7
- data/templates/ubuntu-8.04.4-server-i386/preseed.cfg +7 -7
- data/templates/windows-2008R1-serverstandard-amd64/Autounattend.xml +1 -0
- data/templates/windows-2008R1-serverweb-amd64/Autounattend.xml +1 -0
- data/templates/windows-2008R1-serverweb-amd64/install-cygwin-sshd.bat +1 -1
- data/templates/windows-2008R1-serverweb-i386/Autounattend.xml +6 -2
- data/templates/windows-2008R1-serverweb-i386/install-cygwin-sshd.bat +1 -1
- data/templates/windows-2008R1-serverwebcore-amd64/Autounattend.xml +1 -0
- data/templates/windows-2008R2-amd64/Autounattend.xml +4 -3
- data/templates/windows-2008R2-amd64/win7/Autounattend.xml +5 -3
- data/templates/windows-2008R2-serverstandard-amd64-winrm/Autounattend.xml +17 -12
- data/templates/windows-2008R2-serverstandard-amd64-winrm/install-vbox.bat +0 -2
- data/templates/windows-2008R2-serverstandard-amd64/Autounattend.xml +4 -5
- data/templates/windows-2008R2-serverstandard-amd64/definition.rb +3 -3
- data/templates/windows-2008R2-serverstandard-amd64/install-cygwin-sshd.bat +3 -2
- data/templates/windows-2008R2-serverweb-amd64/Autounattend.xml +4 -1
- data/templates/windows-2008R2-serverweb-amd64/install-cygwin-sshd.bat +1 -1
- data/templates/windows-2012-serverstandard-amd64/Autounattend.xml +235 -0
- data/templates/windows-2012-serverstandard-amd64/README.md +68 -0
- data/templates/windows-2012-serverstandard-amd64/definition.rb +29 -0
- data/templates/windows-2012-serverstandard-amd64/install-chef.bat +37 -0
- data/templates/windows-2012-serverstandard-amd64/install-puppet.bat +37 -0
- data/templates/windows-2012-serverstandard-amd64/install-vbox.bat +4 -0
- data/templates/windows-2012-serverstandard-amd64/oracle-cert.cer +0 -0
- data/templates/windows-2012R2-serverdatacenter-amd64/Autounattend.xml +235 -0
- data/templates/windows-2012R2-serverdatacenter-amd64/README.md +68 -0
- data/templates/windows-2012R2-serverdatacenter-amd64/definition.rb +33 -0
- data/templates/windows-2012R2-serverdatacenter-amd64/install-chef.bat +37 -0
- data/templates/windows-2012R2-serverdatacenter-amd64/install-puppet.bat +37 -0
- data/templates/windows-2012R2-serverdatacenter-amd64/install-vbox.bat +4 -0
- data/templates/windows-2012R2-serverdatacenter-amd64/oracle-cert.cer +0 -0
- data/templates/windows-7-enterprise-amd64-winrm/Autounattend.xml +17 -10
- data/templates/windows-7-enterprise-amd64/Autounattend.xml +4 -3
- data/templates/windows-7-enterprise-amd64/install-cygwin-sshd.bat +1 -1
- data/templates/windows-7-enterprise-i386/Autounattend.xml +4 -3
- data/templates/windows-7-enterprise-i386/install-cygwin-sshd.bat +1 -1
- data/templates/windows-7-premium-amd64/Autounattend.xml +4 -4
- data/templates/windows-7-professional-amd64/Autounattend.xml +4 -4
- data/templates/windows-7-professional-amd64/install-cygwin-sshd.bat +1 -1
- data/templates/windows-7-professional-amd64/postinstall.sh +2 -2
- data/templates/windows-7-ultimate-amd64/Autounattend.xml +4 -4
- data/templates/windows-7-ultimate-amd64/install-cygwin-sshd.bat +1 -1
- data/templates/windows-7sp1-ultimate-amd64/Autounattend.xml +4 -3
- data/templates/windows-7sp1-ultimate-amd64/install-cygwin-sshd.bat +2 -2
- data/test/build_realtest.rb +15 -5
- data/test/environment_test.rb +2 -1
- data/veewee.gemspec +6 -4
- metadata +689 -87
- data/doc/README-changes.txt +0 -20
- data/doc/TODO +0 -60
- data/doc/definition.md +0 -83
- data/doc/install.md +0 -16
- data/doc/running.md +0 -83
- data/doc/template.md +0 -153
- data/lib/veewee/provider/vmfusion/box/export_ova.rb +0 -49
- data/templates/Debian-5.0.10-amd64-netboot/postinstall.sh +0 -60
- data/templates/Debian-5.0.10-i386-netboot/postinstall.sh +0 -60
- data/templates/Debian-5.0.8-amd64-netboot/postinstall.sh +0 -60
- data/templates/Debian-5.0.8-i386-netboot/postinstall.sh +0 -60
- data/templates/Debian-7.0-b4-amd64-netboot/puppet.sh +0 -2
- data/templates/Debian-7.0-b4-i386-netboot/puppet.sh +0 -2
- data/templates/Fedora-18-i386/postinstall.sh +0 -40
- data/templates/Fedora-18-x86_64/postinstall.sh +0 -43
- data/templates/archlinux-i386-netboot/aif.cfg +0 -28
- data/templates/archlinux-i386-netboot/definition.rb +0 -26
- data/templates/archlinux-i386-netboot/postinstall.sh +0 -75
- data/templates/archlinux-i386-netboot/postinstall2.sh +0 -30
- data/templates/archlinux-x86_64-netboot/aif.cfg +0 -28
- data/templates/archlinux-x86_64-netboot/definition.rb +0 -26
- data/templates/archlinux-x86_64-netboot/postinstall.sh +0 -75
- data/templates/archlinux-x86_64-netboot/postinstall2.sh +0 -30
- data/templates/archlinux-x86_64/aif.cfg +0 -33
- data/templates/archlinux-x86_64/postinstall.sh +0 -90
- data/templates/archlinux-x86_64/postinstall2.sh +0 -38
- data/templates/gentoo-latest-i386-experimental/definition.rb +0 -45
- data/templates/gentoo-latest-i386-experimental/postinstall.sh +0 -184
- data/templates/gentoo-latest-x86_64-experimental/definition.rb +0 -45
- data/templates/gentoo-latest-x86_64-experimental/postinstall.sh +0 -214
- data/validation/features/steps/ssh_steps.old +0 -170
- data/validation/features/steps/veewee_steps.rb +0 -27
- data/validation/support/env.rb +0 -1
- data/validation/veewee-windows.feature +0 -34
- data/validation/veewee.feature +0 -45
@@ -15,11 +15,15 @@ module Veewee
|
|
15
15
|
end
|
16
16
|
|
17
17
|
def exists_volume?
|
18
|
-
|
18
|
+
!@connection.list_volumes(:name => @volume_name).first.empty?
|
19
19
|
end
|
20
20
|
|
21
21
|
def exists_vm?
|
22
|
-
|
22
|
+
begin
|
23
|
+
@connection.list_domains(:name => name)
|
24
|
+
rescue Libvirt::RetrieveError
|
25
|
+
false
|
26
|
+
end
|
23
27
|
end
|
24
28
|
|
25
29
|
end # End Module
|
@@ -12,38 +12,43 @@ module Veewee
|
|
12
12
|
Fog.credentials[:libvirt_uri] ||= "qemu:///system"
|
13
13
|
|
14
14
|
env.logger.info "Setting libvirt IP Command if not already defined in .fog config file"
|
15
|
-
Fog.credentials[:libvirt_ip_command] ||= "arp -an |grep $mac|cut -d '(' -f 2 | cut -d ')' -f 1"
|
15
|
+
Fog.credentials[:libvirt_ip_command] ||= "arp -an |grep -i $mac|cut -d '(' -f 2 | cut -d ')' -f 1"
|
16
16
|
|
17
|
+
env.logger.info "Opening a libvirt connection using fog.io"
|
17
18
|
begin
|
18
|
-
env.logger.info "Opening a libvirt connection using fog.io"
|
19
|
-
conn = Fog::Compute[:libvirt]
|
20
|
-
env.logger.info "Libvirt connection established"
|
21
19
|
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
conn.pools.any? or raise Veewee::Error, "You need at least one (active) storage pool defined in #{Fog.credentials[:libvirt_uri]}."
|
20
|
+
unless gems_available?(["ruby-libvirt"])
|
21
|
+
raise Veewee::Error, "Please install ruby-libvirt gem first"
|
22
|
+
end
|
23
|
+
end
|
27
24
|
|
28
|
-
|
29
|
-
conn.networks.any? or raise Veewee::Error,"You need at least one (active) network defined. This needs to be available if you connect to qemu:///system"
|
25
|
+
begin
|
30
26
|
|
31
|
-
|
32
|
-
|
33
|
-
env.logger.info "Checking libvirt version"
|
34
|
-
if conn.client.libversion < 8003
|
35
|
-
raise Veewee::Error, "You need at least libvirt version 0.8.3 or higher "
|
36
|
-
end
|
27
|
+
env.logger.info "Opening a libvirt connection using fog.io"
|
28
|
+
conn = Fog::Compute[:libvirt]
|
37
29
|
rescue Exception => ex
|
38
30
|
raise Veewee::Error, "There was a problem opening a connection to libvirt: #{ex}"
|
39
31
|
end
|
32
|
+
env.logger.info "Libvirt connection established"
|
40
33
|
|
41
|
-
|
42
|
-
|
43
|
-
end
|
34
|
+
env.logger.debug "Found capabilities:"
|
35
|
+
env.logger.debug "#{conn.client.capabilities}"
|
44
36
|
|
45
|
-
|
37
|
+
env.logger.info "Checking libvirt version"
|
38
|
+
# http://www.libvirt.org/html/libvirt-libvirt.html#virGetVersion
|
39
|
+
# format major * 1,000,000 + minor * 1,000 + release
|
40
|
+
conn.client.libversion > 8003 or raise Veewee::Error, "You need at least libvirt version 0.8.3 or higher "
|
41
|
+
|
42
|
+
env.logger.info "Checking available networks"
|
43
|
+
conn.networks.any? or raise Veewee::Error, "You need at least one (active) network defined in #{Fog.credentials[:libvirt_uri]}."
|
46
44
|
|
45
|
+
env.logger.info "Checking available storagepools"
|
46
|
+
conn.pools.any? or raise Veewee::Error, "You need at least one (active) storage pool defined in #{Fog.credentials[:libvirt_uri]}."
|
47
|
+
|
48
|
+
env.logger.info "Checking availability of the arp utility"
|
49
|
+
shell_exec("arp").status.zero? or raise Veewee::Error, "Could not execute the arp command. This is required to find the IP address of the VM"
|
50
|
+
|
51
|
+
end
|
47
52
|
|
48
53
|
def build(definition_name, box_name, options)
|
49
54
|
|
@@ -0,0 +1,45 @@
|
|
1
|
+
# -*- mode: ruby -*-
|
2
|
+
# vi: set ft=ruby :
|
3
|
+
|
4
|
+
Vagrant.configure("2") do |config|
|
5
|
+
|
6
|
+
# Example configuration of new VM..
|
7
|
+
#
|
8
|
+
#config.vm.define :test_vm do |test_vm|
|
9
|
+
# Box name
|
10
|
+
#test_vm.vm.box = "centos64"
|
11
|
+
|
12
|
+
# Interfaces for VM
|
13
|
+
#
|
14
|
+
# Hostonly network is not supported in this version of provider. Bridged
|
15
|
+
# interface with network id specified can be created.
|
16
|
+
#test_vm.vm.network :bridged, :bridge => "default", :adapter => 1
|
17
|
+
#end
|
18
|
+
|
19
|
+
# Options for libvirt vagrant provider.
|
20
|
+
config.vm.provider :libvirt do |libvirt|
|
21
|
+
|
22
|
+
# A hypervisor name to access. Different drivers can be specified, but
|
23
|
+
# this version of provider creates KVM machines only. Some examples of
|
24
|
+
# drivers are qemu (KVM/qemu), xen (Xen hypervisor), lxc (Linux Containers),
|
25
|
+
# esx (VMware ESX), vmwarews (VMware Workstation) and more. Refer to
|
26
|
+
# documentation for available drivers (http://libvirt.org/drivers.html).
|
27
|
+
#libvirt.driver = "qemu"
|
28
|
+
|
29
|
+
# The name of the server, where libvirtd is running.
|
30
|
+
#libvirt.host = "localhost"
|
31
|
+
|
32
|
+
# If use ssh tunnel to connect to Libvirt.
|
33
|
+
#libvirt.connect_via_ssh = false
|
34
|
+
|
35
|
+
# The username and password to access Libvirt. Password is not used when
|
36
|
+
# connecting via ssh.
|
37
|
+
#libvirt.username = "root"
|
38
|
+
#libvirt.password = "secret"
|
39
|
+
|
40
|
+
# Libvirt storage pool name, where box image and instance snapshots will
|
41
|
+
# be stored.
|
42
|
+
#libvirt.storage_pool_name = "default"
|
43
|
+
end
|
44
|
+
end
|
45
|
+
|
@@ -8,6 +8,7 @@ require 'veewee/provider/parallels/box/helper/console_type'
|
|
8
8
|
require 'veewee/provider/parallels/box/helper/buildinfo'
|
9
9
|
|
10
10
|
require 'veewee/provider/parallels/box/build'
|
11
|
+
require 'veewee/provider/parallels/box/export'
|
11
12
|
require 'veewee/provider/parallels/box/up'
|
12
13
|
require 'veewee/provider/parallels/box/create'
|
13
14
|
require 'veewee/provider/parallels/box/poweroff'
|
@@ -0,0 +1,184 @@
|
|
1
|
+
require 'pathname'
|
2
|
+
require 'erb'
|
3
|
+
module Veewee
|
4
|
+
module Provider
|
5
|
+
module Parallels
|
6
|
+
module BoxCommand
|
7
|
+
|
8
|
+
class ErbBinding < OpenStruct
|
9
|
+
def get_binding
|
10
|
+
return binding()
|
11
|
+
end
|
12
|
+
end
|
13
|
+
|
14
|
+
def export_vagrant(options)
|
15
|
+
# For now, we just assume prlctl is in the path. If not...it'll fail.
|
16
|
+
@prlcmd = "prlctl"
|
17
|
+
@prldisktool = "prl_disk_tool"
|
18
|
+
|
19
|
+
# Check if box already exists
|
20
|
+
unless self.exists?
|
21
|
+
ui.info "#{name} is not found, maybe you need to build it first?"
|
22
|
+
exit
|
23
|
+
end
|
24
|
+
|
25
|
+
if File.exists?("#{name}.box")
|
26
|
+
if options["force"]
|
27
|
+
env.logger.debug("#{name}.box exists, but --force was provided")
|
28
|
+
env.logger.debug("removing #{name}.box first")
|
29
|
+
FileUtils.rm("#{name}.box")
|
30
|
+
env.logger.debug("#{name}.box removed")
|
31
|
+
else
|
32
|
+
raise Veewee::Error, "export file #{name}.box already exists. Use --force option to overwrite."
|
33
|
+
end
|
34
|
+
end
|
35
|
+
|
36
|
+
|
37
|
+
# We need to shutdown first
|
38
|
+
if self.running?
|
39
|
+
ui.info "Vagrant requires the box to be shutdown, before it can export"
|
40
|
+
ui.info "Sudo also needs to work for user #{definition.ssh_user}"
|
41
|
+
ui.info "Performing a clean shutdown now."
|
42
|
+
|
43
|
+
self.halt
|
44
|
+
|
45
|
+
#Wait for state poweroff
|
46
|
+
while (self.running?) do
|
47
|
+
ui.info ".",{:new_line => false}
|
48
|
+
sleep 1
|
49
|
+
end
|
50
|
+
ui.info ""
|
51
|
+
ui.info "Machine #{name} is powered off cleanly"
|
52
|
+
end
|
53
|
+
|
54
|
+
#Vagrant requires a relative path for output of boxes
|
55
|
+
|
56
|
+
#4.0.x. not using boxes as a subdir
|
57
|
+
boxdir=Pathname.new(Dir.pwd)
|
58
|
+
|
59
|
+
full_path=File.join(boxdir,name+".box")
|
60
|
+
path1=Pathname.new(full_path)
|
61
|
+
path2=Pathname.new(Dir.pwd)
|
62
|
+
box_path=File.expand_path(path1.relative_path_from(path2).to_s)
|
63
|
+
|
64
|
+
if File.exists?("#{box_path}")
|
65
|
+
raise Veewee::Error, "box #{name}.box already exists"
|
66
|
+
end
|
67
|
+
|
68
|
+
# VMWare Fusion does this to the real machine, so we will too.
|
69
|
+
optimize_disk
|
70
|
+
|
71
|
+
# Create temp directory
|
72
|
+
current_dir = FileUtils.pwd
|
73
|
+
ui.info "Creating a temporary directory for export"
|
74
|
+
tmp_dir = Dir.mktmpdir
|
75
|
+
env.logger.debug("Create temporary directory for export #{tmp_dir}")
|
76
|
+
|
77
|
+
begin
|
78
|
+
|
79
|
+
ui.info "Adding additional files"
|
80
|
+
|
81
|
+
# Handling the Vagrantfile
|
82
|
+
if options["vagrantfile"].to_s == ""
|
83
|
+
|
84
|
+
# Fetching mac address
|
85
|
+
|
86
|
+
data = {
|
87
|
+
:macaddress => get_mac_address
|
88
|
+
}
|
89
|
+
|
90
|
+
# Prepare the vagrant erb
|
91
|
+
vars = ErbBinding.new(data)
|
92
|
+
template_path = File.join(File.dirname(__FILE__),'..','..','..','templates',"Vagrantfile.erb")
|
93
|
+
template = File.open(template_path).readlines.join
|
94
|
+
erb = ERB.new(template)
|
95
|
+
vars_binding = vars.send(:get_binding)
|
96
|
+
result = erb.result(vars_binding)
|
97
|
+
ui.info("Creating Vagrantfile")
|
98
|
+
vagrant_path = File.join(tmp_dir,'Vagrantfile')
|
99
|
+
env.logger.debug("Path: #{vagrant_path}")
|
100
|
+
env.logger.debug(result)
|
101
|
+
File.open(vagrant_path,'w') {|f| f.write(result) }
|
102
|
+
else
|
103
|
+
f = options["vagrantfile"]
|
104
|
+
env.logger.debug("Including vagrantfile: #{f}")
|
105
|
+
FileUtils.cp(f,File.join(tmp_dir,"Vagrantfile"))
|
106
|
+
end
|
107
|
+
|
108
|
+
#Inject a metadata.json file
|
109
|
+
ui.info("Adding metadata.json file for Parallels Desktop provider")
|
110
|
+
File.open(File.join(tmp_dir, 'metadata.json'), 'w') {|f| f.write(template_metadatafile()) }
|
111
|
+
|
112
|
+
ui.info "Exporting the box"
|
113
|
+
tmp_dest = File.join(tmp_dir, "box.pvm")
|
114
|
+
|
115
|
+
clone_command = "#{@prlcmd} clone #{name} --name #{name}-veewee --template --location #{tmp_dir}"
|
116
|
+
shell_exec clone_command
|
117
|
+
env.logger.debug("Clone #{name} to #{name}-veewee, location #{tmp_dir}")
|
118
|
+
|
119
|
+
# Previous command causes the VM to get registered, so unregister it to keep user's VM list clean
|
120
|
+
unregister_command = "#{@prlcmd} unregister #{name}-veewee"
|
121
|
+
shell_exec unregister_command
|
122
|
+
env.logger.debug "Unregister #{name}-veewee after clone"
|
123
|
+
|
124
|
+
FileUtils.move File.join(tmp_dir, "#{name}-veewee.pvm"), tmp_dest
|
125
|
+
env.logger.debug("Rename Parallels Desktop-created file to what we expect")
|
126
|
+
|
127
|
+
ui.info "Packaging the box"
|
128
|
+
FileUtils.cd(tmp_dir)
|
129
|
+
command_box_path = box_path
|
130
|
+
# Gzip, for extra smallness
|
131
|
+
command = "tar -cvzf '#{command_box_path}' ."
|
132
|
+
env.logger.debug(command)
|
133
|
+
shell_exec (command)
|
134
|
+
|
135
|
+
rescue Errno::ENOENT => ex
|
136
|
+
raise Veewee::Error, "#{ex}"
|
137
|
+
rescue Error => ex
|
138
|
+
raise Veewee::Error, "Packaging of the box failed:\n+#{ex}"
|
139
|
+
ensure
|
140
|
+
# Remove temporary directory
|
141
|
+
ui.info "Cleaning up temporary directory"
|
142
|
+
env.logger.debug("Removing temporary dir #{tmp_dir}")
|
143
|
+
FileUtils.rm_rf(tmp_dir)
|
144
|
+
|
145
|
+
FileUtils.cd(current_dir)
|
146
|
+
end
|
147
|
+
ui.info ""
|
148
|
+
|
149
|
+
ui.info "To import it into vagrant type:"
|
150
|
+
ui.info "vagrant box add '#{name}' '#{box_path}'"
|
151
|
+
ui.info ""
|
152
|
+
ui.info "To use it:"
|
153
|
+
ui.info "vagrant init '#{name}'"
|
154
|
+
ui.info "vagrant up --provider=parallels"
|
155
|
+
ui.info "vagrant ssh"
|
156
|
+
end
|
157
|
+
|
158
|
+
# Inspired by vagrant-parallels
|
159
|
+
def read_settings
|
160
|
+
command = "#{@prlcmd} list --info --json \"#{self.name}\""
|
161
|
+
r = shell_exec(command).stdout
|
162
|
+
JSON.parse (r.gsub("/\s+/", "").gsub(/^(INFO)?\[/, '').gsub(/\]$/, ''))
|
163
|
+
end
|
164
|
+
|
165
|
+
def get_mac_address
|
166
|
+
mac = read_settings.fetch("Hardware").fetch("net0").fetch("mac")
|
167
|
+
env.logger.debug("mac address: #{mac}")
|
168
|
+
return mac
|
169
|
+
end
|
170
|
+
|
171
|
+
def template_metadatafile
|
172
|
+
%Q({"provider": "parallels"}\n)
|
173
|
+
end
|
174
|
+
|
175
|
+
def optimize_disk
|
176
|
+
env.ui.info "Optimizing Disk"
|
177
|
+
path_to_hdd = File.join read_settings.fetch("Home"), "harddisk.hdd"
|
178
|
+
optimize_command = "#{@prldisktool} compact --buildmap --hdd #{path_to_hdd}"
|
179
|
+
shell_exec optimize_command
|
180
|
+
end
|
181
|
+
end #Module
|
182
|
+
end #Module
|
183
|
+
end #Module
|
184
|
+
end #Module
|
@@ -15,12 +15,14 @@ module Veewee
|
|
15
15
|
def guest_iso_path
|
16
16
|
# So we begin by transferring the ISO file of the vmware tools
|
17
17
|
|
18
|
+
parallels_base_path = "/Applications/Parallels Desktop.app/Contents/Resources/Tools"
|
19
|
+
|
18
20
|
# Set default
|
19
|
-
iso_image="/
|
20
|
-
iso_image="/
|
21
|
-
iso_image="/
|
22
|
-
iso_image="/
|
23
|
-
iso_image="/
|
21
|
+
iso_image="#{parallels_base_path}/prl-tools-lin.iso"
|
22
|
+
iso_image="#{parallels_base_path}/prl-tools-mac.iso" if definition.os_type_id=~/^Darwin/
|
23
|
+
iso_image="#{parallels_base_path}/prl-tools-win.iso" if definition.os_type_id=~/^Win/
|
24
|
+
iso_image="#{parallels_base_path}/prl-tools-other.iso" if definition.os_type_id=~/^Free/
|
25
|
+
iso_image="#{parallels_base_path}/prl-tools-other.iso" if definition.os_type_id=~/^Solaris/
|
24
26
|
return iso_image
|
25
27
|
|
26
28
|
end
|
@@ -47,9 +47,10 @@ module Veewee
|
|
47
47
|
def shift(sequence)
|
48
48
|
seq=Array.new
|
49
49
|
seq << press_key('SHIFT_LEFT')
|
50
|
-
|
51
|
-
|
52
|
-
|
50
|
+
|
51
|
+
# We never apply SHIFT_LEFT to more than one logical character at a
|
52
|
+
# time
|
53
|
+
seq << sequence
|
53
54
|
return seq
|
54
55
|
end
|
55
56
|
|
@@ -138,8 +139,12 @@ module Veewee
|
|
138
139
|
if thestring.start_with?(key)
|
139
140
|
#take thestring
|
140
141
|
#check if it starts with a special key + pop special string
|
141
|
-
|
142
|
-
|
142
|
+
if key=="<Wait>"
|
143
|
+
sleep 1
|
144
|
+
else
|
145
|
+
special[key].each do |c|
|
146
|
+
keycodes.concat("#{c['code']} ")
|
147
|
+
end
|
143
148
|
end
|
144
149
|
thestring=thestring.slice(key.length,thestring.length-key.length)
|
145
150
|
nospecial=false;
|
@@ -149,8 +154,9 @@ module Veewee
|
|
149
154
|
if nospecial
|
150
155
|
code=k[thestring.slice(0,1)]
|
151
156
|
if !code.nil?
|
157
|
+
code=[code] if code.class==String
|
152
158
|
code.each do |c|
|
153
|
-
if(c == 'SHIFT_LEFT')
|
159
|
+
if(c == 'SHIFT_LEFT')
|
154
160
|
keycodes.concat("#{c}\#")
|
155
161
|
else
|
156
162
|
keycodes.concat("#{c} ")
|
@@ -22,6 +22,8 @@ require 'veewee/provider/virtualbox/box/helper/buildinfo'
|
|
22
22
|
require 'veewee/provider/virtualbox/box/helper/console_type'
|
23
23
|
require 'veewee/provider/virtualbox/box/up'
|
24
24
|
|
25
|
+
require 'whichr'
|
26
|
+
|
25
27
|
module Veewee
|
26
28
|
module Provider
|
27
29
|
module Virtualbox
|
@@ -30,15 +32,27 @@ module Veewee
|
|
30
32
|
include ::Veewee::Provider::Virtualbox::BoxCommand
|
31
33
|
|
32
34
|
def initialize(name,env)
|
35
|
+
@vboxcmd = self.class.determine_vboxcmd
|
36
|
+
super(name, env)
|
37
|
+
end
|
33
38
|
|
34
|
-
|
35
|
-
|
36
|
-
|
39
|
+
def self.windows_vboxcmd
|
40
|
+
# based on Vagrant/plugins/providers/virtualbox/driver/base.rb
|
41
|
+
if OS.windows? && ENV.has_key?("VBOX_INSTALL_PATH")
|
42
|
+
ENV["VBOX_INSTALL_PATH"].split(File::PATH_SEPARATOR).each do |path|
|
43
|
+
vboxmanage = File.join(path,"VBoxManage.exe")
|
44
|
+
return "\"#{vboxmanage}\"" if File.file?(vboxmanage)
|
45
|
+
end
|
46
|
+
end
|
47
|
+
nil
|
48
|
+
end
|
37
49
|
|
50
|
+
def self.default_vboxcmd
|
51
|
+
"VBoxManage"
|
38
52
|
end
|
39
53
|
|
40
|
-
def determine_vboxcmd
|
41
|
-
|
54
|
+
def self.determine_vboxcmd
|
55
|
+
@command ||= windows_vboxcmd || default_vboxcmd
|
42
56
|
end
|
43
57
|
|
44
58
|
|
@@ -62,7 +62,7 @@ module Veewee
|
|
62
62
|
end
|
63
63
|
self.add_winrm_nat_mapping
|
64
64
|
else
|
65
|
-
guessed_port=
|
65
|
+
guessed_port=guess_free_ssh_port(definition.ssh_host_port.to_i,definition.ssh_host_port.to_i+40).to_s
|
66
66
|
if guessed_port.to_s!=definition.ssh_host_port
|
67
67
|
env.ui.warn "Changing ssh port from #{definition.ssh_host_port} to #{guessed_port}"
|
68
68
|
definition.ssh_host_port=guessed_port.to_s
|
@@ -1,9 +1,16 @@
|
|
1
1
|
require 'pathname'
|
2
|
+
require 'erb'
|
2
3
|
module Veewee
|
3
4
|
module Provider
|
4
5
|
module Virtualbox
|
5
6
|
module BoxCommand
|
6
7
|
|
8
|
+
class ErbBinding < OpenStruct
|
9
|
+
def get_binding
|
10
|
+
return binding()
|
11
|
+
end
|
12
|
+
end
|
13
|
+
|
7
14
|
# Shellutil.execute("vagrant package --base #{vmname} --include /tmp/Vagrantfile --output /tmp/#{vmname}.box", {:progress => "on"})
|
8
15
|
|
9
16
|
def export_vagrant(options)
|
@@ -51,24 +58,91 @@ module Veewee
|
|
51
58
|
full_path=File.join(boxdir,name+".box")
|
52
59
|
path1=Pathname.new(full_path)
|
53
60
|
path2=Pathname.new(Dir.pwd)
|
54
|
-
box_path=path1.relative_path_from(path2).to_s
|
61
|
+
box_path=File.expand_path(path1.relative_path_from(path2).to_s)
|
55
62
|
|
56
63
|
if File.exists?("#{box_path}")
|
57
64
|
raise Veewee::Error, "box #{name}.box already exists"
|
58
65
|
end
|
59
66
|
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
|
67
|
+
# Create temp directory
|
68
|
+
current_dir = FileUtils.pwd
|
69
|
+
ui.info "Creating a temporary directory for export"
|
70
|
+
tmp_dir = Dir.mktmpdir
|
71
|
+
env.logger.debug("Create temporary directory for export #{tmp_dir}")
|
72
|
+
|
73
|
+
begin
|
74
|
+
|
75
|
+
ui.info "Adding additional files"
|
76
|
+
|
77
|
+
# Handling the Vagrantfile
|
78
|
+
if options["vagrantfile"].to_s == ""
|
79
|
+
|
80
|
+
# Fetching mac address
|
81
|
+
|
82
|
+
data = {
|
83
|
+
:macaddress => get_mac_address
|
84
|
+
}
|
85
|
+
|
86
|
+
# Prepare the vagrant erb
|
87
|
+
vars = ErbBinding.new(data)
|
88
|
+
template_path = File.join(File.dirname(__FILE__),'..','..','..','templates',"Vagrantfile.erb")
|
89
|
+
template = File.open(template_path).readlines.join
|
90
|
+
erb = ERB.new(template)
|
91
|
+
vars_binding = vars.send(:get_binding)
|
92
|
+
result = erb.result(vars_binding)
|
93
|
+
ui.info("Creating Vagrantfile")
|
94
|
+
vagrant_path = File.join(tmp_dir,'Vagrantfile')
|
95
|
+
env.logger.debug("Path: #{vagrant_path}")
|
96
|
+
env.logger.debug(result)
|
97
|
+
File.open(vagrant_path,'w') {|f| f.write(result) }
|
98
|
+
else
|
99
|
+
f = options["vagrantfile"]
|
100
|
+
env.logger.debug("Including vagrantfile: #{f}")
|
101
|
+
FileUtils.cp(f,File.join(tmp_dir,"Vagrantfile"))
|
102
|
+
end
|
103
|
+
|
104
|
+
# Handling other includes
|
105
|
+
unless options["include"].nil?
|
106
|
+
options["include"].each do |f|
|
107
|
+
env.logger.debug("Including file: #{f}")
|
108
|
+
FileUtils.cp(f,File.join(tmp_dir,f))
|
109
|
+
end
|
110
|
+
end
|
111
|
+
|
112
|
+
ui.info "Exporting the box"
|
113
|
+
command = "#{@vboxcmd} export #{name} --output #{File.join(tmp_dir,'box.ovf')}"
|
114
|
+
env.logger.debug("Command: #{command}")
|
115
|
+
shell_exec(command, {:mute => false})
|
116
|
+
|
117
|
+
ui.info "Packaging the box"
|
118
|
+
FileUtils.cd(tmp_dir)
|
119
|
+
command_box_path = box_path
|
120
|
+
is_windows = (RbConfig::CONFIG['host_os'] =~ /mswin|mingw|cygwin/)
|
121
|
+
if is_windows
|
122
|
+
command_box_path = command_box_path.gsub(/^([A-Z])\:\/(.*)$/i, '/\1/\2')
|
123
|
+
end
|
124
|
+
command = "tar -cvf '#{command_box_path}' ."
|
125
|
+
env.logger.debug(command)
|
126
|
+
shell_exec (command)
|
127
|
+
|
128
|
+
rescue Errno::ENOENT => ex
|
129
|
+
raise Veewee::Error, "#{ex}"
|
130
|
+
rescue Error => ex
|
131
|
+
raise Veewee::Error, "Packaging of the box failed:\n+#{ex}"
|
132
|
+
ensure
|
133
|
+
# Remove temporary directory
|
134
|
+
ui.info "Cleaning up temporary directory"
|
135
|
+
env.logger.debug("Removing temporary dir #{tmp_dir}")
|
136
|
+
FileUtils.rm_rf(tmp_dir)
|
137
|
+
|
138
|
+
FileUtils.cd(current_dir)
|
139
|
+
end
|
66
140
|
ui.info ""
|
67
141
|
|
68
142
|
#add_ssh_nat_mapping back!!!!
|
69
143
|
#vagrant removes the mapping
|
70
144
|
#we need to restore it in order to be able to login again
|
71
|
-
self.add_ssh_nat_mapping
|
145
|
+
#self.add_ssh_nat_mapping
|
72
146
|
|
73
147
|
ui.info "To import it into vagrant type:"
|
74
148
|
ui.info "vagrant box add '#{name}' '#{box_path}'"
|
@@ -79,6 +153,14 @@ module Veewee
|
|
79
153
|
ui.info "vagrant ssh"
|
80
154
|
end
|
81
155
|
|
156
|
+
def get_mac_address
|
157
|
+
command = "#{@vboxcmd} showvminfo --details --machinereadable \"#{self.name}\""
|
158
|
+
shell_results = shell_exec("#{command}")
|
159
|
+
mac = shell_results.stdout.split(/\n/).grep(/^macaddress1/)[0].split('=')[1].split('"')[1]
|
160
|
+
env.logger.debug("mac address: #{mac}")
|
161
|
+
return mac
|
162
|
+
end
|
163
|
+
|
82
164
|
end #Module
|
83
165
|
end #Module
|
84
166
|
end #Module
|