From fe7a1590463c97e1aa458627549e5ab3cffdd790 Mon Sep 17 00:00:00 2001 From: jtimberman Date: Mon, 16 Jul 2012 15:51:40 -0600 Subject: [PATCH] [OC-1013] - move definitions from basebox project --- LICENSE | 201 ++++++++++++++++++++++ NOTICE.txt | 13 ++ README.md | 28 ++- definitions/.centos/cleanup.sh | 4 + definitions/.centos/ks.cfg | 38 ++++ definitions/.centos/session.rb | 12 ++ definitions/.common/minimize.sh | 4 + definitions/.common/ruby.sh | 21 +++ definitions/.common/session.rb | 21 +++ definitions/.common/vagrant.sh | 17 ++ definitions/.gitignore | 0 definitions/.ubuntu/cleanup.sh | 4 + definitions/.ubuntu/networking.sh | 7 + definitions/.ubuntu/preseed.cfg | 30 ++++ definitions/.ubuntu/session.rb | 38 ++++ definitions/.ubuntu/sudoers.sh | 4 + definitions/.ubuntu/update.sh | 4 + definitions/centos-5.5-i386/cleanup.sh | 1 + definitions/centos-5.5-i386/definition.rb | 11 ++ definitions/centos-5.5-i386/ks.cfg | 1 + definitions/centos-5.5-i386/minimize.sh | 1 + definitions/centos-5.5-i386/ruby.sh | 1 + definitions/centos-5.5-i386/vagrant.sh | 1 + definitions/centos-5.5/cleanup.sh | 1 + definitions/centos-5.5/definition.rb | 10 ++ definitions/centos-5.5/ks.cfg | 1 + definitions/centos-5.5/minimize.sh | 1 + definitions/centos-5.5/ruby.sh | 1 + definitions/centos-5.5/vagrant.sh | 1 + definitions/centos-5.6/cleanup.sh | 1 + definitions/centos-5.6/definition.rb | 10 ++ definitions/centos-5.6/ks.cfg | 1 + definitions/centos-5.6/minimize.sh | 1 + definitions/centos-5.6/ruby.sh | 1 + definitions/centos-5.6/vagrant.sh | 1 + definitions/centos-5.7/cleanup.sh | 1 + definitions/centos-5.7/definition.rb | 10 ++ definitions/centos-5.7/ks.cfg | 1 + definitions/centos-5.7/minimize.sh | 1 + definitions/centos-5.7/ruby.sh | 1 + definitions/centos-5.7/vagrant.sh | 1 + definitions/centos-5.8-i386/cleanup.sh | 1 + definitions/centos-5.8-i386/definition.rb | 11 ++ definitions/centos-5.8-i386/ks.cfg | 1 + definitions/centos-5.8-i386/minimize.sh | 1 + definitions/centos-5.8-i386/ruby.sh | 1 + definitions/centos-5.8-i386/vagrant.sh | 1 + definitions/centos-6.0/cleanup.sh | 1 + definitions/centos-6.0/definition.rb | 12 ++ definitions/centos-6.0/ks.cfg | 1 + definitions/centos-6.0/minimize.sh | 1 + definitions/centos-6.0/ruby.sh | 1 + definitions/centos-6.0/vagrant.sh | 1 + definitions/centos-6.2-i386/cleanup.sh | 1 + definitions/centos-6.2-i386/definition.rb | 14 ++ definitions/centos-6.2-i386/ks.cfg | 1 + definitions/centos-6.2-i386/minimize.sh | 1 + definitions/centos-6.2-i386/ruby.sh | 1 + definitions/centos-6.2-i386/vagrant.sh | 1 + definitions/centos-6.2/cleanup.sh | 1 + definitions/centos-6.2/definition.rb | 13 ++ definitions/centos-6.2/ks.cfg | 1 + definitions/centos-6.2/minimize.sh | 1 + definitions/centos-6.2/ruby.sh | 1 + definitions/centos-6.2/vagrant.sh | 1 + definitions/ubuntu-10.04/cleanup.sh | 1 + definitions/ubuntu-10.04/definition.rb | 10 ++ definitions/ubuntu-10.04/minimize.sh | 1 + definitions/ubuntu-10.04/networking.sh | 1 + definitions/ubuntu-10.04/preseed.cfg | 1 + definitions/ubuntu-10.04/ruby.sh | 1 + definitions/ubuntu-10.04/sudoers.sh | 1 + definitions/ubuntu-10.04/update.sh | 1 + definitions/ubuntu-10.04/vagrant.sh | 1 + definitions/ubuntu-10.10/cleanup.sh | 1 + definitions/ubuntu-10.10/definition.rb | 10 ++ definitions/ubuntu-10.10/minimize.sh | 1 + definitions/ubuntu-10.10/networking.sh | 1 + definitions/ubuntu-10.10/preseed.cfg | 1 + definitions/ubuntu-10.10/ruby.sh | 1 + definitions/ubuntu-10.10/sudoers.sh | 1 + definitions/ubuntu-10.10/update.sh | 1 + definitions/ubuntu-10.10/vagrant.sh | 1 + definitions/ubuntu-11.04/cleanup.sh | 1 + definitions/ubuntu-11.04/definition.rb | 10 ++ definitions/ubuntu-11.04/minimize.sh | 1 + definitions/ubuntu-11.04/networking.sh | 1 + definitions/ubuntu-11.04/preseed.cfg | 1 + definitions/ubuntu-11.04/ruby.sh | 1 + definitions/ubuntu-11.04/sudoers.sh | 1 + definitions/ubuntu-11.04/update.sh | 1 + definitions/ubuntu-11.04/vagrant.sh | 1 + definitions/ubuntu-11.10/cleanup.sh | 1 + definitions/ubuntu-11.10/definition.rb | 10 ++ definitions/ubuntu-11.10/minimize.sh | 1 + definitions/ubuntu-11.10/networking.sh | 1 + definitions/ubuntu-11.10/preseed.cfg | 1 + definitions/ubuntu-11.10/ruby.sh | 1 + definitions/ubuntu-11.10/sudoers.sh | 1 + definitions/ubuntu-11.10/update.sh | 1 + definitions/ubuntu-11.10/vagrant.sh | 1 + definitions/ubuntu-12.04/cleanup.sh | 1 + definitions/ubuntu-12.04/definition.rb | 10 ++ definitions/ubuntu-12.04/minimize.sh | 1 + definitions/ubuntu-12.04/networking.sh | 1 + definitions/ubuntu-12.04/preseed.cfg | 1 + definitions/ubuntu-12.04/ruby.sh | 1 + definitions/ubuntu-12.04/sudoers.sh | 4 + definitions/ubuntu-12.04/update.sh | 1 + definitions/ubuntu-12.04/vagrant.sh | 1 + 110 files changed, 662 insertions(+), 8 deletions(-) create mode 100644 LICENSE create mode 100644 NOTICE.txt create mode 100644 definitions/.centos/cleanup.sh create mode 100644 definitions/.centos/ks.cfg create mode 100644 definitions/.centos/session.rb create mode 100644 definitions/.common/minimize.sh create mode 100644 definitions/.common/ruby.sh create mode 100644 definitions/.common/session.rb create mode 100644 definitions/.common/vagrant.sh create mode 100644 definitions/.gitignore create mode 100644 definitions/.ubuntu/cleanup.sh create mode 100644 definitions/.ubuntu/networking.sh create mode 100644 definitions/.ubuntu/preseed.cfg create mode 100644 definitions/.ubuntu/session.rb create mode 100644 definitions/.ubuntu/sudoers.sh create mode 100644 definitions/.ubuntu/update.sh create mode 120000 definitions/centos-5.5-i386/cleanup.sh create mode 100644 definitions/centos-5.5-i386/definition.rb create mode 120000 definitions/centos-5.5-i386/ks.cfg create mode 120000 definitions/centos-5.5-i386/minimize.sh create mode 120000 definitions/centos-5.5-i386/ruby.sh create mode 120000 definitions/centos-5.5-i386/vagrant.sh create mode 120000 definitions/centos-5.5/cleanup.sh create mode 100644 definitions/centos-5.5/definition.rb create mode 120000 definitions/centos-5.5/ks.cfg create mode 120000 definitions/centos-5.5/minimize.sh create mode 120000 definitions/centos-5.5/ruby.sh create mode 120000 definitions/centos-5.5/vagrant.sh create mode 120000 definitions/centos-5.6/cleanup.sh create mode 100644 definitions/centos-5.6/definition.rb create mode 120000 definitions/centos-5.6/ks.cfg create mode 120000 definitions/centos-5.6/minimize.sh create mode 120000 definitions/centos-5.6/ruby.sh create mode 120000 definitions/centos-5.6/vagrant.sh create mode 120000 definitions/centos-5.7/cleanup.sh create mode 100644 definitions/centos-5.7/definition.rb create mode 120000 definitions/centos-5.7/ks.cfg create mode 120000 definitions/centos-5.7/minimize.sh create mode 120000 definitions/centos-5.7/ruby.sh create mode 120000 definitions/centos-5.7/vagrant.sh create mode 120000 definitions/centos-5.8-i386/cleanup.sh create mode 100644 definitions/centos-5.8-i386/definition.rb create mode 120000 definitions/centos-5.8-i386/ks.cfg create mode 120000 definitions/centos-5.8-i386/minimize.sh create mode 120000 definitions/centos-5.8-i386/ruby.sh create mode 120000 definitions/centos-5.8-i386/vagrant.sh create mode 120000 definitions/centos-6.0/cleanup.sh create mode 100644 definitions/centos-6.0/definition.rb create mode 120000 definitions/centos-6.0/ks.cfg create mode 120000 definitions/centos-6.0/minimize.sh create mode 120000 definitions/centos-6.0/ruby.sh create mode 120000 definitions/centos-6.0/vagrant.sh create mode 120000 definitions/centos-6.2-i386/cleanup.sh create mode 100644 definitions/centos-6.2-i386/definition.rb create mode 120000 definitions/centos-6.2-i386/ks.cfg create mode 120000 definitions/centos-6.2-i386/minimize.sh create mode 120000 definitions/centos-6.2-i386/ruby.sh create mode 120000 definitions/centos-6.2-i386/vagrant.sh create mode 120000 definitions/centos-6.2/cleanup.sh create mode 100644 definitions/centos-6.2/definition.rb create mode 120000 definitions/centos-6.2/ks.cfg create mode 120000 definitions/centos-6.2/minimize.sh create mode 120000 definitions/centos-6.2/ruby.sh create mode 120000 definitions/centos-6.2/vagrant.sh create mode 120000 definitions/ubuntu-10.04/cleanup.sh create mode 100644 definitions/ubuntu-10.04/definition.rb create mode 120000 definitions/ubuntu-10.04/minimize.sh create mode 120000 definitions/ubuntu-10.04/networking.sh create mode 120000 definitions/ubuntu-10.04/preseed.cfg create mode 120000 definitions/ubuntu-10.04/ruby.sh create mode 120000 definitions/ubuntu-10.04/sudoers.sh create mode 120000 definitions/ubuntu-10.04/update.sh create mode 120000 definitions/ubuntu-10.04/vagrant.sh create mode 120000 definitions/ubuntu-10.10/cleanup.sh create mode 100644 definitions/ubuntu-10.10/definition.rb create mode 120000 definitions/ubuntu-10.10/minimize.sh create mode 120000 definitions/ubuntu-10.10/networking.sh create mode 120000 definitions/ubuntu-10.10/preseed.cfg create mode 120000 definitions/ubuntu-10.10/ruby.sh create mode 120000 definitions/ubuntu-10.10/sudoers.sh create mode 120000 definitions/ubuntu-10.10/update.sh create mode 120000 definitions/ubuntu-10.10/vagrant.sh create mode 120000 definitions/ubuntu-11.04/cleanup.sh create mode 100644 definitions/ubuntu-11.04/definition.rb create mode 120000 definitions/ubuntu-11.04/minimize.sh create mode 120000 definitions/ubuntu-11.04/networking.sh create mode 120000 definitions/ubuntu-11.04/preseed.cfg create mode 120000 definitions/ubuntu-11.04/ruby.sh create mode 120000 definitions/ubuntu-11.04/sudoers.sh create mode 120000 definitions/ubuntu-11.04/update.sh create mode 120000 definitions/ubuntu-11.04/vagrant.sh create mode 120000 definitions/ubuntu-11.10/cleanup.sh create mode 100644 definitions/ubuntu-11.10/definition.rb create mode 120000 definitions/ubuntu-11.10/minimize.sh create mode 120000 definitions/ubuntu-11.10/networking.sh create mode 120000 definitions/ubuntu-11.10/preseed.cfg create mode 120000 definitions/ubuntu-11.10/ruby.sh create mode 120000 definitions/ubuntu-11.10/sudoers.sh create mode 120000 definitions/ubuntu-11.10/update.sh create mode 120000 definitions/ubuntu-11.10/vagrant.sh create mode 120000 definitions/ubuntu-12.04/cleanup.sh create mode 100644 definitions/ubuntu-12.04/definition.rb create mode 120000 definitions/ubuntu-12.04/minimize.sh create mode 120000 definitions/ubuntu-12.04/networking.sh create mode 120000 definitions/ubuntu-12.04/preseed.cfg create mode 120000 definitions/ubuntu-12.04/ruby.sh create mode 100644 definitions/ubuntu-12.04/sudoers.sh create mode 120000 definitions/ubuntu-12.04/update.sh create mode 120000 definitions/ubuntu-12.04/vagrant.sh diff --git a/LICENSE b/LICENSE new file mode 100644 index 000000000..11069edd7 --- /dev/null +++ b/LICENSE @@ -0,0 +1,201 @@ + Apache License + Version 2.0, January 2004 + http://www.apache.org/licenses/ + +TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION + +1. Definitions. + + "License" shall mean the terms and conditions for use, reproduction, + and distribution as defined by Sections 1 through 9 of this document. + + "Licensor" shall mean the copyright owner or entity authorized by + the copyright owner that is granting the License. + + "Legal Entity" shall mean the union of the acting entity and all + other entities that control, are controlled by, or are under common + control with that entity. For the purposes of this definition, + "control" means (i) the power, direct or indirect, to cause the + direction or management of such entity, whether by contract or + otherwise, or (ii) ownership of fifty percent (50%) or more of the + outstanding shares, or (iii) beneficial ownership of such entity. + + "You" (or "Your") shall mean an individual or Legal Entity + exercising permissions granted by this License. + + "Source" form shall mean the preferred form for making modifications, + including but not limited to software source code, documentation + source, and configuration files. + + "Object" form shall mean any form resulting from mechanical + transformation or translation of a Source form, including but + not limited to compiled object code, generated documentation, + and conversions to other media types. + + "Work" shall mean the work of authorship, whether in Source or + Object form, made available under the License, as indicated by a + copyright notice that is included in or attached to the work + (an example is provided in the Appendix below). + + "Derivative Works" shall mean any work, whether in Source or Object + form, that is based on (or derived from) the Work and for which the + editorial revisions, annotations, elaborations, or other modifications + represent, as a whole, an original work of authorship. For the purposes + of this License, Derivative Works shall not include works that remain + separable from, or merely link (or bind by name) to the interfaces of, + the Work and Derivative Works thereof. + + "Contribution" shall mean any work of authorship, including + the original version of the Work and any modifications or additions + to that Work or Derivative Works thereof, that is intentionally + submitted to Licensor for inclusion in the Work by the copyright owner + or by an individual or Legal Entity authorized to submit on behalf of + the copyright owner. For the purposes of this definition, "submitted" + means any form of electronic, verbal, or written communication sent + to the Licensor or its representatives, including but not limited to + communication on electronic mailing lists, source code control systems, + and issue tracking systems that are managed by, or on behalf of, the + Licensor for the purpose of discussing and improving the Work, but + excluding communication that is conspicuously marked or otherwise + designated in writing by the copyright owner as "Not a Contribution." + + "Contributor" shall mean Licensor and any individual or Legal Entity + on behalf of whom a Contribution has been received by Licensor and + subsequently incorporated within the Work. + +2. Grant of Copyright License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + copyright license to reproduce, prepare Derivative Works of, + publicly display, publicly perform, sublicense, and distribute the + Work and such Derivative Works in Source or Object form. + +3. Grant of Patent License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + (except as stated in this section) patent license to make, have made, + use, offer to sell, sell, import, and otherwise transfer the Work, + where such license applies only to those patent claims licensable + by such Contributor that are necessarily infringed by their + Contribution(s) alone or by combination of their Contribution(s) + with the Work to which such Contribution(s) was submitted. If You + institute patent litigation against any entity (including a + cross-claim or counterclaim in a lawsuit) alleging that the Work + or a Contribution incorporated within the Work constitutes direct + or contributory patent infringement, then any patent licenses + granted to You under this License for that Work shall terminate + as of the date such litigation is filed. + +4. Redistribution. You may reproduce and distribute copies of the + Work or Derivative Works thereof in any medium, with or without + modifications, and in Source or Object form, provided that You + meet the following conditions: + + (a) You must give any other recipients of the Work or + Derivative Works a copy of this License; and + + (b) You must cause any modified files to carry prominent notices + stating that You changed the files; and + + (c) You must retain, in the Source form of any Derivative Works + that You distribute, all copyright, patent, trademark, and + attribution notices from the Source form of the Work, + excluding those notices that do not pertain to any part of + the Derivative Works; and + + (d) If the Work includes a "NOTICE" text file as part of its + distribution, then any Derivative Works that You distribute must + include a readable copy of the attribution notices contained + within such NOTICE file, excluding those notices that do not + pertain to any part of the Derivative Works, in at least one + of the following places: within a NOTICE text file distributed + as part of the Derivative Works; within the Source form or + documentation, if provided along with the Derivative Works; or, + within a display generated by the Derivative Works, if and + wherever such third-party notices normally appear. The contents + of the NOTICE file are for informational purposes only and + do not modify the License. You may add Your own attribution + notices within Derivative Works that You distribute, alongside + or as an addendum to the NOTICE text from the Work, provided + that such additional attribution notices cannot be construed + as modifying the License. + + You may add Your own copyright statement to Your modifications and + may provide additional or different license terms and conditions + for use, reproduction, or distribution of Your modifications, or + for any such Derivative Works as a whole, provided Your use, + reproduction, and distribution of the Work otherwise complies with + the conditions stated in this License. + +5. Submission of Contributions. Unless You explicitly state otherwise, + any Contribution intentionally submitted for inclusion in the Work + by You to the Licensor shall be under the terms and conditions of + this License, without any additional terms or conditions. + Notwithstanding the above, nothing herein shall supersede or modify + the terms of any separate license agreement you may have executed + with Licensor regarding such Contributions. + +6. Trademarks. This License does not grant permission to use the trade + names, trademarks, service marks, or product names of the Licensor, + except as required for reasonable and customary use in describing the + origin of the Work and reproducing the content of the NOTICE file. + +7. Disclaimer of Warranty. Unless required by applicable law or + agreed to in writing, Licensor provides the Work (and each + Contributor provides its Contributions) on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + implied, including, without limitation, any warranties or conditions + of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A + PARTICULAR PURPOSE. You are solely responsible for determining the + appropriateness of using or redistributing the Work and assume any + risks associated with Your exercise of permissions under this License. + +8. Limitation of Liability. In no event and under no legal theory, + whether in tort (including negligence), contract, or otherwise, + unless required by applicable law (such as deliberate and grossly + negligent acts) or agreed to in writing, shall any Contributor be + liable to You for damages, including any direct, indirect, special, + incidental, or consequential damages of any character arising as a + result of this License or out of the use or inability to use the + Work (including but not limited to damages for loss of goodwill, + work stoppage, computer failure or malfunction, or any and all + other commercial damages or losses), even if such Contributor + has been advised of the possibility of such damages. + +9. Accepting Warranty or Additional Liability. While redistributing + the Work or Derivative Works thereof, You may choose to offer, + and charge a fee for, acceptance of support, warranty, indemnity, + or other liability obligations and/or rights consistent with this + License. However, in accepting such obligations, You may act only + on Your own behalf and on Your sole responsibility, not on behalf + of any other Contributor, and only if You agree to indemnify, + defend, and hold each Contributor harmless for any liability + incurred by, or claims asserted against, such Contributor by reason + of your accepting any such warranty or additional liability. + +END OF TERMS AND CONDITIONS + +APPENDIX: How to apply the Apache License to your work. + + To apply the Apache License to your work, attach the following + boilerplate notice, with the fields enclosed by brackets "[]" + replaced with your own identifying information. (Don't include + the brackets!) The text should be enclosed in the appropriate + comment syntax for the file format. We also recommend that a + file or class name and description of purpose be included on the + same "printed page" as the copyright notice for easier + identification within third-party archives. + +Copyright [yyyy] [name of copyright owner] + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. diff --git a/NOTICE.txt b/NOTICE.txt new file mode 100644 index 000000000..35143453f --- /dev/null +++ b/NOTICE.txt @@ -0,0 +1,13 @@ +Bento NOTICE +============ + +Opscode Bento +Copyright 2012, Opscode, Inc. + +The baseboxes in the "definitions" directory is from Tim Dysinger's +"basebox" project. + +* https://github.com/dysinger/basebox + +Author: Tim Dysinger () +Copyright 2011-2012, Tim Dysinger () diff --git a/README.md b/README.md index 077d9440e..7e6601de2 100644 --- a/README.md +++ b/README.md @@ -29,14 +29,6 @@ First thing you need to do is checkout [bento](https://github.com/opscode/bento) $ cd bento $ bundle install --binstubs -Next initialize the 'definitions' submodule: - - $ git submodule init - $ git submodule update - -On newer versions of `git`, the above commands are not necessary. For more information -on using the rest of the `git submodule` features, see [this page](http://chrisjean.com/2009/04/20/git-submodules-adding-using-removing-and-updating/). - Now we can easily list the available base box definitions: $ bundle exec vagrant basebox list @@ -227,3 +219,23 @@ Hard Disk with the following settings: * **Size**: 9.90 GB Once this step is complete re-export the box. + +License and Authors +=================== + +Author:: Seth Chisamore () +Author:: Stephen Delano () + +Copyright:: 2012, Opscode, Inc () + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. diff --git a/definitions/.centos/cleanup.sh b/definitions/.centos/cleanup.sh new file mode 100644 index 000000000..ee0236663 --- /dev/null +++ b/definitions/.centos/cleanup.sh @@ -0,0 +1,4 @@ +#!/bin/bash -eux +yum -y erase gtk2 libX11 hicolor-icon-theme avahi freetype bitstream-vera-fonts +yum -y clean all +rm -rf VBoxGuestAdditions_*.iso diff --git a/definitions/.centos/ks.cfg b/definitions/.centos/ks.cfg new file mode 100644 index 000000000..a2bc35fef --- /dev/null +++ b/definitions/.centos/ks.cfg @@ -0,0 +1,38 @@ +install +cdrom +lang en_US.UTF-8 +keyboard us +network --bootproto=dhcp +rootpw --iscrypted $1$damlkd,f$UC/u5pUts5QiU3ow.CSso/ +firewall --disabled +authconfig --enableshadow --passalgo=sha512 +selinux --disabled +timezone UTC +bootloader --location=mbr +text +skipx +zerombr +clearpart --all --initlabel +autopart +auth --useshadow --enablemd5 +firstboot --disabled +reboot + +%packages --ignoremissing +@Base +@Core +@Development Tools +openssl-devel +readline-devel +zlib-devel + +%post +# update root certs +wget -O/etc/pki/tls/certs/ca-bundle.crt http://curl.haxx.se/ca/cacert.pem +# vagrant +groupadd vagrant +useradd vagrant -g vagrant -G wheel +echo "vagrant" | passwd --stdin vagrant +# sudo +echo "vagrant ALL=(ALL) NOPASSWD: ALL" >> /etc/sudoers +sed -i "s/^.*requiretty/#Defaults requiretty/" /etc/sudoers diff --git a/definitions/.centos/session.rb b/definitions/.centos/session.rb new file mode 100644 index 000000000..967b91caa --- /dev/null +++ b/definitions/.centos/session.rb @@ -0,0 +1,12 @@ +require File.dirname(__FILE__) + "/../.common/session.rb" + +CENTOS_SESSION = + COMMON_SESSION.merge({ :boot_cmd_sequence => + [ 'linux text ks=http://%IP%:%PORT%/ks.cfg' ], + :kickstart_file => "ks.cfg", + :os_type_id => 'RedHat_64', + :postinstall_files => [ "ruby.sh", + "vagrant.sh", + "cleanup.sh", + "minimize.sh" ], + :shutdown_cmd => "/sbin/halt -h -p" }) diff --git a/definitions/.common/minimize.sh b/definitions/.common/minimize.sh new file mode 100644 index 000000000..3846a1d65 --- /dev/null +++ b/definitions/.common/minimize.sh @@ -0,0 +1,4 @@ +#!/bin/bash -eux + +dd if=/dev/zero of=/EMPTY bs=1M +rm -f /EMPTY diff --git a/definitions/.common/ruby.sh b/definitions/.common/ruby.sh new file mode 100644 index 000000000..8cc4c4284 --- /dev/null +++ b/definitions/.common/ruby.sh @@ -0,0 +1,21 @@ +#!/bin/bash -eux + +wget -O- http://pyyaml.org/download/libyaml/yaml-0.1.4.tar.gz | tar oxz +cd yaml* +./configure --prefix=/opt/ruby +make && make install +cd .. +rm -rf *yaml* + +wget -O- http://ftp.ruby-lang.org/pub/ruby/1.9/ruby-1.9.2-p290.tar.gz | tar oxz +cd ruby* +./configure --prefix=/opt/ruby --with-opt-dir=/opt/ruby +make && make install +/opt/ruby/bin/gem update --system +/opt/ruby/bin/gem update +/opt/ruby/bin/gem clean +/opt/ruby/bin/gem install chef puppet --no-rdoc --no-ri +cd .. +rm -rf *ruby* + +echo 'PATH=$PATH:/opt/ruby/bin' > /etc/profile.d/ruby.sh diff --git a/definitions/.common/session.rb b/definitions/.common/session.rb new file mode 100644 index 000000000..797ed7559 --- /dev/null +++ b/definitions/.common/session.rb @@ -0,0 +1,21 @@ +COMMON_SESSION = { + :boot_wait => "10", + :cpu_count => "1", + :disk_format => "VDI", + :disk_size => "40960", + :hostiocache => "off", + :ioapic => "on", + :iso_download_timeout => "1000", + :kickstart_port => "7122", + :kickstart_timeout => "10000", + :memory_size=> "384", + :pae => "on", + :postinstall_timeout => "10000", + :ssh_guest_port => "22", + :ssh_host_port => "7222", + :ssh_key => "", + :ssh_login_timeout => "1000", + :ssh_password => "vagrant", + :ssh_user => "vagrant", + :sudo_cmd => "echo '%p'|sudo -S sh '%f'", +} diff --git a/definitions/.common/vagrant.sh b/definitions/.common/vagrant.sh new file mode 100644 index 000000000..9368ef636 --- /dev/null +++ b/definitions/.common/vagrant.sh @@ -0,0 +1,17 @@ +#!/bin/bash -eux + +mkdir /tmp/vbox +VER=$(cat /home/vagrant/.vbox_version) +wget http://download.virtualbox.org/virtualbox/$VER/VBoxGuestAdditions_$VER.iso +mount -o loop VBoxGuestAdditions_$VER.iso /tmp/vbox +sh /tmp/vbox/VBoxLinuxAdditions.run +umount /tmp/vbox +rmdir /tmp/vbox +rm *.iso + +mkdir /home/vagrant/.ssh +wget --no-check-certificate \ + 'http://github.com/mitchellh/vagrant/raw/master/keys/vagrant.pub' \ + -O /home/vagrant/.ssh/authorized_keys +chown -R vagrant /home/vagrant/.ssh +chmod -R go-rwsx /home/vagrant/.ssh diff --git a/definitions/.gitignore b/definitions/.gitignore new file mode 100644 index 000000000..e69de29bb diff --git a/definitions/.ubuntu/cleanup.sh b/definitions/.ubuntu/cleanup.sh new file mode 100644 index 000000000..19c26400f --- /dev/null +++ b/definitions/.ubuntu/cleanup.sh @@ -0,0 +1,4 @@ +#!/bin/bash -eux + +apt-get -y autoremove +apt-get -y clean diff --git a/definitions/.ubuntu/networking.sh b/definitions/.ubuntu/networking.sh new file mode 100644 index 000000000..de3269a58 --- /dev/null +++ b/definitions/.ubuntu/networking.sh @@ -0,0 +1,7 @@ +#!/bin/bash -eux + +rm /etc/udev/rules.d/70-persistent-net.rules +mkdir /etc/udev/rules.d/70-persistent-net.rules +rm /lib/udev/rules.d/75-persistent-net-generator.rules +rm -rf /dev/.udev/ /var/lib/dhcp3/* +echo "pre-up sleep 2" >> /etc/network/interfaces diff --git a/definitions/.ubuntu/preseed.cfg b/definitions/.ubuntu/preseed.cfg new file mode 100644 index 000000000..50a87cd43 --- /dev/null +++ b/definitions/.ubuntu/preseed.cfg @@ -0,0 +1,30 @@ +choose-mirror-bin mirror/http/proxy string +d-i base-installer/kernel/override-image string linux-server +d-i clock-setup/utc boolean true +d-i clock-setup/utc-auto boolean true +d-i finish-install/reboot_in_progress note +d-i grub-installer/only_debian boolean true +d-i grub-installer/with_other_os boolean true +d-i partman-auto-lvm/guided_size string max +d-i partman-auto/choose_recipe select atomic +d-i partman-auto/method string lvm +d-i partman-lvm/confirm boolean true +d-i partman-lvm/confirm boolean true +d-i partman-lvm/confirm_nooverwrite boolean true +d-i partman-lvm/device_remove_lvm boolean true +d-i partman/choose_partition select finish +d-i partman/confirm boolean true +d-i partman/confirm_nooverwrite boolean true +d-i partman/confirm_write_new_label boolean true +d-i passwd/user-fullname string vagrant +d-i passwd/user-password password vagrant +d-i passwd/user-password-again password vagrant +d-i passwd/username string vagrant +d-i pkgsel/include string openssh-server cryptsetup build-essential libssl-dev libreadline-dev zlib1g-dev +d-i pkgsel/install-language-support boolean false +d-i pkgsel/update-policy select unattended-upgrades +d-i pkgsel/upgrade select full-upgrade +d-i time/zone string UTC +d-i user-setup/allow-password-weak boolean true +d-i user-setup/encrypt-home boolean false +tasksel tasksel/first multiselect standard, ubuntu-server diff --git a/definitions/.ubuntu/session.rb b/definitions/.ubuntu/session.rb new file mode 100644 index 000000000..3d7b377fc --- /dev/null +++ b/definitions/.ubuntu/session.rb @@ -0,0 +1,38 @@ +require File.dirname(__FILE__) + "/../.common/session.rb" + +UBUNTU_SESSION = + COMMON_SESSION.merge({ :boot_cmd_sequence => + [ + "", + "", + "", + "/install/vmlinuz" , + " auto", + " console-setup/ask_detect=false", + " console-setup/layoutcode=us", + " console-setup/modelcode=pc105", + " debconf/frontend=noninteractive", + " debian-installer=en_US", + " fb=false", + " initrd=/install/initrd.gz", + " kbd-chooser/method=us", + " keyboard-configuration/layout=USA", + " keyboard-configuration/variant=USA", + " locale=en_US", + " netcfg/get_domain=vm", + " netcfg/get_hostname=vagrant", + " noapic" , + " preseed/url=http://%IP%:%PORT%/preseed.cfg", + " -- ", + "" + ], + :os_type_id => 'Ubuntu_64', + :postinstall_files => [ "update.sh", + "ruby.sh", + "vagrant.sh", + "networking.sh", + "sudoers.sh", + "cleanup.sh", + "minimize.sh" ], + :kickstart_file => "preseed.cfg", + :shutdown_cmd => "shutdown -P now" }) diff --git a/definitions/.ubuntu/sudoers.sh b/definitions/.ubuntu/sudoers.sh new file mode 100644 index 000000000..ce45b7611 --- /dev/null +++ b/definitions/.ubuntu/sudoers.sh @@ -0,0 +1,4 @@ +#!/bin/bash -eux + +sed -i -e '/Defaults\s\+env_reset/a Defaults\texempt_group=admin' /etc/sudoers +sed -i -e 's/%admin ALL=(ALL) ALL/%admin ALL=NOPASSWD:ALL/g' /etc/sudoers diff --git a/definitions/.ubuntu/update.sh b/definitions/.ubuntu/update.sh new file mode 100644 index 000000000..a4cc91499 --- /dev/null +++ b/definitions/.ubuntu/update.sh @@ -0,0 +1,4 @@ +#!/bin/bash -eux + +apt-get update +apt-get -y upgrade diff --git a/definitions/centos-5.5-i386/cleanup.sh b/definitions/centos-5.5-i386/cleanup.sh new file mode 120000 index 000000000..4658a8585 --- /dev/null +++ b/definitions/centos-5.5-i386/cleanup.sh @@ -0,0 +1 @@ +../.centos/cleanup.sh \ No newline at end of file diff --git a/definitions/centos-5.5-i386/definition.rb b/definitions/centos-5.5-i386/definition.rb new file mode 100644 index 000000000..4223bd885 --- /dev/null +++ b/definitions/centos-5.5-i386/definition.rb @@ -0,0 +1,11 @@ +require File.dirname(__FILE__) + "/../.centos/session.rb" + +iso = "CentOS-5.5-i386-bin-DVD.iso" + +session = + CENTOS_SESSION.merge({ :os_type_id => 'RedHat', + :iso_file => iso, + :iso_md5 => "75c92246479df172de41b14c9b966344", + :iso_src => "http://vault.centos.org/5.5/isos/i386/#{iso}" }) # not really there, must use torrent + +Veewee::Session.declare session diff --git a/definitions/centos-5.5-i386/ks.cfg b/definitions/centos-5.5-i386/ks.cfg new file mode 120000 index 000000000..24af87031 --- /dev/null +++ b/definitions/centos-5.5-i386/ks.cfg @@ -0,0 +1 @@ +../.centos/ks.cfg \ No newline at end of file diff --git a/definitions/centos-5.5-i386/minimize.sh b/definitions/centos-5.5-i386/minimize.sh new file mode 120000 index 000000000..b3632ccbc --- /dev/null +++ b/definitions/centos-5.5-i386/minimize.sh @@ -0,0 +1 @@ +../.common/minimize.sh \ No newline at end of file diff --git a/definitions/centos-5.5-i386/ruby.sh b/definitions/centos-5.5-i386/ruby.sh new file mode 120000 index 000000000..eb080919c --- /dev/null +++ b/definitions/centos-5.5-i386/ruby.sh @@ -0,0 +1 @@ +../.common/ruby.sh \ No newline at end of file diff --git a/definitions/centos-5.5-i386/vagrant.sh b/definitions/centos-5.5-i386/vagrant.sh new file mode 120000 index 000000000..702949639 --- /dev/null +++ b/definitions/centos-5.5-i386/vagrant.sh @@ -0,0 +1 @@ +../.common/vagrant.sh \ No newline at end of file diff --git a/definitions/centos-5.5/cleanup.sh b/definitions/centos-5.5/cleanup.sh new file mode 120000 index 000000000..4658a8585 --- /dev/null +++ b/definitions/centos-5.5/cleanup.sh @@ -0,0 +1 @@ +../.centos/cleanup.sh \ No newline at end of file diff --git a/definitions/centos-5.5/definition.rb b/definitions/centos-5.5/definition.rb new file mode 100644 index 000000000..536ba75e3 --- /dev/null +++ b/definitions/centos-5.5/definition.rb @@ -0,0 +1,10 @@ +require File.dirname(__FILE__) + "/../.centos/session.rb" + +iso = "CentOS-5.5-x86_64-bin-DVD-1of2.iso" + +session = + CENTOS_SESSION.merge({ :iso_file => iso, + :iso_md5 => "ac177a5476e3b255b89b659e5b10ba03", + :iso_src => "http://vault.centos.org/5.5/isos/x86_64/#{iso}" }) + +Veewee::Session.declare session diff --git a/definitions/centos-5.5/ks.cfg b/definitions/centos-5.5/ks.cfg new file mode 120000 index 000000000..24af87031 --- /dev/null +++ b/definitions/centos-5.5/ks.cfg @@ -0,0 +1 @@ +../.centos/ks.cfg \ No newline at end of file diff --git a/definitions/centos-5.5/minimize.sh b/definitions/centos-5.5/minimize.sh new file mode 120000 index 000000000..b3632ccbc --- /dev/null +++ b/definitions/centos-5.5/minimize.sh @@ -0,0 +1 @@ +../.common/minimize.sh \ No newline at end of file diff --git a/definitions/centos-5.5/ruby.sh b/definitions/centos-5.5/ruby.sh new file mode 120000 index 000000000..eb080919c --- /dev/null +++ b/definitions/centos-5.5/ruby.sh @@ -0,0 +1 @@ +../.common/ruby.sh \ No newline at end of file diff --git a/definitions/centos-5.5/vagrant.sh b/definitions/centos-5.5/vagrant.sh new file mode 120000 index 000000000..702949639 --- /dev/null +++ b/definitions/centos-5.5/vagrant.sh @@ -0,0 +1 @@ +../.common/vagrant.sh \ No newline at end of file diff --git a/definitions/centos-5.6/cleanup.sh b/definitions/centos-5.6/cleanup.sh new file mode 120000 index 000000000..4658a8585 --- /dev/null +++ b/definitions/centos-5.6/cleanup.sh @@ -0,0 +1 @@ +../.centos/cleanup.sh \ No newline at end of file diff --git a/definitions/centos-5.6/definition.rb b/definitions/centos-5.6/definition.rb new file mode 100644 index 000000000..c466b89a1 --- /dev/null +++ b/definitions/centos-5.6/definition.rb @@ -0,0 +1,10 @@ +require File.dirname(__FILE__) + "/../.centos/session.rb" + +iso = "CentOS-5.6-x86_64-bin-DVD-1of2.iso" + +session = + CENTOS_SESSION.merge({ :iso_file => iso, + :iso_md5 => "b37209879c0fb158fac25045527241ee", + :iso_src => "http://vault.centos.org/5.6/isos/x86_64/#{iso}" }) + +Veewee::Session.declare session diff --git a/definitions/centos-5.6/ks.cfg b/definitions/centos-5.6/ks.cfg new file mode 120000 index 000000000..24af87031 --- /dev/null +++ b/definitions/centos-5.6/ks.cfg @@ -0,0 +1 @@ +../.centos/ks.cfg \ No newline at end of file diff --git a/definitions/centos-5.6/minimize.sh b/definitions/centos-5.6/minimize.sh new file mode 120000 index 000000000..b3632ccbc --- /dev/null +++ b/definitions/centos-5.6/minimize.sh @@ -0,0 +1 @@ +../.common/minimize.sh \ No newline at end of file diff --git a/definitions/centos-5.6/ruby.sh b/definitions/centos-5.6/ruby.sh new file mode 120000 index 000000000..eb080919c --- /dev/null +++ b/definitions/centos-5.6/ruby.sh @@ -0,0 +1 @@ +../.common/ruby.sh \ No newline at end of file diff --git a/definitions/centos-5.6/vagrant.sh b/definitions/centos-5.6/vagrant.sh new file mode 120000 index 000000000..702949639 --- /dev/null +++ b/definitions/centos-5.6/vagrant.sh @@ -0,0 +1 @@ +../.common/vagrant.sh \ No newline at end of file diff --git a/definitions/centos-5.7/cleanup.sh b/definitions/centos-5.7/cleanup.sh new file mode 120000 index 000000000..4658a8585 --- /dev/null +++ b/definitions/centos-5.7/cleanup.sh @@ -0,0 +1 @@ +../.centos/cleanup.sh \ No newline at end of file diff --git a/definitions/centos-5.7/definition.rb b/definitions/centos-5.7/definition.rb new file mode 100644 index 000000000..6fdcfd706 --- /dev/null +++ b/definitions/centos-5.7/definition.rb @@ -0,0 +1,10 @@ +require File.dirname(__FILE__) + "/../.centos/session.rb" + +iso = "CentOS-5.7-x86_64-bin-DVD-1of2.iso" + +session = + CENTOS_SESSION.merge({ :iso_file => iso, + :iso_md5 => "55eadec0a6e87c5f2883f734d43fdb58", + :iso_src => "http://vault.centos.org/5.7/isos/x86_64/#{iso}" }) + +Veewee::Session.declare session diff --git a/definitions/centos-5.7/ks.cfg b/definitions/centos-5.7/ks.cfg new file mode 120000 index 000000000..24af87031 --- /dev/null +++ b/definitions/centos-5.7/ks.cfg @@ -0,0 +1 @@ +../.centos/ks.cfg \ No newline at end of file diff --git a/definitions/centos-5.7/minimize.sh b/definitions/centos-5.7/minimize.sh new file mode 120000 index 000000000..b3632ccbc --- /dev/null +++ b/definitions/centos-5.7/minimize.sh @@ -0,0 +1 @@ +../.common/minimize.sh \ No newline at end of file diff --git a/definitions/centos-5.7/ruby.sh b/definitions/centos-5.7/ruby.sh new file mode 120000 index 000000000..eb080919c --- /dev/null +++ b/definitions/centos-5.7/ruby.sh @@ -0,0 +1 @@ +../.common/ruby.sh \ No newline at end of file diff --git a/definitions/centos-5.7/vagrant.sh b/definitions/centos-5.7/vagrant.sh new file mode 120000 index 000000000..702949639 --- /dev/null +++ b/definitions/centos-5.7/vagrant.sh @@ -0,0 +1 @@ +../.common/vagrant.sh \ No newline at end of file diff --git a/definitions/centos-5.8-i386/cleanup.sh b/definitions/centos-5.8-i386/cleanup.sh new file mode 120000 index 000000000..4658a8585 --- /dev/null +++ b/definitions/centos-5.8-i386/cleanup.sh @@ -0,0 +1 @@ +../.centos/cleanup.sh \ No newline at end of file diff --git a/definitions/centos-5.8-i386/definition.rb b/definitions/centos-5.8-i386/definition.rb new file mode 100644 index 000000000..7dc306560 --- /dev/null +++ b/definitions/centos-5.8-i386/definition.rb @@ -0,0 +1,11 @@ +require File.dirname(__FILE__) + "/../.centos/session.rb" + +iso = "CentOS-5.8-i386-bin-DVD-1of2.iso" + +session = + CENTOS_SESSION.merge({ :os_type_id => 'RedHat', + :iso_file => iso, + :iso_md5 => "0fdd45c43b5d8fb9e05f4255c5855f9c", + :iso_src => "http://mirror.stanford.edu/yum/pub/centos/5.8/isos/i386/#{iso}" }) + +Veewee::Session.declare session diff --git a/definitions/centos-5.8-i386/ks.cfg b/definitions/centos-5.8-i386/ks.cfg new file mode 120000 index 000000000..24af87031 --- /dev/null +++ b/definitions/centos-5.8-i386/ks.cfg @@ -0,0 +1 @@ +../.centos/ks.cfg \ No newline at end of file diff --git a/definitions/centos-5.8-i386/minimize.sh b/definitions/centos-5.8-i386/minimize.sh new file mode 120000 index 000000000..b3632ccbc --- /dev/null +++ b/definitions/centos-5.8-i386/minimize.sh @@ -0,0 +1 @@ +../.common/minimize.sh \ No newline at end of file diff --git a/definitions/centos-5.8-i386/ruby.sh b/definitions/centos-5.8-i386/ruby.sh new file mode 120000 index 000000000..eb080919c --- /dev/null +++ b/definitions/centos-5.8-i386/ruby.sh @@ -0,0 +1 @@ +../.common/ruby.sh \ No newline at end of file diff --git a/definitions/centos-5.8-i386/vagrant.sh b/definitions/centos-5.8-i386/vagrant.sh new file mode 120000 index 000000000..702949639 --- /dev/null +++ b/definitions/centos-5.8-i386/vagrant.sh @@ -0,0 +1 @@ +../.common/vagrant.sh \ No newline at end of file diff --git a/definitions/centos-6.0/cleanup.sh b/definitions/centos-6.0/cleanup.sh new file mode 120000 index 000000000..4658a8585 --- /dev/null +++ b/definitions/centos-6.0/cleanup.sh @@ -0,0 +1 @@ +../.centos/cleanup.sh \ No newline at end of file diff --git a/definitions/centos-6.0/definition.rb b/definitions/centos-6.0/definition.rb new file mode 100644 index 000000000..1325e2706 --- /dev/null +++ b/definitions/centos-6.0/definition.rb @@ -0,0 +1,12 @@ +require File.dirname(__FILE__) + "/../.centos/session.rb" + +iso = "CentOS-6.0-x86_64-bin-DVD1.iso" + +session = + CENTOS_SESSION.merge( :boot_cmd_sequence => + [ ' text ks=http://%IP%:%PORT%/ks.cfg' ], + :iso_file => iso, + :iso_md5 => "7c148e0a1b330186adef66ee3e2d433d", + :iso_src => "http://vault.centos.org/6.0/isos/x86_64/#{iso}" ) + +Veewee::Session.declare session diff --git a/definitions/centos-6.0/ks.cfg b/definitions/centos-6.0/ks.cfg new file mode 120000 index 000000000..24af87031 --- /dev/null +++ b/definitions/centos-6.0/ks.cfg @@ -0,0 +1 @@ +../.centos/ks.cfg \ No newline at end of file diff --git a/definitions/centos-6.0/minimize.sh b/definitions/centos-6.0/minimize.sh new file mode 120000 index 000000000..b3632ccbc --- /dev/null +++ b/definitions/centos-6.0/minimize.sh @@ -0,0 +1 @@ +../.common/minimize.sh \ No newline at end of file diff --git a/definitions/centos-6.0/ruby.sh b/definitions/centos-6.0/ruby.sh new file mode 120000 index 000000000..eb080919c --- /dev/null +++ b/definitions/centos-6.0/ruby.sh @@ -0,0 +1 @@ +../.common/ruby.sh \ No newline at end of file diff --git a/definitions/centos-6.0/vagrant.sh b/definitions/centos-6.0/vagrant.sh new file mode 120000 index 000000000..702949639 --- /dev/null +++ b/definitions/centos-6.0/vagrant.sh @@ -0,0 +1 @@ +../.common/vagrant.sh \ No newline at end of file diff --git a/definitions/centos-6.2-i386/cleanup.sh b/definitions/centos-6.2-i386/cleanup.sh new file mode 120000 index 000000000..4658a8585 --- /dev/null +++ b/definitions/centos-6.2-i386/cleanup.sh @@ -0,0 +1 @@ +../.centos/cleanup.sh \ No newline at end of file diff --git a/definitions/centos-6.2-i386/definition.rb b/definitions/centos-6.2-i386/definition.rb new file mode 100644 index 000000000..2ec4f2e46 --- /dev/null +++ b/definitions/centos-6.2-i386/definition.rb @@ -0,0 +1,14 @@ +require File.dirname(__FILE__) + "/../.centos/session.rb" + +iso = "CentOS-6.2-i386-bin-DVD1.iso" + +session = + CENTOS_SESSION.merge( :boot_cmd_sequence => + [ ' text ks=http://%IP%:%PORT%/ks.cfg' ], + :memory_size=> '480', + :os_type_id => 'RedHat', + :iso_file => iso, + :iso_md5 => "8c976288ed53dc97439f7ab5854f2648", + :iso_src => "http://mirrors.kernel.org/centos/6.2/isos/i386/#{iso}" ) + +Veewee::Session.declare session diff --git a/definitions/centos-6.2-i386/ks.cfg b/definitions/centos-6.2-i386/ks.cfg new file mode 120000 index 000000000..24af87031 --- /dev/null +++ b/definitions/centos-6.2-i386/ks.cfg @@ -0,0 +1 @@ +../.centos/ks.cfg \ No newline at end of file diff --git a/definitions/centos-6.2-i386/minimize.sh b/definitions/centos-6.2-i386/minimize.sh new file mode 120000 index 000000000..b3632ccbc --- /dev/null +++ b/definitions/centos-6.2-i386/minimize.sh @@ -0,0 +1 @@ +../.common/minimize.sh \ No newline at end of file diff --git a/definitions/centos-6.2-i386/ruby.sh b/definitions/centos-6.2-i386/ruby.sh new file mode 120000 index 000000000..eb080919c --- /dev/null +++ b/definitions/centos-6.2-i386/ruby.sh @@ -0,0 +1 @@ +../.common/ruby.sh \ No newline at end of file diff --git a/definitions/centos-6.2-i386/vagrant.sh b/definitions/centos-6.2-i386/vagrant.sh new file mode 120000 index 000000000..702949639 --- /dev/null +++ b/definitions/centos-6.2-i386/vagrant.sh @@ -0,0 +1 @@ +../.common/vagrant.sh \ No newline at end of file diff --git a/definitions/centos-6.2/cleanup.sh b/definitions/centos-6.2/cleanup.sh new file mode 120000 index 000000000..4658a8585 --- /dev/null +++ b/definitions/centos-6.2/cleanup.sh @@ -0,0 +1 @@ +../.centos/cleanup.sh \ No newline at end of file diff --git a/definitions/centos-6.2/definition.rb b/definitions/centos-6.2/definition.rb new file mode 100644 index 000000000..9925bc38d --- /dev/null +++ b/definitions/centos-6.2/definition.rb @@ -0,0 +1,13 @@ +require File.dirname(__FILE__) + "/../.centos/session.rb" + +iso = "CentOS-6.2-x86_64-bin-DVD1.iso" + +session = + CENTOS_SESSION.merge( :boot_cmd_sequence => + [ ' text ks=http://%IP%:%PORT%/ks.cfg' ], + :memory_size=> '480', + :iso_file => iso, + :iso_md5 => "26fdf8c5a787a674f3219a3554b131ca", + :iso_src => "http://mirrors.kernel.org/centos/6.2/isos/x86_64/#{iso}" ) + +Veewee::Session.declare session diff --git a/definitions/centos-6.2/ks.cfg b/definitions/centos-6.2/ks.cfg new file mode 120000 index 000000000..24af87031 --- /dev/null +++ b/definitions/centos-6.2/ks.cfg @@ -0,0 +1 @@ +../.centos/ks.cfg \ No newline at end of file diff --git a/definitions/centos-6.2/minimize.sh b/definitions/centos-6.2/minimize.sh new file mode 120000 index 000000000..b3632ccbc --- /dev/null +++ b/definitions/centos-6.2/minimize.sh @@ -0,0 +1 @@ +../.common/minimize.sh \ No newline at end of file diff --git a/definitions/centos-6.2/ruby.sh b/definitions/centos-6.2/ruby.sh new file mode 120000 index 000000000..eb080919c --- /dev/null +++ b/definitions/centos-6.2/ruby.sh @@ -0,0 +1 @@ +../.common/ruby.sh \ No newline at end of file diff --git a/definitions/centos-6.2/vagrant.sh b/definitions/centos-6.2/vagrant.sh new file mode 120000 index 000000000..702949639 --- /dev/null +++ b/definitions/centos-6.2/vagrant.sh @@ -0,0 +1 @@ +../.common/vagrant.sh \ No newline at end of file diff --git a/definitions/ubuntu-10.04/cleanup.sh b/definitions/ubuntu-10.04/cleanup.sh new file mode 120000 index 000000000..e5858f10d --- /dev/null +++ b/definitions/ubuntu-10.04/cleanup.sh @@ -0,0 +1 @@ +../.ubuntu/cleanup.sh \ No newline at end of file diff --git a/definitions/ubuntu-10.04/definition.rb b/definitions/ubuntu-10.04/definition.rb new file mode 100644 index 000000000..58cc2d190 --- /dev/null +++ b/definitions/ubuntu-10.04/definition.rb @@ -0,0 +1,10 @@ +require File.dirname(__FILE__) + "/../.ubuntu/session.rb" + +iso = "ubuntu-10.04.4-server-amd64.iso" + +session = + UBUNTU_SESSION.merge( :iso_file => iso, + :iso_md5 => "9b218654cdcdf9722171648c52f8a088", + :iso_src => "http://releases.ubuntu.com/10.04.4/#{iso}" ) + +Veewee::Session.declare session diff --git a/definitions/ubuntu-10.04/minimize.sh b/definitions/ubuntu-10.04/minimize.sh new file mode 120000 index 000000000..b3632ccbc --- /dev/null +++ b/definitions/ubuntu-10.04/minimize.sh @@ -0,0 +1 @@ +../.common/minimize.sh \ No newline at end of file diff --git a/definitions/ubuntu-10.04/networking.sh b/definitions/ubuntu-10.04/networking.sh new file mode 120000 index 000000000..8b49862eb --- /dev/null +++ b/definitions/ubuntu-10.04/networking.sh @@ -0,0 +1 @@ +../.ubuntu/networking.sh \ No newline at end of file diff --git a/definitions/ubuntu-10.04/preseed.cfg b/definitions/ubuntu-10.04/preseed.cfg new file mode 120000 index 000000000..0aca6daae --- /dev/null +++ b/definitions/ubuntu-10.04/preseed.cfg @@ -0,0 +1 @@ +../.ubuntu/preseed.cfg \ No newline at end of file diff --git a/definitions/ubuntu-10.04/ruby.sh b/definitions/ubuntu-10.04/ruby.sh new file mode 120000 index 000000000..eb080919c --- /dev/null +++ b/definitions/ubuntu-10.04/ruby.sh @@ -0,0 +1 @@ +../.common/ruby.sh \ No newline at end of file diff --git a/definitions/ubuntu-10.04/sudoers.sh b/definitions/ubuntu-10.04/sudoers.sh new file mode 120000 index 000000000..1480db551 --- /dev/null +++ b/definitions/ubuntu-10.04/sudoers.sh @@ -0,0 +1 @@ +../.ubuntu/sudoers.sh \ No newline at end of file diff --git a/definitions/ubuntu-10.04/update.sh b/definitions/ubuntu-10.04/update.sh new file mode 120000 index 000000000..20b3a9ab6 --- /dev/null +++ b/definitions/ubuntu-10.04/update.sh @@ -0,0 +1 @@ +../.ubuntu/update.sh \ No newline at end of file diff --git a/definitions/ubuntu-10.04/vagrant.sh b/definitions/ubuntu-10.04/vagrant.sh new file mode 120000 index 000000000..702949639 --- /dev/null +++ b/definitions/ubuntu-10.04/vagrant.sh @@ -0,0 +1 @@ +../.common/vagrant.sh \ No newline at end of file diff --git a/definitions/ubuntu-10.10/cleanup.sh b/definitions/ubuntu-10.10/cleanup.sh new file mode 120000 index 000000000..e5858f10d --- /dev/null +++ b/definitions/ubuntu-10.10/cleanup.sh @@ -0,0 +1 @@ +../.ubuntu/cleanup.sh \ No newline at end of file diff --git a/definitions/ubuntu-10.10/definition.rb b/definitions/ubuntu-10.10/definition.rb new file mode 100644 index 000000000..c1b793daa --- /dev/null +++ b/definitions/ubuntu-10.10/definition.rb @@ -0,0 +1,10 @@ +require File.dirname(__FILE__) + "/../.ubuntu/session.rb" + +iso = "ubuntu-10.10-server-amd64.iso" + +session = + UBUNTU_SESSION.merge( :iso_file => iso, + :iso_md5 => "ab66a1d59a8d78e9ea8ef9b021d6574a", + :iso_src => "http://releases.ubuntu.com/10.10/#{iso}" ) + +Veewee::Session.declare session diff --git a/definitions/ubuntu-10.10/minimize.sh b/definitions/ubuntu-10.10/minimize.sh new file mode 120000 index 000000000..b3632ccbc --- /dev/null +++ b/definitions/ubuntu-10.10/minimize.sh @@ -0,0 +1 @@ +../.common/minimize.sh \ No newline at end of file diff --git a/definitions/ubuntu-10.10/networking.sh b/definitions/ubuntu-10.10/networking.sh new file mode 120000 index 000000000..8b49862eb --- /dev/null +++ b/definitions/ubuntu-10.10/networking.sh @@ -0,0 +1 @@ +../.ubuntu/networking.sh \ No newline at end of file diff --git a/definitions/ubuntu-10.10/preseed.cfg b/definitions/ubuntu-10.10/preseed.cfg new file mode 120000 index 000000000..0aca6daae --- /dev/null +++ b/definitions/ubuntu-10.10/preseed.cfg @@ -0,0 +1 @@ +../.ubuntu/preseed.cfg \ No newline at end of file diff --git a/definitions/ubuntu-10.10/ruby.sh b/definitions/ubuntu-10.10/ruby.sh new file mode 120000 index 000000000..eb080919c --- /dev/null +++ b/definitions/ubuntu-10.10/ruby.sh @@ -0,0 +1 @@ +../.common/ruby.sh \ No newline at end of file diff --git a/definitions/ubuntu-10.10/sudoers.sh b/definitions/ubuntu-10.10/sudoers.sh new file mode 120000 index 000000000..1480db551 --- /dev/null +++ b/definitions/ubuntu-10.10/sudoers.sh @@ -0,0 +1 @@ +../.ubuntu/sudoers.sh \ No newline at end of file diff --git a/definitions/ubuntu-10.10/update.sh b/definitions/ubuntu-10.10/update.sh new file mode 120000 index 000000000..20b3a9ab6 --- /dev/null +++ b/definitions/ubuntu-10.10/update.sh @@ -0,0 +1 @@ +../.ubuntu/update.sh \ No newline at end of file diff --git a/definitions/ubuntu-10.10/vagrant.sh b/definitions/ubuntu-10.10/vagrant.sh new file mode 120000 index 000000000..702949639 --- /dev/null +++ b/definitions/ubuntu-10.10/vagrant.sh @@ -0,0 +1 @@ +../.common/vagrant.sh \ No newline at end of file diff --git a/definitions/ubuntu-11.04/cleanup.sh b/definitions/ubuntu-11.04/cleanup.sh new file mode 120000 index 000000000..e5858f10d --- /dev/null +++ b/definitions/ubuntu-11.04/cleanup.sh @@ -0,0 +1 @@ +../.ubuntu/cleanup.sh \ No newline at end of file diff --git a/definitions/ubuntu-11.04/definition.rb b/definitions/ubuntu-11.04/definition.rb new file mode 100644 index 000000000..830f30dea --- /dev/null +++ b/definitions/ubuntu-11.04/definition.rb @@ -0,0 +1,10 @@ +require File.dirname(__FILE__) + "/../.ubuntu/session.rb" + +iso = "ubuntu-11.04-server-amd64.iso" + +session = + UBUNTU_SESSION.merge( :iso_file => iso, + :iso_md5 => "355ca2417522cb4a77e0295bf45c5cd5", + :iso_src => "http://releases.ubuntu.com/11.04/#{iso}" ) + +Veewee::Session.declare session diff --git a/definitions/ubuntu-11.04/minimize.sh b/definitions/ubuntu-11.04/minimize.sh new file mode 120000 index 000000000..b3632ccbc --- /dev/null +++ b/definitions/ubuntu-11.04/minimize.sh @@ -0,0 +1 @@ +../.common/minimize.sh \ No newline at end of file diff --git a/definitions/ubuntu-11.04/networking.sh b/definitions/ubuntu-11.04/networking.sh new file mode 120000 index 000000000..8b49862eb --- /dev/null +++ b/definitions/ubuntu-11.04/networking.sh @@ -0,0 +1 @@ +../.ubuntu/networking.sh \ No newline at end of file diff --git a/definitions/ubuntu-11.04/preseed.cfg b/definitions/ubuntu-11.04/preseed.cfg new file mode 120000 index 000000000..0aca6daae --- /dev/null +++ b/definitions/ubuntu-11.04/preseed.cfg @@ -0,0 +1 @@ +../.ubuntu/preseed.cfg \ No newline at end of file diff --git a/definitions/ubuntu-11.04/ruby.sh b/definitions/ubuntu-11.04/ruby.sh new file mode 120000 index 000000000..eb080919c --- /dev/null +++ b/definitions/ubuntu-11.04/ruby.sh @@ -0,0 +1 @@ +../.common/ruby.sh \ No newline at end of file diff --git a/definitions/ubuntu-11.04/sudoers.sh b/definitions/ubuntu-11.04/sudoers.sh new file mode 120000 index 000000000..1480db551 --- /dev/null +++ b/definitions/ubuntu-11.04/sudoers.sh @@ -0,0 +1 @@ +../.ubuntu/sudoers.sh \ No newline at end of file diff --git a/definitions/ubuntu-11.04/update.sh b/definitions/ubuntu-11.04/update.sh new file mode 120000 index 000000000..20b3a9ab6 --- /dev/null +++ b/definitions/ubuntu-11.04/update.sh @@ -0,0 +1 @@ +../.ubuntu/update.sh \ No newline at end of file diff --git a/definitions/ubuntu-11.04/vagrant.sh b/definitions/ubuntu-11.04/vagrant.sh new file mode 120000 index 000000000..702949639 --- /dev/null +++ b/definitions/ubuntu-11.04/vagrant.sh @@ -0,0 +1 @@ +../.common/vagrant.sh \ No newline at end of file diff --git a/definitions/ubuntu-11.10/cleanup.sh b/definitions/ubuntu-11.10/cleanup.sh new file mode 120000 index 000000000..e5858f10d --- /dev/null +++ b/definitions/ubuntu-11.10/cleanup.sh @@ -0,0 +1 @@ +../.ubuntu/cleanup.sh \ No newline at end of file diff --git a/definitions/ubuntu-11.10/definition.rb b/definitions/ubuntu-11.10/definition.rb new file mode 100644 index 000000000..500293027 --- /dev/null +++ b/definitions/ubuntu-11.10/definition.rb @@ -0,0 +1,10 @@ +require File.dirname(__FILE__) + "/../.ubuntu/session.rb" + +iso = "ubuntu-11.10-server-amd64.iso" + +session = + UBUNTU_SESSION.merge( :iso_file => iso, + :iso_md5 => "f8a0112b7cb5dcd6d564dbe59f18c35f", + :iso_src => "http://releases.ubuntu.com/11.10/#{iso}" ) + +Veewee::Session.declare session diff --git a/definitions/ubuntu-11.10/minimize.sh b/definitions/ubuntu-11.10/minimize.sh new file mode 120000 index 000000000..b3632ccbc --- /dev/null +++ b/definitions/ubuntu-11.10/minimize.sh @@ -0,0 +1 @@ +../.common/minimize.sh \ No newline at end of file diff --git a/definitions/ubuntu-11.10/networking.sh b/definitions/ubuntu-11.10/networking.sh new file mode 120000 index 000000000..8b49862eb --- /dev/null +++ b/definitions/ubuntu-11.10/networking.sh @@ -0,0 +1 @@ +../.ubuntu/networking.sh \ No newline at end of file diff --git a/definitions/ubuntu-11.10/preseed.cfg b/definitions/ubuntu-11.10/preseed.cfg new file mode 120000 index 000000000..0aca6daae --- /dev/null +++ b/definitions/ubuntu-11.10/preseed.cfg @@ -0,0 +1 @@ +../.ubuntu/preseed.cfg \ No newline at end of file diff --git a/definitions/ubuntu-11.10/ruby.sh b/definitions/ubuntu-11.10/ruby.sh new file mode 120000 index 000000000..eb080919c --- /dev/null +++ b/definitions/ubuntu-11.10/ruby.sh @@ -0,0 +1 @@ +../.common/ruby.sh \ No newline at end of file diff --git a/definitions/ubuntu-11.10/sudoers.sh b/definitions/ubuntu-11.10/sudoers.sh new file mode 120000 index 000000000..1480db551 --- /dev/null +++ b/definitions/ubuntu-11.10/sudoers.sh @@ -0,0 +1 @@ +../.ubuntu/sudoers.sh \ No newline at end of file diff --git a/definitions/ubuntu-11.10/update.sh b/definitions/ubuntu-11.10/update.sh new file mode 120000 index 000000000..20b3a9ab6 --- /dev/null +++ b/definitions/ubuntu-11.10/update.sh @@ -0,0 +1 @@ +../.ubuntu/update.sh \ No newline at end of file diff --git a/definitions/ubuntu-11.10/vagrant.sh b/definitions/ubuntu-11.10/vagrant.sh new file mode 120000 index 000000000..702949639 --- /dev/null +++ b/definitions/ubuntu-11.10/vagrant.sh @@ -0,0 +1 @@ +../.common/vagrant.sh \ No newline at end of file diff --git a/definitions/ubuntu-12.04/cleanup.sh b/definitions/ubuntu-12.04/cleanup.sh new file mode 120000 index 000000000..e5858f10d --- /dev/null +++ b/definitions/ubuntu-12.04/cleanup.sh @@ -0,0 +1 @@ +../.ubuntu/cleanup.sh \ No newline at end of file diff --git a/definitions/ubuntu-12.04/definition.rb b/definitions/ubuntu-12.04/definition.rb new file mode 100644 index 000000000..e1222c5c4 --- /dev/null +++ b/definitions/ubuntu-12.04/definition.rb @@ -0,0 +1,10 @@ +require File.dirname(__FILE__) + "/../.ubuntu/session.rb" + +iso = "ubuntu-12.04-server-amd64.iso" + +session = + UBUNTU_SESSION.merge( :iso_file => iso, + :iso_md5 => "f2e921788d35bbdf0336d05d228136eb", + :iso_src => "http://releases.ubuntu.com/12.04/#{iso}" ) + +Veewee::Session.declare session diff --git a/definitions/ubuntu-12.04/minimize.sh b/definitions/ubuntu-12.04/minimize.sh new file mode 120000 index 000000000..b3632ccbc --- /dev/null +++ b/definitions/ubuntu-12.04/minimize.sh @@ -0,0 +1 @@ +../.common/minimize.sh \ No newline at end of file diff --git a/definitions/ubuntu-12.04/networking.sh b/definitions/ubuntu-12.04/networking.sh new file mode 120000 index 000000000..8b49862eb --- /dev/null +++ b/definitions/ubuntu-12.04/networking.sh @@ -0,0 +1 @@ +../.ubuntu/networking.sh \ No newline at end of file diff --git a/definitions/ubuntu-12.04/preseed.cfg b/definitions/ubuntu-12.04/preseed.cfg new file mode 120000 index 000000000..0aca6daae --- /dev/null +++ b/definitions/ubuntu-12.04/preseed.cfg @@ -0,0 +1 @@ +../.ubuntu/preseed.cfg \ No newline at end of file diff --git a/definitions/ubuntu-12.04/ruby.sh b/definitions/ubuntu-12.04/ruby.sh new file mode 120000 index 000000000..eb080919c --- /dev/null +++ b/definitions/ubuntu-12.04/ruby.sh @@ -0,0 +1 @@ +../.common/ruby.sh \ No newline at end of file diff --git a/definitions/ubuntu-12.04/sudoers.sh b/definitions/ubuntu-12.04/sudoers.sh new file mode 100644 index 000000000..5fce3dd2c --- /dev/null +++ b/definitions/ubuntu-12.04/sudoers.sh @@ -0,0 +1,4 @@ +#!/bin/bash -eux + +sed -i -e '/Defaults\s\+env_reset/a Defaults\texempt_group=sudo' /etc/sudoers +sed -i -e 's/%sudo ALL=(ALL:ALL) ALL/%sudo ALL=NOPASSWD:ALL/g' /etc/sudoers diff --git a/definitions/ubuntu-12.04/update.sh b/definitions/ubuntu-12.04/update.sh new file mode 120000 index 000000000..20b3a9ab6 --- /dev/null +++ b/definitions/ubuntu-12.04/update.sh @@ -0,0 +1 @@ +../.ubuntu/update.sh \ No newline at end of file diff --git a/definitions/ubuntu-12.04/vagrant.sh b/definitions/ubuntu-12.04/vagrant.sh new file mode 120000 index 000000000..702949639 --- /dev/null +++ b/definitions/ubuntu-12.04/vagrant.sh @@ -0,0 +1 @@ +../.common/vagrant.sh \ No newline at end of file