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
@@ -12,7 +12,7 @@ TIMEZONE=Europe/Brussels
|
|
12
12
|
|
13
13
|
# packages to install
|
14
14
|
TARGET_GROUPS=base
|
15
|
-
TARGET_PACKAGES='sudo openssh vim ruby kernel26-headers make gcc'
|
15
|
+
TARGET_PACKAGES='sudo openssh vim ruby kernel26-headers make gcc yajl'
|
16
16
|
TARGET_PACKAGES_EXCLUDE='nano emacs wpa_supplicant xfsprogs reiserfsprogs pcmciautils mdadm jfsutils cryptsetup lvm2'
|
17
17
|
|
18
18
|
# hard drive setup
|
@@ -25,5 +25,5 @@ Veewee::Session.declare({
|
|
25
25
|
:ssh_host_port => "7222", :ssh_guest_port => "22",
|
26
26
|
:sudo_cmd => "sh '%f'",
|
27
27
|
:shutdown_cmd => "shutdown -h now",
|
28
|
-
:postinstall_files => [ "postinstall.sh"], :postinstall_timeout => "10000"
|
28
|
+
:postinstall_files => [ "postinstall.sh", "postinstall2.sh"], :postinstall_timeout => "10000"
|
29
29
|
})
|
@@ -1,5 +1,8 @@
|
|
1
1
|
#!/bin/bash
|
2
2
|
|
3
|
+
# var to determine package source
|
4
|
+
PKGSRC=cd
|
5
|
+
|
3
6
|
date > /etc/vagrant_box_build_time
|
4
7
|
|
5
8
|
# launch automated install
|
@@ -7,7 +10,6 @@ su -c 'aif -p automatic -c aif.cfg'
|
|
7
10
|
|
8
11
|
# copy over the vbox version file
|
9
12
|
/bin/cp -f /root/.vbox_version /mnt/root/.vbox_version
|
10
|
-
VBOX_VERSION=$(cat /root/.vbox_version)
|
11
13
|
|
12
14
|
# chroot into the new system
|
13
15
|
mount -o bind /dev /mnt/dev
|
@@ -37,6 +39,9 @@ vagrant
|
|
37
39
|
vagrant
|
38
40
|
EOF
|
39
41
|
|
42
|
+
# create puppet group
|
43
|
+
groupadd puppet
|
44
|
+
|
40
45
|
# make sure ssh is allowed
|
41
46
|
echo "sshd: ALL" > /etc/hosts.allow
|
42
47
|
|
@@ -49,7 +54,7 @@ sed -i 's:^DAEMONS\(.*\))$:DAEMONS\1 sshd):' /etc/rc.conf
|
|
49
54
|
# install mitchellh's ssh key
|
50
55
|
mkdir /home/vagrant/.ssh
|
51
56
|
chmod 700 /home/vagrant/.ssh
|
52
|
-
wget --no-check-certificate '
|
57
|
+
wget --no-check-certificate 'https://raw.github.com/mitchellh/vagrant/master/keys/vagrant.pub' -O /home/vagrant/.ssh/authorized_keys
|
53
58
|
chmod 600 /home/vagrant/.ssh/authorized_keys
|
54
59
|
chown -R vagrant /home/vagrant/.ssh
|
55
60
|
|
@@ -57,39 +62,29 @@ chown -R vagrant /home/vagrant/.ssh
|
|
57
62
|
sed -i 's/^#\(.*leaseweb.*\)/\1/' /etc/pacman.d/mirrorlist
|
58
63
|
|
59
64
|
# update pacman
|
60
|
-
pacman -Syy
|
61
|
-
pacman -S --noconfirm pacman
|
65
|
+
[[ $PKGSRC == 'cd' ]] && pacman -Syy
|
66
|
+
[[ $PKGSRC == 'cd' ]] && pacman -S --noconfirm pacman
|
62
67
|
|
63
68
|
# upgrade pacman db
|
64
69
|
pacman-db-upgrade
|
65
70
|
pacman -Syy
|
66
71
|
|
67
72
|
# install some packages
|
68
|
-
pacman -S --noconfirm glibc git
|
73
|
+
pacman -S --noconfirm glibc git pkg-config fakeroot
|
69
74
|
gem install --no-ri --no-rdoc chef facter
|
70
75
|
cd /tmp
|
71
76
|
git clone https://github.com/puppetlabs/puppet.git
|
72
77
|
cd puppet
|
73
78
|
ruby install.rb --bindir=/usr/bin --sbindir=/sbin
|
74
79
|
|
75
|
-
#
|
76
|
-
|
77
|
-
wget http://download.virtualbox.org/virtualbox/"$VBOX_VERSION"/VBoxGuestAdditions_"$VBOX_VERSION".iso
|
78
|
-
mount -o loop VBoxGuestAdditions_"$VBOX_VERSION".iso /mnt
|
79
|
-
sh /mnt/VBoxLinuxAdditions.run
|
80
|
-
umount /mnt
|
81
|
-
rm VBoxGuestAdditions_"$VBOX_VERSION".iso
|
82
|
-
|
83
|
-
# clean out pacman cache
|
84
|
-
pacman -Scc<<EOF
|
85
|
-
y
|
86
|
-
y
|
87
|
-
EOF
|
88
|
-
|
89
|
-
# zero out the fs
|
90
|
-
dd if=/dev/zero of=/tmp/clean || rm /tmp/clean
|
80
|
+
# set up networking
|
81
|
+
[[ $PKGSRC == 'net' ]] && sed -i 's/^\(interface=*\)/\1eth0/' /etc/rc.conf
|
91
82
|
|
83
|
+
# leave the chroot
|
92
84
|
ENDCHROOT
|
93
85
|
|
86
|
+
# take down network to prevent next postinstall.sh from starting too soon
|
87
|
+
/etc/rc.d/network stop
|
88
|
+
|
94
89
|
# and reboot!
|
95
90
|
reboot
|
@@ -0,0 +1,38 @@
|
|
1
|
+
# package-query
|
2
|
+
wget http://aur.archlinux.org/packages/package-query/PKGBUILD
|
3
|
+
makepkg -sfci --noconfirm --asroot
|
4
|
+
rm * -r
|
5
|
+
|
6
|
+
# yaourt
|
7
|
+
wget http://aur.archlinux.org/packages/yaourt/PKGBUILD
|
8
|
+
makepkg -sfci --noconfirm --asroot
|
9
|
+
rm * -r
|
10
|
+
|
11
|
+
# install virtualbox guest additions
|
12
|
+
VBOX_VERSION=$(cat /root/.vbox_version)
|
13
|
+
cd /tmp
|
14
|
+
wget http://download.virtualbox.org/virtualbox/"$VBOX_VERSION"/VBoxGuestAdditions_"$VBOX_VERSION".iso
|
15
|
+
mount -o loop VBoxGuestAdditions_"$VBOX_VERSION".iso /mnt
|
16
|
+
sh /mnt/VBoxLinuxAdditions.run
|
17
|
+
umount /mnt
|
18
|
+
rm VBoxGuestAdditions_"$VBOX_VERSION".iso
|
19
|
+
|
20
|
+
# host-only networking
|
21
|
+
cat >> /etc/rc.local <<EOF
|
22
|
+
# enable DHCP at boot on eth0
|
23
|
+
# See https://wiki.archlinux.org/index.php/Network#DHCP_fails_at_boot
|
24
|
+
dhcpcd -k eth0
|
25
|
+
dhcpcd -nd eth0
|
26
|
+
EOF
|
27
|
+
|
28
|
+
# clean out pacman cache
|
29
|
+
pacman -Scc<<EOF
|
30
|
+
y
|
31
|
+
y
|
32
|
+
EOF
|
33
|
+
|
34
|
+
# zero out the fs
|
35
|
+
dd if=/dev/zero of=/tmp/clean || rm /tmp/clean
|
36
|
+
|
37
|
+
# and the final reboot!
|
38
|
+
reboot
|
@@ -1,9 +1,6 @@
|
|
1
1
|
# Many thanks to @draco2002
|
2
2
|
# http://dracosplace.com/veewee_and_freebsd
|
3
3
|
|
4
|
-
# :iso_src => "ftp://mirrors.isc.org/pub/pcbsd/8.2/i386/PCBSD8.2-x86-bootonly.iso",
|
5
|
-
# :iso_file => "PCBSD8.2-x86-bootonly.iso",
|
6
|
-
|
7
4
|
#Based on https://gist.github.com/911058
|
8
5
|
|
9
6
|
Veewee::Session.declare( {
|
@@ -18,7 +15,8 @@ Veewee::Session.declare( {
|
|
18
15
|
'<KillX>',
|
19
16
|
'<Enter>',
|
20
17
|
'dhclient em0<Enter>',
|
21
|
-
'
|
18
|
+
'echo "waiting for 25 seconds"',
|
19
|
+
'sleep 25;echo "Lets Get the File";fetch "http://%IP%:%PORT%/pcinstall.fbg.cfg";sleep 2;',
|
22
20
|
'echo \'echo sshd_enable=\"YES\" >> $FSMNT/etc/rc.conf\' > /root/activate-ssh.sh ; cat /root/activate-ssh.sh<Enter>',
|
23
21
|
'chmod +x /root/activate-ssh.sh<Enter>',
|
24
22
|
'echo "Hope i got the file";/usr/PCBSD/pc-sysinstall/pc-sysinstall -c /root/pcinstall.fbg.cfg<Enter>',
|
@@ -32,7 +32,7 @@ make install -DBATCH
|
|
32
32
|
mkdir /home/vagrant/.ssh
|
33
33
|
chmod 700 /home/vagrant/.ssh
|
34
34
|
cd /home/vagrant/.ssh
|
35
|
-
/usr/local/bin/wget --no-check-certificate '
|
35
|
+
/usr/local/bin/wget --no-check-certificate 'https://raw.github.com/mitchellh/vagrant/master/keys/vagrant.pub' -O authorized_keys
|
36
36
|
chown -R vagrant /home/vagrant/.ssh
|
37
37
|
|
38
38
|
# Cleaning portstree to save space
|
@@ -9,14 +9,15 @@ Veewee::Session.declare({
|
|
9
9
|
:disk_size => '10140', :disk_format => 'VDI', :hostiocache => 'off',
|
10
10
|
:os_type_id => 'FreeBSD',
|
11
11
|
:iso_file => "PCBSD8.2-x86-DVD.iso",
|
12
|
-
:iso_src => "
|
12
|
+
:iso_src => "http://mirrors.isc.org/pub/pcbsd/8.2/i386/PCBSD8.2-x86-DVD.iso",
|
13
13
|
:iso_md5 => "6433a8abf6073b177750d48398bed341",
|
14
14
|
:iso_download_timeout => "1000",
|
15
15
|
:boot_wait => "70", :boot_cmd_sequence => [
|
16
16
|
'<KillX>',
|
17
17
|
'<Enter>',
|
18
18
|
'dhclient em0<Enter>',
|
19
|
-
'
|
19
|
+
'echo "waiting for 25 seconds"',
|
20
|
+
'sleep 25;echo "Lets Get the File";fetch "http://%IP%:%PORT%/pcinstall.fbg.cfg";sleep 2;',
|
20
21
|
'echo \'echo sshd_enable=\"YES\" >> $FSMNT/etc/rc.conf\' > /root/activate-ssh.sh ; cat /root/activate-ssh.sh<Enter>',
|
21
22
|
'chmod +x /root/activate-ssh.sh<Enter>',
|
22
23
|
'echo "Hope i got the file";/usr/PCBSD/pc-sysinstall/pc-sysinstall -c /root/pcinstall.fbg.cfg<Enter>',
|
@@ -32,7 +32,7 @@ make install -DBATCH
|
|
32
32
|
mkdir /home/vagrant/.ssh
|
33
33
|
chmod 700 /home/vagrant/.ssh
|
34
34
|
cd /home/vagrant/.ssh
|
35
|
-
/usr/local/bin/wget --no-check-certificate '
|
35
|
+
/usr/local/bin/wget --no-check-certificate 'https://raw.github.com/mitchellh/vagrant/master/keys/vagrant.pub' -O authorized_keys
|
36
36
|
chown -R vagrant /home/vagrant/.ssh
|
37
37
|
|
38
38
|
# Cleaning portstree to save space
|
@@ -0,0 +1,34 @@
|
|
1
|
+
Veewee::Session.declare( {
|
2
|
+
:cpu_count => '8', :memory_size=> '1536',
|
3
|
+
:disk_size => '10140', :disk_format => 'VDI',:hostiocache => 'off',
|
4
|
+
:os_type_id => 'Gentoo_64', # Funtoo is a GIT based gentoo derivative
|
5
|
+
:iso_file => "install-amd64-minimal-20111208.iso",
|
6
|
+
:iso_src => "http://ftp.osuosl.org/pub/gentoo/releases/amd64/autobuilds/20111208/install-amd64-minimal-20111208.iso",
|
7
|
+
:iso_md5 => "8c4e10aaaa7cce35503c0d23b4e0a42a",
|
8
|
+
:iso_download_timeout => "1000",
|
9
|
+
:boot_wait => "4",
|
10
|
+
:boot_cmd_sequence => [
|
11
|
+
'<Wait>'*4,
|
12
|
+
'gentoo-nofb<Enter>', # boot gentoo no frame buffer mode option
|
13
|
+
'<Wait>'*45,
|
14
|
+
'<Enter>', # asks about your keyboard, take the default
|
15
|
+
'<Wait>'*45,
|
16
|
+
'<Enter><Wait>', # just in case we are out of sync
|
17
|
+
'net-setup eth0<Enter>',
|
18
|
+
'<Wait><Enter>',
|
19
|
+
'2<Enter>', # Set up the NIC card with DHCP
|
20
|
+
'1<Enter>',
|
21
|
+
'<Wait><Wait>ifconfig -a <Enter>',
|
22
|
+
'passwd<Enter><Wait><Wait>',
|
23
|
+
'vagrant<Enter><Wait>',
|
24
|
+
'vagrant<Enter><Wait>',
|
25
|
+
'/etc/init.d/sshd start<Enter><Wait><Wait>'
|
26
|
+
],
|
27
|
+
:kickstart_port => "7122", :kickstart_timeout => "10000",:kickstart_file => "",
|
28
|
+
:ssh_login_timeout => "10000",:ssh_user => "root", :ssh_password => "vagrant",:ssh_key => "",
|
29
|
+
:ssh_host_port => "7222", :ssh_guest_port => "22",
|
30
|
+
:sudo_cmd => "cat '%f'|su -",
|
31
|
+
:shutdown_cmd => "shutdown -p now",
|
32
|
+
:postinstall_files => [ "postinstall.sh", "postinstall2.sh" ], :postinstall_timeout => "15000"
|
33
|
+
}
|
34
|
+
)
|
@@ -0,0 +1,177 @@
|
|
1
|
+
#!/bin/bash
|
2
|
+
|
3
|
+
date > /etc/vagrant_box_build_time
|
4
|
+
|
5
|
+
#Based on http://www.funtoo.org/wiki/Funtoo_Linux_Installation
|
6
|
+
|
7
|
+
#Partition the disk
|
8
|
+
# Gentoo live CD were using doesn't have gdisk and it looks
|
9
|
+
# to be interactive like fdisk. sfdisk is scritable but has issues.
|
10
|
+
#
|
11
|
+
# If you adjust, best to read this
|
12
|
+
# http://www.spinics.net/lists/util-linux-ng/msg03406.html
|
13
|
+
#
|
14
|
+
# Basically, all partitioning programs are wonky, sfdisk is scriptable, but likes
|
15
|
+
# to keeps things too tight skipping post-MBR spacing and "grub-install" fails later.
|
16
|
+
# Take the advice of the email and partition your drive with fdisk and dump it with
|
17
|
+
#
|
18
|
+
# sfdisk -uS -d /dev/sda
|
19
|
+
#
|
20
|
+
# and plug those values into the script. The --force by sector will get
|
21
|
+
# you what fdisk layed out and gets something grub-install can deal with. fun...
|
22
|
+
#
|
23
|
+
#
|
24
|
+
#/boot -> /dev/sda1 200M, left 2Meg of space for grub-install
|
25
|
+
#swap -> /dev/sda2 1.5G
|
26
|
+
#root -> /dev/sda3 Rest of space and bootable
|
27
|
+
|
28
|
+
sfdisk --force -uS /dev/sda <<EOF
|
29
|
+
4096,409600,L
|
30
|
+
413696,3072000,S
|
31
|
+
3485696,17281024,L,*
|
32
|
+
EOF
|
33
|
+
|
34
|
+
sleep 2
|
35
|
+
|
36
|
+
#Format the /boot
|
37
|
+
mke2fs -t ext2 /dev/sda1
|
38
|
+
|
39
|
+
#Main partition /
|
40
|
+
mke2fs -t ext4 /dev/sda3
|
41
|
+
|
42
|
+
#Format the swap and use it
|
43
|
+
mkswap /dev/sda2
|
44
|
+
swapon /dev/sda2
|
45
|
+
|
46
|
+
#Mount the new disk
|
47
|
+
mkdir /mnt/funtoo
|
48
|
+
mount /dev/sda3 /mnt/funtoo
|
49
|
+
mkdir /mnt/funtoo/boot
|
50
|
+
mount /dev/sda1 /mnt/funtoo/boot
|
51
|
+
cd /mnt/funtoo
|
52
|
+
|
53
|
+
#Note: we retry as sometimes mirrors fail to have the files
|
54
|
+
#Download a stage3 archive
|
55
|
+
wget --tries=5 http://ftp.osuosl.org/pub/funtoo/funtoo-stable/x86-64bit/generic_64/stage3-current.tar.xz
|
56
|
+
tar xpf stage3*
|
57
|
+
|
58
|
+
#Chroot
|
59
|
+
mount --bind /proc ./proc
|
60
|
+
mount --bind /dev ./dev
|
61
|
+
cp /etc/resolv.conf /mnt/funtoo/etc/
|
62
|
+
chroot /mnt/funtoo env-update
|
63
|
+
|
64
|
+
# git installed from stage3 tarball
|
65
|
+
chroot /mnt/funtoo emerge --sync
|
66
|
+
|
67
|
+
# California dreamin
|
68
|
+
cd /mnt/funtoo/etc
|
69
|
+
rm -f localtime
|
70
|
+
ln -s ../usr/share/zoneinfo/America/Los_Angeles localtime
|
71
|
+
cd /mnt/funtoo
|
72
|
+
|
73
|
+
# get fstab defined
|
74
|
+
cat <<FSTABEOF > /mnt/funtoo/etc/fstab
|
75
|
+
# The root filesystem should have a pass number of either 0 or 1.
|
76
|
+
# All other filesystems should have a pass number of 0 or greater than 1.
|
77
|
+
#
|
78
|
+
# See the manpage fstab(5) for more information.
|
79
|
+
#
|
80
|
+
# <fs> <mountpoint> <type> <opts> <dump/pass>
|
81
|
+
|
82
|
+
/dev/sda1 /boot ext2 noauto,noatime 1 2
|
83
|
+
/dev/sda2 none swap sw 0 0
|
84
|
+
/dev/sda3 / ext4 noatime 0 1
|
85
|
+
#/dev/cdrom /mnt/cdrom auto noauto,ro 0 0
|
86
|
+
none /dev/shm tmpfs nodev,nosuid,noexec 0 0
|
87
|
+
FSTABEOF
|
88
|
+
|
89
|
+
# dhcp
|
90
|
+
chroot /mnt/funtoo rc-update add dhcpcd default
|
91
|
+
|
92
|
+
# Get the kernel sources
|
93
|
+
echo 'MAKEOPTS="-j9"' >> /mnt/funtoo/etc/make.conf
|
94
|
+
#echo 'MAKEOPTS="-j9"' >> /mnt/funtoo/etc/genkernel.conf
|
95
|
+
echo "sys-kernel/sysrescue-std-sources binary" >> /mnt/funtoo/etc/portage/package.use
|
96
|
+
echo "app-emulation/virtualbox-guest-additions" >> /mnt/funtoo/etc/portage/package.keywords
|
97
|
+
echo 'MAKEOPTS="-j9" emerge sysrescue-std-sources' | chroot /mnt/funtoo /bin/bash -
|
98
|
+
|
99
|
+
# Make the disk bootable
|
100
|
+
chroot /mnt/funtoo emerge boot-update
|
101
|
+
|
102
|
+
cat <<GRUBCONF > ./etc/boot.conf
|
103
|
+
boot {
|
104
|
+
generate grub
|
105
|
+
default "Funtoo Linux genkernel"
|
106
|
+
timeout 3
|
107
|
+
}
|
108
|
+
|
109
|
+
"Funtoo Linux" {
|
110
|
+
kernel bzImage[-v]
|
111
|
+
# params += nomodeset
|
112
|
+
}
|
113
|
+
|
114
|
+
"Funtoo Linux genkernel" {
|
115
|
+
kernel kernel[-v]
|
116
|
+
initrd initramfs[-v]
|
117
|
+
params += real_root=auto
|
118
|
+
# params += nomodeset
|
119
|
+
}
|
120
|
+
GRUBCONF
|
121
|
+
|
122
|
+
chroot /mnt/funtoo grub-install --no-floppy /dev/sda
|
123
|
+
chroot /mnt/funtoo boot-update
|
124
|
+
|
125
|
+
#Root password, needed since we're a two step installation
|
126
|
+
chroot /mnt/funtoo /bin/bash <<ENDCHROOT
|
127
|
+
passwd<<EOF
|
128
|
+
vagrant
|
129
|
+
vagrant
|
130
|
+
EOF
|
131
|
+
ENDCHROOT
|
132
|
+
|
133
|
+
#create vagrant user with password set to vagrant
|
134
|
+
chroot /mnt/funtoo groupadd -r vagrant
|
135
|
+
chroot /mnt/funtoo groupadd rvm
|
136
|
+
chroot /mnt/funtoo useradd -m -r vagrant -g vagrant -G wheel,rvm -p '$1$MPmczGP9$1SeNO4bw5YgiEJuo/ZkWq1' -c "Added by vagrant, veewee basebox creation"
|
137
|
+
chroot /mnt/funtoo rc-update add sshd default
|
138
|
+
|
139
|
+
#Allow external ssh
|
140
|
+
echo 'sshd:ALL' > /mnt/funtoo/etc/hosts.allow
|
141
|
+
echo 'ALL:ALL' > /mnt/funtoo/etc/hosts.deny
|
142
|
+
|
143
|
+
#Configure Sudo
|
144
|
+
chroot /mnt/funtoo emerge -u sudo
|
145
|
+
echo 'vagrant ALL=(ALL) NOPASSWD: ALL' >> /mnt/funtoo/etc/sudoers
|
146
|
+
|
147
|
+
|
148
|
+
#Installing vagrant keys
|
149
|
+
chroot /mnt/funtoo emerge -u wget
|
150
|
+
|
151
|
+
echo "creating vagrant ssh keys"
|
152
|
+
VAGRANTID=$(grep vagrant /mnt/funtoo/etc/passwd | cut -d ":" -f 3,4)
|
153
|
+
mkdir /mnt/funtoo/home/vagrant/.ssh
|
154
|
+
chmod 700 /mnt/funtoo/home/vagrant/.ssh
|
155
|
+
wget --no-check-certificate 'https://raw.github.com/mitchellh/vagrant/master/keys/vagrant.pub' -O /mnt/funtoo/home/vagrant/.ssh/authorized_keys
|
156
|
+
chmod 600 /mnt/funtoo/home/vagrant/.ssh/authorized_keys
|
157
|
+
chown -R ${VAGRANTID} /mnt/funtoo/home/vagrant/.ssh
|
158
|
+
|
159
|
+
/bin/cp -f /root/.vbox_version /mnt/funtoo/home/vagrant/.vbox_version
|
160
|
+
/bin/cp -f /etc/vagrant_box_build_time /mnt/funtoo/etc/vagrant_box_build_time
|
161
|
+
chown -R ${VAGRANTID} /mnt/funtoo/home/vagrant/.vbox_version
|
162
|
+
|
163
|
+
# veewee validate uses password authentication
|
164
|
+
sed -i -e 's:PasswordAuthentication no:PasswordAuthentication yes:' /mnt/funtoo/etc/ssh/sshd_config
|
165
|
+
|
166
|
+
#Get an editor going
|
167
|
+
chroot /mnt/funtoo emerge -u vim
|
168
|
+
echo "EDITOR=/usr/bin/vim" > /mnt/funtoo/etc/env.d/99editor
|
169
|
+
chroot /mnt/funtoo env-update
|
170
|
+
|
171
|
+
|
172
|
+
cd /
|
173
|
+
/etc/rc.d/network stop
|
174
|
+
umount /mnt/funtoo/{boot,proc,dev}
|
175
|
+
umount /mnt/funtoo
|
176
|
+
|
177
|
+
reboot
|
@@ -0,0 +1,83 @@
|
|
1
|
+
#!/bin/bash
|
2
|
+
|
3
|
+
# Wanted multi-user RVM (ruby version manager) setup. It got really hacky.
|
4
|
+
# Couldn't get the su command to work in the chroot so split the install into two
|
5
|
+
# phases, one in chroot, and the second phase in the installed kernel.
|
6
|
+
# Ruby's RVM needs to be installed by a user not root for multi-user use.
|
7
|
+
# All this would go away in single user install of RVM
|
8
|
+
|
9
|
+
# A bit better security, but still your root and vagrant accounts are wide open!
|
10
|
+
echo -e "PermitRootLogin no\nAllowUsers vagrant" >> /etc/ssh/sshd_config
|
11
|
+
|
12
|
+
# Cron & Syslog
|
13
|
+
emerge -u --oneshot metalog vixie-cron
|
14
|
+
rc-update add metalog default
|
15
|
+
rc-update add vixie-cron default
|
16
|
+
|
17
|
+
#Kernel headers
|
18
|
+
emerge -u --oneshot sys-kernel/linux-headers
|
19
|
+
|
20
|
+
#Installing the virtualbox guest additions
|
21
|
+
emerge app-emulation/virtualbox-guest-additions
|
22
|
+
rc-update add virtualbox-guest-additions default
|
23
|
+
|
24
|
+
# Get ruby and rvm all setup...
|
25
|
+
emerge -u --oneshot git curl gcc automake autoconf m4
|
26
|
+
emerge -u --oneshot libiconv readline zlib openssl libyaml sqlite libxslt
|
27
|
+
|
28
|
+
# Clean up portage
|
29
|
+
rm -rf /usr/portage/distfiles/*
|
30
|
+
rm /stage3*.tar.xz
|
31
|
+
|
32
|
+
# What a PITA, wanted to get a shared RVM setup, but that can't be installed by root
|
33
|
+
# Starting to feel like a matryoshka doll...
|
34
|
+
# Setup so you can SSH into the vagrant account
|
35
|
+
wget --no-check-certificate 'https://raw.github.com/mitchellh/vagrant/master/keys/vagrant' -O /tmp/sshkey
|
36
|
+
chmod 600 /tmp/sshkey
|
37
|
+
|
38
|
+
cat <<SSHCONF > /tmp/sshvagrant
|
39
|
+
Host me
|
40
|
+
HostName 127.0.0.1
|
41
|
+
User vagrant
|
42
|
+
Port 22
|
43
|
+
UserKnownHostsFile /dev/null
|
44
|
+
StrictHostKeyChecking no
|
45
|
+
PasswordAuthentication no
|
46
|
+
IdentityFile /tmp/sshkey
|
47
|
+
IdentitiesOnly yes
|
48
|
+
SSHCONF
|
49
|
+
|
50
|
+
cat <<GEMINST > /tmp/sshgems
|
51
|
+
echo -e "\n***\n*** My id is yuck ***\n***\n"
|
52
|
+
|
53
|
+
# Lots of problems if you install as root so we'll use sudo like to docs describe
|
54
|
+
sudo bash -s stable < <(curl -s https://raw.github.com/wayneeseguin/rvm/master/binscripts/rvm-installer )
|
55
|
+
sudo env-update
|
56
|
+
source /etc/profile
|
57
|
+
|
58
|
+
# Install ruby and gems into rvm
|
59
|
+
rvm install 1.8.7
|
60
|
+
rvm use 1.8.7 --default
|
61
|
+
rvm gemset create global
|
62
|
+
rvm use @global
|
63
|
+
|
64
|
+
#Installing chef & puppet
|
65
|
+
gem install chef
|
66
|
+
gem install puppet
|
67
|
+
|
68
|
+
# Cleanup
|
69
|
+
sudo chmod 655 /tmp/sshkey
|
70
|
+
sudo rm /tmp/ssh*
|
71
|
+
|
72
|
+
echo -e "\n***\n*** Chef and Puppet installed in RVM ***\n***\n"
|
73
|
+
GEMINST
|
74
|
+
|
75
|
+
chmod 755 /tmp/sshgems
|
76
|
+
sed -i -e 's,yuck,$(id),' /tmp/sshgems
|
77
|
+
ssh -F /tmp/sshvagrant me /tmp/sshgems
|
78
|
+
|
79
|
+
# Sometimes you don't get out of the SSH session. Think the EOF bails out both
|
80
|
+
# the ssh login with the vagrant account and the veewee login with the root
|
81
|
+
# account. So we put the RVM stuff last and its no issue.
|
82
|
+
|
83
|
+
echo -e "\n***\n*** SURVIVED SSH EOF! ***\n***\n"
|