HeSYINUvSBZfxqA-veewee 0.2.0.2 → 0.203.1
Sign up to get free protection for your applications and to get access to all the features.
- data/README.md +53 -26
- data/Rakefile +41 -36
- data/lib/veewee.rb +2 -0
- data/lib/veewee/command.rb +1 -59
- data/lib/veewee/command/basebox.rb +63 -0
- data/lib/veewee/command/basebox_build.rb +32 -0
- data/lib/veewee/command/basebox_define.rb +28 -0
- data/lib/veewee/command/basebox_destroy.rb +22 -0
- data/lib/veewee/command/basebox_export.rb +22 -0
- data/lib/veewee/command/basebox_list.rb +23 -0
- data/lib/veewee/command/basebox_ostypes.rb +23 -0
- data/lib/veewee/command/basebox_templates.rb +23 -0
- data/lib/veewee/command/basebox_undefine.rb +22 -0
- data/lib/veewee/command/basebox_validate.rb +26 -0
- data/lib/veewee/config.rb +1 -2
- data/lib/veewee/export.rb +2 -2
- data/lib/veewee/scancode.rb +1 -1
- data/lib/veewee/session.rb +373 -249
- data/lib/veewee/transaction.rb +2 -11
- data/lib/veewee/version.rb +1 -1
- data/templates/CentOS-4.8-i386/definition.rb +1 -1
- data/templates/CentOS-4.8-i386/postinstall.sh +1 -1
- data/templates/CentOS-5.5-x86_64-netboot/definition.rb +16 -0
- data/templates/CentOS-5.5-x86_64-netboot/ks.cfg +46 -0
- data/templates/CentOS-5.5-x86_64-netboot/postinstall.sh +60 -0
- data/templates/CentOS-5.6-i386-netboot/definition.rb +1 -1
- data/templates/CentOS-5.6-i386-netboot/ks.cfg +2 -2
- data/templates/CentOS-5.6-i386-netboot/postinstall.sh +1 -1
- data/templates/CentOS-5.6-i386/postinstall.sh +1 -1
- data/templates/CentOS-5.6-x86_64-netboot/definition.rb +1 -1
- data/templates/CentOS-5.6-x86_64-netboot/ks.cfg +1 -1
- data/templates/CentOS-5.6-x86_64-netboot/postinstall.sh +3 -2
- data/templates/CentOS-5.7-i386-netboot/definition.rb +16 -0
- data/templates/CentOS-5.7-i386-netboot/ks.cfg +45 -0
- data/templates/CentOS-5.7-i386-netboot/postinstall.sh +53 -0
- data/templates/CentOS-5.7-x86_64-netboot/definition.rb +16 -0
- data/templates/CentOS-5.7-x86_64-netboot/ks.cfg +45 -0
- data/templates/CentOS-5.7-x86_64-netboot/postinstall.sh +60 -0
- data/templates/CentOS-6.0-i386-netboot/ks.cfg +1 -1
- data/templates/CentOS-6.0-i386-netboot/postinstall.sh +1 -1
- data/templates/CentOS-6.0-i386/postinstall.sh +2 -2
- data/templates/CentOS-6.0-x86_64-minimal/definition.rb +17 -0
- data/templates/CentOS-6.0-x86_64-minimal/ks.cfg +37 -0
- data/templates/CentOS-6.0-x86_64-minimal/postinstall.sh +58 -0
- data/templates/CentOS-6.0-x86_64-netboot/ks.cfg +1 -1
- data/templates/CentOS-6.0-x86_64-netboot/postinstall.sh +1 -1
- data/templates/CentOS-6.0-x86_64/postinstall.sh +2 -2
- data/templates/CentOS-6.1-x86_64-minimal/definition.rb +15 -0
- data/templates/CentOS-6.1-x86_64-minimal/ks.cfg +37 -0
- data/templates/CentOS-6.1-x86_64-minimal/postinstall.sh +50 -0
- data/templates/CentOS-6.2-x86_64-minimal/definition.rb +15 -0
- data/templates/CentOS-6.2-x86_64-minimal/ks.cfg +37 -0
- data/templates/CentOS-6.2-x86_64-minimal/postinstall.sh +50 -0
- data/templates/Debian-5.0.8-amd64-netboot/postinstall.sh +1 -1
- data/templates/Debian-5.0.8-i386-netboot/postinstall.sh +1 -1
- data/templates/{Debian-6.0.2-amd64-netboot → Debian-6.0.3-amd64-netboot}/definition.rb +3 -3
- data/templates/Debian-6.0.3-amd64-netboot/postinstall.sh +80 -0
- data/templates/{Debian-6.0.2-amd64-netboot → Debian-6.0.3-amd64-netboot}/preseed.cfg +0 -0
- data/templates/{Debian-6.0.2-i386-netboot → Debian-6.0.3-i386-netboot}/definition.rb +3 -3
- data/templates/{Debian-6.0.2-i386-netboot → Debian-6.0.3-i386-netboot}/postinstall.sh +2 -2
- data/templates/{Debian-6.0.2-i386-netboot → Debian-6.0.3-i386-netboot}/preseed.cfg +0 -0
- data/templates/Fedora-14-amd64-netboot/definition.rb +1 -1
- data/templates/Fedora-14-amd64-netboot/postinstall.sh +1 -1
- data/templates/Fedora-14-amd64/definition.rb +1 -1
- data/templates/Fedora-14-amd64/postinstall.sh +1 -1
- data/templates/Fedora-14-i386-netboot/postinstall.sh +1 -1
- data/templates/Fedora-14-i386/postinstall.sh +1 -1
- data/templates/Fedora-15-x86_64-netboot/definition.rb +29 -0
- data/templates/Fedora-15-x86_64-netboot/ks.cfg +64 -0
- data/templates/Fedora-15-x86_64-netboot/postinstall.sh +33 -0
- data/templates/Fedora-15-x86_64/definition.rb +17 -0
- data/templates/Fedora-15-x86_64/ks.cfg +64 -0
- data/templates/Fedora-15-x86_64/postinstall.sh +33 -0
- data/templates/Fedora-16-i386/definition.rb +17 -0
- data/templates/Fedora-16-i386/ks.cfg +72 -0
- data/templates/Fedora-16-i386/postinstall.sh +35 -0
- data/templates/Fedora-16-x86_64/definition.rb +17 -0
- data/templates/Fedora-16-x86_64/ks.cfg +72 -0
- data/templates/Fedora-16-x86_64/postinstall.sh +35 -0
- data/templates/SLES-11-SP1-DVD-i586-GM/autoinst_de.xml +1127 -0
- data/templates/SLES-11-SP1-DVD-i586-GM/autoinst_en.xml +1127 -0
- data/templates/SLES-11-SP1-DVD-i586-GM/definition.rb +37 -0
- data/templates/SLES-11-SP1-DVD-i586-GM/postinstall.sh +43 -0
- data/templates/SLES-11-SP1-DVD-x86_64-GM/autoinst_de.xml +1171 -0
- data/templates/SLES-11-SP1-DVD-x86_64-GM/autoinst_en.xml +1171 -0
- data/templates/SLES-11-SP1-DVD-x86_64-GM/definition.rb +37 -0
- data/templates/SLES-11-SP1-DVD-x86_64-GM/postinstall.sh +43 -0
- data/templates/archlinux-i386-netboot/aif.cfg +28 -0
- data/templates/archlinux-i386-netboot/definition.rb +26 -0
- data/templates/archlinux-i386-netboot/postinstall.sh +75 -0
- data/templates/archlinux-i386-netboot/postinstall2.sh +30 -0
- data/templates/archlinux-i386/postinstall.sh +12 -1
- data/templates/archlinux-x86_64-netboot/aif.cfg +28 -0
- data/templates/archlinux-x86_64-netboot/definition.rb +26 -0
- data/templates/archlinux-x86_64-netboot/postinstall.sh +75 -0
- data/templates/archlinux-x86_64-netboot/postinstall2.sh +30 -0
- data/templates/archlinux-x86_64/aif.cfg +1 -1
- data/templates/archlinux-x86_64/definition.rb +1 -1
- data/templates/archlinux-x86_64/postinstall.sh +16 -21
- data/templates/archlinux-x86_64/postinstall2.sh +38 -0
- data/templates/freebsd-8.2-pcbsd-i386-netboot/definition.rb +2 -4
- data/templates/freebsd-8.2-pcbsd-i386-netboot/postinstall.sh +1 -1
- data/templates/freebsd-8.2-pcbsd-i386/definition.rb +3 -2
- data/templates/freebsd-8.2-pcbsd-i386/postinstall.sh +1 -1
- data/templates/funtoo-latest-generic_64-stable/definition.rb +34 -0
- data/templates/funtoo-latest-generic_64-stable/postinstall.sh +177 -0
- data/templates/funtoo-latest-generic_64-stable/postinstall2.sh +83 -0
- data/templates/gentoo-latest-i386-experimental/definition.rb +9 -9
- data/templates/gentoo-latest-i386-experimental/postinstall.sh +1 -1
- data/templates/gentoo-latest-x86_64-experimental/definition.rb +34 -0
- data/templates/gentoo-latest-x86_64-experimental/postinstall.sh +214 -0
- data/templates/openSUSE-11.4-DVD-i586/autoinst_de.xml +1284 -0
- data/templates/openSUSE-11.4-DVD-i586/autoinst_en.xml +1284 -0
- data/templates/openSUSE-11.4-DVD-i586/definition.rb +28 -0
- data/templates/openSUSE-11.4-DVD-i586/postinstall.sh +43 -0
- data/templates/openSUSE-11.4-DVD-x86_64/autoinst_de.xml +1459 -0
- data/templates/openSUSE-11.4-DVD-x86_64/autoinst_en.xml +1459 -0
- data/templates/openSUSE-11.4-DVD-x86_64/definition.rb +28 -0
- data/templates/openSUSE-11.4-DVD-x86_64/postinstall.sh +43 -0
- data/templates/openSUSE-11.4-NET-i586/autoinst_de.xml +1278 -0
- data/templates/openSUSE-11.4-NET-i586/autoinst_en.xml +1278 -0
- data/templates/openSUSE-11.4-NET-i586/definition.rb +28 -0
- data/templates/openSUSE-11.4-NET-i586/postinstall.sh +43 -0
- data/templates/openSUSE-11.4-NET-x86_64/autoinst_de.xml +1453 -0
- data/templates/openSUSE-11.4-NET-x86_64/autoinst_en.xml +1453 -0
- data/templates/openSUSE-11.4-NET-x86_64/definition.rb +28 -0
- data/templates/openSUSE-11.4-NET-x86_64/postinstall.sh +43 -0
- data/templates/openSUSE-12.1-DVD+NET-i586/autoinst_de.xml +1483 -0
- data/templates/openSUSE-12.1-DVD+NET-i586/autoinst_en.xml +1483 -0
- data/templates/openSUSE-12.1-DVD+NET-i586/definition.rb +44 -0
- data/templates/openSUSE-12.1-DVD+NET-i586/postinstall.sh +43 -0
- data/templates/openSUSE-12.1-DVD+NET-x86_64/autoinst_de.xml +1727 -0
- data/templates/openSUSE-12.1-DVD+NET-x86_64/autoinst_en.xml +1727 -0
- data/templates/openSUSE-12.1-DVD+NET-x86_64/definition.rb +44 -0
- data/templates/openSUSE-12.1-DVD+NET-x86_64/postinstall.sh +43 -0
- data/templates/openbsd50_amd64/README +28 -0
- data/templates/openbsd50_amd64/definition.rb +84 -0
- data/templates/openbsd50_amd64/postinstall.sh +81 -0
- data/templates/openbsd50_i386/.definition.rb.swp +0 -0
- data/templates/openbsd50_i386/README +28 -0
- data/templates/openbsd50_i386/definition.rb +84 -0
- data/templates/openbsd50_i386/postinstall.sh +80 -0
- data/templates/openindiana-148-ai-x86/definition.rb +1 -1
- data/templates/openindiana-148-ai-x86/postinstall.sh +1 -1
- data/templates/opensuse-11.4-i386-experimental/postinstall.sh +1 -1
- data/templates/scientificlinux-6.1-i386-netboot/definition.rb +16 -0
- data/templates/scientificlinux-6.1-i386-netboot/ks.cfg +53 -0
- data/templates/scientificlinux-6.1-i386-netboot/postinstall.sh +30 -0
- data/templates/scientificlinux-6.1-x86_64-netboot/definition.rb +16 -0
- data/templates/scientificlinux-6.1-x86_64-netboot/ks.cfg +53 -0
- data/templates/scientificlinux-6.1-x86_64-netboot/postinstall.sh +30 -0
- data/templates/solaris-11-express-i386/definition.rb +1 -1
- data/templates/solaris-11-express-i386/postinstall.sh +1 -1
- data/templates/ubuntu-10.04.2-amd64-netboot/postinstall.sh +1 -1
- data/templates/ubuntu-10.04.2-server-i386-netboot/postinstall.sh +1 -1
- data/templates/{ubuntu-10.04.2-server-amd64-alt → ubuntu-10.04.3-server-amd64-alt}/definition.rb +6 -6
- data/templates/{ubuntu-10.04.2-server-amd64-alt → ubuntu-10.04.3-server-amd64-alt}/postinstall.sh +1 -1
- data/templates/{ubuntu-10.04.2-server-amd64-alt → ubuntu-10.04.3-server-amd64-alt}/preseed.cfg +0 -0
- data/templates/{ubuntu-10.04.2-server-amd64 → ubuntu-10.04.3-server-amd64}/definition.rb +3 -6
- data/templates/{ubuntu-10.04.2-server-amd64 → ubuntu-10.04.3-server-amd64}/postinstall.sh +1 -1
- data/templates/{ubuntu-10.04.2-server-amd64 → ubuntu-10.04.3-server-amd64}/preseed.cfg +0 -0
- data/templates/{ubuntu-10.04.2-server-i386 → ubuntu-10.04.3-server-i386}/definition.rb +4 -4
- data/templates/{ubuntu-10.04.2-server-i386 → ubuntu-10.04.3-server-i386}/postinstall.sh +1 -1
- data/templates/{ubuntu-10.04.2-server-i386 → ubuntu-10.04.3-server-i386}/preseed.cfg +0 -0
- data/templates/ubuntu-10.10-server-amd64-netboot/postinstall.sh +1 -1
- data/templates/ubuntu-10.10-server-amd64/postinstall.sh +1 -1
- data/templates/ubuntu-10.10-server-i386-netboot/postinstall.sh +1 -1
- data/templates/ubuntu-10.10-server-i386/postinstall.sh +1 -1
- data/templates/ubuntu-11.04-server-amd64/postinstall.sh +7 -1
- data/templates/ubuntu-11.04-server-i386/definition.rb +1 -1
- data/templates/ubuntu-11.04-server-i386/postinstall.sh +1 -1
- data/templates/ubuntu-11.10-server-amd64-ishaya/definition.rb +24 -0
- data/templates/{Debian-6.0.2-amd64-netboot → ubuntu-11.10-server-amd64-ishaya}/postinstall.sh +42 -23
- data/templates/ubuntu-11.10-server-amd64-ishaya/preseed.cfg +87 -0
- data/templates/ubuntu-11.10-server-amd64-ruby192/definition.rb +24 -0
- data/templates/ubuntu-11.10-server-amd64-ruby192/postinstall.sh +90 -0
- data/templates/ubuntu-11.10-server-amd64-ruby192/preseed.cfg +87 -0
- data/templates/ubuntu-11.10-server-amd64/definition.rb +35 -0
- data/templates/ubuntu-11.10-server-amd64/postinstall.sh +88 -0
- data/templates/ubuntu-11.10-server-amd64/preseed.cfg +87 -0
- data/templates/ubuntu-11.10-server-i386/definition.rb +35 -0
- data/templates/ubuntu-11.10-server-i386/postinstall.sh +88 -0
- data/templates/ubuntu-11.10-server-i386/preseed.cfg +87 -0
- data/templates/ubuntu-8.04.4-server-amd64/definition.rb +1 -0
- data/templates/ubuntu-8.04.4-server-amd64/postinstall.sh +8 -7
- data/templates/ubuntu-8.04.4-server-amd64/preseed.cfg +0 -1
- data/templates/ubuntu-8.04.4-server-i386/definition.rb +1 -1
- data/templates/ubuntu-8.04.4-server-i386/postinstall.sh +25 -3
- data/templates/windows-2008R1-serverstandard-amd64/Autounattend.xml +146 -0
- data/templates/windows-2008R1-serverstandard-amd64/README.md +134 -0
- data/templates/windows-2008R1-serverstandard-amd64/cygwin-setup.exe +0 -0
- data/templates/windows-2008R1-serverstandard-amd64/definition.rb +114 -0
- data/templates/windows-2008R1-serverstandard-amd64/install-cygwin-sshd.bat +40 -0
- data/templates/windows-2008R1-serverstandard-amd64/install-guest-additions.bat +5 -0
- data/templates/windows-2008R1-serverstandard-amd64/install-winrm.bat +14 -0
- data/templates/windows-2008R1-serverstandard-amd64/oracle-cert.cer +0 -0
- data/templates/windows-2008R1-serverstandard-amd64/postinstall.sh +74 -0
- data/templates/windows-2008R1-serverstandard-amd64/sudo +2 -0
- data/templates/windows-2008R1-serverstandard-amd64/winrm.rb +8 -0
- data/templates/windows-2008R2-amd64/cygwin-setup.exe +0 -0
- data/templates/windows-2008R2-amd64/install-winrm.bat +2 -0
- data/templates/windows-2008R2-amd64/postinstall.sh +1 -1
- data/templates/windows-2008R2-serverstandard-amd64/Autounattend.xml +147 -0
- data/templates/windows-2008R2-serverstandard-amd64/README.md +142 -0
- data/templates/windows-2008R2-serverstandard-amd64/definition.rb +44 -0
- data/templates/windows-2008R2-serverstandard-amd64/install-cygwin-sshd.bat +41 -0
- data/templates/windows-2008R2-serverstandard-amd64/install-winrm.bat +11 -0
- data/templates/windows-2008R2-serverstandard-amd64/oracle-cert.cer +0 -0
- data/templates/windows-2008R2-serverstandard-amd64/postinstall.sh +74 -0
- data/templates/windows-7-enterprise-amd64/Autounattend.xml +149 -0
- data/templates/windows-7-enterprise-amd64/README.md +52 -0
- data/templates/windows-7-enterprise-amd64/definition.rb +39 -0
- data/templates/windows-7-enterprise-amd64/install-cygwin-sshd.bat +40 -0
- data/templates/windows-7-enterprise-amd64/install-winrm.bat +14 -0
- data/templates/windows-7-enterprise-amd64/oracle-cert.cer +0 -0
- data/templates/windows-7-enterprise-amd64/postinstall.sh +74 -0
- data/templates/windows-7-enterprise-i386/Autounattend.xml +151 -0
- data/templates/windows-7-enterprise-i386/README.md +169 -0
- data/templates/windows-7-enterprise-i386/definition.rb +40 -0
- data/templates/windows-7-enterprise-i386/install-cygwin-sshd.bat +40 -0
- data/templates/windows-7-enterprise-i386/install-winrm.bat +14 -0
- data/templates/windows-7-enterprise-i386/oracle-cert.cer +0 -0
- data/templates/windows-7-enterprise-i386/postinstall.sh +74 -0
- data/templates/windows-7-premium-amd64/Autounattend.xml +152 -0
- data/templates/windows-7-premium-amd64/README.md +171 -0
- data/templates/windows-7-premium-amd64/definition.rb +38 -0
- data/templates/windows-7-premium-amd64/install-chefclient.bat +44 -0
- data/templates/windows-7-premium-amd64/install-winrm.bat +11 -0
- data/templates/windows-7-premium-amd64/oracle-cert.cer +0 -0
- data/templates/windows-7-premium-amd64/postinstall.sh +124 -0
- data/templates/windows-7-premium-amd64/winrm.rb +8 -0
- data/templates/windows-7-professional-amd64/Autounattend.xml +152 -0
- data/templates/windows-7-professional-amd64/README.md +171 -0
- data/templates/windows-7-professional-amd64/definition.rb +41 -0
- data/templates/windows-7-professional-amd64/install-cygwin-sshd.bat +40 -0
- data/templates/windows-7-professional-amd64/install-winrm.bat +14 -0
- data/templates/windows-7-professional-amd64/oracle-cert.cer +0 -0
- data/templates/windows-7-professional-amd64/postinstall.sh +74 -0
- data/templates/windows-7-ultimate-amd64/Autounattend.xml +152 -0
- data/templates/windows-7-ultimate-amd64/README.md +89 -0
- data/templates/windows-7-ultimate-amd64/definition.rb +41 -0
- data/templates/windows-7-ultimate-amd64/install-cygwin-sshd.bat +40 -0
- data/templates/windows-7-ultimate-amd64/install-winrm.bat +14 -0
- data/templates/windows-7-ultimate-amd64/oracle-cert.cer +0 -0
- data/templates/windows-7-ultimate-amd64/postinstall.sh +74 -0
- data/templates/windows-7sp1-ultimate-amd64/Autounattend.xml +152 -0
- data/templates/windows-7sp1-ultimate-amd64/README.md +89 -0
- data/templates/windows-7sp1-ultimate-amd64/definition.rb +42 -0
- data/templates/windows-7sp1-ultimate-amd64/install-cygwin-sshd.bat +40 -0
- data/templates/windows-7sp1-ultimate-amd64/install-winrm.bat +14 -0
- data/templates/windows-7sp1-ultimate-amd64/oracle-cert.cer +0 -0
- data/templates/windows-7sp1-ultimate-amd64/postinstall.sh +74 -0
- data/templates/windows-8-preview-dev-amd64/Autounattend.xml +140 -0
- data/templates/windows-8-preview-dev-amd64/README.md +134 -0
- data/templates/windows-8-preview-dev-amd64/cygwin-setup.exe +0 -0
- data/templates/windows-8-preview-dev-amd64/definition.rb +114 -0
- data/templates/windows-8-preview-dev-amd64/install-cygwin-sshd.bat +38 -0
- data/templates/windows-8-preview-dev-amd64/install-winrm.bat +11 -0
- data/templates/windows-8-preview-dev-amd64/oracle-cert.cer +0 -0
- data/templates/windows-8-preview-dev-amd64/postinstall.sh +122 -0
- data/templates/windows-8-preview-dev-amd64/winrm.rb +8 -0
- data/validation/features/steps/ssh_steps.rb +1 -1
- data/validation/vagrant.feature +35 -35
- data/veewee.gemspec +9 -8
- metadata +247 -82
- data/.gitignore +0 -15
- data/Gemfile +0 -3
- data/Gemfile.lock +0 -69
- data/HeSYINUvSBZfxqA-veewee.gemspec +0 -33
- data/vendor/cache/Platform-0.4.0.gem +0 -0
- data/vendor/cache/archive-tar-minitar-0.5.2.gem +0 -0
- data/vendor/cache/builder-3.0.0.gem +0 -0
- data/vendor/cache/cucumber-1.0.2.gem +0 -0
- data/vendor/cache/diff-lcs-1.1.2.gem +0 -0
- data/vendor/cache/erubis-2.7.0.gem +0 -0
- data/vendor/cache/ffi-1.0.9.gem +0 -0
- data/vendor/cache/gherkin-2.4.6.gem +0 -0
- data/vendor/cache/highline-1.6.2.gem +0 -0
- data/vendor/cache/i18n-0.5.0.gem +0 -0
- data/vendor/cache/json-1.5.3.gem +0 -0
- data/vendor/cache/net-scp-1.0.4.gem +0 -0
- data/vendor/cache/net-ssh-2.1.4.gem +0 -0
- data/vendor/cache/open4-1.1.0.gem +0 -0
- data/vendor/cache/popen4-0.1.2.gem +0 -0
- data/vendor/cache/progressbar-0.9.1.gem +0 -0
- data/vendor/cache/rspec-2.5.0.gem +0 -0
- data/vendor/cache/rspec-core-2.5.2.gem +0 -0
- data/vendor/cache/rspec-expectations-2.5.0.gem +0 -0
- data/vendor/cache/rspec-mocks-2.5.0.gem +0 -0
- data/vendor/cache/term-ansicolor-1.0.6.gem +0 -0
- data/vendor/cache/thor-0.14.6.gem +0 -0
- data/vendor/cache/vagrant-0.8.2.gem +0 -0
- data/vendor/cache/virtualbox-0.9.1.gem +0 -0
data/README.md
CHANGED
@@ -32,39 +32,66 @@ If you don't use rvm, be sure to execute vagrant through bundle exec
|
|
32
32
|
|
33
33
|
$ vagrant basebox templates
|
34
34
|
The following templates are available:
|
35
|
-
vagrant basebox define '<boxname>' '
|
36
|
-
vagrant basebox define '<boxname>' '
|
37
|
-
vagrant basebox define '<boxname>' '
|
38
|
-
vagrant basebox define '<boxname>' '
|
35
|
+
vagrant basebox define '<boxname>' 'CentOS-4.8-i386'
|
36
|
+
vagrant basebox define '<boxname>' 'CentOS-5.5-x86_64-netboot'
|
37
|
+
vagrant basebox define '<boxname>' 'CentOS-5.6-i386'
|
38
|
+
vagrant basebox define '<boxname>' 'CentOS-5.6-i386-netboot'
|
39
|
+
vagrant basebox define '<boxname>' 'CentOS-5.6-x86_64-netboot'
|
40
|
+
vagrant basebox define '<boxname>' 'CentOS-5.7-i386-netboot'
|
41
|
+
vagrant basebox define '<boxname>' 'CentOS-5.7-x86_64-netboot'
|
42
|
+
vagrant basebox define '<boxname>' 'CentOS-6.0-i386'
|
43
|
+
vagrant basebox define '<boxname>' 'CentOS-6.0-i386-netboot'
|
44
|
+
vagrant basebox define '<boxname>' 'CentOS-6.0-x86_64'
|
45
|
+
vagrant basebox define '<boxname>' 'CentOS-6.0-x86_64-minimal'
|
46
|
+
vagrant basebox define '<boxname>' 'CentOS-6.0-x86_64-netboot'
|
47
|
+
vagrant basebox define '<boxname>' 'Debian-5.0.8-amd64-netboot'
|
48
|
+
vagrant basebox define '<boxname>' 'Debian-5.0.8-i386-netboot'
|
49
|
+
vagrant basebox define '<boxname>' 'Debian-6.0.3-amd64-netboot'
|
50
|
+
vagrant basebox define '<boxname>' 'Debian-6.0.3-i386-netboot'
|
51
|
+
vagrant basebox define '<boxname>' 'Fedora-14-amd64'
|
39
52
|
vagrant basebox define '<boxname>' 'Fedora-14-amd64-netboot'
|
40
|
-
vagrant basebox define '<boxname>' '
|
53
|
+
vagrant basebox define '<boxname>' 'Fedora-14-i386'
|
54
|
+
vagrant basebox define '<boxname>' 'Fedora-14-i386-netboot'
|
55
|
+
vagrant basebox define '<boxname>' 'Fedora-15-i386'
|
56
|
+
vagrant basebox define '<boxname>' 'Fedora-15-i386-netboot'
|
57
|
+
vagrant basebox define '<boxname>' 'Fedora-15-x86_64'
|
58
|
+
vagrant basebox define '<boxname>' 'Fedora-15-x86_64-netboot'
|
59
|
+
vagrant basebox define '<boxname>' 'Sysrescuecd-2.0.0-experimental'
|
60
|
+
vagrant basebox define '<boxname>' 'archlinux-i386'
|
61
|
+
vagrant basebox define '<boxname>' 'archlinux-i386-netboot'
|
62
|
+
vagrant basebox define '<boxname>' 'archlinux-x86_64'
|
63
|
+
vagrant basebox define '<boxname>' 'archlinux-x86_64-netboot'
|
41
64
|
vagrant basebox define '<boxname>' 'freebsd-8.2-experimental'
|
42
|
-
vagrant basebox define '<boxname>' '
|
43
|
-
vagrant basebox define '<boxname>' '
|
65
|
+
vagrant basebox define '<boxname>' 'freebsd-8.2-pcbsd-i386'
|
66
|
+
vagrant basebox define '<boxname>' 'freebsd-8.2-pcbsd-i386-netboot'
|
67
|
+
vagrant basebox define '<boxname>' 'gentoo-latest-i386-experimental'
|
68
|
+
vagrant basebox define '<boxname>' 'openSUSE-11.4-DVD-i586'
|
69
|
+
vagrant basebox define '<boxname>' 'openSUSE-11.4-DVD-x86_64'
|
70
|
+
vagrant basebox define '<boxname>' 'openSUSE-11.4-NET-i586'
|
71
|
+
vagrant basebox define '<boxname>' 'openSUSE-11.4-NET-x86_64'
|
44
72
|
vagrant basebox define '<boxname>' 'openindiana-148-ai-x86'
|
45
|
-
vagrant basebox define '<boxname>' '
|
46
|
-
vagrant basebox define '<boxname>' '
|
73
|
+
vagrant basebox define '<boxname>' 'opensuse-11.4-i386-experimental'
|
74
|
+
vagrant basebox define '<boxname>' 'scientificlinux-6.1-i386-netboot'
|
75
|
+
vagrant basebox define '<boxname>' 'scientificlinux-6.1-x86_64-netboot'
|
76
|
+
vagrant basebox define '<boxname>' 'solaris-11-express-i386'
|
47
77
|
vagrant basebox define '<boxname>' 'ubuntu-10.04.2-amd64-netboot'
|
48
|
-
vagrant basebox define '<boxname>' 'Sysrescuecd-2.0.0-experimental'
|
49
|
-
vagrant basebox define '<boxname>' 'Debian-6.0.1a-amd64-netboot'
|
50
|
-
vagrant basebox define '<boxname>' 'freebsd-8.2-pcbsd-i386'
|
51
|
-
vagrant basebox define '<boxname>' 'Fedora-14-i386'
|
52
|
-
vagrant basebox define '<boxname>' 'Fedora-14-amd64'
|
53
78
|
vagrant basebox define '<boxname>' 'ubuntu-10.04.2-server-i386-netboot'
|
54
|
-
vagrant basebox define '<boxname>' '
|
55
|
-
vagrant basebox define '<boxname>' '
|
56
|
-
vagrant basebox define '<boxname>' 'ubuntu-10.04.
|
79
|
+
vagrant basebox define '<boxname>' 'ubuntu-10.04.3-server-amd64'
|
80
|
+
vagrant basebox define '<boxname>' 'ubuntu-10.04.3-server-amd64-alt'
|
81
|
+
vagrant basebox define '<boxname>' 'ubuntu-10.04.3-server-i386'
|
82
|
+
vagrant basebox define '<boxname>' 'ubuntu-10.10-server-amd64'
|
83
|
+
vagrant basebox define '<boxname>' 'ubuntu-10.10-server-amd64-netboot'
|
84
|
+
vagrant basebox define '<boxname>' 'ubuntu-10.10-server-i386'
|
85
|
+
vagrant basebox define '<boxname>' 'ubuntu-10.10-server-i386-netboot'
|
86
|
+
vagrant basebox define '<boxname>' 'ubuntu-11.04-server-amd64'
|
87
|
+
vagrant basebox define '<boxname>' 'ubuntu-11.04-server-i386'
|
88
|
+
vagrant basebox define '<boxname>' 'ubuntu-11.10-server-amd64'
|
89
|
+
vagrant basebox define '<boxname>' 'ubuntu-11.10-server-amd64-ishaya'
|
90
|
+
vagrant basebox define '<boxname>' 'ubuntu-11.10-server-amd64-ruby192'
|
91
|
+
vagrant basebox define '<boxname>' 'ubuntu-11.10-server-i386'
|
57
92
|
vagrant basebox define '<boxname>' 'ubuntu-8.04.4-server-amd64'
|
58
|
-
vagrant basebox define '<boxname>' 'gentoo-latest-i386-experimental'
|
59
93
|
vagrant basebox define '<boxname>' 'ubuntu-8.04.4-server-i386'
|
60
94
|
vagrant basebox define '<boxname>' 'windows-2008R2-amd64'
|
61
|
-
vagrant basebox define '<boxname>' 'Fedora-14-i386-netboot'
|
62
|
-
vagrant basebox define '<boxname>' 'archlinux-64-experimental'
|
63
|
-
vagrant basebox define '<boxname>' 'Debian-6.0.1a-i386-netboot'
|
64
|
-
vagrant basebox define '<boxname>' 'ubuntu-10.10-server-amd64'
|
65
|
-
vagrant basebox define '<boxname>' 'archlinux-64-aif-experimental'
|
66
|
-
vagrant basebox define '<boxname>' 'ubuntu-11.04-server-i386'
|
67
|
-
vagrant basebox define '<boxname>' 'CentOS-5.6-i386'
|
68
95
|
|
69
96
|
|
70
97
|
## Define a new box
|
@@ -131,7 +158,7 @@ Put your isofile inside the 'currentdir'/iso directory or if you don't run
|
|
131
158
|
- Mount the ISO File :iso_file
|
132
159
|
- Boot up the machine and wait for :boot_time
|
133
160
|
- Send the keystrokes in :boot_cmd_sequence
|
134
|
-
- Startup a webserver on :kickstart_port to wait for a request for the :kickstart_file
|
161
|
+
- Startup a webserver on :kickstart_port to wait for a request for the :kickstart_file (don't navigate to the file in your browser or the server will stop and the installer will not be able to find your preseed)
|
135
162
|
- Wait for ssh login to work with :ssh_user , :ssh_password
|
136
163
|
- Sudo execute the :postinstall_files
|
137
164
|
|
data/Rakefile
CHANGED
@@ -4,67 +4,72 @@ require 'bundler/setup'
|
|
4
4
|
Bundler::GemHelper.install_tasks
|
5
5
|
|
6
6
|
#Setup some base variables to use
|
7
|
-
veewee_dir= "."
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
7
|
+
veewee_dir = "."
|
8
|
+
lib_dir = File.expand_path(File.join(veewee_dir, "lib"))
|
9
|
+
box_dir = File.expand_path(File.join(veewee_dir, "boxes"))
|
10
|
+
vbox_dir = File.expand_path(File.join(veewee_dir, "tmp"))
|
11
|
+
tmp_dir = File.expand_path(File.join(veewee_dir, "tmp"))
|
12
|
+
iso_dir = File.expand_path(File.join(veewee_dir, "iso"))
|
13
|
+
definition_dir = File.expand_path(File.join(veewee_dir, "definitions"))
|
14
|
+
template_dir = File.expand_path(File.join(veewee_dir, "templates"))
|
15
15
|
|
16
16
|
|
17
17
|
#Load Veewee::Session libraries
|
18
|
-
Dir.glob(File.join(lib_dir, '**','*.rb')).each {|f|
|
19
|
-
require f }
|
18
|
+
Dir.glob(File.join(lib_dir, '**','*.rb')).each { |f| require f }
|
20
19
|
|
21
20
|
#Initialize
|
22
|
-
Veewee::Session.setenv({
|
23
|
-
|
21
|
+
Veewee::Session.setenv({
|
22
|
+
:veewee_dir => veewee_dir,
|
23
|
+
:definition_dir => definition_dir,
|
24
|
+
:template_dir => template_dir,
|
25
|
+
:iso_dir => iso_dir,
|
26
|
+
:box_dir => box_dir,
|
27
|
+
:tmp_dir => tmp_dir
|
28
|
+
})
|
24
29
|
|
25
30
|
desc 'Default: list templates'
|
26
31
|
task :default => [:templates]
|
27
32
|
|
28
33
|
desc 'List templates'
|
29
34
|
task :templates do
|
30
|
-
|
35
|
+
Veewee::Session.list_templates
|
31
36
|
end
|
32
37
|
|
33
38
|
desc 'Define box'
|
34
39
|
task :define, [:boxname,:template_name] do |t,args|
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
+
if args.to_hash.size!=2
|
41
|
+
puts "needs two arguments: rake define['boxname','template_name']"
|
42
|
+
exit
|
43
|
+
end
|
44
|
+
Veewee::Session.define(args.boxname,args.template_name)
|
40
45
|
end
|
41
46
|
|
42
47
|
desc 'Undefine box'
|
43
48
|
task :undefine, [:boxname] do |t,args|
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
+
if args.to_hash.size!=1
|
50
|
+
puts "needs one arguments: rake undefine[\"yourname\"]"
|
51
|
+
exit
|
52
|
+
end
|
53
|
+
Veewee::Session.undefine(args.boxname)
|
49
54
|
end
|
50
55
|
|
51
56
|
desc 'List Definitions'
|
52
|
-
task :definitions do
|
53
|
-
|
57
|
+
task :definitions do
|
58
|
+
Veewee::Session.list_definitions
|
54
59
|
end
|
55
60
|
|
56
61
|
desc 'Build box'
|
57
62
|
task :build, [:boxname] do |t,args|
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
+
if args.to_hash.size!=1
|
64
|
+
puts "needs one arguments: rake build['boxname']"
|
65
|
+
exit
|
66
|
+
end
|
67
|
+
Veewee::Session.build(args.boxname)
|
63
68
|
end
|
64
69
|
|
65
70
|
desc 'List boxes'
|
66
71
|
task :boxes do
|
67
|
-
|
72
|
+
Veewee::Session.list_boxes
|
68
73
|
end
|
69
74
|
|
70
75
|
desc 'Export box'
|
@@ -73,20 +78,20 @@ task :export, [:boxname] do |t,args|
|
|
73
78
|
puts "needs one arguments: rake export['boxname']"
|
74
79
|
exit
|
75
80
|
end
|
76
|
-
|
81
|
+
Veewee::Session.export_box(args.boxname)
|
77
82
|
end
|
78
83
|
|
79
84
|
desc 'Remove box'
|
80
85
|
task :remove_box, [:boxname] do |t,args|
|
81
|
-
|
86
|
+
Veewee::Session.remove_box(args.boxname)
|
82
87
|
end
|
83
88
|
|
84
89
|
desc 'List ostypes available'
|
85
90
|
task :list_ostypes do |t,args|
|
86
|
-
|
91
|
+
Veewee::Session.list_ostypes
|
87
92
|
end
|
88
93
|
|
89
94
|
desc 'Clean all unfinished builds'
|
90
|
-
task :clean do
|
91
|
-
|
95
|
+
task :clean do
|
96
|
+
Veewee::Session.clean
|
92
97
|
end
|
data/lib/veewee.rb
CHANGED
data/lib/veewee/command.rb
CHANGED
@@ -19,64 +19,6 @@ Veewee::Session.setenv({:veewee_dir => veewee_dir, :definition_dir => definition
|
|
19
19
|
:template_dir => template_dir, :iso_dir => iso_dir, :box_dir => box_dir, :tmp_dir => tmp_dir, :validation_dir => validation_dir})
|
20
20
|
|
21
21
|
module Veewee
|
22
|
-
|
23
|
-
register "basebox","Commands to manage baseboxes"
|
24
|
-
|
25
|
-
desc "templates", "List the currently available basebox templates"
|
26
|
-
def templates
|
27
|
-
Veewee::Session.list_templates
|
28
|
-
end
|
29
|
-
|
30
|
-
desc "define BOXNAME TEMPLATE", "Define a new basebox starting from a template"
|
31
|
-
method_option :force,:type => :boolean , :default => false, :aliases => "-f", :desc => "overwrite the definition"
|
32
|
-
def define(boxname, template)
|
33
|
-
Veewee::Session.define(boxname,template,options)
|
34
|
-
end
|
35
|
-
|
36
|
-
desc "undefine BOXNAME", "Removes the definition of a basebox "
|
37
|
-
def undefine(boxname)
|
38
|
-
Veewee::Session.undefine(boxname)
|
39
|
-
end
|
40
|
-
|
41
|
-
desc "build BOXNAME", "Build the box BOXNAME"
|
42
|
-
method_option :force,:type => :boolean , :default => false, :aliases => "-f", :desc => "overwrite the basebox"
|
43
|
-
method_option :nogui,:type => :boolean , :default => false, :aliases => "-n", :desc => "no gui"
|
44
|
-
|
45
|
-
def build(boxname)
|
46
|
-
Veewee::Session.build(boxname,options)
|
22
|
+
module Command
|
47
23
|
end
|
48
|
-
|
49
|
-
desc "ostypes", "List the available Operating System types"
|
50
|
-
def ostypes
|
51
|
-
Veewee::Session.list_ostypes
|
52
|
-
end
|
53
|
-
|
54
|
-
desc "destroy BOXNAME", "Destroys the virtualmachine that was build for a basebox"
|
55
|
-
def destroy(boxname)
|
56
|
-
Veewee::Session.destroy_vm(boxname)
|
57
|
-
end
|
58
|
-
|
59
|
-
desc "list", "Lists all defined baseboxes"
|
60
|
-
def list
|
61
|
-
Veewee::Session.list_definitions
|
62
|
-
end
|
63
|
-
|
64
|
-
desc "export [NAME]", "Exports the basebox to the vagrant box format"
|
65
|
-
method_options :force => :boolean
|
66
|
-
def export(boxname)
|
67
|
-
if (!boxname.nil?)
|
68
|
-
Veewee::Session.export_box(boxname)
|
69
|
-
end
|
70
|
-
end
|
71
|
-
|
72
|
-
desc "validate [NAME]", "Validates a box against vagrant compliancy rules"
|
73
|
-
method_option :user,:default => "vagrant", :aliases => "-u", :desc => "user to login with"
|
74
|
-
def validate(boxname)
|
75
|
-
if (!boxname.nil?)
|
76
|
-
Veewee::Session.validate_box(boxname,options)
|
77
|
-
end
|
78
|
-
end
|
79
|
-
|
80
|
-
end
|
81
|
-
|
82
24
|
end
|
@@ -0,0 +1,63 @@
|
|
1
|
+
require 'optparse'
|
2
|
+
|
3
|
+
module Veewee
|
4
|
+
module Command
|
5
|
+
class Basebox < Vagrant::Command::Base
|
6
|
+
def initialize(argv, env)
|
7
|
+
super
|
8
|
+
|
9
|
+
@main_args, @sub_command, @sub_args = split_main_and_subcommand(argv)
|
10
|
+
|
11
|
+
@subcommands = Vagrant::Registry.new
|
12
|
+
@subcommands.register(:templates) { Veewee::Command::BaseboxTemplates }
|
13
|
+
@subcommands.register(:list) { Veewee::Command::BaseboxList }
|
14
|
+
@subcommands.register(:define) { Veewee::Command::BaseboxDefine }
|
15
|
+
@subcommands.register(:undefine) { Veewee::Command::BaseboxUndefine }
|
16
|
+
@subcommands.register(:build) { Veewee::Command::BaseboxBuild }
|
17
|
+
@subcommands.register(:ostypes) { Veewee::Command::BaseboxOstypes }
|
18
|
+
@subcommands.register(:destroy) { Veewee::Command::BaseboxDestroy }
|
19
|
+
@subcommands.register(:export) { Veewee::Command::BaseboxExport }
|
20
|
+
@subcommands.register(:validate) { Veewee::Command::BaseboxValidate }
|
21
|
+
end
|
22
|
+
|
23
|
+
def execute
|
24
|
+
if @main_args.include?("-h") || @main_args.include?("--help")
|
25
|
+
# Print the help for all the box commands.
|
26
|
+
return help
|
27
|
+
end
|
28
|
+
|
29
|
+
# If we reached this far then we must have a subcommand. If not,
|
30
|
+
# then we also just print the help and exit.
|
31
|
+
command_class = @subcommands.get(@sub_command.to_sym) if @sub_command
|
32
|
+
return help if !command_class || !@sub_command
|
33
|
+
@logger.debug("Invoking command class: #{command_class} #{@sub_args.inspect}")
|
34
|
+
|
35
|
+
# Initialize and execute the command class
|
36
|
+
command_class.new(@sub_args, @env).execute
|
37
|
+
end
|
38
|
+
|
39
|
+
# Prints the help out for this command
|
40
|
+
def help
|
41
|
+
opts = OptionParser.new do |opts|
|
42
|
+
opts.banner = "Usage: vagrant basebox <command> [<args>]"
|
43
|
+
opts.separator ""
|
44
|
+
opts.separator "Available subcommands:"
|
45
|
+
|
46
|
+
# Add the available subcommands as separators in order to print them
|
47
|
+
# out as well.
|
48
|
+
keys = []
|
49
|
+
@subcommands.each { |key, value| keys << key.to_s }
|
50
|
+
|
51
|
+
keys.sort.each do |key|
|
52
|
+
opts.separator " #{key}"
|
53
|
+
end
|
54
|
+
|
55
|
+
opts.separator ""
|
56
|
+
opts.separator "For help on any individual command run `vagrant basebox COMMAND -h`"
|
57
|
+
end
|
58
|
+
|
59
|
+
@env.ui.info(opts.help, :prefix => false)
|
60
|
+
end
|
61
|
+
end
|
62
|
+
end
|
63
|
+
end
|
@@ -0,0 +1,32 @@
|
|
1
|
+
require 'optparse'
|
2
|
+
|
3
|
+
module Veewee
|
4
|
+
module Command
|
5
|
+
class BaseboxBuild < Vagrant::Command::Base
|
6
|
+
def execute
|
7
|
+
options = {}
|
8
|
+
|
9
|
+
opts = OptionParser.new do |opts|
|
10
|
+
opts.banner = "Build the box <boxname>"
|
11
|
+
opts.separator ""
|
12
|
+
opts.separator "Usage: vagrant basebox build <boxname>"
|
13
|
+
|
14
|
+
opts.on("-f", "--force", "overwrite the basebox") do |f|
|
15
|
+
options['force'] = f
|
16
|
+
end
|
17
|
+
|
18
|
+
opts.on("-n", "--nogui", "no gui") do |n|
|
19
|
+
options['nogui'] = n
|
20
|
+
end
|
21
|
+
end
|
22
|
+
|
23
|
+
# Parse the options
|
24
|
+
argv = parse_options(opts)
|
25
|
+
return if !argv
|
26
|
+
raise Vagrant::Errors::CLIInvalidUsage, :help => opts.help.chomp if argv.length < 1
|
27
|
+
|
28
|
+
Veewee::Session.build(argv[0], options)
|
29
|
+
end
|
30
|
+
end
|
31
|
+
end
|
32
|
+
end
|
@@ -0,0 +1,28 @@
|
|
1
|
+
require 'optparse'
|
2
|
+
|
3
|
+
module Veewee
|
4
|
+
module Command
|
5
|
+
class BaseboxDefine < Vagrant::Command::Base
|
6
|
+
def execute
|
7
|
+
options = {}
|
8
|
+
|
9
|
+
opts = OptionParser.new do |opts|
|
10
|
+
opts.banner = "Define a new basebox starting from a template"
|
11
|
+
opts.separator ""
|
12
|
+
opts.separator "Usage: vagrant basebox define <boxname> <template>"
|
13
|
+
|
14
|
+
opts.on("-f", "--force", "overwrite the definition") do |f|
|
15
|
+
options['force'] = f
|
16
|
+
end
|
17
|
+
end
|
18
|
+
|
19
|
+
# Parse the options
|
20
|
+
argv = parse_options(opts)
|
21
|
+
return if !argv
|
22
|
+
raise Vagrant::Errors::CLIInvalidUsage, :help => opts.help.chomp if argv.length < 2
|
23
|
+
|
24
|
+
Veewee::Session.define(argv[0], argv[1], options)
|
25
|
+
end
|
26
|
+
end
|
27
|
+
end
|
28
|
+
end
|
@@ -0,0 +1,22 @@
|
|
1
|
+
module Veewee
|
2
|
+
module Command
|
3
|
+
class BaseboxDestroy < Vagrant::Command::Base
|
4
|
+
def execute
|
5
|
+
options = {}
|
6
|
+
|
7
|
+
opts = OptionParser.new do |opts|
|
8
|
+
opts.banner = "Destroys the virtualmachine that was build for a basebox"
|
9
|
+
opts.separator ""
|
10
|
+
opts.separator "Usage: vagrant basebox destroy <boxname>"
|
11
|
+
end
|
12
|
+
|
13
|
+
# Parse the options
|
14
|
+
argv = parse_options(opts)
|
15
|
+
return if !argv
|
16
|
+
raise Vagrant::Errors::CLIInvalidUsage, :help => opts.help.chomp if argv.length < 1
|
17
|
+
|
18
|
+
Veewee::Session.destroy_vm(argv[0])
|
19
|
+
end
|
20
|
+
end
|
21
|
+
end
|
22
|
+
end
|