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
@@ -0,0 +1,60 @@
|
|
1
|
+
#http://chrisadams.me.uk/2010/05/10/setting-up-a-centos-base-box-for-development-and-testing-with-vagrant/
|
2
|
+
|
3
|
+
date > /etc/vagrant_box_build_time
|
4
|
+
|
5
|
+
fail()
|
6
|
+
{
|
7
|
+
echo "FATAL: $*"
|
8
|
+
exit 1
|
9
|
+
}
|
10
|
+
|
11
|
+
#kernel source is needed for vbox additions
|
12
|
+
yum -y install gcc bzip2 make kernel-devel-`uname -r`
|
13
|
+
#yum -y update
|
14
|
+
#yum -y upgrade
|
15
|
+
|
16
|
+
yum -y install gcc-c++ zlib-devel openssl-devel readline-devel sqlite3-devel
|
17
|
+
yum -y erase gtk2 libX11 hicolor-icon-theme avahi freetype bitstream-vera-fonts
|
18
|
+
yum -y clean all
|
19
|
+
|
20
|
+
#Installing ruby
|
21
|
+
cd /tmp
|
22
|
+
wget http://ftp.ruby-lang.org/pub/ruby/1.9/ruby-1.9.2-p180.tar.gz || fail "Could not download Ruby source"
|
23
|
+
tar xzvf ruby-1.9.2-p180.tar.gz
|
24
|
+
cd ruby-1.9.2-p180
|
25
|
+
./configure
|
26
|
+
make && make install
|
27
|
+
cd /tmp
|
28
|
+
rm -rf /tmp/ruby-1.9.2-p180
|
29
|
+
rm /tmp/ruby-1.9.2-p180.tar.gz
|
30
|
+
ln -s /usr/local/bin/ruby /usr/bin/ruby # Create a sym link for the same path
|
31
|
+
ln -s /usr/local/bin/gem /usr/bin/gem # Create a sym link for the same path
|
32
|
+
|
33
|
+
#Installing chef & Puppet
|
34
|
+
echo "Installing chef and puppet"
|
35
|
+
/usr/local/bin/gem install chef --no-ri --no-rdoc || fail "Could not install chef"
|
36
|
+
/usr/local/bin/gem install puppet --no-ri --no-rdoc || fail "Could not install puppet"
|
37
|
+
|
38
|
+
#Installing vagrant keys
|
39
|
+
mkdir /home/vagrant/.ssh
|
40
|
+
chmod 700 /home/vagrant/.ssh
|
41
|
+
cd /home/vagrant/.ssh
|
42
|
+
wget --no-check-certificate 'https://raw.github.com/mitchellh/vagrant/master/keys/vagrant.pub' -O authorized_keys
|
43
|
+
chown -R vagrant /home/vagrant/.ssh
|
44
|
+
|
45
|
+
#Installing the virtualbox guest additions
|
46
|
+
VBOX_VERSION=$(cat /home/vagrant/.vbox_version)
|
47
|
+
cd /tmp
|
48
|
+
wget http://download.virtualbox.org/virtualbox/$VBOX_VERSION/VBoxGuestAdditions_$VBOX_VERSION.iso
|
49
|
+
mount -o loop VBoxGuestAdditions_$VBOX_VERSION.iso /mnt
|
50
|
+
sh /mnt/VBoxLinuxAdditions.run
|
51
|
+
umount /mnt
|
52
|
+
|
53
|
+
rm VBoxGuestAdditions_$VBOX_VERSION.iso
|
54
|
+
|
55
|
+
sed -i "s/^.*requiretty/#Defaults requiretty/" /etc/sudoers
|
56
|
+
sed -i "s/^\(.*env_keep = \"\)/\1PATH /" /etc/sudoers
|
57
|
+
|
58
|
+
#poweroff -h
|
59
|
+
|
60
|
+
exit
|
@@ -22,7 +22,7 @@ firstboot --disabled
|
|
22
22
|
reboot
|
23
23
|
|
24
24
|
repo --name=epel --baseurl=http://download.fedora.redhat.com/pub/epel/6/i386/ --includepkgs='ruby-augeas,ruby-shadow'
|
25
|
-
repo --name=puppetlabs --baseurl=http://
|
25
|
+
repo --name=puppetlabs --baseurl=http://yum.puppetlabs.com/el/6/products/i386 --includepkgs='puppet,facter'
|
26
26
|
|
27
27
|
%packages
|
28
28
|
@ core
|
@@ -11,7 +11,7 @@ gem install --no-ri --no-rdoc chef
|
|
11
11
|
mkdir /home/vagrant/.ssh
|
12
12
|
chmod 700 /home/vagrant/.ssh
|
13
13
|
cd /home/vagrant/.ssh
|
14
|
-
wget --no-check-certificate '
|
14
|
+
wget --no-check-certificate 'https://raw.github.com/mitchellh/vagrant/master/keys/vagrant.pub' -O authorized_keys
|
15
15
|
chown -R vagrant /home/vagrant/.ssh
|
16
16
|
|
17
17
|
# Installing the virtualbox guest additions
|
@@ -5,7 +5,7 @@ date > /etc/vagrant_box_build_time
|
|
5
5
|
cat > /etc/yum.repos.d/puppetlabs.repo << EOM
|
6
6
|
[puppetlabs]
|
7
7
|
name=puppetlabs
|
8
|
-
baseurl=http://
|
8
|
+
baseurl=http://yum.puppetlabs.com/el/6/products/\$basearch
|
9
9
|
enabled=1
|
10
10
|
gpgcheck=0
|
11
11
|
EOM
|
@@ -29,7 +29,7 @@ gem install --no-ri --no-rdoc chef
|
|
29
29
|
mkdir /home/vagrant/.ssh
|
30
30
|
chmod 700 /home/vagrant/.ssh
|
31
31
|
cd /home/vagrant/.ssh
|
32
|
-
wget --no-check-certificate '
|
32
|
+
wget --no-check-certificate 'https://raw.github.com/mitchellh/vagrant/master/keys/vagrant.pub' -O authorized_keys
|
33
33
|
chown -R vagrant /home/vagrant/.ssh
|
34
34
|
|
35
35
|
# Installing the virtualbox guest additions
|
@@ -0,0 +1,17 @@
|
|
1
|
+
Veewee::Session.declare({
|
2
|
+
:cpu_count => '1', :memory_size=> '384',
|
3
|
+
:disk_size => '10140', :disk_format => 'VDI', :hostiocache => 'off',
|
4
|
+
:os_type_id => 'RedHat_64',
|
5
|
+
:iso_file => "CentOS-6.0-x86_64-minimal.iso", :iso_src => "http://vault.centos.org/6.0/isos/x86_64/CentOS-6.0-x86_64-minimal.iso", :iso_md5 => "b9fff4dad7aad0edaa564d7a251cb971", :iso_download_timeout => 1000,
|
6
|
+
:iso_download_instructions => "We can not download the ISO , you need to download it yourself and put it in the iso directory\n"+
|
7
|
+
"- URL: http://isoredirect.centos.org/centos/6/isos/x86_64/ ",
|
8
|
+
:boot_wait => "10", :boot_cmd_sequence => [
|
9
|
+
'<Tab> text ks=http://%IP%:%PORT%/ks.cfg<Enter>'
|
10
|
+
],
|
11
|
+
:kickstart_port => "7122", :kickstart_timeout => 10000, :kickstart_file => "ks.cfg",
|
12
|
+
:ssh_login_timeout => "100", :ssh_user => "vagrant", :ssh_password => "vagrant", :ssh_key => "",
|
13
|
+
:ssh_host_port => "7222", :ssh_guest_port => "22",
|
14
|
+
:sudo_cmd => "echo '%p'|sudo -S sh '%f'",
|
15
|
+
:shutdown_cmd => "/sbin/halt -h -p",
|
16
|
+
:postinstall_files => [ "postinstall.sh"], :postinstall_timeout => 10000
|
17
|
+
})
|
@@ -0,0 +1,37 @@
|
|
1
|
+
install
|
2
|
+
cdrom
|
3
|
+
lang en_US.UTF-8
|
4
|
+
keyboard us
|
5
|
+
network --bootproto=dhcp
|
6
|
+
rootpw --iscrypted $1$damlkd,f$UC/u5pUts5QiU3ow.CSso/
|
7
|
+
firewall --enabled --service=ssh
|
8
|
+
authconfig --enableshadow --passalgo=sha512
|
9
|
+
selinux --disabled
|
10
|
+
timezone Europe/Brussels
|
11
|
+
bootloader --location=mbr
|
12
|
+
|
13
|
+
text
|
14
|
+
skipx
|
15
|
+
zerombr
|
16
|
+
|
17
|
+
clearpart --all --initlabel
|
18
|
+
autopart
|
19
|
+
|
20
|
+
auth --useshadow --enablemd5
|
21
|
+
firstboot --disabled
|
22
|
+
reboot
|
23
|
+
|
24
|
+
%packages --ignoremissing
|
25
|
+
@core
|
26
|
+
bzip2
|
27
|
+
|
28
|
+
-ipw2100-firmware
|
29
|
+
-ipw2200-firmware
|
30
|
+
-ivtv-firmware
|
31
|
+
|
32
|
+
%post
|
33
|
+
/usr/bin/yum -y install sudo
|
34
|
+
/usr/sbin/groupadd vagrant
|
35
|
+
/usr/sbin/useradd vagrant -g vagrant -G wheel
|
36
|
+
echo "vagrant"|passwd --stdin vagrant
|
37
|
+
echo "vagrant ALL=(ALL) NOPASSWD: ALL" >> /etc/sudoers
|
@@ -0,0 +1,58 @@
|
|
1
|
+
#http://chrisadams.me.uk/2010/05/10/setting-up-a-centos-base-box-for-development-and-testing-with-vagrant/
|
2
|
+
|
3
|
+
date > /etc/vagrant_box_build_time
|
4
|
+
|
5
|
+
yum -y install gcc make gcc-c++ ruby zlib-devel openssl-devel readline-devel sqlite-devel perl
|
6
|
+
|
7
|
+
cat > /etc/yum.repos.d/puppetlabs.repo << EOM
|
8
|
+
[puppetlabs]
|
9
|
+
name=puppetlabs
|
10
|
+
baseurl=http://yum.puppetlabs.com/el/6/products/\$basearch
|
11
|
+
enabled=1
|
12
|
+
gpgcheck=0
|
13
|
+
EOM
|
14
|
+
|
15
|
+
cat > /etc/yum.repos.d/epel.repo << EOM
|
16
|
+
[epel]
|
17
|
+
name=epel
|
18
|
+
baseurl=http://download.fedoraproject.org/pub/epel/6/\$basearch
|
19
|
+
enabled=1
|
20
|
+
gpgcheck=0
|
21
|
+
EOM
|
22
|
+
|
23
|
+
yum -y install dkms puppet facter ruby-devel rubygems
|
24
|
+
yum -y clean all
|
25
|
+
rm /etc/yum.repos.d/{puppetlabs,epel}.repo
|
26
|
+
|
27
|
+
gem install --no-ri --no-rdoc chef
|
28
|
+
|
29
|
+
# Installing vagrant keys
|
30
|
+
mkdir /home/vagrant/.ssh
|
31
|
+
chmod 700 /home/vagrant/.ssh
|
32
|
+
cd /home/vagrant/.ssh
|
33
|
+
echo "Installing authorized keys for vagrant user"
|
34
|
+
curl --silent -L -o authorized_keys https://raw.github.com/mitchellh/vagrant/master/keys/vagrant.pub
|
35
|
+
chown -R vagrant /home/vagrant/.ssh
|
36
|
+
|
37
|
+
# Installing the virtualbox guest additions
|
38
|
+
VBOX_VERSION=$(cat /home/vagrant/.vbox_version)
|
39
|
+
cd /tmp
|
40
|
+
|
41
|
+
#force install the correct kernel headers for this version of centos
|
42
|
+
echo "Retrieving and installing kernel-devel-2.6.32-71.el6.x86_64.rpm "
|
43
|
+
curl --silent -L -o kernel-devel-2.6.32-71.el6.x86_64.rpm http://vault.centos.org/6.0/os/x86_64/Packages/kernel-devel-2.6.32-71.el6.x86_64.rpm
|
44
|
+
sudo rpm -ivh --force kernel-devel-2.6.32-71.el6.x86_64.rpm
|
45
|
+
|
46
|
+
echo "Retrieving and installing VBoxGuestAdditions"
|
47
|
+
curl --silent -L -o VBoxGuestAdditions_$VBOX_VERSION.iso http://download.virtualbox.org/virtualbox/$VBOX_VERSION/VBoxGuestAdditions_$VBOX_VERSION.iso
|
48
|
+
mount -o loop VBoxGuestAdditions_$VBOX_VERSION.iso /mnt
|
49
|
+
sh /mnt/VBoxLinuxAdditions.run
|
50
|
+
umount /mnt
|
51
|
+
|
52
|
+
rm VBoxGuestAdditions_$VBOX_VERSION.iso
|
53
|
+
|
54
|
+
sed -i "s/^.*requiretty/#Defaults requiretty/" /etc/sudoers
|
55
|
+
|
56
|
+
dd if=/dev/zero of=/tmp/clean || rm /tmp/clean
|
57
|
+
|
58
|
+
exit
|
@@ -22,7 +22,7 @@ firstboot --disabled
|
|
22
22
|
reboot
|
23
23
|
|
24
24
|
repo --name=epel --baseurl=http://download.fedora.redhat.com/pub/epel/6/x86_64/ --includepkgs='ruby-augeas,ruby-shadow'
|
25
|
-
repo --name=puppetlabs --baseurl=http://
|
25
|
+
repo --name=puppetlabs --baseurl=http://yum.puppetlabs.com/el/6/products/x86_64 --includepkgs='puppet,facter'
|
26
26
|
|
27
27
|
%packages
|
28
28
|
@ core
|
@@ -11,7 +11,7 @@ gem install --no-ri --no-rdoc chef
|
|
11
11
|
mkdir /home/vagrant/.ssh
|
12
12
|
chmod 700 /home/vagrant/.ssh
|
13
13
|
cd /home/vagrant/.ssh
|
14
|
-
wget --no-check-certificate '
|
14
|
+
wget --no-check-certificate 'https://raw.github.com/mitchellh/vagrant/master/keys/vagrant.pub' -O authorized_keys
|
15
15
|
chown -R vagrant /home/vagrant/.ssh
|
16
16
|
|
17
17
|
# Installing the virtualbox guest additions
|
@@ -5,7 +5,7 @@ date > /etc/vagrant_box_build_time
|
|
5
5
|
cat > /etc/yum.repos.d/puppetlabs.repo << EOM
|
6
6
|
[puppetlabs]
|
7
7
|
name=puppetlabs
|
8
|
-
baseurl=http://
|
8
|
+
baseurl=http://yum.puppetlabs.com/el/6/products/\$basearch
|
9
9
|
enabled=1
|
10
10
|
gpgcheck=0
|
11
11
|
EOM
|
@@ -29,7 +29,7 @@ gem install --no-ri --no-rdoc chef
|
|
29
29
|
mkdir /home/vagrant/.ssh
|
30
30
|
chmod 700 /home/vagrant/.ssh
|
31
31
|
cd /home/vagrant/.ssh
|
32
|
-
wget --no-check-certificate '
|
32
|
+
wget --no-check-certificate 'https://raw.github.com/mitchellh/vagrant/master/keys/vagrant.pub' -O authorized_keys
|
33
33
|
chown -R vagrant /home/vagrant/.ssh
|
34
34
|
|
35
35
|
# Installing the virtualbox guest additions
|
@@ -0,0 +1,15 @@
|
|
1
|
+
Veewee::Session.declare({
|
2
|
+
:cpu_count => '1', :memory_size=> '512',
|
3
|
+
:disk_size => '10140', :disk_format => 'VDI', :hostiocache => 'off',
|
4
|
+
:os_type_id => 'RedHat_64',
|
5
|
+
:iso_file => "CentOS-6.1-x86_64-minimal.iso", :iso_src => "http://mirror.internode.on.net/pub/centos/6.1/isos/x86_64/CentOS-6.1-x86_64-minimal.iso", :iso_md5 => "03177dfefb4ebfeb03f457c29f00b0a1", :iso_download_timeout => 1000,
|
6
|
+
:boot_wait => "10", :boot_cmd_sequence => [
|
7
|
+
'<Tab> text ks=http://%IP%:%PORT%/ks.cfg<Enter>'
|
8
|
+
],
|
9
|
+
:kickstart_port => "7122", :kickstart_timeout => 10000, :kickstart_file => "ks.cfg",
|
10
|
+
:ssh_login_timeout => "100", :ssh_user => "vagrant", :ssh_password => "vagrant", :ssh_key => "",
|
11
|
+
:ssh_host_port => "7222", :ssh_guest_port => "22",
|
12
|
+
:sudo_cmd => "echo '%p'|sudo -S sh '%f'",
|
13
|
+
:shutdown_cmd => "/sbin/halt -h -p",
|
14
|
+
:postinstall_files => [ "postinstall.sh"], :postinstall_timeout => 10000
|
15
|
+
})
|
@@ -0,0 +1,37 @@
|
|
1
|
+
install
|
2
|
+
cdrom
|
3
|
+
lang en_US.UTF-8
|
4
|
+
keyboard us
|
5
|
+
network --bootproto=dhcp
|
6
|
+
rootpw --iscrypted $1$damlkd,f$UC/u5pUts5QiU3ow.CSso/
|
7
|
+
firewall --enabled --service=ssh
|
8
|
+
authconfig --enableshadow --passalgo=sha512
|
9
|
+
selinux --disabled
|
10
|
+
timezone UTC
|
11
|
+
bootloader --location=mbr
|
12
|
+
|
13
|
+
text
|
14
|
+
skipx
|
15
|
+
zerombr
|
16
|
+
|
17
|
+
clearpart --all --initlabel
|
18
|
+
autopart
|
19
|
+
|
20
|
+
auth --useshadow --enablemd5
|
21
|
+
firstboot --disabled
|
22
|
+
reboot
|
23
|
+
|
24
|
+
%packages --ignoremissing
|
25
|
+
@core
|
26
|
+
bzip2
|
27
|
+
|
28
|
+
-ipw2100-firmware
|
29
|
+
-ipw2200-firmware
|
30
|
+
-ivtv-firmware
|
31
|
+
|
32
|
+
%post
|
33
|
+
/usr/bin/yum -y install sudo
|
34
|
+
/usr/sbin/groupadd vagrant
|
35
|
+
/usr/sbin/useradd vagrant -g vagrant -G wheel
|
36
|
+
echo "vagrant"|passwd --stdin vagrant
|
37
|
+
echo "vagrant ALL=(ALL) NOPASSWD: ALL" >> /etc/sudoers
|
@@ -0,0 +1,50 @@
|
|
1
|
+
#http://chrisadams.me.uk/2010/05/10/setting-up-a-centos-base-box-for-development-and-testing-with-vagrant/
|
2
|
+
|
3
|
+
date > /etc/vagrant_box_build_time
|
4
|
+
|
5
|
+
yum -y install gcc make gcc-c++ ruby kernel-devel-`uname -r` zlib-devel openssl-devel readline-devel sqlite-devel perl
|
6
|
+
|
7
|
+
cat > /etc/yum.repos.d/puppetlabs.repo << EOM
|
8
|
+
[puppetlabs]
|
9
|
+
name=puppetlabs
|
10
|
+
baseurl=http://yum.puppetlabs.com/el/6/products/\$basearch
|
11
|
+
enabled=1
|
12
|
+
gpgcheck=0
|
13
|
+
EOM
|
14
|
+
|
15
|
+
cat > /etc/yum.repos.d/epel.repo << EOM
|
16
|
+
[epel]
|
17
|
+
name=epel
|
18
|
+
baseurl=http://download.fedoraproject.org/pub/epel/6/\$basearch
|
19
|
+
enabled=1
|
20
|
+
gpgcheck=0
|
21
|
+
EOM
|
22
|
+
|
23
|
+
yum -y install puppet facter ruby-devel rubygems
|
24
|
+
yum -y clean all
|
25
|
+
rm /etc/yum.repos.d/{puppetlabs,epel}.repo
|
26
|
+
|
27
|
+
gem install --no-ri --no-rdoc chef
|
28
|
+
|
29
|
+
# Installing vagrant keys
|
30
|
+
mkdir /home/vagrant/.ssh
|
31
|
+
chmod 700 /home/vagrant/.ssh
|
32
|
+
cd /home/vagrant/.ssh
|
33
|
+
curl -L -o authorized_keys https://raw.github.com/mitchellh/vagrant/master/keys/vagrant.pub
|
34
|
+
chown -R vagrant /home/vagrant/.ssh
|
35
|
+
|
36
|
+
# Installing the virtualbox guest additions
|
37
|
+
VBOX_VERSION=$(cat /home/vagrant/.vbox_version)
|
38
|
+
cd /tmp
|
39
|
+
curl -L -o VBoxGuestAdditions_$VBOX_VERSION.iso http://download.virtualbox.org/virtualbox/$VBOX_VERSION/VBoxGuestAdditions_$VBOX_VERSION.iso
|
40
|
+
mount -o loop VBoxGuestAdditions_$VBOX_VERSION.iso /mnt
|
41
|
+
sh /mnt/VBoxLinuxAdditions.run
|
42
|
+
umount /mnt
|
43
|
+
|
44
|
+
rm VBoxGuestAdditions_$VBOX_VERSION.iso
|
45
|
+
|
46
|
+
sed -i "s/^.*requiretty/#Defaults requiretty/" /etc/sudoers
|
47
|
+
|
48
|
+
dd if=/dev/zero of=/tmp/clean || rm /tmp/clean
|
49
|
+
|
50
|
+
exit
|
@@ -0,0 +1,15 @@
|
|
1
|
+
Veewee::Session.declare({
|
2
|
+
:cpu_count => '1', :memory_size=> '512',
|
3
|
+
:disk_size => '10140', :disk_format => 'VDI', :hostiocache => 'off',
|
4
|
+
:os_type_id => 'RedHat_64',
|
5
|
+
:iso_file => "CentOS-6.2-x86_64-minimal.iso", :iso_src => "http://mirror.internode.on.net/pub/centos/6.2/isos/x86_64/CentOS-6.2-x86_64-minimal.iso", :iso_md5 => "20dac370a6e08ded2701e4104855bc6e", :iso_download_timeout => 1000,
|
6
|
+
:boot_wait => "10", :boot_cmd_sequence => [
|
7
|
+
'<Tab> text ks=http://%IP%:%PORT%/ks.cfg<Enter>'
|
8
|
+
],
|
9
|
+
:kickstart_port => "7122", :kickstart_timeout => 10000, :kickstart_file => "ks.cfg",
|
10
|
+
:ssh_login_timeout => "100", :ssh_user => "vagrant", :ssh_password => "vagrant", :ssh_key => "",
|
11
|
+
:ssh_host_port => "7222", :ssh_guest_port => "22",
|
12
|
+
:sudo_cmd => "echo '%p'|sudo -S sh '%f'",
|
13
|
+
:shutdown_cmd => "/sbin/halt -h -p",
|
14
|
+
:postinstall_files => [ "postinstall.sh"], :postinstall_timeout => 10000
|
15
|
+
})
|
@@ -0,0 +1,37 @@
|
|
1
|
+
install
|
2
|
+
cdrom
|
3
|
+
lang en_US.UTF-8
|
4
|
+
keyboard us
|
5
|
+
network --bootproto=dhcp
|
6
|
+
rootpw --iscrypted $1$damlkd,f$UC/u5pUts5QiU3ow.CSso/
|
7
|
+
firewall --enabled --service=ssh
|
8
|
+
authconfig --enableshadow --passalgo=sha512
|
9
|
+
selinux --disabled
|
10
|
+
timezone UTC
|
11
|
+
bootloader --location=mbr
|
12
|
+
|
13
|
+
text
|
14
|
+
skipx
|
15
|
+
zerombr
|
16
|
+
|
17
|
+
clearpart --all --initlabel
|
18
|
+
autopart
|
19
|
+
|
20
|
+
auth --useshadow --enablemd5
|
21
|
+
firstboot --disabled
|
22
|
+
reboot
|
23
|
+
|
24
|
+
%packages --ignoremissing
|
25
|
+
@core
|
26
|
+
bzip2
|
27
|
+
|
28
|
+
-ipw2100-firmware
|
29
|
+
-ipw2200-firmware
|
30
|
+
-ivtv-firmware
|
31
|
+
|
32
|
+
%post
|
33
|
+
/usr/bin/yum -y install sudo
|
34
|
+
/usr/sbin/groupadd vagrant
|
35
|
+
/usr/sbin/useradd vagrant -g vagrant -G wheel
|
36
|
+
echo "vagrant"|passwd --stdin vagrant
|
37
|
+
echo "vagrant ALL=(ALL) NOPASSWD: ALL" >> /etc/sudoers
|
@@ -0,0 +1,50 @@
|
|
1
|
+
#http://chrisadams.me.uk/2010/05/10/setting-up-a-centos-base-box-for-development-and-testing-with-vagrant/
|
2
|
+
|
3
|
+
date > /etc/vagrant_box_build_time
|
4
|
+
|
5
|
+
yum -y install gcc make gcc-c++ ruby kernel-devel-`uname -r` zlib-devel openssl-devel readline-devel sqlite-devel perl
|
6
|
+
|
7
|
+
cat > /etc/yum.repos.d/puppetlabs.repo << EOM
|
8
|
+
[puppetlabs]
|
9
|
+
name=puppetlabs
|
10
|
+
baseurl=http://yum.puppetlabs.com/el/6/products/\$basearch
|
11
|
+
enabled=1
|
12
|
+
gpgcheck=0
|
13
|
+
EOM
|
14
|
+
|
15
|
+
cat > /etc/yum.repos.d/epel.repo << EOM
|
16
|
+
[epel]
|
17
|
+
name=epel
|
18
|
+
baseurl=http://download.fedoraproject.org/pub/epel/6/\$basearch
|
19
|
+
enabled=1
|
20
|
+
gpgcheck=0
|
21
|
+
EOM
|
22
|
+
|
23
|
+
yum -y install puppet facter ruby-devel rubygems
|
24
|
+
yum -y clean all
|
25
|
+
rm /etc/yum.repos.d/{puppetlabs,epel}.repo
|
26
|
+
|
27
|
+
gem install --no-ri --no-rdoc chef
|
28
|
+
|
29
|
+
# Installing vagrant keys
|
30
|
+
mkdir /home/vagrant/.ssh
|
31
|
+
chmod 700 /home/vagrant/.ssh
|
32
|
+
cd /home/vagrant/.ssh
|
33
|
+
curl -L -o authorized_keys https://raw.github.com/mitchellh/vagrant/master/keys/vagrant.pub
|
34
|
+
chown -R vagrant /home/vagrant/.ssh
|
35
|
+
|
36
|
+
# Installing the virtualbox guest additions
|
37
|
+
VBOX_VERSION=$(cat /home/vagrant/.vbox_version)
|
38
|
+
cd /tmp
|
39
|
+
curl -L -o VBoxGuestAdditions_$VBOX_VERSION.iso http://download.virtualbox.org/virtualbox/$VBOX_VERSION/VBoxGuestAdditions_$VBOX_VERSION.iso
|
40
|
+
mount -o loop VBoxGuestAdditions_$VBOX_VERSION.iso /mnt
|
41
|
+
sh /mnt/VBoxLinuxAdditions.run
|
42
|
+
umount /mnt
|
43
|
+
|
44
|
+
rm VBoxGuestAdditions_$VBOX_VERSION.iso
|
45
|
+
|
46
|
+
sed -i "s/^.*requiretty/#Defaults requiretty/" /etc/sudoers
|
47
|
+
|
48
|
+
dd if=/dev/zero of=/tmp/clean || rm /tmp/clean
|
49
|
+
|
50
|
+
exit
|