veewee 0.3.12 → 0.4.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +15 -0
- data/.gitattributes +2 -0
- data/.gitignore +2 -0
- data/.rvmrc +1 -1
- data/.travis.yml +1 -2
- data/Gemfile +1 -1
- data/bin/veewee +1 -0
- data/doc/basics.md +17 -11
- data/doc/build_hooks.md +1 -0
- data/doc/customize.md +53 -0
- data/doc/installation.md +5 -0
- data/doc/requirements.md +1 -1
- data/doc/vagrant.md +2 -2
- data/lib/veewee/command/fusion.rb +3 -0
- data/lib/veewee/command/kvm.rb +3 -0
- data/lib/veewee/command/parallels.rb +3 -0
- data/lib/veewee/command/vbox.rb +3 -0
- data/lib/veewee/config/ostypes.yml +17 -3
- data/lib/veewee/definition.rb +2 -2
- data/lib/veewee/definitions.rb +3 -3
- data/lib/veewee/provider/core/box/build.rb +48 -24
- data/lib/veewee/provider/core/box/ssh.rb +6 -6
- data/lib/veewee/provider/core/box/wincp.rb +19 -13
- data/lib/veewee/provider/core/helper/iso.rb +10 -9
- data/lib/veewee/provider/core/helper/ssh.rb +60 -7
- data/lib/veewee/provider/core/helper/web.rb +14 -15
- data/lib/veewee/provider/kvm/provider.rb +1 -1
- data/lib/veewee/provider/virtualbox/box.rb +10 -9
- data/lib/veewee/provider/virtualbox/box/export_vagrant.rb +1 -1
- data/lib/veewee/provider/virtualbox/box/helper/create.rb +2 -2
- data/lib/veewee/provider/vmfusion/box/template.vmx.erb +1 -1
- data/lib/veewee/version.rb +1 -1
- data/templates/.ubuntu/base.sh +2 -0
- data/templates/.ubuntu/chef.sh +2 -0
- data/templates/.ubuntu/cleanup.sh +7 -0
- data/templates/.ubuntu/puppet.sh +2 -0
- data/templates/.ubuntu/ruby.sh +2 -0
- data/templates/.ubuntu/vagrant.sh +2 -0
- data/templates/.ubuntu/virtualbox.sh +2 -0
- data/templates/.ubuntu/zerodisk.sh +2 -0
- data/templates/CentOS-5.10-i386-netboot/base.sh +8 -0
- data/templates/CentOS-5.10-i386-netboot/chef.sh +3 -0
- data/templates/CentOS-5.10-i386-netboot/cleanup.sh +11 -0
- data/templates/CentOS-5.10-i386-netboot/definition.rb +42 -0
- data/templates/CentOS-5.10-i386-netboot/ks.cfg +27 -0
- data/templates/CentOS-5.10-i386-netboot/puppet.sh +17 -0
- data/templates/CentOS-5.10-i386-netboot/ruby.sh +41 -0
- data/templates/CentOS-5.10-i386-netboot/vagrant.sh +9 -0
- data/templates/CentOS-5.10-i386-netboot/virtualbox.sh +9 -0
- data/templates/CentOS-5.10-i386-netboot/zerodisk.sh +4 -0
- data/templates/CentOS-5.10-i386/base.sh +8 -0
- data/templates/CentOS-5.10-i386/chef.sh +3 -0
- data/templates/CentOS-5.10-i386/cleanup.sh +11 -0
- data/templates/CentOS-5.10-i386/definition.rb +42 -0
- data/templates/CentOS-5.10-i386/ks.cfg +27 -0
- data/templates/CentOS-5.10-i386/puppet.sh +17 -0
- data/templates/CentOS-5.10-i386/ruby.sh +41 -0
- data/templates/CentOS-5.10-i386/vagrant.sh +9 -0
- data/templates/CentOS-5.10-i386/virtualbox.sh +9 -0
- data/templates/CentOS-5.10-i386/zerodisk.sh +4 -0
- data/templates/CentOS-5.10-x86_64-netboot/base.sh +8 -0
- data/templates/CentOS-5.10-x86_64-netboot/chef.sh +3 -0
- data/templates/CentOS-5.10-x86_64-netboot/cleanup.sh +11 -0
- data/templates/CentOS-5.10-x86_64-netboot/definition.rb +42 -0
- data/templates/CentOS-5.10-x86_64-netboot/ks.cfg +27 -0
- data/templates/CentOS-5.10-x86_64-netboot/puppet.sh +17 -0
- data/templates/CentOS-5.10-x86_64-netboot/ruby.sh +41 -0
- data/templates/CentOS-5.10-x86_64-netboot/vagrant.sh +9 -0
- data/templates/CentOS-5.10-x86_64-netboot/virtualbox.sh +9 -0
- data/templates/CentOS-5.10-x86_64-netboot/zerodisk.sh +4 -0
- data/templates/CentOS-5.10-x86_64/base.sh +8 -0
- data/templates/CentOS-5.10-x86_64/chef.sh +3 -0
- data/templates/CentOS-5.10-x86_64/cleanup.sh +11 -0
- data/templates/CentOS-5.10-x86_64/definition.rb +42 -0
- data/templates/CentOS-5.10-x86_64/ks.cfg +27 -0
- data/templates/CentOS-5.10-x86_64/puppet.sh +17 -0
- data/templates/CentOS-5.10-x86_64/ruby.sh +41 -0
- data/templates/CentOS-5.10-x86_64/vagrant.sh +9 -0
- data/templates/CentOS-5.10-x86_64/virtualbox.sh +9 -0
- data/templates/CentOS-5.10-x86_64/zerodisk.sh +4 -0
- data/templates/CentOS-5.6-i386/ks.cfg +1 -1
- data/templates/CentOS-5.7-i386-netboot/ks.cfg +1 -1
- data/templates/CentOS-5.8-i386-netboot/ks.cfg +1 -1
- data/templates/CentOS-5.8-i386/ks.cfg +1 -1
- data/templates/CentOS-5.9-i386-netboot/base.sh +5 -2
- data/templates/CentOS-5.9-i386-netboot/chef.sh +1 -1
- data/templates/CentOS-5.9-i386-netboot/cleanup.sh +7 -3
- data/templates/CentOS-5.9-i386-netboot/definition.rb +2 -3
- data/templates/CentOS-5.9-i386-netboot/ks.cfg +8 -28
- data/templates/CentOS-5.9-i386-netboot/puppet.sh +0 -1
- data/templates/CentOS-5.9-i386-netboot/ruby.sh +40 -11
- data/templates/CentOS-5.9-i386-netboot/vagrant.sh +2 -11
- data/templates/CentOS-5.9-i386-netboot/virtualbox.sh +5 -4
- data/templates/CentOS-5.9-i386-netboot/zerodisk.sh +1 -0
- data/templates/CentOS-5.9-i386/base.sh +5 -2
- data/templates/CentOS-5.9-i386/chef.sh +1 -1
- data/templates/CentOS-5.9-i386/cleanup.sh +7 -3
- data/templates/CentOS-5.9-i386/definition.rb +2 -3
- data/templates/CentOS-5.9-i386/ks.cfg +8 -28
- data/templates/CentOS-5.9-i386/puppet.sh +0 -1
- data/templates/CentOS-5.9-i386/ruby.sh +40 -11
- data/templates/CentOS-5.9-i386/vagrant.sh +2 -11
- data/templates/CentOS-5.9-i386/virtualbox.sh +5 -4
- data/templates/CentOS-5.9-i386/zerodisk.sh +1 -0
- data/templates/CentOS-5.9-x86_64-netboot/base.sh +5 -2
- data/templates/CentOS-5.9-x86_64-netboot/chef.sh +1 -1
- data/templates/CentOS-5.9-x86_64-netboot/cleanup.sh +7 -3
- data/templates/CentOS-5.9-x86_64-netboot/definition.rb +2 -3
- data/templates/CentOS-5.9-x86_64-netboot/ks.cfg +8 -28
- data/templates/CentOS-5.9-x86_64-netboot/puppet.sh +0 -1
- data/templates/CentOS-5.9-x86_64-netboot/ruby.sh +40 -11
- data/templates/CentOS-5.9-x86_64-netboot/vagrant.sh +2 -11
- data/templates/CentOS-5.9-x86_64-netboot/virtualbox.sh +5 -4
- data/templates/CentOS-5.9-x86_64-netboot/zerodisk.sh +1 -0
- data/templates/CentOS-5.9-x86_64/base.sh +5 -2
- data/templates/CentOS-5.9-x86_64/chef.sh +1 -1
- data/templates/CentOS-5.9-x86_64/cleanup.sh +7 -3
- data/templates/CentOS-5.9-x86_64/definition.rb +4 -5
- data/templates/CentOS-5.9-x86_64/ks.cfg +7 -27
- data/templates/CentOS-5.9-x86_64/puppet.sh +0 -1
- data/templates/CentOS-5.9-x86_64/ruby.sh +40 -11
- data/templates/CentOS-5.9-x86_64/vagrant.sh +2 -11
- data/templates/CentOS-5.9-x86_64/virtualbox.sh +5 -4
- data/templates/CentOS-5.9-x86_64/zerodisk.sh +1 -0
- data/templates/CentOS-6.0-i386-netboot/chef.sh +1 -0
- data/templates/CentOS-6.0-i386/chef.sh +1 -0
- data/templates/CentOS-6.0-x86_64-minimal/chef.sh +1 -0
- data/templates/CentOS-6.0-x86_64-netboot/chef.sh +1 -0
- data/templates/CentOS-6.0-x86_64/chef.sh +1 -0
- data/templates/CentOS-6.1-x86_64-minimal/chef.sh +1 -0
- data/templates/CentOS-6.1-x86_64-netboot/chef.sh +1 -0
- data/templates/CentOS-6.2-i386-minimal/chef.sh +1 -0
- data/templates/CentOS-6.2-x86_64-minimal/chef.sh +1 -0
- data/templates/CentOS-6.2-x86_64-netboot/chef.sh +1 -0
- data/templates/CentOS-6.3-i386-minimal/chef.sh +1 -0
- data/templates/CentOS-6.3-i386-minimal/definition.rb +2 -3
- data/templates/CentOS-6.3-x86_64-minimal/chef.sh +1 -0
- data/templates/CentOS-6.3-x86_64-minimal/definition.rb +1 -1
- data/templates/CentOS-6.3-x86_64-netboot/chef.sh +1 -0
- data/templates/CentOS-6.3-x86_64-netboot/definition.rb +1 -1
- data/templates/CentOS-6.3-x86_64-reallyminimal/definition.rb +1 -1
- data/templates/CentOS-6.4-i386-minimal/chef.sh +3 -1
- data/templates/CentOS-6.4-i386-minimal/definition.rb +1 -1
- data/templates/CentOS-6.4-i386-minimal/vmfusion.sh +3 -0
- data/templates/CentOS-6.4-i386-netboot/chef.sh +1 -0
- data/templates/CentOS-6.4-i386-netboot/definition.rb +1 -1
- data/templates/CentOS-6.4-i386-netboot/ks.cfg +1 -1
- data/templates/CentOS-6.4-i386-netboot/vmfusion.sh +3 -0
- data/templates/CentOS-6.4-x86_64-minimal/chef.sh +3 -1
- data/templates/CentOS-6.4-x86_64-minimal/definition.rb +1 -1
- data/templates/CentOS-6.4-x86_64-minimal/vmfusion.sh +3 -0
- data/templates/CentOS-6.4-x86_64-netboot/chef.sh +1 -0
- data/templates/CentOS-6.4-x86_64-netboot/definition.rb +1 -1
- data/templates/CentOS-6.4-x86_64-netboot/ks.cfg +1 -1
- data/templates/CentOS-6.4-x86_64-netboot/vmfusion.sh +3 -0
- data/templates/CentOS-6.5-i386-minimal/base.sh +16 -0
- data/templates/CentOS-6.5-i386-minimal/chef.sh +4 -0
- data/templates/CentOS-6.5-i386-minimal/cleanup.sh +8 -0
- data/templates/CentOS-6.5-i386-minimal/definition.rb +38 -0
- data/templates/CentOS-6.5-i386-minimal/ks.cfg +37 -0
- data/templates/CentOS-6.5-i386-minimal/puppet.sh +18 -0
- data/templates/CentOS-6.5-i386-minimal/vagrant.sh +18 -0
- data/templates/CentOS-6.5-i386-minimal/virtualbox.sh +8 -0
- data/templates/CentOS-6.5-i386-minimal/vmfusion.sh +10 -0
- data/templates/CentOS-6.5-i386-minimal/zerodisk.sh +3 -0
- data/templates/CentOS-6.5-i386-netboot/base.sh +16 -0
- data/templates/CentOS-6.5-i386-netboot/cfengine.sh +69 -0
- data/templates/CentOS-6.5-i386-netboot/chef.sh +4 -0
- data/templates/CentOS-6.5-i386-netboot/cleanup.sh +8 -0
- data/templates/CentOS-6.5-i386-netboot/definition.rb +40 -0
- data/templates/CentOS-6.5-i386-netboot/ks.cfg +41 -0
- data/templates/CentOS-6.5-i386-netboot/puppet.sh +18 -0
- data/templates/CentOS-6.5-i386-netboot/ruby.sh +3 -0
- data/templates/CentOS-6.5-i386-netboot/vagrant.sh +18 -0
- data/templates/CentOS-6.5-i386-netboot/virtualbox.sh +8 -0
- data/templates/CentOS-6.5-i386-netboot/vmfusion.sh +10 -0
- data/templates/CentOS-6.5-i386-netboot/zerodisk.sh +3 -0
- data/templates/CentOS-6.5-x86_64-minimal/base.sh +16 -0
- data/templates/CentOS-6.5-x86_64-minimal/chef.sh +4 -0
- data/templates/CentOS-6.5-x86_64-minimal/cleanup.sh +8 -0
- data/templates/CentOS-6.5-x86_64-minimal/definition.rb +38 -0
- data/templates/CentOS-6.5-x86_64-minimal/ks.cfg +37 -0
- data/templates/CentOS-6.5-x86_64-minimal/puppet.sh +18 -0
- data/templates/CentOS-6.5-x86_64-minimal/vagrant.sh +18 -0
- data/templates/CentOS-6.5-x86_64-minimal/virtualbox.sh +8 -0
- data/templates/CentOS-6.5-x86_64-minimal/vmfusion.sh +10 -0
- data/templates/CentOS-6.5-x86_64-minimal/zerodisk.sh +3 -0
- data/templates/CentOS-6.5-x86_64-netboot/base.sh +16 -0
- data/templates/CentOS-6.5-x86_64-netboot/chef.sh +4 -0
- data/templates/CentOS-6.5-x86_64-netboot/cleanup.sh +8 -0
- data/templates/CentOS-6.5-x86_64-netboot/definition.rb +38 -0
- data/templates/CentOS-6.5-x86_64-netboot/ks.cfg +38 -0
- data/templates/CentOS-6.5-x86_64-netboot/puppet.sh +18 -0
- data/templates/CentOS-6.5-x86_64-netboot/vagrant.sh +18 -0
- data/templates/CentOS-6.5-x86_64-netboot/virtualbox.sh +8 -0
- data/templates/CentOS-6.5-x86_64-netboot/vmfusion.sh +10 -0
- data/templates/CentOS-6.5-x86_64-netboot/zerodisk.sh +3 -0
- data/templates/CentOS-7.0-1406-x86_64-netinstall/base.sh +16 -0
- data/templates/CentOS-7.0-1406-x86_64-netinstall/chef.sh +2 -0
- data/templates/CentOS-7.0-1406-x86_64-netinstall/cleanup.sh +7 -0
- data/templates/CentOS-7.0-1406-x86_64-netinstall/definition.rb +38 -0
- data/templates/CentOS-7.0-1406-x86_64-netinstall/ks.cfg +39 -0
- data/templates/CentOS-7.0-1406-x86_64-netinstall/puppet.sh +18 -0
- data/templates/CentOS-7.0-1406-x86_64-netinstall/vagrant.sh +18 -0
- data/templates/CentOS-7.0-1406-x86_64-netinstall/virtualbox.sh +8 -0
- data/templates/CentOS-7.0-1406-x86_64-netinstall/vmfusion.sh +10 -0
- data/templates/CentOS-7.0-1406-x86_64-netinstall/zerodisk.sh +3 -0
- data/templates/Debian-6.0.6-i386-netboot/definition.rb +1 -2
- data/templates/Debian-6.0.7-amd64-netboot/definition.rb +3 -1
- data/templates/Debian-6.0.7-i386-netboot/definition.rb +4 -3
- data/templates/Debian-6.0.8-amd64-netboot/base.sh +27 -0
- data/templates/Debian-6.0.8-amd64-netboot/chef.sh +2 -0
- data/templates/Debian-6.0.8-amd64-netboot/cleanup-virtualbox.sh +4 -0
- data/templates/Debian-6.0.8-amd64-netboot/cleanup.sh +17 -0
- data/templates/Debian-6.0.8-amd64-netboot/definition.rb +50 -0
- data/templates/Debian-6.0.8-amd64-netboot/preseed.cfg +315 -0
- data/templates/Debian-6.0.8-amd64-netboot/puppet.sh +7 -0
- data/templates/Debian-6.0.8-amd64-netboot/ruby.sh +10 -0
- data/templates/Debian-6.0.8-amd64-netboot/vagrant.sh +25 -0
- data/templates/Debian-6.0.8-amd64-netboot/virtualbox.sh +18 -0
- data/templates/Debian-6.0.8-amd64-netboot/vmfusion.sh +7 -0
- data/templates/Debian-6.0.8-amd64-netboot/zerodisk.sh +3 -0
- data/templates/Debian-6.0.8-i386-netboot/base.sh +26 -0
- data/templates/Debian-6.0.8-i386-netboot/chef.sh +2 -0
- data/templates/Debian-6.0.8-i386-netboot/cleanup-virtualbox.sh +4 -0
- data/templates/Debian-6.0.8-i386-netboot/cleanup.sh +18 -0
- data/templates/Debian-6.0.8-i386-netboot/definition.rb +58 -0
- data/templates/Debian-6.0.8-i386-netboot/preseed.cfg +315 -0
- data/templates/Debian-6.0.8-i386-netboot/puppet.sh +7 -0
- data/templates/Debian-6.0.8-i386-netboot/ruby.sh +10 -0
- data/templates/Debian-6.0.8-i386-netboot/vagrant.sh +25 -0
- data/templates/Debian-6.0.8-i386-netboot/virtualbox.sh +16 -0
- data/templates/Debian-6.0.8-i386-netboot/vmfusion.sh +7 -0
- data/templates/Debian-6.0.8-i386-netboot/zerodisk.sh +3 -0
- data/templates/Debian-6.0.9-amd64-netboot/base.sh +27 -0
- data/templates/Debian-6.0.9-amd64-netboot/chef.sh +2 -0
- data/templates/Debian-6.0.9-amd64-netboot/cleanup-virtualbox.sh +4 -0
- data/templates/Debian-6.0.9-amd64-netboot/cleanup.sh +17 -0
- data/templates/Debian-6.0.9-amd64-netboot/definition.rb +50 -0
- data/templates/Debian-6.0.9-amd64-netboot/preseed.cfg +315 -0
- data/templates/Debian-6.0.9-amd64-netboot/puppet.sh +7 -0
- data/templates/Debian-6.0.9-amd64-netboot/ruby.sh +10 -0
- data/templates/Debian-6.0.9-amd64-netboot/vagrant.sh +25 -0
- data/templates/Debian-6.0.9-amd64-netboot/virtualbox.sh +18 -0
- data/templates/Debian-6.0.9-amd64-netboot/vmfusion.sh +7 -0
- data/templates/Debian-6.0.9-amd64-netboot/zerodisk.sh +3 -0
- data/templates/Debian-6.0.9-i386-netboot/base.sh +27 -0
- data/templates/Debian-6.0.9-i386-netboot/chef.sh +2 -0
- data/templates/Debian-6.0.9-i386-netboot/cleanup-virtualbox.sh +4 -0
- data/templates/Debian-6.0.9-i386-netboot/cleanup.sh +17 -0
- data/templates/Debian-6.0.9-i386-netboot/definition.rb +50 -0
- data/templates/Debian-6.0.9-i386-netboot/preseed.cfg +315 -0
- data/templates/Debian-6.0.9-i386-netboot/puppet.sh +7 -0
- data/templates/Debian-6.0.9-i386-netboot/ruby.sh +10 -0
- data/templates/Debian-6.0.9-i386-netboot/vagrant.sh +25 -0
- data/templates/Debian-6.0.9-i386-netboot/virtualbox.sh +18 -0
- data/templates/Debian-6.0.9-i386-netboot/vmfusion.sh +7 -0
- data/templates/Debian-6.0.9-i386-netboot/zerodisk.sh +3 -0
- data/templates/Debian-7.0-amd64-netboot/base.sh +1 -0
- data/templates/Debian-7.0-amd64-netboot/definition.rb +1 -0
- data/templates/Debian-7.0-amd64-netboot/preseed.cfg +1 -1
- data/templates/Debian-7.0-amd64-netboot/systemd.sh +22 -0
- data/templates/Debian-7.0-i386-netboot/base.sh +1 -0
- data/templates/Debian-7.0-i386-netboot/definition.rb +1 -0
- data/templates/Debian-7.0-i386-netboot/systemd.sh +22 -0
- data/templates/Debian-7.1.0-amd64-netboot/base.sh +1 -0
- data/templates/Debian-7.1.0-amd64-netboot/definition.rb +4 -1
- data/templates/Debian-7.1.0-amd64-netboot/preseed.cfg +1 -1
- data/templates/Debian-7.1.0-amd64-netboot/systemd.sh +22 -0
- data/templates/Debian-7.1.0-i386-netboot/base.sh +1 -0
- data/templates/Debian-7.1.0-i386-netboot/definition.rb +4 -1
- data/templates/Debian-7.1.0-i386-netboot/systemd.sh +22 -0
- data/templates/Debian-7.2.0-amd64-netboot/base.sh +1 -0
- data/templates/Debian-7.2.0-amd64-netboot/definition.rb +4 -1
- data/templates/Debian-7.2.0-amd64-netboot/preseed.cfg +1 -1
- data/templates/Debian-7.2.0-amd64-netboot/systemd.sh +22 -0
- data/templates/Debian-7.2.0-i386-netboot/base.sh +1 -0
- data/templates/Debian-7.2.0-i386-netboot/definition.rb +4 -1
- data/templates/Debian-7.2.0-i386-netboot/systemd.sh +22 -0
- data/templates/Debian-7.3.0-amd64-netboot/base.sh +26 -0
- data/templates/Debian-7.3.0-amd64-netboot/chef.sh +49 -0
- data/templates/Debian-7.3.0-amd64-netboot/cleanup-virtualbox.sh +4 -0
- data/templates/Debian-7.3.0-amd64-netboot/cleanup.sh +18 -0
- data/templates/Debian-7.3.0-amd64-netboot/definition.rb +56 -0
- data/templates/Debian-7.3.0-amd64-netboot/preseed.cfg +313 -0
- data/templates/Debian-7.3.0-amd64-netboot/puppet.sh +7 -0
- data/templates/Debian-7.3.0-amd64-netboot/ruby.sh +10 -0
- data/templates/Debian-7.3.0-amd64-netboot/systemd.sh +22 -0
- data/templates/Debian-7.3.0-amd64-netboot/vagrant.sh +21 -0
- data/templates/Debian-7.3.0-amd64-netboot/virtualbox.sh +34 -0
- data/templates/Debian-7.3.0-amd64-netboot/vmfusion.sh +7 -0
- data/templates/Debian-7.3.0-amd64-netboot/zerodisk.sh +3 -0
- data/templates/Debian-7.3.0-i386-netboot/base.sh +27 -0
- data/templates/Debian-7.3.0-i386-netboot/chef.sh +2 -0
- data/templates/Debian-7.3.0-i386-netboot/cleanup-virtualbox.sh +4 -0
- data/templates/Debian-7.3.0-i386-netboot/cleanup.sh +17 -0
- data/templates/Debian-7.3.0-i386-netboot/definition.rb +54 -0
- data/templates/Debian-7.3.0-i386-netboot/preseed.cfg +315 -0
- data/templates/Debian-7.3.0-i386-netboot/puppet.sh +7 -0
- data/templates/Debian-7.3.0-i386-netboot/ruby.sh +10 -0
- data/templates/Debian-7.3.0-i386-netboot/systemd.sh +22 -0
- data/templates/Debian-7.3.0-i386-netboot/vagrant.sh +23 -0
- data/templates/Debian-7.3.0-i386-netboot/virtualbox.sh +34 -0
- data/templates/Debian-7.3.0-i386-netboot/vmfusion.sh +7 -0
- data/templates/Debian-7.3.0-i386-netboot/zerodisk.sh +3 -0
- data/templates/Debian-7.4.0-amd64-netboot/base.sh +26 -0
- data/templates/Debian-7.4.0-amd64-netboot/chef.sh +49 -0
- data/templates/Debian-7.4.0-amd64-netboot/cleanup.sh +18 -0
- data/templates/Debian-7.4.0-amd64-netboot/definition.rb +55 -0
- data/templates/Debian-7.4.0-amd64-netboot/preseed.cfg +313 -0
- data/templates/Debian-7.4.0-amd64-netboot/puppet.sh +7 -0
- data/templates/Debian-7.4.0-amd64-netboot/ruby.sh +10 -0
- data/templates/Debian-7.4.0-amd64-netboot/systemd.sh +22 -0
- data/templates/Debian-7.4.0-amd64-netboot/vagrant.sh +21 -0
- data/templates/Debian-7.4.0-amd64-netboot/virtualbox.sh +35 -0
- data/templates/Debian-7.4.0-amd64-netboot/vmfusion.sh +7 -0
- data/templates/Debian-7.4.0-amd64-netboot/zerodisk.sh +3 -0
- data/templates/Debian-7.4.0-i386-netboot/base.sh +27 -0
- data/templates/Debian-7.4.0-i386-netboot/chef.sh +2 -0
- data/templates/Debian-7.4.0-i386-netboot/cleanup.sh +17 -0
- data/templates/Debian-7.4.0-i386-netboot/definition.rb +53 -0
- data/templates/Debian-7.4.0-i386-netboot/preseed.cfg +315 -0
- data/templates/Debian-7.4.0-i386-netboot/puppet.sh +7 -0
- data/templates/Debian-7.4.0-i386-netboot/ruby.sh +10 -0
- data/templates/Debian-7.4.0-i386-netboot/systemd.sh +22 -0
- data/templates/Debian-7.4.0-i386-netboot/vagrant.sh +23 -0
- data/templates/Debian-7.4.0-i386-netboot/virtualbox.sh +36 -0
- data/templates/Debian-7.4.0-i386-netboot/vmfusion.sh +7 -0
- data/templates/Debian-7.4.0-i386-netboot/zerodisk.sh +3 -0
- data/templates/Debian-7.5.0-amd64-netboot/base.sh +25 -0
- data/templates/Debian-7.5.0-amd64-netboot/chef.sh +49 -0
- data/templates/Debian-7.5.0-amd64-netboot/cleanup.sh +18 -0
- data/templates/Debian-7.5.0-amd64-netboot/definition.rb +55 -0
- data/templates/Debian-7.5.0-amd64-netboot/preseed.cfg +313 -0
- data/templates/Debian-7.5.0-amd64-netboot/puppet.sh +7 -0
- data/templates/Debian-7.5.0-amd64-netboot/ruby.sh +10 -0
- data/templates/Debian-7.5.0-amd64-netboot/systemd.sh +22 -0
- data/templates/Debian-7.5.0-amd64-netboot/vagrant.sh +21 -0
- data/templates/Debian-7.5.0-amd64-netboot/virtualbox.sh +37 -0
- data/templates/Debian-7.5.0-amd64-netboot/vmfusion.sh +7 -0
- data/templates/Debian-7.5.0-amd64-netboot/zerodisk.sh +3 -0
- data/templates/Debian-7.5.0-i386-netboot/base.sh +26 -0
- data/templates/Debian-7.5.0-i386-netboot/chef.sh +2 -0
- data/templates/Debian-7.5.0-i386-netboot/cleanup.sh +17 -0
- data/templates/Debian-7.5.0-i386-netboot/definition.rb +51 -0
- data/templates/Debian-7.5.0-i386-netboot/preseed.cfg +315 -0
- data/templates/Debian-7.5.0-i386-netboot/puppet.sh +7 -0
- data/templates/Debian-7.5.0-i386-netboot/ruby.sh +10 -0
- data/templates/Debian-7.5.0-i386-netboot/systemd.sh +22 -0
- data/templates/Debian-7.5.0-i386-netboot/vagrant.sh +23 -0
- data/templates/Debian-7.5.0-i386-netboot/virtualbox.sh +38 -0
- data/templates/Debian-7.5.0-i386-netboot/vmfusion.sh +7 -0
- data/templates/Debian-7.5.0-i386-netboot/zerodisk.sh +3 -0
- data/templates/Debian-7.6.0-amd64-netboot/base.sh +25 -0
- data/templates/Debian-7.6.0-amd64-netboot/chef.sh +49 -0
- data/templates/Debian-7.6.0-amd64-netboot/cleanup.sh +18 -0
- data/templates/Debian-7.6.0-amd64-netboot/definition.rb +52 -0
- data/templates/Debian-7.6.0-amd64-netboot/preseed.cfg +313 -0
- data/templates/Debian-7.6.0-amd64-netboot/puppet.sh +7 -0
- data/templates/Debian-7.6.0-amd64-netboot/ruby.sh +10 -0
- data/templates/Debian-7.6.0-amd64-netboot/vagrant.sh +21 -0
- data/templates/Debian-7.6.0-amd64-netboot/virtualbox.sh +37 -0
- data/templates/Debian-7.6.0-amd64-netboot/vmfusion.sh +7 -0
- data/templates/Debian-7.6.0-amd64-netboot/zerodisk.sh +3 -0
- data/templates/Debian-7.6.0-i386-netboot/base.sh +26 -0
- data/templates/Debian-7.6.0-i386-netboot/chef.sh +2 -0
- data/templates/Debian-7.6.0-i386-netboot/cleanup.sh +17 -0
- data/templates/Debian-7.6.0-i386-netboot/definition.rb +50 -0
- data/templates/Debian-7.6.0-i386-netboot/preseed.cfg +315 -0
- data/templates/Debian-7.6.0-i386-netboot/puppet.sh +7 -0
- data/templates/Debian-7.6.0-i386-netboot/ruby.sh +10 -0
- data/templates/Debian-7.6.0-i386-netboot/vagrant.sh +23 -0
- data/templates/Debian-7.6.0-i386-netboot/virtualbox.sh +38 -0
- data/templates/Debian-7.6.0-i386-netboot/vmfusion.sh +7 -0
- data/templates/Debian-7.6.0-i386-netboot/zerodisk.sh +3 -0
- data/templates/Fedora-14-amd64-netboot/definition.rb +1 -1
- data/templates/Fedora-14-amd64/definition.rb +1 -1
- data/templates/Fedora-14-i386-netboot/definition.rb +1 -1
- data/templates/Fedora-14-i386/definition.rb +1 -1
- data/templates/Fedora-15-i386-netboot/definition.rb +1 -1
- data/templates/Fedora-15-i386/definition.rb +1 -1
- data/templates/Fedora-15-x86_64-netboot/definition.rb +1 -1
- data/templates/Fedora-15-x86_64/definition.rb +1 -1
- data/templates/Fedora-16-i386/definition.rb +1 -1
- data/templates/Fedora-16-x86_64-netboot/definition.rb +1 -1
- data/templates/Fedora-16-x86_64/definition.rb +1 -1
- data/templates/Fedora-17-i386/definition.rb +1 -1
- data/templates/Fedora-17-x86_64/definition.rb +1 -1
- data/templates/Fedora-18-i386/definition.rb +1 -1
- data/templates/Fedora-18-x86_64/definition.rb +1 -1
- data/templates/Fedora-19-i386/definition.rb +1 -1
- data/templates/Fedora-19-x86_64/definition.rb +1 -1
- data/templates/Fedora-20-i386/base.sh +9 -0
- data/templates/Fedora-20-i386/chef.sh +17 -0
- data/templates/Fedora-20-i386/cleanup.sh +6 -0
- data/templates/Fedora-20-i386/definition.rb +39 -0
- data/templates/Fedora-20-i386/ks.cfg +83 -0
- data/templates/Fedora-20-i386/puppet.sh +2 -0
- data/templates/Fedora-20-i386/ruby.sh +3 -0
- data/templates/Fedora-20-i386/vagrant.sh +18 -0
- data/templates/Fedora-20-i386/virtualbox.sh +4 -0
- data/templates/Fedora-20-i386/vmfusion.sh +7 -0
- data/templates/Fedora-20-i386/zerodisk.sh +3 -0
- data/templates/Fedora-20-x86_64/base.sh +9 -0
- data/templates/Fedora-20-x86_64/chef.sh +17 -0
- data/templates/Fedora-20-x86_64/cleanup.sh +6 -0
- data/templates/Fedora-20-x86_64/definition.rb +39 -0
- data/templates/Fedora-20-x86_64/ks.cfg +83 -0
- data/templates/Fedora-20-x86_64/puppet.sh +2 -0
- data/templates/Fedora-20-x86_64/ruby.sh +3 -0
- data/templates/Fedora-20-x86_64/vagrant.sh +18 -0
- data/templates/Fedora-20-x86_64/virtualbox.sh +4 -0
- data/templates/Fedora-20-x86_64/vmfusion.sh +7 -0
- data/templates/Fedora-20-x86_64/zerodisk.sh +3 -0
- data/templates/OSX/definition.rb +13 -1
- data/templates/OSX/prepare_veewee_iso/prepare_veewee_iso.sh +51 -2
- data/templates/OracleLinux-5.10-i386-DVD/base.sh +19 -0
- data/templates/OracleLinux-5.10-i386-DVD/chef.sh +3 -0
- data/templates/OracleLinux-5.10-i386-DVD/cleanup.sh +8 -0
- data/templates/OracleLinux-5.10-i386-DVD/definition.rb +37 -0
- data/templates/OracleLinux-5.10-i386-DVD/ks.cfg +55 -0
- data/templates/OracleLinux-5.10-i386-DVD/proxy.sh +6 -0
- data/templates/OracleLinux-5.10-i386-DVD/puppet.sh +3 -0
- data/templates/OracleLinux-5.10-i386-DVD/ruby.sh +36 -0
- data/templates/OracleLinux-5.10-i386-DVD/vagrant.sh +21 -0
- data/templates/OracleLinux-5.10-i386-DVD/virtualbox.sh +8 -0
- data/templates/OracleLinux-5.10-i386-DVD/zerodisk.sh +3 -0
- data/templates/OracleLinux-5.10-x86_64-DVD/base.sh +19 -0
- data/templates/OracleLinux-5.10-x86_64-DVD/chef.sh +3 -0
- data/templates/OracleLinux-5.10-x86_64-DVD/cleanup.sh +8 -0
- data/templates/OracleLinux-5.10-x86_64-DVD/definition.rb +37 -0
- data/templates/OracleLinux-5.10-x86_64-DVD/ks.cfg +55 -0
- data/templates/OracleLinux-5.10-x86_64-DVD/proxy.sh +6 -0
- data/templates/OracleLinux-5.10-x86_64-DVD/puppet.sh +3 -0
- data/templates/OracleLinux-5.10-x86_64-DVD/ruby.sh +36 -0
- data/templates/OracleLinux-5.10-x86_64-DVD/vagrant.sh +21 -0
- data/templates/OracleLinux-5.10-x86_64-DVD/virtualbox.sh +8 -0
- data/templates/OracleLinux-5.10-x86_64-DVD/zerodisk.sh +3 -0
- data/templates/OracleLinux-5.9-i386-DVD/base.sh +1 -8
- data/templates/OracleLinux-5.9-i386-DVD/ks.cfg +21 -1
- data/templates/OracleLinux-5.9-i386-DVD/ruby.sh +2 -2
- data/templates/OracleLinux-5.9-x86_64-DVD/base.sh +1 -8
- data/templates/OracleLinux-5.9-x86_64-DVD/ks.cfg +21 -1
- data/templates/OracleLinux-5.9-x86_64-DVD/ruby.sh +2 -2
- data/templates/OracleLinux-6.4-i386-DVD/base.sh +1 -6
- data/templates/OracleLinux-6.4-i386-DVD/ks.cfg +21 -1
- data/templates/OracleLinux-6.4-i386-DVD/puppet.sh +3 -3
- data/templates/OracleLinux-6.4-x86_64-DVD/base.sh +1 -6
- data/templates/OracleLinux-6.4-x86_64-DVD/ks.cfg +21 -1
- data/templates/OracleLinux-6.4-x86_64-DVD/puppet.sh +3 -3
- data/templates/OracleLinux-6.5-i386-DVD/base.sh +20 -0
- data/templates/OracleLinux-6.5-i386-DVD/chef.sh +3 -0
- data/templates/OracleLinux-6.5-i386-DVD/cleanup.sh +9 -0
- data/templates/OracleLinux-6.5-i386-DVD/definition.rb +39 -0
- data/templates/OracleLinux-6.5-i386-DVD/ks.cfg +56 -0
- data/templates/OracleLinux-6.5-i386-DVD/proxy.sh +6 -0
- data/templates/OracleLinux-6.5-i386-DVD/puppet.sh +10 -0
- data/templates/OracleLinux-6.5-i386-DVD/ruby.sh +5 -0
- data/templates/OracleLinux-6.5-i386-DVD/vagrant.sh +21 -0
- data/templates/OracleLinux-6.5-i386-DVD/virtualbox.sh +8 -0
- data/templates/OracleLinux-6.5-i386-DVD/zerodisk.sh +3 -0
- data/templates/OracleLinux-6.5-x86_64-DVD/base.sh +20 -0
- data/templates/OracleLinux-6.5-x86_64-DVD/chef.sh +3 -0
- data/templates/OracleLinux-6.5-x86_64-DVD/cleanup.sh +9 -0
- data/templates/OracleLinux-6.5-x86_64-DVD/definition.rb +39 -0
- data/templates/OracleLinux-6.5-x86_64-DVD/ks.cfg +56 -0
- data/templates/OracleLinux-6.5-x86_64-DVD/proxy.sh +6 -0
- data/templates/OracleLinux-6.5-x86_64-DVD/puppet.sh +10 -0
- data/templates/OracleLinux-6.5-x86_64-DVD/ruby.sh +5 -0
- data/templates/OracleLinux-6.5-x86_64-DVD/vagrant.sh +21 -0
- data/templates/OracleLinux-6.5-x86_64-DVD/virtualbox.sh +8 -0
- data/templates/OracleLinux-6.5-x86_64-DVD/zerodisk.sh +3 -0
- data/templates/OracleLinux-7.0-x86_64-DVD/base.sh +19 -0
- data/templates/OracleLinux-7.0-x86_64-DVD/chef.sh +3 -0
- data/templates/OracleLinux-7.0-x86_64-DVD/cleanup.sh +11 -0
- data/templates/OracleLinux-7.0-x86_64-DVD/definition.rb +40 -0
- data/templates/OracleLinux-7.0-x86_64-DVD/ks.cfg +60 -0
- data/templates/OracleLinux-7.0-x86_64-DVD/provision.sh +35 -0
- data/templates/OracleLinux-7.0-x86_64-DVD/proxy.sh +3 -0
- data/templates/OracleLinux-7.0-x86_64-DVD/puppet.sh +15 -0
- data/templates/OracleLinux-7.0-x86_64-DVD/ruby.sh +5 -0
- data/templates/OracleLinux-7.0-x86_64-DVD/vagrant.sh +21 -0
- data/templates/OracleLinux-7.0-x86_64-DVD/virtualbox.sh +8 -0
- data/templates/OracleLinux-7.0-x86_64-DVD/zerodisk.sh +2 -0
- data/templates/SLES-11-SP3-DVD-x86_64-GM/autoinst.xml +2608 -0
- data/templates/SLES-11-SP3-DVD-x86_64-GM/definition.rb +33 -0
- data/templates/SLES-11-SP3-DVD-x86_64-GM/postinstall.sh +52 -0
- data/templates/VMware-ESXi-5.0u2-x86_64/definition.rb +1 -1
- data/templates/VMware-ESXi-5.1-x86_64/definition.rb +1 -1
- data/templates/archlinux-x86_64/aur.sh +2 -2
- data/templates/archlinux-x86_64/base.sh +1 -1
- data/templates/archlinux-x86_64/chef.sh +0 -11
- data/templates/archlinux-x86_64/definition.rb +1 -2
- data/templates/archlinux-x86_64/ruby.sh +2 -18
- data/templates/archlinux-x86_64/vagrant.sh +2 -4
- data/templates/freebsd-10.0-RELEASE-amd64/definition.rb +48 -0
- data/templates/freebsd-10.0-RELEASE-amd64/install.sh +33 -0
- data/templates/freebsd-10.0-RELEASE-amd64/postinstall.csh +125 -0
- data/templates/freebsd-9.1-RELEASE-amd64/definition.rb +1 -1
- data/templates/freebsd-9.1-RELEASE-amd64/install.sh +1 -0
- data/templates/freebsd-9.1-RELEASE-amd64/postinstall.csh +8 -8
- data/templates/freebsd-9.2-RELEASE-amd64/definition.rb +28 -0
- data/templates/freebsd-9.2-RELEASE-amd64/install.sh +66 -0
- data/templates/freebsd-9.2-RELEASE-amd64/postinstall.csh +134 -0
- data/templates/{funtoo-latest-x86_64 → funtoo-stable-x86_64}/definition.rb +5 -3
- data/templates/{funtoo-latest-x86_64 → funtoo-stable-x86_64}/postinstall.sh +78 -89
- data/templates/funtoo-unstable-x86_64/definition.rb +41 -0
- data/templates/funtoo-unstable-x86_64/postinstall.sh +459 -0
- data/templates/gentoo-latest-amd64/add_chef.sh +1 -1
- data/templates/gentoo-latest-amd64/add_puppet.sh +1 -1
- data/templates/gentoo-latest-amd64/cron.sh +1 -1
- data/templates/gentoo-latest-amd64/syslog.sh +1 -1
- data/templates/gentoo-latest-i686/add_chef.sh +1 -1
- data/templates/gentoo-latest-i686/add_puppet.sh +1 -1
- data/templates/gentoo-latest-i686/cron.sh +1 -1
- data/templates/gentoo-latest-i686/syslog.sh +1 -1
- data/templates/netbsd-613-amd64/README +2 -0
- data/templates/netbsd-613-amd64/base.sh +11 -0
- data/templates/netbsd-613-amd64/chef.sh +1 -0
- data/templates/netbsd-613-amd64/definition.rb +103 -0
- data/templates/netbsd-613-amd64/vagrant.sh +14 -0
- data/templates/nixos64/configuration.nix +41 -0
- data/templates/nixos64/definition.rb +50 -0
- data/templates/nixos64/postinstall.sh +28 -0
- data/templates/openSUSE-13.1/autoinst.xml +937 -0
- data/templates/openSUSE-13.1/definition.rb +70 -0
- data/templates/openSUSE-13.1/postinstall.sh +50 -0
- data/templates/openbsd54_amd64/README +28 -0
- data/templates/openbsd54_amd64/base.sh +40 -0
- data/templates/openbsd54_amd64/chef.sh +2 -0
- data/templates/openbsd54_amd64/definition.rb +91 -0
- data/templates/openbsd54_amd64/puppet.sh +3 -0
- data/templates/openbsd54_amd64/ruby.sh +14 -0
- data/templates/openbsd54_amd64/vagrant.sh +27 -0
- data/templates/openbsd54_i386/README +28 -0
- data/templates/openbsd54_i386/base.sh +40 -0
- data/templates/openbsd54_i386/chef.sh +2 -0
- data/templates/openbsd54_i386/definition.rb +91 -0
- data/templates/openbsd54_i386/puppet.sh +3 -0
- data/templates/openbsd54_i386/ruby.sh +14 -0
- data/templates/openbsd54_i386/vagrant.sh +27 -0
- data/templates/openbsd55_amd64/README +28 -0
- data/templates/openbsd55_amd64/base.sh +40 -0
- data/templates/openbsd55_amd64/chef.sh +2 -0
- data/templates/openbsd55_amd64/definition.rb +93 -0
- data/templates/openbsd55_amd64/puppet.sh +3 -0
- data/templates/openbsd55_amd64/ruby.sh +14 -0
- data/templates/openbsd55_amd64/vagrant.sh +27 -0
- data/templates/openbsd55_i386/README +28 -0
- data/templates/openbsd55_i386/base.sh +40 -0
- data/templates/openbsd55_i386/chef.sh +2 -0
- data/templates/openbsd55_i386/definition.rb +93 -0
- data/templates/openbsd55_i386/puppet.sh +3 -0
- data/templates/openbsd55_i386/ruby.sh +14 -0
- data/templates/openbsd55_i386/vagrant.sh +27 -0
- data/templates/openindiana-148-ai-x86/definition.rb +1 -1
- data/templates/openindiana-151a7-text-x86/definition.rb +1 -1
- data/templates/scientificlinux-6.1-i386-netboot/chef.sh +3 -0
- data/templates/scientificlinux-6.1-x86_64-netboot/chef.sh +3 -0
- data/templates/scientificlinux-6.2-i386-netboot/chef.sh +3 -0
- data/templates/scientificlinux-6.2-x86_64-netboot/chef.sh +3 -0
- data/templates/scientificlinux-6.3-i386-netboot/chef.sh +3 -0
- data/templates/scientificlinux-6.3-x86_64-netboot/chef.sh +3 -0
- data/templates/scientificlinux-6.4-i386-netboot/chef.sh +1 -0
- data/templates/scientificlinux-6.4-x86_64-netboot/chef.sh +1 -0
- data/templates/scientificlinux-6.5-i386-netboot/base.sh +14 -0
- data/templates/scientificlinux-6.5-i386-netboot/cfengine.sh +69 -0
- data/templates/scientificlinux-6.5-i386-netboot/chef.sh +4 -0
- data/templates/scientificlinux-6.5-i386-netboot/cleanup.sh +5 -0
- data/templates/scientificlinux-6.5-i386-netboot/definition.rb +40 -0
- data/templates/scientificlinux-6.5-i386-netboot/ks.cfg +41 -0
- data/templates/scientificlinux-6.5-i386-netboot/puppet.sh +18 -0
- data/templates/scientificlinux-6.5-i386-netboot/ruby.sh +3 -0
- data/templates/scientificlinux-6.5-i386-netboot/vagrant.sh +18 -0
- data/templates/scientificlinux-6.5-i386-netboot/virtualbox.sh +8 -0
- data/templates/scientificlinux-6.5-i386-netboot/zerodisk.sh +3 -0
- data/templates/scientificlinux-6.5-x86_64-netboot/base.sh +14 -0
- data/templates/scientificlinux-6.5-x86_64-netboot/cfengine.sh +69 -0
- data/templates/scientificlinux-6.5-x86_64-netboot/chef.sh +4 -0
- data/templates/scientificlinux-6.5-x86_64-netboot/cleanup.sh +5 -0
- data/templates/scientificlinux-6.5-x86_64-netboot/definition.rb +40 -0
- data/templates/scientificlinux-6.5-x86_64-netboot/ks.cfg +41 -0
- data/templates/scientificlinux-6.5-x86_64-netboot/puppet.sh +18 -0
- data/templates/scientificlinux-6.5-x86_64-netboot/ruby.sh +3 -0
- data/templates/scientificlinux-6.5-x86_64-netboot/vagrant.sh +18 -0
- data/templates/scientificlinux-6.5-x86_64-netboot/virtualbox.sh +8 -0
- data/templates/scientificlinux-6.5-x86_64-netboot/zerodisk.sh +3 -0
- data/templates/solaris-10-ga-x86/README.md +5 -7
- data/templates/solaris-10-ga-x86/chef.sh +3 -6
- data/templates/solaris-10-ga-x86/cleanup.sh +1 -1
- data/templates/solaris-10-ga-x86/definition.rb +4 -3
- data/templates/solaris-10-ga-x86/postinstall.sh +6 -2
- data/templates/solaris-11-express-i386/definition.rb +1 -1
- data/templates/ubuntu-10.04.2-amd64-netboot/postinstall.sh +7 -0
- data/templates/ubuntu-10.04.2-server-i386-netboot/postinstall.sh +7 -0
- data/templates/ubuntu-10.04.3-server-amd64-alt/definition.rb +1 -1
- data/templates/ubuntu-10.04.3-server-amd64-alt/postinstall.sh +6 -0
- data/templates/ubuntu-10.04.3-server-amd64/base.sh +8 -1
- data/templates/ubuntu-10.04.3-server-amd64/chef.sh +8 -1
- data/templates/ubuntu-10.04.3-server-amd64/cleanup.sh +7 -0
- data/templates/ubuntu-10.04.3-server-amd64/puppet.sh +8 -1
- data/templates/ubuntu-10.04.3-server-amd64/ruby.sh +8 -1
- data/templates/ubuntu-10.04.3-server-amd64/vagrant.sh +7 -0
- data/templates/ubuntu-10.04.3-server-amd64/virtualbox.sh +7 -0
- data/templates/ubuntu-10.04.3-server-i386/postinstall.sh +7 -0
- data/templates/ubuntu-10.04.4-server-amd64-netboot/base.sh +7 -0
- data/templates/ubuntu-10.04.4-server-amd64-netboot/chef.sh +7 -0
- data/templates/ubuntu-10.04.4-server-amd64-netboot/cleanup.sh +7 -0
- data/templates/ubuntu-10.04.4-server-amd64-netboot/puppet.sh +7 -0
- data/templates/ubuntu-10.04.4-server-amd64-netboot/ruby.sh +7 -0
- data/templates/ubuntu-10.04.4-server-amd64-netboot/vagrant.sh +7 -0
- data/templates/ubuntu-10.04.4-server-amd64-netboot/virtualbox.sh +7 -0
- data/templates/ubuntu-10.04.4-server-amd64-netboot/vmfusion.sh +7 -0
- data/templates/ubuntu-10.04.4-server-amd64-netboot/zerodisk.sh +7 -0
- data/templates/ubuntu-10.04.4-server-amd64/base.sh +7 -0
- data/templates/ubuntu-10.04.4-server-amd64/chef.sh +7 -0
- data/templates/ubuntu-10.04.4-server-amd64/cleanup.sh +7 -0
- data/templates/ubuntu-10.04.4-server-amd64/puppet.sh +7 -0
- data/templates/ubuntu-10.04.4-server-amd64/ruby.sh +7 -0
- data/templates/ubuntu-10.04.4-server-amd64/vagrant.sh +7 -0
- data/templates/ubuntu-10.04.4-server-amd64/virtualbox.sh +7 -0
- data/templates/ubuntu-10.04.4-server-amd64/vmfusion.sh +7 -0
- data/templates/ubuntu-10.04.4-server-amd64/zerodisk.sh +7 -0
- data/templates/ubuntu-10.04.4-server-i386-netboot/base.sh +7 -0
- data/templates/ubuntu-10.04.4-server-i386-netboot/chef.sh +7 -0
- data/templates/ubuntu-10.04.4-server-i386-netboot/cleanup.sh +7 -0
- data/templates/ubuntu-10.04.4-server-i386-netboot/puppet.sh +7 -0
- data/templates/ubuntu-10.04.4-server-i386-netboot/ruby.sh +7 -0
- data/templates/ubuntu-10.04.4-server-i386-netboot/vagrant.sh +7 -0
- data/templates/ubuntu-10.04.4-server-i386-netboot/virtualbox.sh +7 -0
- data/templates/ubuntu-10.04.4-server-i386-netboot/vmfusion.sh +7 -0
- data/templates/ubuntu-10.04.4-server-i386-netboot/zerodisk.sh +7 -0
- data/templates/ubuntu-10.04.4-server-i386/base.sh +7 -0
- data/templates/ubuntu-10.04.4-server-i386/chef.sh +7 -0
- data/templates/ubuntu-10.04.4-server-i386/cleanup.sh +7 -0
- data/templates/ubuntu-10.04.4-server-i386/puppet.sh +7 -0
- data/templates/ubuntu-10.04.4-server-i386/ruby.sh +7 -0
- data/templates/ubuntu-10.04.4-server-i386/vagrant.sh +7 -0
- data/templates/ubuntu-10.04.4-server-i386/virtualbox.sh +7 -0
- data/templates/ubuntu-10.04.4-server-i386/vmfusion.sh +7 -0
- data/templates/ubuntu-10.04.4-server-i386/zerodisk.sh +7 -0
- data/templates/ubuntu-10.10-server-amd64-netboot/postinstall.sh +7 -0
- data/templates/ubuntu-10.10-server-amd64/base.sh +7 -0
- data/templates/ubuntu-10.10-server-amd64/chef.sh +8 -1
- data/templates/ubuntu-10.10-server-amd64/cleanup.sh +7 -0
- data/templates/ubuntu-10.10-server-amd64/postinstall.sh +7 -0
- data/templates/ubuntu-10.10-server-amd64/puppet.sh +8 -1
- data/templates/ubuntu-10.10-server-amd64/ruby.sh +7 -0
- data/templates/ubuntu-10.10-server-amd64/vagrant.sh +7 -0
- data/templates/ubuntu-10.10-server-amd64/virtualbox.sh +7 -0
- data/templates/ubuntu-10.10-server-i386-netboot/postinstall.sh +7 -0
- data/templates/ubuntu-10.10-server-i386/postinstall.sh +7 -0
- data/templates/ubuntu-11.04-server-amd64/apt-upgrade.sh +7 -0
- data/templates/ubuntu-11.04-server-amd64/chef.sh +7 -0
- data/templates/ubuntu-11.04-server-amd64/network-cleanup.sh +7 -0
- data/templates/ubuntu-11.04-server-amd64/nfs-client.sh +7 -0
- data/templates/ubuntu-11.04-server-amd64/puppet.sh +7 -0
- data/templates/ubuntu-11.04-server-amd64/remove-build-essentials.sh +7 -0
- data/templates/ubuntu-11.04-server-amd64/ruby.sh +7 -0
- data/templates/ubuntu-11.04-server-amd64/ssh-keys.sh +7 -0
- data/templates/ubuntu-11.04-server-amd64/sudo.sh +7 -0
- data/templates/ubuntu-11.04-server-amd64/timestamp.sh +7 -0
- data/templates/ubuntu-11.04-server-amd64/vbox_additions.sh +7 -0
- data/templates/ubuntu-11.04-server-amd64/zero-disk.sh +7 -0
- data/templates/ubuntu-11.04-server-i386/postinstall.sh +7 -0
- data/templates/ubuntu-11.10-server-amd64-ishaya/postinstall.sh +7 -0
- data/templates/ubuntu-11.10-server-amd64-ruby192/postinstall.sh +7 -0
- data/templates/ubuntu-11.10-server-amd64-rvm/postinstall.sh +7 -0
- data/templates/ubuntu-11.10-server-amd64/postinstall.sh +7 -0
- data/templates/ubuntu-11.10-server-i386/postinstall.sh +7 -0
- data/templates/ubuntu-12.04.1-server-amd64-packages/postinstall.sh +7 -0
- data/templates/ubuntu-12.04.1-server-amd64/postinstall.sh +7 -0
- data/templates/ubuntu-12.04.1-server-i386-packages/postinstall.sh +7 -0
- data/templates/ubuntu-12.04.1-server-i386/postinstall.sh +7 -0
- data/templates/ubuntu-12.04.2-desktop-amd64/postinstall.sh +7 -0
- data/templates/ubuntu-12.04.2-server-amd64-netboot/postinstall.sh +7 -0
- data/templates/ubuntu-12.04.2-server-amd64-packages/postinstall.sh +7 -0
- data/templates/ubuntu-12.04.2-server-amd64/base.sh +7 -0
- data/templates/ubuntu-12.04.2-server-amd64/chef.sh +7 -0
- data/templates/ubuntu-12.04.2-server-amd64/cleanup.sh +7 -0
- data/templates/ubuntu-12.04.2-server-amd64/puppet.sh +7 -0
- data/templates/ubuntu-12.04.2-server-amd64/ruby.sh +7 -0
- data/templates/ubuntu-12.04.2-server-amd64/vagrant.sh +7 -0
- data/templates/ubuntu-12.04.2-server-amd64/virtualbox.sh +7 -0
- data/templates/ubuntu-12.04.2-server-amd64/vmfusion.sh +7 -0
- data/templates/ubuntu-12.04.2-server-amd64/vmtools.sh +7 -0
- data/templates/ubuntu-12.04.2-server-amd64/zerodisk.sh +7 -0
- data/templates/ubuntu-12.04.2-server-i386-netboot/postinstall.sh +7 -0
- data/templates/ubuntu-12.04.2-server-i386-packages/postinstall.sh +7 -0
- data/templates/ubuntu-12.04.2-server-i386/postinstall.sh +7 -0
- data/templates/ubuntu-12.04.3-server-amd64/base.sh +1 -0
- data/templates/ubuntu-12.04.3-server-i386/apt.sh +1 -0
- data/templates/ubuntu-12.04.4-server-amd64/apt.sh +8 -0
- data/templates/ubuntu-12.04.4-server-amd64/build_time.sh +1 -0
- data/templates/ubuntu-12.04.4-server-amd64/chef.sh +3 -0
- data/templates/ubuntu-12.04.4-server-amd64/cleanup.sh +16 -0
- data/templates/ubuntu-12.04.4-server-amd64/definition.rb +45 -0
- data/templates/ubuntu-12.04.4-server-amd64/preseed.cfg +61 -0
- data/templates/ubuntu-12.04.4-server-amd64/puppet.sh +4 -0
- data/templates/ubuntu-12.04.4-server-amd64/ruby.sh +25 -0
- data/templates/ubuntu-12.04.4-server-amd64/sudo.sh +5 -0
- data/templates/ubuntu-12.04.4-server-amd64/vagrant.sh +6 -0
- data/templates/ubuntu-12.04.4-server-amd64/vbox.sh +18 -0
- data/templates/ubuntu-12.04.4-server-i386/apt.sh +8 -0
- data/templates/ubuntu-12.04.4-server-i386/build_time.sh +1 -0
- data/templates/ubuntu-12.04.4-server-i386/chef.sh +3 -0
- data/templates/ubuntu-12.04.4-server-i386/cleanup.sh +16 -0
- data/templates/ubuntu-12.04.4-server-i386/definition.rb +45 -0
- data/templates/ubuntu-12.04.4-server-i386/preseed.cfg +61 -0
- data/templates/ubuntu-12.04.4-server-i386/puppet.sh +4 -0
- data/templates/ubuntu-12.04.4-server-i386/ruby.sh +25 -0
- data/templates/ubuntu-12.04.4-server-i386/sudo.sh +5 -0
- data/templates/ubuntu-12.04.4-server-i386/vagrant.sh +6 -0
- data/templates/ubuntu-12.04.4-server-i386/vbox.sh +18 -0
- data/templates/ubuntu-12.10-desktop-amd64/postinstall.sh +7 -0
- data/templates/ubuntu-12.10-server-amd64-packages/base.sh +2 -0
- data/templates/ubuntu-12.10-server-amd64-packages/chef.sh +2 -0
- data/templates/ubuntu-12.10-server-amd64-packages/cleanup.sh +7 -0
- data/templates/ubuntu-12.10-server-amd64-packages/puppet.sh +2 -0
- data/templates/ubuntu-12.10-server-amd64-packages/ruby.sh +2 -0
- data/templates/ubuntu-12.10-server-amd64-packages/vagrant.sh +2 -0
- data/templates/ubuntu-12.10-server-amd64-packages/virtualbox.sh +2 -0
- data/templates/ubuntu-12.10-server-amd64-packages/zerodisk.sh +2 -0
- data/templates/ubuntu-12.10-server-amd64/postinstall.sh +7 -0
- data/templates/ubuntu-12.10-server-i386-packages/base.sh +2 -0
- data/templates/ubuntu-12.10-server-i386-packages/chef.sh +2 -0
- data/templates/ubuntu-12.10-server-i386-packages/cleanup.sh +7 -0
- data/templates/ubuntu-12.10-server-i386-packages/puppet.sh +2 -0
- data/templates/ubuntu-12.10-server-i386-packages/ruby.sh +2 -0
- data/templates/ubuntu-12.10-server-i386-packages/vagrant.sh +2 -0
- data/templates/ubuntu-12.10-server-i386-packages/virtualbox.sh +2 -0
- data/templates/ubuntu-12.10-server-i386-packages/zerodisk.sh +2 -0
- data/templates/ubuntu-12.10-server-i386/postinstall.sh +7 -0
- data/templates/ubuntu-13.04-server-amd64-rvm/apt.sh +8 -1
- data/templates/ubuntu-13.04-server-amd64-rvm/build_time.sh +7 -0
- data/templates/ubuntu-13.04-server-amd64-rvm/chef.sh +8 -1
- data/templates/ubuntu-13.04-server-amd64-rvm/cleanup.sh +7 -0
- data/templates/ubuntu-13.04-server-amd64-rvm/puppet.sh +8 -1
- data/templates/ubuntu-13.04-server-amd64-rvm/rvm.sh +8 -1
- data/templates/ubuntu-13.04-server-amd64-rvm/sudo.sh +7 -0
- data/templates/ubuntu-13.04-server-amd64-rvm/vagrant.sh +7 -0
- data/templates/ubuntu-13.04-server-amd64-rvm/vbox.sh +7 -0
- data/templates/ubuntu-13.04-server-amd64/apt.sh +7 -0
- data/templates/ubuntu-13.04-server-amd64/build_time.sh +7 -0
- data/templates/ubuntu-13.04-server-amd64/chef.sh +7 -0
- data/templates/ubuntu-13.04-server-amd64/cleanup.sh +7 -0
- data/templates/ubuntu-13.04-server-amd64/puppet.sh +7 -0
- data/templates/ubuntu-13.04-server-amd64/ruby.sh +7 -0
- data/templates/ubuntu-13.04-server-amd64/sudo.sh +7 -0
- data/templates/ubuntu-13.04-server-amd64/vagrant.sh +7 -0
- data/templates/ubuntu-13.04-server-amd64/vbox.sh +7 -0
- data/templates/ubuntu-14.04-server-amd64/apt.sh +7 -0
- data/templates/ubuntu-14.04-server-amd64/build_time.sh +1 -0
- data/templates/ubuntu-14.04-server-amd64/chef.sh +3 -0
- data/templates/ubuntu-14.04-server-amd64/cleanup.sh +16 -0
- data/templates/ubuntu-14.04-server-amd64/definition.rb +46 -0
- data/templates/ubuntu-14.04-server-amd64/parallels.sh +9 -0
- data/templates/ubuntu-14.04-server-amd64/preseed.cfg +61 -0
- data/templates/ubuntu-14.04-server-amd64/puppet.sh +4 -0
- data/templates/ubuntu-14.04-server-amd64/ruby.sh +25 -0
- data/templates/ubuntu-14.04-server-amd64/sudo.sh +5 -0
- data/templates/ubuntu-14.04-server-amd64/vagrant.sh +6 -0
- data/templates/ubuntu-14.04-server-amd64/vbox.sh +22 -0
- data/templates/ubuntu-8.04.4-server-amd64/postinstall.sh +7 -0
- data/templates/ubuntu-8.04.4-server-i386/postinstall.sh +7 -0
- data/templates/windows-2008R1-serverweb-amd64/install-vbox-guest.bat +7 -2
- data/templates/windows-2008R1-serverweb-i386/install-vbox-guest.bat +7 -2
- data/templates/windows-2008R1-serverwebcore-amd64/install-vbox-guest.bat +7 -2
- data/templates/windows-2008R2-serverstandard-amd64-winrm/install-vbox.bat +6 -1
- data/templates/windows-2008R2-serverweb-amd64/install-vbox-guest.bat +8 -2
- data/templates/windows-2008R2-serverwebcore-amd64/install-vbox-guest.bat +7 -2
- data/templates/windows-2012-serverstandard-amd64/install-vbox.bat +5 -1
- data/templates/windows-2012R2-serverdatacenter-amd64/install-vbox.bat +5 -1
- data/templates/windows-7-enterprise-amd64-winrm/install-vbox.bat +6 -3
- data/templates/windows-7-enterprise-amd64/install-vbox-guest.bat +7 -2
- data/templates/windows-7-enterprise-i386/definition.rb +1 -1
- data/templates/windows-7-enterprise-i386/install-winrm.bat +4 -0
- data/templates/windows-7-enterprise-i386/postinstall.sh +1 -1
- data/templates/windows-8-amd64/definition.rb +3 -3
- data/veewee.gemspec +2 -0
- metadata +462 -45
- data/templates/archlinux-x86_64/basedevel.sh +0 -6
- data/templates/funtoo-latest-generic_64-stable/definition.rb +0 -34
- data/templates/funtoo-latest-generic_64-stable/postinstall.sh +0 -177
- data/templates/funtoo-latest-generic_64-stable/postinstall2.sh +0 -83
@@ -0,0 +1,28 @@
|
|
1
|
+
Veewee::Definition.declare({
|
2
|
+
:cpu_count => '1', :memory_size=> '512',
|
3
|
+
:disk_size => '10140', :disk_format => 'VDI', :hostiocache => 'off',
|
4
|
+
:os_type_id => 'FreeBSD_64',
|
5
|
+
:iso_file => "FreeBSD-9.2-RELEASE-amd64-disc1.iso",
|
6
|
+
:iso_src => "ftp://ftp.freebsd.org/pub/FreeBSD/releases/amd64/ISO-IMAGES/9.2/FreeBSD-9.2-RELEASE-amd64-disc1.iso",
|
7
|
+
:iso_md5 => "cde180e3c5e3e370c97598a4feccb5b4",
|
8
|
+
:iso_download_timeout => "1000",
|
9
|
+
:boot_wait => "10", :boot_cmd_sequence => [
|
10
|
+
'<Esc>',
|
11
|
+
'boot -s',
|
12
|
+
'<Enter>',
|
13
|
+
'<Wait><Wait><Wait><Wait><Wait><Wait><Wait><Wait><Wait><Wait>',
|
14
|
+
'/bin/sh<Enter>',
|
15
|
+
'mdmfs -s 100m md1 /tmp<Enter>',
|
16
|
+
'dhclient -l /tmp/dhclient.lease.em0 em0<Enter>',
|
17
|
+
'<Wait><Wait><Wait>',
|
18
|
+
'echo "Sleeping for 10 seconds, then running install script."<Enter>',
|
19
|
+
'sleep 10 ; fetch -o /tmp/install.sh http://%IP%:%PORT%/install.sh && chmod +x /tmp/install.sh && /tmp/install.sh %NAME%<Enter>'
|
20
|
+
],
|
21
|
+
:kickstart_port => "7122", :kickstart_timeout => "10000", :kickstart_file => "install.sh",
|
22
|
+
:ssh_login_timeout => "10000", :ssh_user => "root", :ssh_password => "vagrant", :ssh_key => "",
|
23
|
+
:ssh_host_port => "7222", :ssh_guest_port => "22",
|
24
|
+
:sudo_cmd => "sh '%f'",
|
25
|
+
:shutdown_cmd => "shutdown -p now",
|
26
|
+
:postinstall_files => [ "postinstall.csh"], :postinstall_timeout => "10000"
|
27
|
+
})
|
28
|
+
#'setkmap=us dodhcp=em0 dhcphostname=%NAME% ar_source=http://%IP%:%PORT%/ autoruns=0 rootpass=vagrant',
|
@@ -0,0 +1,66 @@
|
|
1
|
+
#!/bin/sh -x
|
2
|
+
|
3
|
+
# Credit: http://www.aisecure.net/2011/05/01/root-on-zfs-freebsd-current/
|
4
|
+
|
5
|
+
NAME=$1
|
6
|
+
|
7
|
+
# create disks
|
8
|
+
gpart create -s gpt ada0
|
9
|
+
gpart add -t freebsd-boot -l boot -b 40 -s 512K ada0
|
10
|
+
gpart bootcode -b /boot/pmbr -p /boot/gptboot -i 1 ada0
|
11
|
+
gpart add -t freebsd-ufs -l root -b 1M -s 2G ada0
|
12
|
+
gpart add -t freebsd-swap -l swap -s 512M ada0
|
13
|
+
gpart add -t freebsd-ufs -l var -s 1G ada0
|
14
|
+
gpart add -t freebsd-ufs -l tmp -s 512M ada0
|
15
|
+
gpart add -t freebsd-ufs -l usr -a 1M ada0
|
16
|
+
|
17
|
+
# create filesystems
|
18
|
+
newfs -U /dev/gpt/root
|
19
|
+
newfs -U /dev/gpt/var
|
20
|
+
newfs -U /dev/gpt/tmp
|
21
|
+
newfs -U /dev/gpt/usr
|
22
|
+
|
23
|
+
# mount the filesystems
|
24
|
+
mount /dev/gpt/root /mnt
|
25
|
+
mkdir /mnt/var && mount /dev/gpt/var /mnt/var
|
26
|
+
mkdir /mnt/tmp && mount /dev/gpt/tmp /mnt/tmp
|
27
|
+
mkdir /mnt/usr && mount /dev/gpt/usr /mnt/usr
|
28
|
+
|
29
|
+
# correct permissions
|
30
|
+
chmod 1777 /mnt/tmp
|
31
|
+
mkdir /mnt/var/tmp && chmod 1777 /mnt/var/tmp
|
32
|
+
cd /mnt && mkdir usr/home && ln -s usr/home home
|
33
|
+
|
34
|
+
# Install the OS
|
35
|
+
cd /usr/freebsd-dist
|
36
|
+
cat base.txz | tar --unlink -xpJf - -C /mnt
|
37
|
+
cat lib32.txz | tar --unlink -xpJf - -C /mnt
|
38
|
+
cat kernel.txz | tar --unlink -xpJf - -C /mnt
|
39
|
+
cat src.txz | tar --unlink -xpJf - -C /mnt
|
40
|
+
|
41
|
+
# Enable required services
|
42
|
+
cat >> /mnt/etc/rc.conf << EOT
|
43
|
+
hostname="${NAME}"
|
44
|
+
ifconfig_em0="dhcp"
|
45
|
+
sshd_enable="YES"
|
46
|
+
EOT
|
47
|
+
|
48
|
+
# Enable swap
|
49
|
+
cat >> /mnt/etc/fstab << EOT
|
50
|
+
/dev/gpt/swap none swap sw 0 0
|
51
|
+
/dev/gpt/root / ufs rw 1 1
|
52
|
+
/dev/gpt/var /var ufs rw 1 1
|
53
|
+
/dev/gpt/tmp /tmp ufs rw 1 1
|
54
|
+
/dev/gpt/usr /usr ufs rw 1 1
|
55
|
+
EOT
|
56
|
+
|
57
|
+
# Install a few requirements
|
58
|
+
touch /mnt/etc/resolv.conf
|
59
|
+
echo 'PermitRootLogin yes' >> /mnt/etc/ssh/sshd_config
|
60
|
+
|
61
|
+
# Set up user accounts
|
62
|
+
mkdir /mnt/usr/home/vagrant && chown 1001:1001 /mnt/home/vagrant
|
63
|
+
echo "vagrant" | pw -V /mnt/etc useradd vagrant -h 0 -s csh -G wheel -d /home/vagrant -c "Vagrant User"
|
64
|
+
echo "vagrant" | pw -V /mnt/etc usermod root -h 0
|
65
|
+
|
66
|
+
reboot
|
@@ -0,0 +1,134 @@
|
|
1
|
+
#!/bin/csh -x
|
2
|
+
set echo
|
3
|
+
|
4
|
+
#Set the time correctly
|
5
|
+
ntpdate -v -b in.pool.ntp.org
|
6
|
+
|
7
|
+
date > /etc/vagrant_box_build_time
|
8
|
+
|
9
|
+
# allow freebsd-update to run fetch without stdin attached to a terminal
|
10
|
+
sed 's/\[ ! -t 0 \]/false/' /usr/sbin/freebsd-update > /tmp/freebsd-update
|
11
|
+
chmod +x /tmp/freebsd-update
|
12
|
+
|
13
|
+
# update FreeBSD
|
14
|
+
env PAGER=/bin/cat /tmp/freebsd-update fetch
|
15
|
+
env PAGER=/bin/cat /tmp/freebsd-update install
|
16
|
+
|
17
|
+
# allow portsnap to run fetch without stdin attached to a terminal
|
18
|
+
sed 's/\[ ! -t 0 \]/false/' /usr/sbin/portsnap > /tmp/portsnap
|
19
|
+
chmod +x /tmp/portsnap
|
20
|
+
|
21
|
+
# reduce the ports we extract to a minimum
|
22
|
+
cat >> /etc/portsnap.conf << EOT
|
23
|
+
REFUSE accessibility arabic archivers astro audio benchmarks biology cad
|
24
|
+
REFUSE chinese comms databases deskutils distfiles dns editors finance french
|
25
|
+
REFUSE ftp games german graphics hebrew hungarian irc japanese java korean
|
26
|
+
REFUSE mail math multimedia net net-im net-mgmt net-p2p news packages palm
|
27
|
+
REFUSE polish portuguese print russian science sysutils ukrainian
|
28
|
+
REFUSE vietnamese www x11 x11-clocks x11-drivers x11-fm x11-fonts x11-servers
|
29
|
+
REFUSE x11-themes x11-toolkits x11-wm
|
30
|
+
EOT
|
31
|
+
|
32
|
+
# get new ports
|
33
|
+
/tmp/portsnap fetch extract
|
34
|
+
|
35
|
+
# install sudo and bash
|
36
|
+
pkg_delete -af
|
37
|
+
cd /usr/ports/security/sudo
|
38
|
+
make -DBATCH install clean
|
39
|
+
cd /usr/ports/shells/bash-static
|
40
|
+
make -DBATCH install clean
|
41
|
+
|
42
|
+
#Off to rubygems to get first ruby running
|
43
|
+
cd /usr/ports/devel/ruby-gems
|
44
|
+
make install -DBATCH
|
45
|
+
|
46
|
+
#Need ruby iconv in order for chef to run
|
47
|
+
cd /usr/ports/converters/ruby-iconv
|
48
|
+
make install -DBATCH
|
49
|
+
|
50
|
+
#Installing chef & Puppet
|
51
|
+
/usr/local/bin/gem install chef --no-ri --no-rdoc
|
52
|
+
/usr/local/bin/gem install puppet --no-ri --no-rdoc
|
53
|
+
|
54
|
+
#Installing vagrant keys
|
55
|
+
mkdir /home/vagrant/.ssh
|
56
|
+
chmod 700 /home/vagrant/.ssh
|
57
|
+
cd /home/vagrant/.ssh
|
58
|
+
fetch -am -o authorized_keys 'https://raw.github.com/mitchellh/vagrant/master/keys/vagrant.pub'
|
59
|
+
chown -R vagrant /home/vagrant/.ssh
|
60
|
+
chmod -R go-rwsx /home/vagrant/.ssh
|
61
|
+
|
62
|
+
# Cleaning portstree to save space
|
63
|
+
# http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/ports-using.html
|
64
|
+
cd /usr/ports/ports-mgmt/portupgrade
|
65
|
+
make install -DBATCH clean
|
66
|
+
|
67
|
+
/usr/local/sbin/portsclean -C
|
68
|
+
|
69
|
+
# As sharedfolders are not in defaults ports tree
|
70
|
+
# We will use vagrant via NFS
|
71
|
+
# Enable NFS
|
72
|
+
echo 'rpcbind_enable="YES"' >> /etc/rc.conf
|
73
|
+
echo 'nfs_server_enable="YES"' >> /etc/rc.conf
|
74
|
+
echo 'mountd_flags="-r"' >> /etc/rc.conf
|
75
|
+
|
76
|
+
# Enable passwordless sudo
|
77
|
+
echo "vagrant ALL=(ALL) NOPASSWD: ALL" >> /usr/local/etc/sudoers
|
78
|
+
# Restore correct su permissions
|
79
|
+
# I'll leave that up to the reader :)
|
80
|
+
|
81
|
+
cd /usr/ports/devel/libtool
|
82
|
+
make clean
|
83
|
+
make install -DBATCH
|
84
|
+
|
85
|
+
# disable X11 because vagrants are (usually) headless
|
86
|
+
cat >> /etc/make.conf << EOT
|
87
|
+
WITHOUT_X11="YES"
|
88
|
+
EOT
|
89
|
+
|
90
|
+
cd /usr/ports/emulators/virtualbox-ose-additions
|
91
|
+
make -DBATCH install clean
|
92
|
+
|
93
|
+
cd /usr/ports/emulators/virtio-kmod
|
94
|
+
make -DBATCH install
|
95
|
+
|
96
|
+
# undo our customizations
|
97
|
+
sed -i '' -e '/^REFUSE /d' /etc/portsnap.conf
|
98
|
+
sed -i '' -e '/^PermitRootLogin /d' /etc/ssh/sshd_config
|
99
|
+
/usr/sbin/service sshd reload
|
100
|
+
|
101
|
+
echo 'vboxdrv_load="YES"' >> /boot/loader.conf
|
102
|
+
echo 'vboxnet_enable="YES"' >> /etc/rc.conf
|
103
|
+
echo 'vboxguest_enable="YES"' >> /etc/rc.conf
|
104
|
+
echo 'vboxservice_enable="YES"' >> /etc/rc.conf
|
105
|
+
|
106
|
+
cat >> /boot/loader.conf << EOT
|
107
|
+
virtio_load="YES"
|
108
|
+
virtio_pci_load="YES"
|
109
|
+
virtio_blk_load="YES"
|
110
|
+
if_vtnet_load="YES"
|
111
|
+
virtio_balloon_load="YES"
|
112
|
+
EOT
|
113
|
+
|
114
|
+
echo 'ifconfig_vtnet0_name="em0"' >> /etc/rc.conf
|
115
|
+
echo 'ifconfig_vtnet1_name="em1"' >> /etc/rc.conf
|
116
|
+
echo 'ifconfig_vtnet2_name="em2"' >> /etc/rc.conf
|
117
|
+
echo 'ifconfig_vtnet3_name="em3"' >> /etc/rc.conf
|
118
|
+
|
119
|
+
pw groupadd vboxusers
|
120
|
+
pw groupmod vboxusers -m vagrant
|
121
|
+
|
122
|
+
#Bash needs to be the shell for tests to validate
|
123
|
+
pw usermod vagrant -s /usr/local/bin/bash
|
124
|
+
|
125
|
+
echo "=============================================================================="
|
126
|
+
echo "NOTE: FreeBSD - Vagrant"
|
127
|
+
echo "When using this basebox you need to do some special stuff in your Vagrantfile"
|
128
|
+
echo "1) Enable HostOnly network"
|
129
|
+
echo " config.vm.network ...."
|
130
|
+
echo "2) Use nfs instead of shared folders"
|
131
|
+
echo ' config.vm.share_folder("v-root", "/vagrant", ".", :nfs => true)'
|
132
|
+
echo "============================================================================="
|
133
|
+
|
134
|
+
exit
|
@@ -1,4 +1,6 @@
|
|
1
1
|
password = 'vagrant'
|
2
|
+
builddate = '20131226'
|
3
|
+
iso = "install-amd64-minimal-#{builddate}.iso"
|
2
4
|
|
3
5
|
Veewee::Session.declare({
|
4
6
|
:hostiocache => 'off',
|
@@ -7,9 +9,9 @@ Veewee::Session.declare({
|
|
7
9
|
:disk_size => '40560', # 40 GB
|
8
10
|
:disk_format => 'VDI',
|
9
11
|
:os_type_id => 'Gentoo_64', # for 32bit, change to 'Gentoo'
|
10
|
-
:iso_file =>
|
11
|
-
:iso_src => "http://mirror.switch.ch/ftp/mirror/gentoo/releases/amd64/autobuilds
|
12
|
-
:
|
12
|
+
:iso_file => iso,
|
13
|
+
:iso_src => "http://mirror.switch.ch/ftp/mirror/gentoo/releases/amd64/autobuilds/#{builddate}/#{iso}",
|
14
|
+
:iso_sha512 => "4a19a59c5fa5f2d3a8fd31cde2379abafcb0e3c720884471e1dc0b2557fda3328198dea728d8c6f792a0ccf3e56f1e4dfadbdcb41e38bb675b8de0bea36ab0a9",
|
13
15
|
:iso_download_timeout => "1000",
|
14
16
|
:boot_wait => "4",
|
15
17
|
:boot_cmd_sequence => [
|
@@ -8,19 +8,18 @@ password_root=vagrant
|
|
8
8
|
password_vagrant=vagrant
|
9
9
|
|
10
10
|
# static versions of programs we install
|
11
|
-
ruby_version="1.9.3-p286"
|
12
|
-
|
13
|
-
rbenv_version="v0.3.0"
|
14
|
-
ruby_builder_version="v20121022"
|
15
|
-
rbenv_bundler_version="0.94"
|
11
|
+
ruby_version="ruby:2.0" #"1.9.3-p286"
|
12
|
+
ruby_pretty="$(echo $ruby_version | tr -d [:.])"
|
16
13
|
|
17
14
|
# these two (configuring the compiler) and the stage3 url can be changed to build a 32 bit system
|
18
15
|
accept_keywords="amd64"
|
19
16
|
chost="x86_64-pc-linux-gnu"
|
20
17
|
|
21
18
|
# stage 3 filename and full url
|
19
|
+
# http://ftp.osuosl.org/pub/funtoo/
|
20
|
+
# http://ftp.heanet.ie/mirrors/funtoo/
|
22
21
|
stage3file="stage3-latest.tar.xz"
|
23
|
-
stage3url="http://ftp.
|
22
|
+
stage3url="http://ftp.osuosl.org/pub/funtoo/funtoo-stable/x86-64bit/generic_64/$stage3file"
|
24
23
|
|
25
24
|
# the public key for vagrants ssh
|
26
25
|
vagrant_ssh_key_url="https://raw.github.com/mitchellh/vagrant/master/keys/vagrant.pub"
|
@@ -41,7 +40,7 @@ sgdisk -n 1:0:+128M -t 1:8300 -c 1:"linux-boot" \
|
|
41
40
|
-n 4:0:0 -t 4:8300 -c 4:"linux-root" \
|
42
41
|
-p /dev/sda
|
43
42
|
|
44
|
-
sleep 1
|
43
|
+
#sleep 1
|
45
44
|
|
46
45
|
# format partitions, mount swap
|
47
46
|
mkswap /dev/sda3
|
@@ -54,10 +53,10 @@ sgdisk -v /dev/sda
|
|
54
53
|
sgdisk -p /dev/sda
|
55
54
|
|
56
55
|
# this is our chroot directory for the installation
|
57
|
-
|
56
|
+
chroot_dir=/mnt/gentoo
|
58
57
|
|
59
58
|
# mount other partitions
|
60
|
-
mount /dev/sda4 "$
|
59
|
+
mount /dev/sda4 "${chroot_dir}" && cd "${chroot_dir}" && mkdir boot && mount /dev/sda1 boot
|
61
60
|
|
62
61
|
|
63
62
|
### BASE-INSTALLATION ###
|
@@ -67,25 +66,25 @@ wget -nv --tries=5 "$stage3url"
|
|
67
66
|
tar xpf "$stage3file" && rm "$stage3file"
|
68
67
|
|
69
68
|
# prepeare chroot, update env
|
70
|
-
mount --bind /proc "$
|
71
|
-
mount --bind /dev "$
|
69
|
+
mount --bind /proc "${chroot_dir}/proc"
|
70
|
+
mount --bind /dev "${chroot_dir}/dev"
|
72
71
|
|
73
72
|
|
74
73
|
### INITIAL CONFIGURATION ###
|
75
74
|
|
76
|
-
# copy nameserver information, save build timestamp
|
77
|
-
cp /etc/resolv.conf "$
|
78
|
-
date -u > "$
|
79
|
-
chroot "$
|
75
|
+
# copy nameserver information, save build timestamp
|
76
|
+
cp /etc/resolv.conf "${chroot_dir}/etc/"
|
77
|
+
date -u > "${chroot_dir}/etc/vagrant_box_build_time"
|
78
|
+
#chroot "${chroot_dir}" env-update
|
80
79
|
|
81
80
|
#" activate client side dhcp and ssh by default
|
82
|
-
chroot "$
|
81
|
+
chroot "${chroot_dir}" /bin/bash <<DATAEOF
|
83
82
|
rc-update add dhcpcd default
|
84
83
|
rc-update add sshd default
|
85
84
|
DATAEOF
|
86
85
|
|
87
86
|
# set fstab
|
88
|
-
cat <<DATAEOF > "$
|
87
|
+
cat <<DATAEOF > "${chroot_dir}/etc/fstab"
|
89
88
|
# <fs> <mountpoint> <type> <opts> <dump/pass>
|
90
89
|
/dev/sda1 /boot ext2 noauto,noatime 1 2
|
91
90
|
/dev/sda3 none swap sw 0 0
|
@@ -94,7 +93,7 @@ none /dev/shm tmpfs nodev,nosuid,noexec
|
|
94
93
|
DATAEOF
|
95
94
|
|
96
95
|
# set make options
|
97
|
-
cat <<DATAEOF > "$
|
96
|
+
cat <<DATAEOF > "${chroot_dir}/etc/portage/make.conf"
|
98
97
|
CHOST="$chost"
|
99
98
|
|
100
99
|
CFLAGS="-mtune=generic -O2 -pipe"
|
@@ -104,34 +103,49 @@ ACCEPT_KEYWORDS="$accept_keywords"
|
|
104
103
|
MAKEOPTS="-j$((1 + $nr_cpus)) -l$nr_cpus.5"
|
105
104
|
EMERGE_DEFAULT_OPTS="-j$nr_cpus --quiet-build=y"
|
106
105
|
FEATURES="\${FEATURES} parallel-fetch"
|
107
|
-
|
106
|
+
GENTOO_MIRRORS="http://distfiles ${GENTOO_MIRRORS}"
|
107
|
+
# no reason to keep these hanging around
|
108
|
+
DISTDIR="/tmp/distfiles"
|
108
109
|
# english only
|
109
110
|
LINGUAS=""
|
110
111
|
|
112
|
+
# get us some ruby
|
113
|
+
RUBY_TARGETS="${ruby_pretty}"
|
114
|
+
USE="ruby"
|
115
|
+
|
111
116
|
# for X support if needed
|
112
117
|
INPUT_DEVICES="evdev"
|
113
118
|
VIDEO_CARDS="virtualbox"
|
114
119
|
DATAEOF
|
115
120
|
|
116
121
|
# add package use flags
|
117
|
-
cat <<DATAEOF >> "$
|
122
|
+
cat <<DATAEOF >> "${chroot_dir}/etc/portage/package.use"
|
118
123
|
sys-kernel/gentoo-sources symlink
|
119
124
|
sys-kernel/genkernel -cryptsetup
|
120
125
|
DATAEOF
|
121
126
|
|
122
127
|
# add package keywords
|
123
|
-
cat <<DATAEOF >> "$
|
128
|
+
cat <<DATAEOF >> "${chroot_dir}/etc/portage/package.keywords"
|
124
129
|
app-emulation/virtualbox-guest-additions
|
125
130
|
DATAEOF
|
126
131
|
|
127
|
-
#
|
128
|
-
|
132
|
+
# add package keywords
|
133
|
+
cat <<DATAEOF >> "${chroot_dir}/etc/portage/package.accept_keywords"
|
134
|
+
dev-util/kbuild ~amd64
|
135
|
+
DATAEOF
|
136
|
+
|
137
|
+
# update portage tree to most current state git://github.com/funtoo/ports-2012.git
|
138
|
+
remote_git='git://github.com/funtoo/ports-2012.git' # 'git://home/ports-2012.git'
|
139
|
+
echo "cloning to /usr/portage"
|
140
|
+
chroot "${chroot_dir}" git clone --depth 1 ${remote_git} /usr/portage
|
141
|
+
chroot "${chroot_dir}" emerge --sync
|
142
|
+
chroot "${chroot_dir}" env-update
|
129
143
|
|
130
144
|
# set localtime
|
131
|
-
chroot "$
|
145
|
+
chroot "${chroot_dir}" ln -sf "/usr/share/zoneinfo/$timezone" /etc/localtime
|
132
146
|
|
133
147
|
# get, configure, compile and install the kernel and modules
|
134
|
-
chroot "$
|
148
|
+
chroot "${chroot_dir}" /bin/bash <<DATAEOF
|
135
149
|
emerge sys-kernel/gentoo-sources sys-kernel/genkernel sys-boot/boot-update
|
136
150
|
|
137
151
|
# specialize for VirtualBox - use loaded modules in livecd
|
@@ -233,32 +247,31 @@ DATAEOF
|
|
233
247
|
|
234
248
|
# install the virtualbox guest additions, add vagrant and root to group vboxguest
|
235
249
|
# PREREQUISITE: kernel - we install a module, so we use the kernel sources
|
236
|
-
chroot "$
|
250
|
+
chroot "${chroot_dir}" /bin/bash <<DATAEOF
|
237
251
|
emerge app-emulation/virtualbox-guest-additions
|
238
|
-
# we need this as gentoo doesn't do it on its own
|
239
|
-
groupadd -r vboxsf
|
240
252
|
mkdir /media && chgrp vboxsf /media
|
241
253
|
rc-update add virtualbox-guest-additions default
|
242
254
|
DATAEOF
|
243
255
|
|
244
|
-
# add default users and groups, setpasswords, configure privileges and install sudo
|
245
|
-
mkdir -p "$chroot/home/vagrant/.ssh"
|
246
|
-
chmod 700 "$chroot/home/vagrant/.ssh"
|
247
|
-
wget --no-check-certificate "$vagrant_ssh_key_url" -O "$chroot/home/vagrant/.ssh/authorized_keys"
|
248
|
-
chmod 600 "$chroot/home/vagrant/.ssh/authorized_keys"
|
249
|
-
cp -f /root/.vbox_version "$chroot/home/vagrant/.vbox_version"
|
250
|
-
|
251
256
|
# for passwordless logins
|
252
|
-
mkdir -p "$
|
253
|
-
cat /tmp/ssh-root.pub >> "$
|
257
|
+
mkdir -p "${chroot_dir}/root/.ssh" 2> /dev/null
|
258
|
+
cat /tmp/ssh-root.pub >> "${chroot_dir}/root/.ssh/authorized_keys"
|
254
259
|
|
255
260
|
# PREREQUISITE: virtualbox-guest-additions - the groups created on installation have to exist
|
256
|
-
chroot $
|
261
|
+
chroot ${chroot_dir} /bin/bash <<DATAEOF
|
257
262
|
groupadd -r vagrant
|
258
|
-
|
259
|
-
|
263
|
+
useradd -m -r vagrant -g vagrant -G wheel,vboxsf,vboxguest -c 'added by vagrant, veewee basebox creation'
|
264
|
+
DATAEOF
|
265
|
+
|
266
|
+
# add default users and groups, setpasswords, configure privileges and install sudo
|
267
|
+
mkdir -p "${chroot_dir}/home/vagrant/.ssh"
|
268
|
+
chmod 700 "${chroot_dir}/home/vagrant/.ssh"
|
269
|
+
wget --no-check-certificate "$vagrant_ssh_key_url" -O "${chroot_dir}/home/vagrant/.ssh/authorized_keys"
|
270
|
+
chmod 600 "${chroot_dir}/home/vagrant/.ssh/authorized_keys"
|
271
|
+
cp -f /root/.vbox_version "${chroot_dir}/home/vagrant/.vbox_version"
|
260
272
|
|
261
273
|
# set passwords (for after reboot)
|
274
|
+
chroot ${chroot_dir} /bin/bash <<DATAEOF
|
262
275
|
passwd<<EOF
|
263
276
|
$password_root
|
264
277
|
$password_root
|
@@ -281,7 +294,7 @@ DATAEOF
|
|
281
294
|
|
282
295
|
# configure ssh daemon
|
283
296
|
# veewee validate uses password authentication (according to the other Funtoo-template), so we have to enable it
|
284
|
-
cat <<DATAEOF > "$
|
297
|
+
cat <<DATAEOF > "${chroot_dir}/etc/ssh/sshd_config"
|
285
298
|
HostBasedAuthentication no
|
286
299
|
IgnoreUserKnownHosts yes
|
287
300
|
PasswordAuthentication yes
|
@@ -297,46 +310,20 @@ UsePAM yes
|
|
297
310
|
UsePrivilegeSeparation sandbox
|
298
311
|
DATAEOF
|
299
312
|
|
300
|
-
# install rbenv, ruby and bundler. Configure rbenv for global usage so it's usable without home directory
|
301
|
-
chroot "$chroot" /bin/bash <<DATAEOF
|
302
|
-
cd /usr/local/lib
|
303
|
-
git clone git://github.com/sstephenson/rbenv.git
|
304
|
-
cd rbenv
|
305
|
-
git checkout -b "$rbenv_version" "$rbenv_version"
|
306
|
-
mkdir -p env/plugins
|
307
|
-
cd env/plugins
|
308
|
-
git clone git://github.com/sstephenson/ruby-build.git
|
309
|
-
cd ruby-build
|
310
|
-
git checkout -b "$ruby_builder_version" "$ruby_builder_version"
|
311
|
-
cd ..
|
312
|
-
git clone git://github.com/carsomyr/rbenv-bundler.git
|
313
|
-
cd rbenv-bundler
|
314
|
-
git checkout -b "$rbenv_bundler_version" "$rbenv_bundler_version"
|
315
|
-
chgrp -R rbenv /usr/local/lib/rbenv
|
316
|
-
DATAEOF
|
317
|
-
libtool --finish /usr/lib64
|
318
|
-
|
319
|
-
# add rbenv to profile
|
320
|
-
cat <<DATAEOF >> "$chroot/etc/profile.d/rbenv.sh"
|
321
|
-
# add rbenv support
|
322
|
-
rbenv_base=/usr/local/lib/rbenv
|
323
|
-
export PATH=\$PATH:\$rbenv_base/bin
|
324
|
-
[ -n \$RBENV_ROOT ] && export RBENV_ROOT=\$rbenv_base/env
|
325
|
-
eval "\$(rbenv init -)"
|
326
|
-
DATAEOF
|
327
|
-
|
328
313
|
# install ruby, bundler, chef and puppet
|
329
|
-
|
314
|
+
echo "Install ruby, bundler, chef and puppet"
|
315
|
+
chroot "${chroot_dir}" /bin/bash <<DATAEOF
|
330
316
|
env-update && source /etc/profile
|
331
317
|
|
332
318
|
# install ruby, use it as global version
|
333
319
|
emerge dev-libs/libyaml
|
334
|
-
|
335
|
-
|
320
|
+
emerge ${ruby_version}
|
321
|
+
# set this as our default ruby. remove : and .
|
322
|
+
eselect ruby set ${ruby_pretty}
|
323
|
+
|
336
324
|
|
337
325
|
# disable rdoc and ri
|
338
|
-
|
339
|
-
cat <<EOF > "/usr/local/lib/rbenv/env/versions/$ruby_version/etc/gemrc"
|
326
|
+
cat <<EOF > "/etc/gemrc"
|
340
327
|
# disable rdoc and ri
|
341
328
|
install: --no-rdoc --no-ri
|
342
329
|
update: --no-rdoc --no-ri
|
@@ -347,17 +334,17 @@ gem install bundler chef puppet
|
|
347
334
|
DATAEOF
|
348
335
|
|
349
336
|
# install logger and cron
|
350
|
-
chroot "$
|
337
|
+
chroot "${chroot_dir}" /bin/bash <<DATAEOF
|
351
338
|
emerge app-admin/rsyslog sys-process/vixie-cron
|
352
339
|
rc-update add rsyslog default
|
353
340
|
rc-update add vixie-cron default
|
354
341
|
DATAEOF
|
355
342
|
|
356
343
|
# install nfs and automount support
|
357
|
-
# chroot "$
|
344
|
+
# chroot "${chroot_dir}" emerge net-fs/nfs-utils net-fs/autofs
|
358
345
|
|
359
346
|
# make the disk bootable
|
360
|
-
chroot "$
|
347
|
+
chroot "${chroot_dir}" /bin/bash <<DATAEOF
|
361
348
|
source /etc/profile && \
|
362
349
|
env-update && \
|
363
350
|
grub-install --no-floppy /dev/sda && \
|
@@ -370,7 +357,8 @@ cat grub.cfg
|
|
370
357
|
DATAEOF
|
371
358
|
|
372
359
|
### patch to make lib/vagrant/guest/gentoo.rb happy
|
373
|
-
|
360
|
+
# not needed for much longer
|
361
|
+
chroot "${chroot_dir}" /bin/bash <<DATAEOF
|
374
362
|
cd /etc/init.d
|
375
363
|
ln -s net.lo netif.lo
|
376
364
|
DATAEOF
|
@@ -379,13 +367,17 @@ DATAEOF
|
|
379
367
|
### CLEANUP TO SHRINK THE BOX ###
|
380
368
|
|
381
369
|
# a fresh install probably shouldn't nag about news
|
382
|
-
chroot "$
|
370
|
+
chroot "${chroot_dir}" /usr/bin/eselect news read all > /dev/null 2>&1
|
383
371
|
|
384
372
|
# cleanup time...
|
385
|
-
chroot "$
|
373
|
+
chroot "${chroot_dir}" /bin/bash <<DATAEOF
|
386
374
|
# delete temp, cached and build artifact data - some low hanging fruit...
|
375
|
+
|
376
|
+
#this is kinda big...
|
377
|
+
rm -r /usr/src/linux/drivers
|
378
|
+
|
387
379
|
eclean -d distfiles
|
388
|
-
rm /tmp/*
|
380
|
+
rm -rf /tmp/*
|
389
381
|
rm -rf /var/log/*
|
390
382
|
rm -rf /var/tmp/*
|
391
383
|
|
@@ -396,22 +388,19 @@ rm -rf /var/tmp/*
|
|
396
388
|
rm -rf /root/.gem
|
397
389
|
|
398
390
|
# here's some savings crippling the usage of this box (sorted descending by damage)
|
399
|
-
#rm -rf /usr/local/lib/rbenv/.git
|
400
|
-
#rm -rf /usr/local/lib/rbenv/env/plugins/*/.git
|
401
391
|
#rm -rf /usr/src/linux*
|
402
|
-
#rm -rf /usr/portage/.git
|
403
392
|
DATAEOF
|
404
393
|
|
405
394
|
# fill all free hdd space with zeros
|
406
|
-
dd if=/dev/zero of="$
|
407
|
-
rm "$
|
395
|
+
dd if=/dev/zero of="${chroot_dir}/boot/EMPTY" bs=1M
|
396
|
+
rm "${chroot_dir}/boot/EMPTY"
|
408
397
|
|
409
|
-
dd if=/dev/zero of="$
|
410
|
-
rm "$
|
398
|
+
dd if=/dev/zero of="${chroot_dir}/EMPTY" bs=1M
|
399
|
+
rm "${chroot_dir}/EMPTY"
|
411
400
|
|
412
401
|
# fill all swap space with zeros and recreate swap
|
413
402
|
swapoff /dev/sda3
|
414
403
|
shred -n 0 -z /dev/sda3
|
415
404
|
mkswap /dev/sda3
|
416
405
|
|
417
|
-
exit
|
406
|
+
exit
|