veewee 0.3.7 → 0.3.9
Sign up to get free protection for your applications and to get access to all the features.
- data/.gitignore +5 -0
- data/.rvmrc +2 -1
- data/.travis.yml +8 -0
- data/CONTRIBUTE.md +51 -0
- data/Gemfile +11 -2
- data/README.md +88 -22
- data/Rakefile +11 -7
- data/bin/veewee +1 -0
- data/doc/TODO.md +76 -0
- data/doc/basics.md +200 -0
- data/doc/build_hooks.md +69 -0
- data/doc/changes.md +20 -0
- data/doc/commands.md +42 -0
- data/doc/customize.md +145 -0
- data/doc/fusion.md +5 -1
- data/doc/installation.md +90 -9
- data/doc/kvm.md +52 -42
- data/doc/parallels.md +3 -0
- data/doc/providers.md +6 -21
- data/doc/requirements.md +69 -5
- data/doc/vagrant.md +26 -93
- data/doc/vbox.md +78 -1
- data/doc/veeweefile.md +25 -0
- data/lib/fission.old/cli.rb +76 -0
- data/lib/fission.old/command.rb +15 -0
- data/lib/fission.old/command/clone.rb +68 -0
- data/lib/fission.old/command/delete.rb +71 -0
- data/lib/fission.old/command/snapshot_create.rb +52 -0
- data/lib/fission.old/command/snapshot_list.rb +45 -0
- data/lib/fission.old/command/snapshot_revert.rb +54 -0
- data/lib/fission.old/command/start.rb +69 -0
- data/lib/fission.old/command/status.rb +31 -0
- data/lib/fission.old/command/stop.rb +49 -0
- data/lib/fission.old/command/suspend.rb +67 -0
- data/lib/fission.old/config.rb +34 -0
- data/lib/fission.old/core_ext/class.rb +5 -0
- data/lib/fission.old/core_ext/file.rb +7 -0
- data/lib/fission.old/core_ext/object.rb +112 -0
- data/lib/fission.old/error.rb +10 -0
- data/lib/fission.old/fusion.rb +17 -0
- data/lib/fission.old/leasesfile.rb +74 -0
- data/lib/fission.old/metadata.rb +39 -0
- data/lib/fission.old/response.rb +16 -0
- data/lib/fission.old/ui.rb +22 -0
- data/lib/fission.old/version.rb +3 -0
- data/lib/fission.old/vm.rb +370 -0
- data/lib/veewee/command/fusion.rb +16 -142
- data/lib/veewee/command/group_base.rb +111 -7
- data/lib/veewee/command/kvm.rb +19 -104
- data/lib/veewee/command/parallels.rb +15 -105
- data/lib/veewee/command/vagrant/build.rb +2 -2
- data/lib/veewee/command/vagrant/export.rb +0 -2
- data/lib/veewee/command/vbox.rb +21 -134
- data/lib/veewee/config.rb +2 -3
- data/lib/veewee/config/ostypes.yml +21 -1
- data/lib/veewee/definition.rb +42 -11
- data/lib/veewee/definitions.rb +27 -6
- data/lib/veewee/environment.rb +34 -25
- data/lib/veewee/error.rb +1 -1
- data/lib/veewee/provider/core/box/build.rb +71 -7
- data/lib/veewee/provider/core/box/exec.rb +1 -1
- data/lib/veewee/provider/core/box/floppy.rb +1 -1
- data/lib/veewee/provider/core/box/ssh.rb +2 -2
- data/lib/veewee/provider/core/box/validate_tags.rb +137 -30
- data/lib/veewee/provider/core/box/vnc.rb +1 -1
- data/lib/veewee/provider/core/box/wincp.rb +8 -8
- data/lib/veewee/provider/core/helper/iso.rb +41 -15
- data/lib/veewee/provider/core/helper/scancode.rb +46 -43
- data/lib/veewee/provider/core/helper/shell.rb +3 -2
- data/lib/veewee/provider/core/helper/ssh.rb +21 -10
- data/lib/veewee/provider/core/helper/tcp.rb +19 -6
- data/lib/veewee/provider/core/helper/web.rb +1 -1
- data/lib/veewee/provider/core/helper/winrm.rb +3 -0
- data/lib/veewee/provider/core/provider.rb +1 -1
- data/lib/veewee/provider/kvm/box.rb +7 -0
- data/lib/veewee/provider/kvm/box/create.rb +122 -71
- data/lib/veewee/provider/kvm/box/destroy.rb +5 -6
- data/lib/veewee/provider/kvm/box/export_vagrant.rb +143 -0
- data/lib/veewee/provider/kvm/box/helper/status.rb +6 -2
- data/lib/veewee/provider/kvm/provider.rb +26 -21
- data/lib/veewee/provider/kvm/templates/Vagrantfile +45 -0
- data/lib/veewee/provider/parallels/box.rb +1 -0
- data/lib/veewee/provider/parallels/box/export.rb +184 -0
- data/lib/veewee/provider/parallels/box/helper/buildinfo.rb +7 -5
- data/lib/veewee/provider/parallels/box/helper/console_type.rb +12 -6
- data/lib/veewee/provider/virtualbox/box.rb +19 -5
- data/lib/veewee/provider/virtualbox/box/create.rb +1 -1
- data/lib/veewee/provider/virtualbox/box/export_vagrant.rb +90 -8
- data/lib/veewee/provider/virtualbox/box/helper/console_type.rb +3 -1
- data/lib/veewee/provider/virtualbox/box/helper/create.rb +48 -23
- data/lib/veewee/provider/virtualbox/box/helper/forwarding.rb +5 -1
- data/lib/veewee/provider/virtualbox/box/helper/version.rb +4 -1
- data/lib/veewee/provider/virtualbox/box/up.rb +6 -6
- data/lib/veewee/provider/virtualbox/provider.rb +3 -1
- data/lib/veewee/provider/vmfusion/box.rb +1 -1
- data/lib/veewee/provider/vmfusion/box/export.rb +125 -0
- data/lib/veewee/provider/vmfusion/box/helper/buildinfo.rb +6 -2
- data/lib/veewee/provider/vmfusion/box/helper/ip.rb +6 -1
- data/lib/veewee/provider/vmfusion/box/poweroff.rb +1 -1
- data/lib/veewee/provider/vmfusion/box/ssh.rb +1 -1
- data/lib/veewee/provider/vmfusion/box/template.rb +10 -3
- data/lib/veewee/provider/vmfusion/box/template.vmx.erb +19 -5
- data/lib/veewee/templates/Vagrantfile.erb +11 -0
- data/lib/veewee/version.rb +1 -1
- data/templates/.ubuntu/base.sh +20 -0
- data/templates/.ubuntu/chef.sh +49 -0
- data/templates/.ubuntu/cleanup.sh +25 -0
- data/templates/.ubuntu/puppet.sh +15 -0
- data/templates/.ubuntu/ruby.sh +7 -0
- data/templates/.ubuntu/vagrant.sh +27 -0
- data/templates/.ubuntu/virtualbox.sh +15 -0
- data/templates/.ubuntu/zerodisk.sh +11 -0
- data/templates/CentOS-4.8-i386/ks.cfg +3 -3
- data/templates/CentOS-4.8-i386/postinstall.sh +3 -0
- data/templates/CentOS-5.5-i386-netboot/definition.rb +1 -1
- data/templates/CentOS-5.5-i386-netboot/ks.cfg +3 -3
- data/templates/CentOS-5.5-i386-netboot/postinstall.sh +3 -0
- data/templates/CentOS-5.5-x86_64-netboot/definition.rb +1 -1
- data/templates/CentOS-5.5-x86_64-netboot/ks.cfg +3 -3
- data/templates/CentOS-5.5-x86_64-netboot/postinstall.sh +4 -0
- data/templates/CentOS-5.6-i386-netboot/definition.rb +1 -1
- data/templates/CentOS-5.6-i386-netboot/ks.cfg +3 -3
- data/templates/CentOS-5.6-i386/ks.cfg +3 -3
- data/templates/CentOS-5.6-i386/postinstall.sh +3 -0
- data/templates/CentOS-5.6-x86_64-netboot-packages/definition.rb +1 -1
- data/templates/CentOS-5.6-x86_64-netboot-packages/ks.cfg +3 -3
- data/templates/CentOS-5.6-x86_64-netboot-packages/postinstall.sh +3 -0
- data/templates/CentOS-5.6-x86_64-netboot/definition.rb +1 -1
- data/templates/CentOS-5.6-x86_64-netboot/ks.cfg +3 -3
- data/templates/CentOS-5.6-x86_64-netboot/postinstall.sh +4 -0
- data/templates/CentOS-5.7-i386-netboot/definition.rb +1 -1
- data/templates/CentOS-5.7-i386-netboot/ks.cfg +3 -3
- data/templates/CentOS-5.7-i386-netboot/postinstall.sh +3 -0
- data/templates/CentOS-5.7-x86_64-netboot/definition.rb +1 -1
- data/templates/CentOS-5.7-x86_64-netboot/ks.cfg +3 -3
- data/templates/CentOS-5.7-x86_64-netboot/postinstall.sh +3 -0
- data/templates/CentOS-5.8-i386-netboot/definition.rb +1 -1
- data/templates/CentOS-5.8-i386-netboot/ks.cfg +3 -3
- data/templates/CentOS-5.8-i386-netboot/postinstall.sh +3 -0
- data/templates/CentOS-5.8-i386/definition.rb +1 -1
- data/templates/CentOS-5.8-i386/ks.cfg +3 -3
- data/templates/CentOS-5.8-i386/postinstall.sh +3 -0
- data/templates/CentOS-5.8-x86_64-netboot/definition.rb +1 -1
- data/templates/CentOS-5.8-x86_64-netboot/ks.cfg +5 -5
- data/templates/CentOS-5.8-x86_64-netboot/postinstall.sh +3 -0
- data/templates/CentOS-5.8-x86_64-reallyminimal/README.md +3 -0
- data/templates/CentOS-5.8-x86_64-reallyminimal/definition.rb +33 -0
- data/templates/CentOS-5.8-x86_64-reallyminimal/ks.cfg +102 -0
- data/templates/CentOS-5.8-x86_64-reallyminimal/postinstall.sh +132 -0
- data/templates/CentOS-5.8-x86_64/definition.rb +1 -1
- data/templates/CentOS-5.8-x86_64/ks.cfg +3 -3
- data/templates/CentOS-5.8-x86_64/postinstall.sh +3 -0
- data/templates/CentOS-5.9-i386-netboot/base.sh +9 -0
- data/templates/CentOS-5.9-i386-netboot/cfengine.sh +69 -0
- data/templates/CentOS-5.9-i386-netboot/chef.sh +3 -0
- data/templates/CentOS-5.9-i386-netboot/cleanup.sh +7 -0
- data/templates/CentOS-5.9-i386-netboot/definition.rb +43 -0
- data/templates/CentOS-5.9-i386-netboot/ks.cfg +47 -0
- data/templates/CentOS-5.9-i386-netboot/puppet.sh +18 -0
- data/templates/CentOS-5.9-i386-netboot/ruby.sh +12 -0
- data/templates/CentOS-5.9-i386-netboot/vagrant.sh +18 -0
- data/templates/CentOS-5.9-i386-netboot/virtualbox.sh +8 -0
- data/templates/CentOS-5.9-i386-netboot/vmfusion.sh +7 -0
- data/templates/{Debian-7.0-b4-amd64-netboot → CentOS-5.9-i386-netboot}/zerodisk.sh +0 -0
- data/templates/CentOS-5.9-i386/base.sh +9 -0
- data/templates/CentOS-5.9-i386/cfengine.sh +69 -0
- data/templates/CentOS-5.9-i386/chef.sh +3 -0
- data/templates/CentOS-5.9-i386/cleanup.sh +7 -0
- data/templates/CentOS-5.9-i386/definition.rb +43 -0
- data/templates/CentOS-5.9-i386/ks.cfg +47 -0
- data/templates/CentOS-5.9-i386/puppet.sh +18 -0
- data/templates/CentOS-5.9-i386/ruby.sh +12 -0
- data/templates/CentOS-5.9-i386/vagrant.sh +18 -0
- data/templates/CentOS-5.9-i386/virtualbox.sh +8 -0
- data/templates/CentOS-5.9-i386/vmfusion.sh +7 -0
- data/templates/{Debian-7.0-b4-i386-netboot → CentOS-5.9-i386}/zerodisk.sh +0 -0
- data/templates/CentOS-5.9-x86_64-netboot/base.sh +9 -0
- data/templates/CentOS-5.9-x86_64-netboot/cfengine.sh +69 -0
- data/templates/CentOS-5.9-x86_64-netboot/chef.sh +3 -0
- data/templates/CentOS-5.9-x86_64-netboot/cleanup.sh +7 -0
- data/templates/CentOS-5.9-x86_64-netboot/definition.rb +43 -0
- data/templates/CentOS-5.9-x86_64-netboot/ks.cfg +47 -0
- data/templates/CentOS-5.9-x86_64-netboot/puppet.sh +18 -0
- data/templates/CentOS-5.9-x86_64-netboot/ruby.sh +12 -0
- data/templates/CentOS-5.9-x86_64-netboot/vagrant.sh +18 -0
- data/templates/CentOS-5.9-x86_64-netboot/virtualbox.sh +8 -0
- data/templates/CentOS-5.9-x86_64-netboot/vmfusion.sh +7 -0
- data/templates/CentOS-5.9-x86_64-netboot/zerodisk.sh +3 -0
- data/templates/CentOS-5.9-x86_64/base.sh +9 -0
- data/templates/CentOS-5.9-x86_64/cfengine.sh +69 -0
- data/templates/CentOS-5.9-x86_64/chef.sh +3 -0
- data/templates/CentOS-5.9-x86_64/cleanup.sh +7 -0
- data/templates/CentOS-5.9-x86_64/definition.rb +43 -0
- data/templates/CentOS-5.9-x86_64/ks.cfg +47 -0
- data/templates/CentOS-5.9-x86_64/puppet.sh +18 -0
- data/templates/CentOS-5.9-x86_64/ruby.sh +12 -0
- data/templates/CentOS-5.9-x86_64/vagrant.sh +18 -0
- data/templates/CentOS-5.9-x86_64/virtualbox.sh +8 -0
- data/templates/CentOS-5.9-x86_64/vmfusion.sh +7 -0
- data/templates/CentOS-5.9-x86_64/zerodisk.sh +3 -0
- data/templates/CentOS-6.0-i386-netboot/base.sh +3 -0
- data/templates/CentOS-6.0-i386-netboot/definition.rb +1 -1
- data/templates/CentOS-6.0-i386-netboot/puppet.sh +7 -1
- data/templates/CentOS-6.0-i386/base.sh +2 -0
- data/templates/CentOS-6.0-i386/definition.rb +1 -1
- data/templates/CentOS-6.0-i386/puppet.sh +7 -1
- data/templates/CentOS-6.0-x86_64-minimal/base.sh +2 -0
- data/templates/CentOS-6.0-x86_64-minimal/definition.rb +2 -2
- data/templates/CentOS-6.0-x86_64-minimal/puppet.sh +7 -1
- data/templates/CentOS-6.0-x86_64-netboot/base.sh +2 -0
- data/templates/CentOS-6.0-x86_64-netboot/definition.rb +2 -2
- data/templates/CentOS-6.0-x86_64-netboot/puppet.sh +7 -1
- data/templates/CentOS-6.0-x86_64/base.sh +2 -0
- data/templates/CentOS-6.0-x86_64/definition.rb +2 -2
- data/templates/CentOS-6.0-x86_64/puppet.sh +7 -1
- data/templates/CentOS-6.1-x86_64-minimal/base.sh +2 -0
- data/templates/CentOS-6.1-x86_64-minimal/definition.rb +2 -2
- data/templates/CentOS-6.1-x86_64-minimal/puppet.sh +7 -1
- data/templates/CentOS-6.1-x86_64-netboot/base.sh +2 -0
- data/templates/CentOS-6.1-x86_64-netboot/definition.rb +2 -2
- data/templates/CentOS-6.1-x86_64-netboot/puppet.sh +7 -1
- data/templates/CentOS-6.2-i386-minimal/base.sh +2 -0
- data/templates/CentOS-6.2-i386-minimal/definition.rb +1 -1
- data/templates/CentOS-6.2-i386-minimal/puppet.sh +7 -1
- data/templates/CentOS-6.2-x86_64-minimal/base.sh +2 -0
- data/templates/CentOS-6.2-x86_64-minimal/definition.rb +2 -2
- data/templates/CentOS-6.2-x86_64-minimal/puppet.sh +7 -1
- data/templates/CentOS-6.2-x86_64-netboot/definition.rb +2 -2
- data/templates/CentOS-6.2-x86_64-netboot/puppet.sh +7 -1
- data/templates/CentOS-6.3-i386-minimal/base.sh +2 -0
- data/templates/CentOS-6.3-i386-minimal/puppet.sh +7 -1
- data/templates/CentOS-6.3-x86_64-minimal/base.sh +2 -0
- data/templates/CentOS-6.3-x86_64-minimal/definition.rb +1 -1
- data/templates/CentOS-6.3-x86_64-minimal/puppet.sh +7 -1
- data/templates/CentOS-6.3-x86_64-netboot/base.sh +2 -0
- data/templates/CentOS-6.3-x86_64-netboot/cfengine.sh +69 -0
- data/templates/CentOS-6.3-x86_64-netboot/definition.rb +1 -1
- data/templates/CentOS-6.3-x86_64-netboot/puppet.sh +7 -1
- data/templates/CentOS-6.3-x86_64-reallyminimal/README.md +12 -0
- data/templates/CentOS-6.3-x86_64-reallyminimal/definition.rb +33 -0
- data/templates/CentOS-6.3-x86_64-reallyminimal/ks.cfg +100 -0
- data/templates/CentOS-6.3-x86_64-reallyminimal/postinstall.sh +138 -0
- data/templates/CentOS-6.4-i386-minimal/base.sh +16 -0
- data/templates/CentOS-6.4-i386-minimal/chef.sh +2 -0
- data/templates/CentOS-6.4-i386-minimal/cleanup.sh +8 -0
- data/templates/CentOS-6.4-i386-minimal/definition.rb +38 -0
- data/templates/CentOS-6.4-i386-minimal/ks.cfg +36 -0
- data/templates/CentOS-6.4-i386-minimal/puppet.sh +18 -0
- data/templates/CentOS-6.4-i386-minimal/vagrant.sh +18 -0
- data/templates/CentOS-6.4-i386-minimal/virtualbox.sh +8 -0
- data/templates/CentOS-6.4-i386-minimal/vmfusion.sh +7 -0
- data/templates/CentOS-6.4-i386-minimal/zerodisk.sh +3 -0
- data/templates/CentOS-6.4-i386-netboot/base.sh +16 -0
- data/templates/CentOS-6.4-i386-netboot/cfengine.sh +69 -0
- data/templates/CentOS-6.4-i386-netboot/chef.sh +3 -0
- data/templates/CentOS-6.4-i386-netboot/cleanup.sh +8 -0
- data/templates/CentOS-6.4-i386-netboot/definition.rb +40 -0
- data/templates/CentOS-6.4-i386-netboot/ks.cfg +41 -0
- data/templates/CentOS-6.4-i386-netboot/puppet.sh +18 -0
- data/templates/CentOS-6.4-i386-netboot/ruby.sh +3 -0
- data/templates/CentOS-6.4-i386-netboot/vagrant.sh +18 -0
- data/templates/CentOS-6.4-i386-netboot/virtualbox.sh +8 -0
- data/templates/CentOS-6.4-i386-netboot/vmfusion.sh +7 -0
- data/templates/CentOS-6.4-i386-netboot/zerodisk.sh +3 -0
- data/templates/CentOS-6.4-x86_64-minimal/base.sh +16 -0
- data/templates/CentOS-6.4-x86_64-minimal/chef.sh +2 -0
- data/templates/CentOS-6.4-x86_64-minimal/cleanup.sh +8 -0
- data/templates/CentOS-6.4-x86_64-minimal/definition.rb +38 -0
- data/templates/CentOS-6.4-x86_64-minimal/ks.cfg +36 -0
- data/templates/CentOS-6.4-x86_64-minimal/puppet.sh +18 -0
- data/templates/CentOS-6.4-x86_64-minimal/vagrant.sh +18 -0
- data/templates/CentOS-6.4-x86_64-minimal/virtualbox.sh +8 -0
- data/templates/CentOS-6.4-x86_64-minimal/vmfusion.sh +7 -0
- data/templates/CentOS-6.4-x86_64-minimal/zerodisk.sh +3 -0
- data/templates/CentOS-6.4-x86_64-netboot/base.sh +16 -0
- data/templates/CentOS-6.4-x86_64-netboot/cfengine.sh +69 -0
- data/templates/CentOS-6.4-x86_64-netboot/chef.sh +3 -0
- data/templates/CentOS-6.4-x86_64-netboot/cleanup.sh +8 -0
- data/templates/CentOS-6.4-x86_64-netboot/definition.rb +40 -0
- data/templates/CentOS-6.4-x86_64-netboot/ks.cfg +41 -0
- data/templates/CentOS-6.4-x86_64-netboot/puppet.sh +18 -0
- data/templates/CentOS-6.4-x86_64-netboot/ruby.sh +3 -0
- data/templates/CentOS-6.4-x86_64-netboot/vagrant.sh +18 -0
- data/templates/CentOS-6.4-x86_64-netboot/virtualbox.sh +8 -0
- data/templates/CentOS-6.4-x86_64-netboot/vmfusion.sh +7 -0
- data/templates/CentOS-6.4-x86_64-netboot/zerodisk.sh +3 -0
- data/templates/Debian-5.0.10-amd64-netboot/base.sh +4 -0
- data/templates/Debian-5.0.10-amd64-netboot/definition.rb +10 -1
- data/templates/Debian-5.0.10-amd64-netboot/preseed.cfg +5 -3
- data/templates/Debian-5.0.10-amd64-netboot/ruby.sh +7 -6
- data/templates/Debian-5.0.10-amd64-netboot/vagrant.sh +4 -0
- data/templates/Debian-5.0.10-amd64-netboot/virtualbox.sh +12 -7
- data/templates/Debian-5.0.10-amd64-netboot/zerodisk.sh +3 -0
- data/templates/Debian-5.0.10-i386-netboot/base.sh +4 -0
- data/templates/Debian-5.0.10-i386-netboot/definition.rb +10 -1
- data/templates/Debian-5.0.10-i386-netboot/preseed.cfg +5 -3
- data/templates/Debian-5.0.10-i386-netboot/ruby.sh +7 -6
- data/templates/Debian-5.0.10-i386-netboot/vagrant.sh +4 -0
- data/templates/Debian-5.0.10-i386-netboot/virtualbox.sh +12 -7
- data/templates/Debian-5.0.10-i386-netboot/zerodisk.sh +3 -0
- data/templates/Debian-5.0.8-amd64-netboot/base.sh +4 -0
- data/templates/Debian-5.0.8-amd64-netboot/definition.rb +10 -1
- data/templates/Debian-5.0.8-amd64-netboot/preseed.cfg +5 -3
- data/templates/Debian-5.0.8-amd64-netboot/vagrant.sh +4 -0
- data/templates/Debian-5.0.8-amd64-netboot/virtualbox.sh +12 -7
- data/templates/Debian-5.0.8-amd64-netboot/zerodisk.sh +3 -0
- data/templates/Debian-5.0.8-i386-netboot/base.sh +4 -0
- data/templates/Debian-5.0.8-i386-netboot/definition.rb +10 -1
- data/templates/Debian-5.0.8-i386-netboot/preseed.cfg +5 -3
- data/templates/Debian-5.0.8-i386-netboot/vagrant.sh +4 -0
- data/templates/Debian-5.0.8-i386-netboot/virtualbox.sh +12 -7
- data/templates/Debian-5.0.8-i386-netboot/zerodisk.sh +3 -0
- data/templates/Debian-6.0.3-amd64-netboot/definition.rb +3 -1
- data/templates/Debian-6.0.3-amd64-netboot/preseed.cfg +2 -2
- data/templates/Debian-6.0.3-i386-netboot/definition.rb +3 -1
- data/templates/Debian-6.0.3-i386-netboot/preseed.cfg +2 -2
- data/templates/Debian-6.0.4-amd64-netboot/definition.rb +3 -1
- data/templates/Debian-6.0.4-amd64-netboot/preseed.cfg +2 -2
- data/templates/Debian-6.0.4-i386-netboot/definition.rb +4 -2
- data/templates/Debian-6.0.4-i386-netboot/preseed.cfg +2 -2
- data/templates/Debian-6.0.5-amd64-netboot/definition.rb +3 -1
- data/templates/Debian-6.0.5-amd64-netboot/preseed.cfg +2 -2
- data/templates/Debian-6.0.5-i386-netboot/definition.rb +3 -1
- data/templates/Debian-6.0.5-i386-netboot/preseed.cfg +3 -3
- data/templates/Debian-6.0.6-amd64-netboot/base.sh +6 -2
- data/templates/Debian-6.0.6-amd64-netboot/chef.sh +1 -1
- data/templates/Debian-6.0.6-amd64-netboot/definition.rb +5 -3
- data/templates/Debian-6.0.6-amd64-netboot/preseed.cfg +2 -2
- data/templates/Debian-6.0.6-amd64-netboot/puppet.sh +1 -1
- data/templates/Debian-6.0.6-amd64-netboot/ruby.sh +25 -9
- data/templates/Debian-6.0.6-amd64-netboot/vagrant.sh +0 -2
- data/templates/Debian-6.0.6-amd64-netboot/virtualbox.sh +17 -12
- data/templates/Debian-6.0.6-amd64-netboot/vmfusion.sh +7 -0
- data/templates/Debian-6.0.6-i386-netboot/base.sh +0 -1
- data/templates/Debian-6.0.6-i386-netboot/cleanup.sh +1 -0
- data/templates/Debian-6.0.6-i386-netboot/definition.rb +11 -2
- data/templates/Debian-6.0.6-i386-netboot/preseed.cfg +3 -3
- data/templates/Debian-6.0.6-i386-netboot/virtualbox.sh +3 -0
- data/templates/Debian-6.0.7-amd64-netboot/base.sh +27 -0
- data/templates/{Debian-7.0-b4-amd64-netboot → Debian-6.0.7-amd64-netboot}/chef.sh +0 -0
- data/templates/{Debian-6.0.6-amd64-netboot → Debian-6.0.7-amd64-netboot}/cleanup-virtualbox.sh +0 -0
- data/templates/{Debian-7.0-b4-amd64-netboot → Debian-6.0.7-amd64-netboot}/cleanup.sh +0 -0
- data/templates/Debian-6.0.7-amd64-netboot/definition.rb +50 -0
- data/templates/{Debian-7.0-b4-i386-netboot → Debian-6.0.7-amd64-netboot}/preseed.cfg +2 -2
- data/templates/Debian-6.0.7-amd64-netboot/puppet.sh +7 -0
- data/templates/Debian-6.0.7-amd64-netboot/ruby.sh +10 -0
- data/templates/{Debian-7.0-b4-amd64-netboot → Debian-6.0.7-amd64-netboot}/vagrant.sh +0 -0
- data/templates/{Debian-7.0-b4-amd64-netboot → Debian-6.0.7-amd64-netboot}/virtualbox.sh +6 -1
- data/templates/Debian-6.0.7-amd64-netboot/vmfusion.sh +7 -0
- data/templates/Debian-6.0.7-amd64-netboot/zerodisk.sh +3 -0
- data/templates/Debian-6.0.7-i386-netboot/base.sh +26 -0
- data/templates/{Debian-7.0-b4-i386-netboot → Debian-6.0.7-i386-netboot}/chef.sh +0 -0
- data/templates/{Debian-7.0-b4-amd64-netboot → Debian-6.0.7-i386-netboot}/cleanup-virtualbox.sh +0 -0
- data/templates/Debian-6.0.7-i386-netboot/cleanup.sh +18 -0
- data/templates/Debian-6.0.7-i386-netboot/definition.rb +59 -0
- data/templates/Debian-6.0.7-i386-netboot/preseed.cfg +315 -0
- data/templates/Debian-6.0.7-i386-netboot/puppet.sh +7 -0
- data/templates/{Debian-7.0-b4-amd64-netboot → Debian-6.0.7-i386-netboot}/ruby.sh +0 -0
- data/templates/{Debian-7.0-b4-i386-netboot → Debian-6.0.7-i386-netboot}/vagrant.sh +0 -0
- data/templates/{Debian-7.0-b4-i386-netboot → Debian-6.0.7-i386-netboot}/virtualbox.sh +3 -0
- data/templates/Debian-6.0.7-i386-netboot/vmfusion.sh +7 -0
- data/templates/Debian-6.0.7-i386-netboot/zerodisk.sh +3 -0
- data/templates/Debian-7.0-amd64-netboot/base.sh +25 -0
- data/templates/Debian-7.0-amd64-netboot/chef.sh +49 -0
- data/templates/{Debian-7.0-b4-i386-netboot → Debian-7.0-amd64-netboot}/cleanup-virtualbox.sh +0 -0
- data/templates/Debian-7.0-amd64-netboot/cleanup.sh +18 -0
- data/templates/Debian-7.0-amd64-netboot/definition.rb +55 -0
- data/templates/{Debian-7.0-b4-amd64-netboot → Debian-7.0-amd64-netboot}/preseed.cfg +4 -4
- data/templates/Debian-7.0-amd64-netboot/puppet.sh +7 -0
- data/templates/{Debian-7.0-b4-i386-netboot → Debian-7.0-amd64-netboot}/ruby.sh +0 -0
- data/templates/Debian-7.0-amd64-netboot/vagrant.sh +21 -0
- data/templates/Debian-7.0-amd64-netboot/virtualbox.sh +34 -0
- data/templates/Debian-7.0-amd64-netboot/vmfusion.sh +7 -0
- data/templates/Debian-7.0-amd64-netboot/zerodisk.sh +3 -0
- data/templates/{Debian-7.0-b4-amd64-netboot → Debian-7.0-i386-netboot}/base.sh +1 -1
- data/templates/Debian-7.0-i386-netboot/chef.sh +2 -0
- data/templates/Debian-7.0-i386-netboot/cleanup-virtualbox.sh +4 -0
- data/templates/{Debian-7.0-b4-i386-netboot → Debian-7.0-i386-netboot}/cleanup.sh +0 -0
- data/templates/Debian-7.0-i386-netboot/definition.rb +56 -0
- data/templates/Debian-7.0-i386-netboot/preseed.cfg +315 -0
- data/templates/Debian-7.0-i386-netboot/puppet.sh +7 -0
- data/templates/Debian-7.0-i386-netboot/ruby.sh +10 -0
- data/templates/Debian-7.0-i386-netboot/vagrant.sh +23 -0
- data/templates/Debian-7.0-i386-netboot/virtualbox.sh +34 -0
- data/templates/Debian-7.0-i386-netboot/vmfusion.sh +7 -0
- data/templates/Debian-7.0-i386-netboot/zerodisk.sh +3 -0
- data/templates/Debian-7.1.0-amd64-netboot/base.sh +25 -0
- data/templates/Debian-7.1.0-amd64-netboot/chef.sh +49 -0
- data/templates/Debian-7.1.0-amd64-netboot/cleanup-virtualbox.sh +4 -0
- data/templates/Debian-7.1.0-amd64-netboot/cleanup.sh +18 -0
- data/templates/Debian-7.1.0-amd64-netboot/definition.rb +53 -0
- data/templates/Debian-7.1.0-amd64-netboot/preseed.cfg +313 -0
- data/templates/Debian-7.1.0-amd64-netboot/puppet.sh +7 -0
- data/templates/Debian-7.1.0-amd64-netboot/ruby.sh +10 -0
- data/templates/Debian-7.1.0-amd64-netboot/vagrant.sh +21 -0
- data/templates/Debian-7.1.0-amd64-netboot/virtualbox.sh +34 -0
- data/templates/Debian-7.1.0-amd64-netboot/vmfusion.sh +7 -0
- data/templates/Debian-7.1.0-amd64-netboot/zerodisk.sh +3 -0
- data/templates/{Debian-7.0-b4-i386-netboot → Debian-7.1.0-i386-netboot}/base.sh +1 -1
- data/templates/Debian-7.1.0-i386-netboot/chef.sh +2 -0
- data/templates/Debian-7.1.0-i386-netboot/cleanup-virtualbox.sh +4 -0
- data/templates/Debian-7.1.0-i386-netboot/cleanup.sh +17 -0
- data/templates/{Debian-7.0-b4-i386-netboot → Debian-7.1.0-i386-netboot}/definition.rb +5 -5
- data/templates/Debian-7.1.0-i386-netboot/preseed.cfg +315 -0
- data/templates/Debian-7.1.0-i386-netboot/puppet.sh +7 -0
- data/templates/Debian-7.1.0-i386-netboot/ruby.sh +10 -0
- data/templates/Debian-7.1.0-i386-netboot/vagrant.sh +23 -0
- data/templates/Debian-7.1.0-i386-netboot/virtualbox.sh +34 -0
- data/templates/Debian-7.1.0-i386-netboot/vmfusion.sh +7 -0
- data/templates/Debian-7.1.0-i386-netboot/zerodisk.sh +3 -0
- data/templates/Debian-7.2.0-amd64-netboot/base.sh +25 -0
- data/templates/Debian-7.2.0-amd64-netboot/chef.sh +49 -0
- data/templates/Debian-7.2.0-amd64-netboot/cleanup-virtualbox.sh +4 -0
- data/templates/Debian-7.2.0-amd64-netboot/cleanup.sh +18 -0
- data/templates/Debian-7.2.0-amd64-netboot/definition.rb +53 -0
- data/templates/Debian-7.2.0-amd64-netboot/preseed.cfg +313 -0
- data/templates/Debian-7.2.0-amd64-netboot/puppet.sh +7 -0
- data/templates/Debian-7.2.0-amd64-netboot/ruby.sh +10 -0
- data/templates/Debian-7.2.0-amd64-netboot/vagrant.sh +21 -0
- data/templates/Debian-7.2.0-amd64-netboot/virtualbox.sh +34 -0
- data/templates/Debian-7.2.0-amd64-netboot/vmfusion.sh +7 -0
- data/templates/Debian-7.2.0-amd64-netboot/zerodisk.sh +3 -0
- data/templates/Debian-7.2.0-i386-netboot/base.sh +26 -0
- data/templates/Debian-7.2.0-i386-netboot/chef.sh +2 -0
- data/templates/Debian-7.2.0-i386-netboot/cleanup-virtualbox.sh +4 -0
- data/templates/Debian-7.2.0-i386-netboot/cleanup.sh +17 -0
- data/templates/{Debian-7.0-b4-amd64-netboot → Debian-7.2.0-i386-netboot}/definition.rb +5 -5
- data/templates/Debian-7.2.0-i386-netboot/preseed.cfg +315 -0
- data/templates/Debian-7.2.0-i386-netboot/puppet.sh +7 -0
- data/templates/Debian-7.2.0-i386-netboot/ruby.sh +10 -0
- data/templates/Debian-7.2.0-i386-netboot/vagrant.sh +23 -0
- data/templates/Debian-7.2.0-i386-netboot/virtualbox.sh +34 -0
- data/templates/Debian-7.2.0-i386-netboot/vmfusion.sh +7 -0
- data/templates/Debian-7.2.0-i386-netboot/zerodisk.sh +3 -0
- data/templates/Fedora-14-amd64-netboot/ks.cfg +3 -3
- data/templates/Fedora-14-amd64/ks.cfg +3 -3
- data/templates/Fedora-14-i386-netboot/ks.cfg +3 -3
- data/templates/Fedora-14-i386/ks.cfg +3 -3
- data/templates/Fedora-15-i386-netboot/ks.cfg +2 -2
- data/templates/Fedora-15-i386/ks.cfg +2 -2
- data/templates/Fedora-15-x86_64-netboot/ks.cfg +2 -2
- data/templates/Fedora-15-x86_64/definition.rb +1 -1
- data/templates/Fedora-15-x86_64/ks.cfg +2 -2
- data/templates/Fedora-16-i386/ks.cfg +2 -2
- data/templates/Fedora-16-x86_64-netboot/ks.cfg +2 -2
- data/templates/Fedora-16-x86_64/ks.cfg +2 -2
- data/templates/Fedora-17-i386/ks.cfg +2 -2
- data/templates/Fedora-17-x86_64/ks.cfg +2 -2
- data/templates/Fedora-18-i386/base.sh +12 -0
- data/templates/Fedora-18-i386/chef.sh +17 -0
- data/templates/Fedora-18-i386/cleanup.sh +6 -0
- data/templates/Fedora-18-i386/definition.rb +32 -10
- data/templates/Fedora-18-i386/ks.cfg +2 -2
- data/templates/Fedora-18-i386/puppet.sh +2 -0
- data/templates/Fedora-18-i386/ruby.sh +3 -0
- data/templates/Fedora-18-i386/vagrant.sh +18 -0
- data/templates/Fedora-18-i386/virtualbox.sh +8 -0
- data/templates/Fedora-18-i386/vmfusion.sh +7 -0
- data/templates/Fedora-18-i386/zerodisk.sh +3 -0
- data/templates/Fedora-18-x86_64/base.sh +12 -0
- data/templates/Fedora-18-x86_64/chef.sh +17 -0
- data/templates/Fedora-18-x86_64/cleanup.sh +6 -0
- data/templates/Fedora-18-x86_64/definition.rb +32 -10
- data/templates/Fedora-18-x86_64/ks.cfg +2 -2
- data/templates/Fedora-18-x86_64/puppet.sh +2 -0
- data/templates/Fedora-18-x86_64/ruby.sh +3 -0
- data/templates/Fedora-18-x86_64/vagrant.sh +18 -0
- data/templates/Fedora-18-x86_64/virtualbox.sh +8 -0
- data/templates/Fedora-18-x86_64/vmfusion.sh +7 -0
- data/templates/Fedora-18-x86_64/zerodisk.sh +3 -0
- data/templates/Fedora-19-i386/base.sh +9 -0
- data/templates/Fedora-19-i386/chef.sh +17 -0
- data/templates/Fedora-19-i386/cleanup.sh +6 -0
- data/templates/Fedora-19-i386/definition.rb +39 -0
- data/templates/Fedora-19-i386/ks.cfg +83 -0
- data/templates/Fedora-19-i386/puppet.sh +2 -0
- data/templates/Fedora-19-i386/ruby.sh +3 -0
- data/templates/Fedora-19-i386/vagrant.sh +18 -0
- data/templates/Fedora-19-i386/virtualbox.sh +4 -0
- data/templates/Fedora-19-i386/vmfusion.sh +7 -0
- data/templates/Fedora-19-i386/zerodisk.sh +3 -0
- data/templates/Fedora-19-x86_64/base.sh +9 -0
- data/templates/Fedora-19-x86_64/chef.sh +17 -0
- data/templates/Fedora-19-x86_64/cleanup.sh +6 -0
- data/templates/Fedora-19-x86_64/definition.rb +39 -0
- data/templates/Fedora-19-x86_64/ks.cfg +83 -0
- data/templates/Fedora-19-x86_64/puppet.sh +2 -0
- data/templates/Fedora-19-x86_64/ruby.sh +3 -0
- data/templates/Fedora-19-x86_64/vagrant.sh +18 -0
- data/templates/Fedora-19-x86_64/virtualbox.sh +4 -0
- data/templates/Fedora-19-x86_64/vmfusion.sh +7 -0
- data/templates/Fedora-19-x86_64/zerodisk.sh +3 -0
- data/templates/OSX/NOTICE.erb +23 -0
- data/templates/OSX/chef-omnibus.sh +6 -0
- data/templates/OSX/definition.rb +31 -0
- data/templates/OSX/fix_user_perms.sh +3 -0
- data/templates/OSX/postinstall.sh +28 -0
- data/templates/OSX/prepare_veewee_iso/prepare_veewee_iso.sh +281 -0
- data/templates/OSX/prepare_veewee_iso/support/10_8_AP_bomlist +34 -0
- data/templates/OSX/prepare_veewee_iso/support/OSInstall.collection +9 -0
- data/templates/OSX/prepare_veewee_iso/support/PartitionInfo.plist +0 -0
- data/templates/OSX/prepare_veewee_iso/support/com.vagrantup.veewee.plist +14 -0
- data/templates/OSX/prepare_veewee_iso/support/minstallconfig.xml +16 -0
- data/templates/OSX/prepare_veewee_iso/support/pkg-postinstall +25 -0
- data/templates/OSX/prepare_veewee_iso/support/shadowhash +1 -0
- data/templates/OSX/prepare_veewee_iso/support/vagrant.plist +804 -0
- data/templates/OSX/puppet.sh +18 -0
- data/templates/OSX/rvm.bash +17 -0
- data/templates/OSX/xcode-cli-tools.sh +19 -0
- data/templates/OracleLinux-5.9-i386-DVD/base.sh +26 -0
- data/templates/OracleLinux-5.9-i386-DVD/chef.sh +3 -0
- data/templates/OracleLinux-5.9-i386-DVD/cleanup.sh +8 -0
- data/templates/OracleLinux-5.9-i386-DVD/definition.rb +37 -0
- data/templates/OracleLinux-5.9-i386-DVD/ks.cfg +35 -0
- data/templates/OracleLinux-5.9-i386-DVD/proxy.sh +4 -0
- data/templates/OracleLinux-5.9-i386-DVD/puppet.sh +3 -0
- data/templates/OracleLinux-5.9-i386-DVD/ruby.sh +36 -0
- data/templates/OracleLinux-5.9-i386-DVD/vagrant.sh +21 -0
- data/templates/OracleLinux-5.9-i386-DVD/virtualbox.sh +8 -0
- data/templates/OracleLinux-5.9-i386-DVD/zerodisk.sh +3 -0
- data/templates/OracleLinux-5.9-x86_64-DVD/base.sh +26 -0
- data/templates/OracleLinux-5.9-x86_64-DVD/chef.sh +3 -0
- data/templates/OracleLinux-5.9-x86_64-DVD/cleanup.sh +8 -0
- data/templates/OracleLinux-5.9-x86_64-DVD/definition.rb +37 -0
- data/templates/OracleLinux-5.9-x86_64-DVD/ks.cfg +35 -0
- data/templates/OracleLinux-5.9-x86_64-DVD/proxy.sh +4 -0
- data/templates/OracleLinux-5.9-x86_64-DVD/puppet.sh +3 -0
- data/templates/OracleLinux-5.9-x86_64-DVD/ruby.sh +36 -0
- data/templates/OracleLinux-5.9-x86_64-DVD/vagrant.sh +21 -0
- data/templates/OracleLinux-5.9-x86_64-DVD/virtualbox.sh +8 -0
- data/templates/OracleLinux-5.9-x86_64-DVD/zerodisk.sh +3 -0
- data/templates/OracleLinux-6.3-x86_64-DVD/definition.rb +1 -0
- data/templates/OracleLinux-6.3-x86_64-DVD/nfs.sh +2 -0
- data/templates/OracleLinux-6.3-x86_64-DVD/puppet.sh +6 -0
- data/templates/OracleLinux-6.4-i386-DVD/base.sh +25 -0
- data/templates/OracleLinux-6.4-i386-DVD/chef.sh +3 -0
- data/templates/OracleLinux-6.4-i386-DVD/cleanup.sh +9 -0
- data/templates/OracleLinux-6.4-i386-DVD/definition.rb +39 -0
- data/templates/OracleLinux-6.4-i386-DVD/ks.cfg +36 -0
- data/templates/OracleLinux-6.4-i386-DVD/proxy.sh +4 -0
- data/templates/OracleLinux-6.4-i386-DVD/puppet.sh +10 -0
- data/templates/OracleLinux-6.4-i386-DVD/ruby.sh +5 -0
- data/templates/OracleLinux-6.4-i386-DVD/vagrant.sh +21 -0
- data/templates/OracleLinux-6.4-i386-DVD/virtualbox.sh +8 -0
- data/templates/OracleLinux-6.4-i386-DVD/zerodisk.sh +3 -0
- data/templates/OracleLinux-6.4-x86_64-DVD/base.sh +25 -0
- data/templates/OracleLinux-6.4-x86_64-DVD/chef.sh +3 -0
- data/templates/OracleLinux-6.4-x86_64-DVD/cleanup.sh +9 -0
- data/templates/OracleLinux-6.4-x86_64-DVD/definition.rb +39 -0
- data/templates/OracleLinux-6.4-x86_64-DVD/ks.cfg +36 -0
- data/templates/OracleLinux-6.4-x86_64-DVD/proxy.sh +4 -0
- data/templates/OracleLinux-6.4-x86_64-DVD/puppet.sh +10 -0
- data/templates/OracleLinux-6.4-x86_64-DVD/ruby.sh +5 -0
- data/templates/OracleLinux-6.4-x86_64-DVD/vagrant.sh +21 -0
- data/templates/OracleLinux-6.4-x86_64-DVD/virtualbox.sh +8 -0
- data/templates/OracleLinux-6.4-x86_64-DVD/zerodisk.sh +3 -0
- data/templates/SLES-11-SP2-DVD-x86_64-GM/autoinst.xml +2578 -0
- data/templates/SLES-11-SP2-DVD-x86_64-GM/definition.rb +33 -0
- data/templates/SLES-11-SP2-DVD-x86_64-GM/postinstall.sh +51 -0
- data/templates/VMware-ESXi-5.0u2-x86_64/definition.rb +26 -0
- data/templates/VMware-ESXi-5.0u2-x86_64/ks.cfg +63 -0
- data/templates/VMware-ESXi-5.0u2-x86_64/vagrant_key.py +6 -0
- data/templates/VMware-ESXi-5.0u2-x86_64/vnc_enable.sh +40 -0
- data/templates/VMware-ESXi-5.1-x86_64/definition.rb +27 -0
- data/templates/VMware-ESXi-5.1-x86_64/ks.cfg +63 -0
- data/templates/VMware-ESXi-5.1-x86_64/vagrant_key.py +6 -0
- data/templates/VMware-ESXi-5.1-x86_64/vnc_enable.sh +41 -0
- data/templates/archlinux-x86_64/README.md +51 -0
- data/templates/archlinux-x86_64/aur.sh +22 -0
- data/templates/archlinux-x86_64/base.sh +46 -0
- data/templates/archlinux-x86_64/basedevel.sh +6 -0
- data/templates/archlinux-x86_64/bootloader.sh +11 -0
- data/templates/archlinux-x86_64/chef.sh +31 -0
- data/templates/archlinux-x86_64/cleanup.sh +18 -0
- data/templates/archlinux-x86_64/definition.rb +57 -23
- data/templates/archlinux-x86_64/pacman.sh +28 -0
- data/templates/archlinux-x86_64/puppet.sh +22 -0
- data/templates/archlinux-x86_64/reboot.sh +22 -0
- data/templates/archlinux-x86_64/ruby.sh +27 -0
- data/templates/archlinux-x86_64/ssh.sh +18 -0
- data/templates/archlinux-x86_64/sudo.sh +12 -0
- data/templates/archlinux-x86_64/user.sh +11 -0
- data/templates/archlinux-x86_64/vagrant.sh +27 -0
- data/templates/archlinux-x86_64/virtualbox.sh +23 -0
- data/templates/archlinux-x86_64/zerodisk.sh +11 -0
- data/templates/freebsd-8.2-pcbsd-amd64/definition.rb +26 -0
- data/templates/freebsd-8.2-pcbsd-amd64/pcinstall.fbg.cfg +57 -0
- data/templates/freebsd-8.2-pcbsd-amd64/postinstall.sh +95 -0
- data/templates/freebsd-8.2-pcbsd-i386-netboot/pcinstall.fbg.cfg +2 -2
- data/templates/freebsd-8.2-pcbsd-i386-netboot/postinstall.sh +32 -30
- data/templates/freebsd-8.2-pcbsd-i386/pcinstall.fbg.cfg +1 -1
- data/templates/freebsd-8.2-pcbsd-i386/postinstall.sh +31 -29
- data/templates/freebsd-9.0-RELEASE-amd64/definition.rb +22 -9
- data/templates/freebsd-9.0-RELEASE-amd64/install.sh +103 -0
- data/templates/freebsd-9.0-RELEASE-amd64/postinstall.sh +72 -48
- data/templates/freebsd-9.1-RELEASE-amd64/definition.rb +32 -0
- data/templates/freebsd-9.1-RELEASE-amd64/install.sh +95 -0
- data/templates/freebsd-9.1-RELEASE-amd64/postinstall.csh +136 -0
- data/templates/funtoo-latest-x86_64/definition.rb +8 -6
- data/templates/funtoo-latest-x86_64/postinstall.sh +16 -0
- data/templates/gentoo-latest-amd64/base.sh +89 -0
- data/templates/gentoo-latest-amd64/chef.sh +7 -0
- data/templates/gentoo-latest-amd64/cleanup.sh +23 -0
- data/templates/gentoo-latest-amd64/cron.sh +8 -0
- data/templates/gentoo-latest-amd64/definition.rb +59 -0
- data/templates/gentoo-latest-amd64/grub.sh +23 -0
- data/templates/gentoo-latest-amd64/kernel.sh +109 -0
- data/templates/gentoo-latest-amd64/nfs.sh +11 -0
- data/templates/gentoo-latest-amd64/puppet.sh +7 -0
- data/templates/gentoo-latest-amd64/reboot.sh +4 -0
- data/templates/gentoo-latest-amd64/ruby.sh +17 -0
- data/templates/gentoo-latest-amd64/settings.sh +37 -0
- data/templates/gentoo-latest-amd64/syslog.sh +8 -0
- data/templates/gentoo-latest-amd64/vagrant.sh +57 -0
- data/templates/gentoo-latest-amd64/virtualbox.sh +23 -0
- data/templates/gentoo-latest-amd64/zerodisk.sh +15 -0
- data/templates/gentoo-latest-i686/base.sh +84 -0
- data/templates/gentoo-latest-i686/chef.sh +7 -0
- data/templates/gentoo-latest-i686/cleanup.sh +23 -0
- data/templates/gentoo-latest-i686/cron.sh +8 -0
- data/templates/gentoo-latest-i686/definition.rb +61 -0
- data/templates/gentoo-latest-i686/grub.sh +24 -0
- data/templates/gentoo-latest-i686/kernel.sh +109 -0
- data/templates/gentoo-latest-i686/nfs.sh +11 -0
- data/templates/gentoo-latest-i686/puppet.sh +7 -0
- data/templates/gentoo-latest-i686/reboot.sh +4 -0
- data/templates/gentoo-latest-i686/ruby_portage.sh +17 -0
- data/templates/gentoo-latest-i686/ruby_source.sh +15 -0
- data/templates/gentoo-latest-i686/settings.sh +40 -0
- data/templates/gentoo-latest-i686/syslog.sh +8 -0
- data/templates/gentoo-latest-i686/vagrant.sh +57 -0
- data/templates/gentoo-latest-i686/virtualbox.sh +18 -0
- data/templates/gentoo-latest-i686/zerodisk.sh +15 -0
- data/templates/nixos-minimal-0.2-i686/configuration.nix +39 -0
- data/templates/nixos-minimal-0.2-i686/definition.rb +50 -0
- data/templates/nixos-minimal-0.2-i686/postinstall.sh +28 -0
- data/templates/openSUSE-12.3-x86_64-NET_EN/README.md +5 -0
- data/templates/openSUSE-12.3-x86_64-NET_EN/autoinst.xml +211 -0
- data/templates/openSUSE-12.3-x86_64-NET_EN/definition.rb +37 -0
- data/templates/openSUSE-12.3-x86_64-NET_EN/postinstall.sh +37 -0
- data/templates/openSUSE-12.3-x86_64-NET_EN/virtualbox.sh +16 -0
- data/templates/openbsd50_amd64/definition.rb +1 -1
- data/templates/openbsd50_i386/definition.rb +1 -1
- data/templates/openbsd52_amd64/definition.rb +1 -1
- data/templates/openbsd52_i386/definition.rb +3 -7
- data/templates/openbsd52_i386_snap/README +28 -0
- data/templates/openbsd52_i386_snap/definition.rb +81 -0
- data/templates/openbsd52_i386_snap/postinstall.sh +81 -0
- data/templates/openbsd53_amd64/README +28 -0
- data/templates/openbsd53_amd64/base.sh +40 -0
- data/templates/openbsd53_amd64/chef.sh +2 -0
- data/templates/openbsd53_amd64/definition.rb +91 -0
- data/templates/openbsd53_amd64/puppet.sh +3 -0
- data/templates/openbsd53_amd64/ruby.sh +14 -0
- data/templates/openbsd53_amd64/vagrant.sh +27 -0
- data/templates/openbsd53_i386/README +28 -0
- data/templates/openbsd53_i386/base.sh +40 -0
- data/templates/openbsd53_i386/chef.sh +2 -0
- data/templates/openbsd53_i386/definition.rb +91 -0
- data/templates/openbsd53_i386/puppet.sh +3 -0
- data/templates/openbsd53_i386/ruby.sh +14 -0
- data/templates/openbsd53_i386/vagrant.sh +27 -0
- data/templates/openindiana-151a7-text-x86/auto_install/ai.dtd +58 -0
- data/templates/openindiana-151a7-text-x86/auto_install/ai_manifest.xml +241 -0
- data/templates/openindiana-151a7-text-x86/auto_install/configuration.dtd +44 -0
- data/templates/openindiana-151a7-text-x86/auto_install/default.xml +121 -0
- data/templates/openindiana-151a7-text-x86/auto_install/default.xml.orig +124 -0
- data/templates/openindiana-151a7-text-x86/auto_install/sc_profiles/static_network.xml +105 -0
- data/templates/openindiana-151a7-text-x86/auto_install/software.dtd +105 -0
- data/templates/openindiana-151a7-text-x86/auto_install/target.dtd +196 -0
- data/templates/openindiana-151a7-text-x86/default.xml +121 -0
- data/templates/openindiana-151a7-text-x86/definition.rb +56 -0
- data/templates/openindiana-151a7-text-x86/postinstall.sh +103 -0
- data/templates/scientificlinux-5.7-i386/definition.rb +16 -0
- data/templates/scientificlinux-5.7-i386/ks.cfg +75 -0
- data/templates/scientificlinux-5.7-i386/postinstall.sh +39 -0
- data/templates/scientificlinux-5.7-x86_64/definition.rb +16 -0
- data/templates/scientificlinux-5.7-x86_64/ks.cfg +75 -0
- data/templates/scientificlinux-5.7-x86_64/postinstall.sh +39 -0
- data/templates/scientificlinux-5.9-i386/definition.rb +16 -0
- data/templates/scientificlinux-5.9-i386/ks.cfg +75 -0
- data/templates/scientificlinux-5.9-i386/postinstall.sh +39 -0
- data/templates/scientificlinux-5.9-x86_64/definition.rb +16 -0
- data/templates/scientificlinux-5.9-x86_64/ks.cfg +75 -0
- data/templates/scientificlinux-5.9-x86_64/postinstall.sh +39 -0
- data/templates/scientificlinux-6.4-i386-netboot/base.sh +14 -0
- data/templates/scientificlinux-6.4-i386-netboot/cfengine.sh +69 -0
- data/templates/scientificlinux-6.4-i386-netboot/chef.sh +3 -0
- data/templates/scientificlinux-6.4-i386-netboot/cleanup.sh +5 -0
- data/templates/scientificlinux-6.4-i386-netboot/definition.rb +40 -0
- data/templates/scientificlinux-6.4-i386-netboot/ks.cfg +41 -0
- data/templates/scientificlinux-6.4-i386-netboot/puppet.sh +18 -0
- data/templates/scientificlinux-6.4-i386-netboot/ruby.sh +3 -0
- data/templates/scientificlinux-6.4-i386-netboot/vagrant.sh +18 -0
- data/templates/scientificlinux-6.4-i386-netboot/virtualbox.sh +8 -0
- data/templates/scientificlinux-6.4-i386-netboot/zerodisk.sh +3 -0
- data/templates/scientificlinux-6.4-x86_64-netboot/base.sh +14 -0
- data/templates/scientificlinux-6.4-x86_64-netboot/cfengine.sh +69 -0
- data/templates/scientificlinux-6.4-x86_64-netboot/chef.sh +3 -0
- data/templates/scientificlinux-6.4-x86_64-netboot/cleanup.sh +5 -0
- data/templates/scientificlinux-6.4-x86_64-netboot/definition.rb +40 -0
- data/templates/scientificlinux-6.4-x86_64-netboot/ks.cfg +41 -0
- data/templates/scientificlinux-6.4-x86_64-netboot/puppet.sh +18 -0
- data/templates/scientificlinux-6.4-x86_64-netboot/ruby.sh +3 -0
- data/templates/scientificlinux-6.4-x86_64-netboot/vagrant.sh +18 -0
- data/templates/scientificlinux-6.4-x86_64-netboot/virtualbox.sh +8 -0
- data/templates/scientificlinux-6.4-x86_64-netboot/zerodisk.sh +3 -0
- data/templates/solaris-10-ga-x86/README.md +39 -0
- data/templates/solaris-10-ga-x86/chef.sh +10 -0
- data/templates/solaris-10-ga-x86/cleanup.sh +18 -0
- data/templates/solaris-10-ga-x86/definition.rb +39 -0
- data/templates/solaris-10-ga-x86/jumpstart/begin +28 -0
- data/templates/solaris-10-ga-x86/jumpstart/finish +35 -0
- data/templates/solaris-10-ga-x86/jumpstart/profile +41 -0
- data/templates/solaris-10-ga-x86/jumpstart/rules +96 -0
- data/templates/solaris-10-ga-x86/jumpstart/rules.ok +2 -0
- data/templates/solaris-10-ga-x86/jumpstart/sysidcfg +16 -0
- data/templates/solaris-10-ga-x86/postinstall.sh +90 -0
- data/templates/solaris-10-ga-x86/puppet.sh +4 -0
- data/templates/solaris-10-ga-x86/update-terminfo.sh +84 -0
- data/templates/ubuntu-10.04.4-server-amd64-netboot/base.sh +24 -0
- data/templates/ubuntu-10.04.4-server-amd64-netboot/chef.sh +2 -0
- data/templates/ubuntu-10.04.4-server-amd64-netboot/cleanup.sh +22 -0
- data/templates/ubuntu-10.04.4-server-amd64-netboot/definition.rb +44 -0
- data/templates/ubuntu-10.04.4-server-amd64-netboot/preseed.cfg +89 -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 +24 -0
- data/templates/ubuntu-10.04.4-server-amd64-netboot/vagrant.sh +14 -0
- data/templates/ubuntu-10.04.4-server-amd64-netboot/virtualbox.sh +10 -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 +3 -0
- data/templates/ubuntu-10.04.4-server-amd64/base.sh +24 -0
- data/templates/ubuntu-10.04.4-server-amd64/chef.sh +2 -0
- data/templates/ubuntu-10.04.4-server-amd64/cleanup.sh +22 -0
- data/templates/ubuntu-10.04.4-server-amd64/definition.rb +29 -8
- data/templates/ubuntu-10.04.4-server-amd64/puppet.sh +7 -0
- data/templates/ubuntu-10.04.4-server-amd64/ruby.sh +24 -0
- data/templates/ubuntu-10.04.4-server-amd64/vagrant.sh +14 -0
- data/templates/ubuntu-10.04.4-server-amd64/virtualbox.sh +10 -0
- data/templates/ubuntu-10.04.4-server-amd64/vmfusion.sh +7 -0
- data/templates/ubuntu-10.04.4-server-amd64/zerodisk.sh +3 -0
- data/templates/ubuntu-10.04.4-server-i386-netboot/base.sh +24 -0
- data/templates/ubuntu-10.04.4-server-i386-netboot/chef.sh +2 -0
- data/templates/ubuntu-10.04.4-server-i386-netboot/cleanup.sh +22 -0
- data/templates/ubuntu-10.04.4-server-i386-netboot/definition.rb +44 -0
- data/templates/ubuntu-10.04.4-server-i386-netboot/preseed.cfg +89 -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 +24 -0
- data/templates/ubuntu-10.04.4-server-i386-netboot/vagrant.sh +14 -0
- data/templates/ubuntu-10.04.4-server-i386-netboot/virtualbox.sh +10 -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 +3 -0
- data/templates/ubuntu-10.04.4-server-i386/base.sh +24 -0
- data/templates/ubuntu-10.04.4-server-i386/chef.sh +2 -0
- data/templates/ubuntu-10.04.4-server-i386/cleanup.sh +22 -0
- data/templates/ubuntu-10.04.4-server-i386/definition.rb +28 -7
- data/templates/ubuntu-10.04.4-server-i386/puppet.sh +7 -0
- data/templates/ubuntu-10.04.4-server-i386/ruby.sh +24 -0
- data/templates/ubuntu-10.04.4-server-i386/vagrant.sh +14 -0
- data/templates/ubuntu-10.04.4-server-i386/virtualbox.sh +10 -0
- data/templates/ubuntu-10.04.4-server-i386/vmfusion.sh +7 -0
- data/templates/ubuntu-10.04.4-server-i386/zerodisk.sh +3 -0
- data/templates/ubuntu-10.10-server-amd64/base.sh +5 -2
- data/templates/ubuntu-10.10-server-amd64/cleanup.sh +1 -1
- data/templates/ubuntu-10.10-server-amd64/definition.rb +61 -35
- data/templates/ubuntu-10.10-server-amd64/preseed.cfg +1 -1
- data/templates/ubuntu-10.10-server-amd64/ruby.sh +6 -6
- data/templates/ubuntu-10.10-server-amd64/vagrant.sh +1 -1
- data/templates/ubuntu-11.04-server-amd64/definition.rb +1 -1
- data/templates/ubuntu-12.04.1-server-amd64-packages/postinstall.sh +2 -2
- data/templates/ubuntu-12.04.1-server-amd64/postinstall.sh +2 -2
- data/templates/ubuntu-12.04.1-server-i386-packages/postinstall.sh +1 -1
- data/templates/ubuntu-12.04.1-server-i386/postinstall.sh +1 -1
- data/templates/ubuntu-12.04.2-desktop-amd64/definition.rb +36 -0
- data/templates/ubuntu-12.04.2-desktop-amd64/postinstall.sh +106 -0
- data/templates/ubuntu-12.04.2-desktop-amd64/preseed.cfg +86 -0
- data/templates/ubuntu-12.04.2-server-amd64-netboot/definition.rb +36 -0
- data/templates/{ubuntu-10.04.4-server-i386 → ubuntu-12.04.2-server-amd64-netboot}/postinstall.sh +25 -21
- data/templates/ubuntu-12.04.2-server-amd64-netboot/preseed.cfg +99 -0
- data/templates/ubuntu-12.04.2-server-amd64-packages/definition.rb +35 -0
- data/templates/{ubuntu-12.10-server-i386-packages → ubuntu-12.04.2-server-amd64-packages}/postinstall.sh +14 -11
- data/templates/ubuntu-12.04.2-server-amd64-packages/preseed.cfg +87 -0
- data/templates/ubuntu-12.04.2-server-amd64/base.sh +20 -0
- data/templates/ubuntu-12.04.2-server-amd64/chef.sh +2 -0
- data/templates/ubuntu-12.04.2-server-amd64/cleanup.sh +23 -0
- data/templates/ubuntu-12.04.2-server-amd64/definition.rb +45 -0
- data/templates/ubuntu-12.04.2-server-amd64/preseed.cfg +87 -0
- data/templates/ubuntu-12.04.2-server-amd64/puppet.sh +7 -0
- data/templates/ubuntu-12.04.2-server-amd64/ruby.sh +26 -0
- data/templates/ubuntu-12.04.2-server-amd64/vagrant.sh +12 -0
- data/templates/ubuntu-12.04.2-server-amd64/virtualbox.sh +18 -0
- data/templates/ubuntu-12.04.2-server-amd64/vmfusion.sh +7 -0
- data/templates/ubuntu-12.04.2-server-amd64/vmtools.sh +33 -0
- data/templates/ubuntu-12.04.2-server-amd64/zerodisk.sh +3 -0
- data/templates/ubuntu-12.04.2-server-i386-netboot/definition.rb +36 -0
- data/templates/{ubuntu-10.04.4-server-amd64 → ubuntu-12.04.2-server-i386-netboot}/postinstall.sh +25 -30
- data/templates/ubuntu-12.04.2-server-i386-netboot/preseed.cfg +99 -0
- data/templates/ubuntu-12.04.2-server-i386-packages/definition.rb +35 -0
- data/templates/{ubuntu-12.10-server-amd64-packages → ubuntu-12.04.2-server-i386-packages}/postinstall.sh +5 -5
- data/templates/ubuntu-12.04.2-server-i386-packages/preseed.cfg +87 -0
- data/templates/ubuntu-12.04.2-server-i386/definition.rb +35 -0
- data/templates/ubuntu-12.04.2-server-i386/postinstall.sh +96 -0
- data/templates/ubuntu-12.04.2-server-i386/preseed.cfg +87 -0
- data/templates/ubuntu-12.04.3-desktop-i386/README.md +51 -0
- data/templates/ubuntu-12.04.3-desktop-i386/apt.sh +8 -0
- data/templates/ubuntu-12.04.3-desktop-i386/build_time.sh +1 -0
- data/templates/ubuntu-12.04.3-desktop-i386/chef.sh +3 -0
- data/templates/ubuntu-12.04.3-desktop-i386/cleanup.sh +16 -0
- data/templates/ubuntu-12.04.3-desktop-i386/definition.rb +57 -0
- data/templates/ubuntu-12.04.3-desktop-i386/preseed.cfg +106 -0
- data/templates/ubuntu-12.04.3-desktop-i386/puppet.sh +4 -0
- data/templates/ubuntu-12.04.3-desktop-i386/ruby.sh +25 -0
- data/templates/ubuntu-12.04.3-desktop-i386/sudo.sh +5 -0
- data/templates/ubuntu-12.04.3-desktop-i386/vagrant.sh +6 -0
- data/templates/ubuntu-12.04.3-desktop-i386/vbox.sh +18 -0
- data/templates/ubuntu-12.04.3-server-amd64/base.sh +20 -0
- data/templates/ubuntu-12.04.3-server-amd64/chef.sh +2 -0
- data/templates/ubuntu-12.04.3-server-amd64/cleanup.sh +23 -0
- data/templates/ubuntu-12.04.3-server-amd64/definition.rb +45 -0
- data/templates/ubuntu-12.04.3-server-amd64/preseed.cfg +87 -0
- data/templates/ubuntu-12.04.3-server-amd64/puppet.sh +7 -0
- data/templates/ubuntu-12.04.3-server-amd64/ruby.sh +26 -0
- data/templates/ubuntu-12.04.3-server-amd64/vagrant.sh +12 -0
- data/templates/ubuntu-12.04.3-server-amd64/virtualbox.sh +18 -0
- data/templates/ubuntu-12.04.3-server-amd64/vmfusion.sh +7 -0
- data/templates/ubuntu-12.04.3-server-amd64/vmtools.sh +33 -0
- data/templates/ubuntu-12.04.3-server-amd64/zerodisk.sh +3 -0
- data/templates/ubuntu-12.04.3-server-i386/apt.sh +7 -0
- data/templates/ubuntu-12.04.3-server-i386/build_time.sh +1 -0
- data/templates/ubuntu-12.04.3-server-i386/chef.sh +3 -0
- data/templates/ubuntu-12.04.3-server-i386/cleanup.sh +16 -0
- data/templates/ubuntu-12.04.3-server-i386/definition.rb +45 -0
- data/templates/ubuntu-12.04.3-server-i386/preseed.cfg +61 -0
- data/templates/ubuntu-12.04.3-server-i386/puppet.sh +4 -0
- data/templates/ubuntu-12.04.3-server-i386/ruby.sh +25 -0
- data/templates/ubuntu-12.04.3-server-i386/sudo.sh +5 -0
- data/templates/ubuntu-12.04.3-server-i386/vagrant.sh +6 -0
- data/templates/ubuntu-12.04.3-server-i386/vbox.sh +18 -0
- data/templates/ubuntu-12.10-desktop-amd64/definition.rb +40 -0
- data/templates/ubuntu-12.10-desktop-amd64/postinstall.sh +106 -0
- data/templates/ubuntu-12.10-desktop-amd64/preseed.cfg +86 -0
- data/templates/ubuntu-12.10-server-amd64-packages/base.sh +20 -0
- data/templates/ubuntu-12.10-server-amd64-packages/chef.sh +49 -0
- data/templates/ubuntu-12.10-server-amd64-packages/cleanup.sh +25 -0
- data/templates/ubuntu-12.10-server-amd64-packages/definition.rb +11 -2
- data/templates/ubuntu-12.10-server-amd64-packages/puppet.sh +15 -0
- data/templates/ubuntu-12.10-server-amd64-packages/ruby.sh +7 -0
- data/templates/ubuntu-12.10-server-amd64-packages/vagrant.sh +27 -0
- data/templates/ubuntu-12.10-server-amd64-packages/virtualbox.sh +15 -0
- data/templates/ubuntu-12.10-server-amd64-packages/zerodisk.sh +11 -0
- data/templates/ubuntu-12.10-server-amd64/postinstall.sh +1 -1
- data/templates/ubuntu-12.10-server-i386-packages/base.sh +20 -0
- data/templates/ubuntu-12.10-server-i386-packages/chef.sh +49 -0
- data/templates/ubuntu-12.10-server-i386-packages/cleanup.sh +25 -0
- data/templates/ubuntu-12.10-server-i386-packages/definition.rb +11 -2
- data/templates/ubuntu-12.10-server-i386-packages/puppet.sh +15 -0
- data/templates/ubuntu-12.10-server-i386-packages/ruby.sh +7 -0
- data/templates/ubuntu-12.10-server-i386-packages/vagrant.sh +27 -0
- data/templates/ubuntu-12.10-server-i386-packages/virtualbox.sh +15 -0
- data/templates/ubuntu-12.10-server-i386-packages/zerodisk.sh +11 -0
- data/templates/ubuntu-12.10-server-i386/postinstall.sh +1 -1
- data/templates/ubuntu-13.04-server-amd64-rvm/apt.sh +8 -0
- data/templates/ubuntu-13.04-server-amd64-rvm/build_time.sh +1 -0
- data/templates/ubuntu-13.04-server-amd64-rvm/chef.sh +1 -0
- data/templates/ubuntu-13.04-server-amd64-rvm/cleanup.sh +16 -0
- data/templates/ubuntu-13.04-server-amd64-rvm/definition.rb +45 -0
- data/templates/ubuntu-13.04-server-amd64-rvm/preseed.cfg +61 -0
- data/templates/ubuntu-13.04-server-amd64-rvm/puppet.sh +1 -0
- data/templates/ubuntu-13.04-server-amd64-rvm/rvm.sh +7 -0
- data/templates/ubuntu-13.04-server-amd64-rvm/sudo.sh +5 -0
- data/templates/ubuntu-13.04-server-amd64-rvm/vagrant.sh +6 -0
- data/templates/ubuntu-13.04-server-amd64-rvm/vbox.sh +18 -0
- data/templates/ubuntu-13.04-server-amd64/apt.sh +7 -0
- data/templates/ubuntu-13.04-server-amd64/build_time.sh +1 -0
- data/templates/ubuntu-13.04-server-amd64/chef.sh +3 -0
- data/templates/ubuntu-13.04-server-amd64/cleanup.sh +16 -0
- data/templates/ubuntu-13.04-server-amd64/definition.rb +45 -0
- data/templates/ubuntu-13.04-server-amd64/preseed.cfg +61 -0
- data/templates/ubuntu-13.04-server-amd64/puppet.sh +4 -0
- data/templates/ubuntu-13.04-server-amd64/ruby.sh +25 -0
- data/templates/ubuntu-13.04-server-amd64/sudo.sh +5 -0
- data/templates/ubuntu-13.04-server-amd64/vagrant.sh +6 -0
- data/templates/ubuntu-13.04-server-amd64/vbox.sh +18 -0
- data/templates/ubuntu-8.04.4-server-amd64/preseed.cfg +7 -7
- data/templates/ubuntu-8.04.4-server-i386/preseed.cfg +7 -7
- data/templates/windows-2008R1-serverstandard-amd64/Autounattend.xml +1 -0
- data/templates/windows-2008R1-serverweb-amd64/Autounattend.xml +1 -0
- data/templates/windows-2008R1-serverweb-amd64/install-cygwin-sshd.bat +1 -1
- data/templates/windows-2008R1-serverweb-i386/Autounattend.xml +6 -2
- data/templates/windows-2008R1-serverweb-i386/install-cygwin-sshd.bat +1 -1
- data/templates/windows-2008R1-serverwebcore-amd64/Autounattend.xml +1 -0
- data/templates/windows-2008R2-amd64/Autounattend.xml +4 -3
- data/templates/windows-2008R2-amd64/win7/Autounattend.xml +5 -3
- data/templates/windows-2008R2-serverstandard-amd64-winrm/Autounattend.xml +17 -12
- data/templates/windows-2008R2-serverstandard-amd64-winrm/install-vbox.bat +0 -2
- data/templates/windows-2008R2-serverstandard-amd64/Autounattend.xml +4 -5
- data/templates/windows-2008R2-serverstandard-amd64/definition.rb +3 -3
- data/templates/windows-2008R2-serverstandard-amd64/install-cygwin-sshd.bat +3 -2
- data/templates/windows-2008R2-serverweb-amd64/Autounattend.xml +4 -1
- data/templates/windows-2008R2-serverweb-amd64/install-cygwin-sshd.bat +1 -1
- data/templates/windows-2012-serverstandard-amd64/Autounattend.xml +235 -0
- data/templates/windows-2012-serverstandard-amd64/README.md +68 -0
- data/templates/windows-2012-serverstandard-amd64/definition.rb +29 -0
- data/templates/windows-2012-serverstandard-amd64/install-chef.bat +37 -0
- data/templates/windows-2012-serverstandard-amd64/install-puppet.bat +37 -0
- data/templates/windows-2012-serverstandard-amd64/install-vbox.bat +4 -0
- data/templates/windows-2012-serverstandard-amd64/oracle-cert.cer +0 -0
- data/templates/windows-2012R2-serverdatacenter-amd64/Autounattend.xml +235 -0
- data/templates/windows-2012R2-serverdatacenter-amd64/README.md +68 -0
- data/templates/windows-2012R2-serverdatacenter-amd64/definition.rb +33 -0
- data/templates/windows-2012R2-serverdatacenter-amd64/install-chef.bat +37 -0
- data/templates/windows-2012R2-serverdatacenter-amd64/install-puppet.bat +37 -0
- data/templates/windows-2012R2-serverdatacenter-amd64/install-vbox.bat +4 -0
- data/templates/windows-2012R2-serverdatacenter-amd64/oracle-cert.cer +0 -0
- data/templates/windows-7-enterprise-amd64-winrm/Autounattend.xml +17 -10
- data/templates/windows-7-enterprise-amd64/Autounattend.xml +4 -3
- data/templates/windows-7-enterprise-amd64/install-cygwin-sshd.bat +1 -1
- data/templates/windows-7-enterprise-i386/Autounattend.xml +4 -3
- data/templates/windows-7-enterprise-i386/install-cygwin-sshd.bat +1 -1
- data/templates/windows-7-premium-amd64/Autounattend.xml +4 -4
- data/templates/windows-7-professional-amd64/Autounattend.xml +4 -4
- data/templates/windows-7-professional-amd64/install-cygwin-sshd.bat +1 -1
- data/templates/windows-7-professional-amd64/postinstall.sh +2 -2
- data/templates/windows-7-ultimate-amd64/Autounattend.xml +4 -4
- data/templates/windows-7-ultimate-amd64/install-cygwin-sshd.bat +1 -1
- data/templates/windows-7sp1-ultimate-amd64/Autounattend.xml +4 -3
- data/templates/windows-7sp1-ultimate-amd64/install-cygwin-sshd.bat +2 -2
- data/test/build_realtest.rb +15 -5
- data/test/environment_test.rb +2 -1
- data/veewee.gemspec +6 -4
- metadata +689 -87
- data/doc/README-changes.txt +0 -20
- data/doc/TODO +0 -60
- data/doc/definition.md +0 -83
- data/doc/install.md +0 -16
- data/doc/running.md +0 -83
- data/doc/template.md +0 -153
- data/lib/veewee/provider/vmfusion/box/export_ova.rb +0 -49
- data/templates/Debian-5.0.10-amd64-netboot/postinstall.sh +0 -60
- data/templates/Debian-5.0.10-i386-netboot/postinstall.sh +0 -60
- data/templates/Debian-5.0.8-amd64-netboot/postinstall.sh +0 -60
- data/templates/Debian-5.0.8-i386-netboot/postinstall.sh +0 -60
- data/templates/Debian-7.0-b4-amd64-netboot/puppet.sh +0 -2
- data/templates/Debian-7.0-b4-i386-netboot/puppet.sh +0 -2
- data/templates/Fedora-18-i386/postinstall.sh +0 -40
- data/templates/Fedora-18-x86_64/postinstall.sh +0 -43
- data/templates/archlinux-i386-netboot/aif.cfg +0 -28
- data/templates/archlinux-i386-netboot/definition.rb +0 -26
- data/templates/archlinux-i386-netboot/postinstall.sh +0 -75
- data/templates/archlinux-i386-netboot/postinstall2.sh +0 -30
- data/templates/archlinux-x86_64-netboot/aif.cfg +0 -28
- data/templates/archlinux-x86_64-netboot/definition.rb +0 -26
- data/templates/archlinux-x86_64-netboot/postinstall.sh +0 -75
- data/templates/archlinux-x86_64-netboot/postinstall2.sh +0 -30
- data/templates/archlinux-x86_64/aif.cfg +0 -33
- data/templates/archlinux-x86_64/postinstall.sh +0 -90
- data/templates/archlinux-x86_64/postinstall2.sh +0 -38
- data/templates/gentoo-latest-i386-experimental/definition.rb +0 -45
- data/templates/gentoo-latest-i386-experimental/postinstall.sh +0 -184
- data/templates/gentoo-latest-x86_64-experimental/definition.rb +0 -45
- data/templates/gentoo-latest-x86_64-experimental/postinstall.sh +0 -214
- data/validation/features/steps/ssh_steps.old +0 -170
- data/validation/features/steps/veewee_steps.rb +0 -27
- data/validation/support/env.rb +0 -1
- data/validation/veewee-windows.feature +0 -34
- data/validation/veewee.feature +0 -45
@@ -7,6 +7,14 @@ module Veewee
|
|
7
7
|
def wincp(localfile,remotefile,options={})
|
8
8
|
raise Veewee::Error,"Box is not running" unless self.running?
|
9
9
|
|
10
|
+
if self.exec("cmd.exe /C dir #{wget_vbs_file} > NUL",{:exitcode=>"*"}).status != 0
|
11
|
+
env.ui.warn "Creating wget.vbs"
|
12
|
+
create_wget_vbs_command do |command_chunk, chunk_num|
|
13
|
+
self.exec("cmd.exe /C echo \"Rendering '#{wget_vbs_file}' chunk #{chunk_num}\" && #{command_chunk}")
|
14
|
+
end
|
15
|
+
end
|
16
|
+
|
17
|
+
|
10
18
|
# Calculate an available kickstart port which we will use for wincp
|
11
19
|
definition.kickstart_port = "7000" if definition.kickstart_port.nil?
|
12
20
|
guessed_port=guess_free_port(definition.kickstart_port.to_i,7199).to_s
|
@@ -15,14 +23,6 @@ module Veewee
|
|
15
23
|
definition.kickstart_port=guessed_port.to_s
|
16
24
|
end
|
17
25
|
|
18
|
-
if self.exec("cmd.exe /C dir #{wget_vbs_file} > %TEMP%\\null",{:exitcode=>"*"}).status != 0
|
19
|
-
env.ui.warn "Creating wget.vbs"
|
20
|
-
create_wget_vbs_command do |command_chunk, chunk_num|
|
21
|
-
self.exec("cmd.exe /C echo \"Rendering '#{wget_vbs_file}' chunk #{chunk_num}\" && #{command_chunk}")
|
22
|
-
end
|
23
|
-
end
|
24
|
-
|
25
|
-
|
26
26
|
env.ui.warn "Spinning up a wait_for_http_request on http://#{host_ip_as_seen_by_guest}:#{definition.kickstart_port}#{localfile}"
|
27
27
|
webthread=allow_for_http_request(localfile,{
|
28
28
|
:port => definition.kickstart_port,
|
@@ -8,6 +8,7 @@ module Veewee
|
|
8
8
|
require 'progressbar'
|
9
9
|
require 'highline/import'
|
10
10
|
require 'digest/md5'
|
11
|
+
require 'digest/sha1'
|
11
12
|
|
12
13
|
def download_iso(url,filename)
|
13
14
|
if !File.exists?(env.config.veewee.iso_dir)
|
@@ -27,7 +28,8 @@ module Veewee
|
|
27
28
|
|
28
29
|
def download_progress(url,localfile)
|
29
30
|
pbar = nil
|
30
|
-
URI.parse(url)
|
31
|
+
uri = URI.parse(url)
|
32
|
+
uri.open(
|
31
33
|
:content_length_proc => lambda {|t|
|
32
34
|
if t && 0 < t
|
33
35
|
pbar = ProgressBar.new("Fetching file", t)
|
@@ -36,7 +38,10 @@ module Veewee
|
|
36
38
|
},
|
37
39
|
:progress_proc => lambda {|s|
|
38
40
|
pbar.set s if pbar
|
39
|
-
}
|
41
|
+
},
|
42
|
+
#consider proxy env vars only if host is not excluded
|
43
|
+
:proxy => !no_proxy?(uri.host)
|
44
|
+
) { |src|
|
40
45
|
# We assume large 10K files, so this is tempfile object
|
41
46
|
env.logger.info "#{src.class}"
|
42
47
|
ui.info "Moving #{src.path} to #{localfile}"
|
@@ -50,9 +55,26 @@ module Veewee
|
|
50
55
|
}
|
51
56
|
end
|
52
57
|
|
58
|
+
#return true if host is excluded from proxy via no_proxy env var, false otherwise
|
59
|
+
def no_proxy? host
|
60
|
+
@no_proxy ||= (ENV['NO_PROXY'] || ENV['no_proxy'] || 'localhost, 127.0.0.1').split(/\s*,\s*/)
|
61
|
+
@no_proxy.each do |host_addr|
|
62
|
+
return true if host.match(Regexp.quote(host_addr)+'$')
|
63
|
+
end
|
64
|
+
return false
|
65
|
+
end
|
66
|
+
|
53
67
|
# Compute hash code
|
54
|
-
def hashsum(filename)
|
55
|
-
|
68
|
+
def hashsum(filename,type)
|
69
|
+
case type
|
70
|
+
when :md5
|
71
|
+
checksum=Digest::MD5.new
|
72
|
+
when :sha1
|
73
|
+
checksum=Digest::SHA1.new
|
74
|
+
else
|
75
|
+
raise Veewee::Error, "Unknown checksum type #{type}"
|
76
|
+
end
|
77
|
+
|
56
78
|
buflen=1024
|
57
79
|
open(filename, "rb") do |io|
|
58
80
|
counter = 0
|
@@ -65,15 +87,16 @@ module Veewee
|
|
65
87
|
return checksum.hexdigest
|
66
88
|
end
|
67
89
|
|
68
|
-
def
|
90
|
+
def verify_sum(full_path,type)
|
69
91
|
filename = File.basename(full_path)
|
70
|
-
|
71
|
-
|
72
|
-
|
73
|
-
|
74
|
-
|
75
|
-
ui.error "
|
76
|
-
|
92
|
+
required_sum = self.instance_variable_get('@iso_'+type.to_s)
|
93
|
+
ui.info "Verifying #{type} checksum : #{self.required_sum}"
|
94
|
+
file_sum = hashsum(full_path,type)
|
95
|
+
|
96
|
+
unless file_sum == required_sum
|
97
|
+
ui.error "The #{type} checksum for file #{filename } do not match: "
|
98
|
+
ui.error "- #{file_sum} (current) vs #{required_sum} (specified)"
|
99
|
+
raise Veewee::Error, "The #{type} checksum for file #{filename } do not match: \n"+ "- #{file_sum} (current) vs #{required_sum} (specified)"
|
77
100
|
end
|
78
101
|
end
|
79
102
|
|
@@ -95,7 +118,8 @@ module Veewee
|
|
95
118
|
unless "#{self.iso_src}"==""
|
96
119
|
ui.info "- Download url: #{self.iso_src}"
|
97
120
|
end
|
98
|
-
ui.info "- Md5 Checksum: #{self.iso_md5}"
|
121
|
+
ui.info "- Md5 Checksum: #{self.iso_md5}" if self.iso_md5
|
122
|
+
ui.info "- Sha1 Checksum: #{self.iso_sha1}" if self.iso_sha1
|
99
123
|
ui.info "#{self.iso_download_instructions}"
|
100
124
|
ui.info ""
|
101
125
|
|
@@ -125,7 +149,8 @@ module Veewee
|
|
125
149
|
else
|
126
150
|
ui.info "You have selected manual download: "
|
127
151
|
ui.info "curl -C - -L '#{self.iso_src}' -o '#{rel_path}'"
|
128
|
-
ui.info "md5 '#{rel_path}' "
|
152
|
+
ui.info "md5 '#{rel_path}' " if self.iso_md5
|
153
|
+
ui.info "shasum '#{rel_path}' " if self.iso_sha1
|
129
154
|
ui.info ""
|
130
155
|
exit
|
131
156
|
end
|
@@ -138,7 +163,8 @@ module Veewee
|
|
138
163
|
|
139
164
|
end
|
140
165
|
|
141
|
-
|
166
|
+
verify_sum(full_path,:md5) if options["checksum"] && !self.iso_md5.nil?
|
167
|
+
verify_sum(full_path,:sha1) if options["checksum"] && !self.iso_sha1.nil?
|
142
168
|
|
143
169
|
end
|
144
170
|
end #Module
|
@@ -4,80 +4,83 @@ module Veewee
|
|
4
4
|
module Helper
|
5
5
|
class Scancode
|
6
6
|
|
7
|
-
|
7
|
+
#http://www.win.tue.nl/~aeb/linux/kbd/scancodes-1.html
|
8
8
|
|
9
|
-
|
9
|
+
# keycode hash, seeded with 'Tab' - which is special as it's longer than 1 char
|
10
|
+
@@keys = { 'Tab' => '0f 8f' }
|
10
11
|
|
11
|
-
|
12
|
-
k = { 'Tab' => '0f 8f' }
|
13
|
-
|
14
|
-
# add keycodes
|
12
|
+
# add keycodes
|
15
13
|
|
16
|
-
|
17
|
-
|
14
|
+
# "pure" keys (no modifier keys)
|
15
|
+
{
|
18
16
|
'1234567890-=' => 0x02,
|
19
17
|
'qwertyuiop[]' => 0x10,
|
20
18
|
'asdfghjkl;\'`' => 0x1e,
|
21
19
|
'\\zxcvbnm,./' => 0x2b
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
end
|
20
|
+
}.each do |keys, offset|
|
21
|
+
keys.split('').each_with_index do |key, idx|
|
22
|
+
@@keys[key] = sprintf('%02x %02x', idx + offset, idx + offset + 0x80)
|
26
23
|
end
|
24
|
+
end
|
27
25
|
|
28
|
-
|
29
|
-
|
26
|
+
# upcase keys (with shift)
|
27
|
+
{
|
30
28
|
'!@#$%^&*()_+' => 0x02,
|
31
29
|
'QWERTYUIOP{}' => 0x10,
|
32
30
|
'ASDFGHJKL:"~' => 0x1e,
|
33
31
|
'|ZXCVBNM<>?' => 0x2b
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
end
|
32
|
+
}.each do |keys, offset|
|
33
|
+
keys.split('').each_with_index do |key, idx|
|
34
|
+
@@keys[key] = sprintf('2a %02x aa %02x', idx + offset, idx + offset + 0x80)
|
38
35
|
end
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
36
|
+
end
|
37
|
+
|
38
|
+
@@special_keys=Hash.new;
|
39
|
+
@@special_keys['<Enter>'] = '1c 9c';
|
40
|
+
@@special_keys['<Backspace>'] = '0e 8e';
|
41
|
+
@@special_keys['<Spacebar>'] = '39 b9';
|
42
|
+
@@special_keys['<Return>'] = '1c 9c'
|
43
|
+
@@special_keys['<Esc>'] = '01 81';
|
44
|
+
@@special_keys['<Tab>'] = '0f 8f';
|
45
|
+
@@special_keys['<KillX>'] = '1d 38 0e b8';
|
46
|
+
@@special_keys['<Wait>'] = 'wait';
|
49
47
|
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
48
|
+
@@special_keys['<Up>'] = '48 c8';
|
49
|
+
@@special_keys['<Down>'] = '50 d0';
|
50
|
+
@@special_keys['<PageUp>'] = '49 c9';
|
51
|
+
@@special_keys['<PageDown>'] = '51 d1';
|
52
|
+
@@special_keys['<End>'] = '4f cf';
|
53
|
+
@@special_keys['<Insert>'] = '52 d2';
|
54
|
+
@@special_keys['<Delete>'] = '53 d3';
|
55
|
+
@@special_keys['<Left>'] = '4b cb';
|
56
|
+
@@special_keys['<Right>'] = '4d cd';
|
57
|
+
@@special_keys['<Home>'] = '47 c7';
|
60
58
|
|
61
|
-
|
62
|
-
|
59
|
+
# F1 .. F10
|
60
|
+
(1..10).each { |num| @@special_keys["<F#{num}>"] = sprintf('%02x', num + 0x3a) }
|
63
61
|
|
62
|
+
# VT1 - VT12 (Switch to Virtual Terminal #. e.g Alt+F1)
|
63
|
+
(1..12).each { |num| @@special_keys["<VT#{num}>"] = sprintf('38 %02x b8 %02x', num + 0x3a, num + 0xba) }
|
64
|
+
|
65
|
+
# the us keymap is used
|
66
|
+
def self.string_to_keycode(thestring)
|
64
67
|
keycodes=''
|
65
68
|
thestring.gsub!(/ /,"<Spacebar>")
|
66
69
|
|
67
70
|
until thestring.length == 0
|
68
71
|
nospecial=true;
|
69
|
-
|
72
|
+
@@special_keys.keys.each { |key|
|
70
73
|
if thestring.start_with?(key)
|
71
74
|
#take thestring
|
72
75
|
#check if it starts with a special key + pop special string
|
73
|
-
keycodes=keycodes
|
76
|
+
keycodes=keycodes+@@special_keys[key]+' ';
|
74
77
|
thestring=thestring.slice(key.length,thestring.length-key.length)
|
75
78
|
nospecial=false;
|
76
79
|
break;
|
77
80
|
end
|
78
81
|
}
|
79
82
|
if nospecial
|
80
|
-
code
|
83
|
+
code=@@keys[thestring.slice(0,1)]
|
81
84
|
if !code.nil?
|
82
85
|
keycodes=keycodes+code+' '
|
83
86
|
else
|
@@ -20,7 +20,7 @@ module Veewee
|
|
20
20
|
# http://blade.nagaokaut.ac.jp/cgi-bin/scat.rb/ruby/ruby-talk/185404
|
21
21
|
# This should work on windows too now
|
22
22
|
# This will result in a ShellResult structure with stdout, stderr and status
|
23
|
-
def shell_exec(command,options = {:mute => true,:status => 0})
|
23
|
+
def shell_exec(command,options = {:mute => true,:status => 0,:stderr => "&1"})
|
24
24
|
defaults={:mute => true, :status => 0}
|
25
25
|
options=defaults.merge(options)
|
26
26
|
result=ShellResult.new("","",-1)
|
@@ -29,7 +29,8 @@ module Veewee
|
|
29
29
|
env.logger.debug "Output:"
|
30
30
|
env.logger.debug "-------"
|
31
31
|
escaped_command=command
|
32
|
-
|
32
|
+
stderr_redirect = options[:stderr]? options[:stderr] : "&1"
|
33
|
+
IO.popen("#{escaped_command}"+ " 2>#{stderr_redirect}") { |p|
|
33
34
|
p.each_line{ |l|
|
34
35
|
result.stdout+=l
|
35
36
|
ui.info(l,{:new_line => false}) unless options[:mute]
|
@@ -3,7 +3,7 @@ module Veewee
|
|
3
3
|
module Core
|
4
4
|
module Helper
|
5
5
|
|
6
|
-
class SshResult
|
6
|
+
class SshResult < RuntimeError
|
7
7
|
attr_accessor :stdout
|
8
8
|
attr_accessor :stderr
|
9
9
|
attr_accessor :status
|
@@ -25,28 +25,36 @@ module Veewee
|
|
25
25
|
defaults={ :port => '22', :timeout => 20000 }
|
26
26
|
|
27
27
|
options=defaults.merge(options)
|
28
|
+
|
28
29
|
timeout = options[:timeout]
|
29
30
|
timeout=ENV['VEEWEE_TIMEOUT'].to_i unless ENV['VEEWEE_TIMEOUT'].nil?
|
30
31
|
|
32
|
+
unless options[:mute]
|
31
33
|
ui.info "Waiting for ssh login on #{ip} with user #{options[:user]} to sshd on port => #{options[:port]} to work, timeout=#{timeout} sec"
|
34
|
+
end
|
35
|
+
|
36
|
+
run_hook(:before_ssh)
|
32
37
|
|
33
38
|
begin
|
34
39
|
Timeout::timeout(timeout) do
|
35
40
|
connected=false
|
36
41
|
while !connected do
|
37
42
|
begin
|
38
|
-
env.ui.info ".",{:new_line => false , :prefix => false}
|
43
|
+
env.ui.info ".",{:new_line => false , :prefix => false} unless options[:mute]
|
39
44
|
Net::SSH.start(ip, options[:user], { :port => options[:port] , :password => options[:password], :paranoid => false , :timeout => timeout }) do |ssh|
|
40
45
|
|
41
|
-
ui.info "\n", {:prefix => false}
|
46
|
+
ui.info "\n", {:prefix => false} unless options[:mute]
|
42
47
|
block.call(ip);
|
43
48
|
return true
|
44
49
|
end
|
45
|
-
rescue Net::SSH::Disconnect,Errno::ECONNREFUSED, Errno::EHOSTUNREACH, Errno::ECONNABORTED, Errno::ECONNRESET, Errno::ENETUNREACH,Errno::ETIMEDOUT
|
50
|
+
rescue Net::SSH::Disconnect, Errno::ECONNREFUSED, Errno::EHOSTUNREACH, Errno::ECONNABORTED, Errno::ECONNRESET, Errno::ENETUNREACH, Errno::ETIMEDOUT
|
46
51
|
sleep 5
|
47
52
|
end
|
48
53
|
end
|
49
54
|
end
|
55
|
+
rescue IOError
|
56
|
+
ui.info "Received a disconnect; moving on"
|
57
|
+
sleep 5
|
50
58
|
rescue Timeout::Error
|
51
59
|
raise Veewee::Error, "Ssh timeout #{timeout} sec has been reached."
|
52
60
|
end
|
@@ -80,7 +88,9 @@ module Veewee
|
|
80
88
|
stderr=""
|
81
89
|
status=-99999
|
82
90
|
|
83
|
-
|
91
|
+
unless options[:mute]
|
92
|
+
ui.info "Executing command: #{command}"
|
93
|
+
end
|
84
94
|
|
85
95
|
Net::SSH.start(host, options[:user], { :port => options[:port], :password => options[:password], :paranoid => false }) do |ssh|
|
86
96
|
|
@@ -101,15 +111,16 @@ module Veewee
|
|
101
111
|
ch.on_data do |c, data|
|
102
112
|
stdout+=data
|
103
113
|
|
104
|
-
ui.info
|
114
|
+
ui.info(data, :new_line => false) unless options[:mute]
|
105
115
|
|
106
116
|
end
|
107
117
|
|
108
118
|
# "on_extended_data" is called when the process writes something to stderr
|
119
|
+
# NOTE: When requesting a pty (ch.request_pty), everything goes to stdout
|
109
120
|
ch.on_extended_data do |c, type, data|
|
110
121
|
stderr+=data
|
111
122
|
|
112
|
-
ui.info
|
123
|
+
ui.info(data, :new_line => false) unless options[:mute]
|
113
124
|
|
114
125
|
end
|
115
126
|
|
@@ -119,14 +130,14 @@ module Veewee
|
|
119
130
|
exit_code = data.read_long
|
120
131
|
status=exit_code
|
121
132
|
if exit_code > 0
|
122
|
-
ui.info "ERROR: exit code #{exit_code}"
|
133
|
+
ui.info "ERROR: exit code #{exit_code}" unless options[:mute]
|
123
134
|
else
|
124
135
|
#ui.info "Successfully executed"
|
125
136
|
end
|
126
137
|
end
|
127
138
|
|
128
139
|
channel.on_request("exit-signal") do |ch, data|
|
129
|
-
ui.info "SIGNAL: #{data.read_long}"
|
140
|
+
ui.info "SIGNAL: #{data.read_long}" unless options[:mute]
|
130
141
|
end
|
131
142
|
|
132
143
|
ch.on_close {
|
@@ -143,7 +154,7 @@ module Veewee
|
|
143
154
|
if (options[:exitcode]=="*")
|
144
155
|
#its a test so we don't need to worry
|
145
156
|
else
|
146
|
-
raise "Exitcode was not what we expected"
|
157
|
+
raise Veewee::Provider::Core::Helper::SshResult.new(stdout,stderr,status), "Exitcode was not what we expected"
|
147
158
|
end
|
148
159
|
|
149
160
|
end
|
@@ -13,6 +13,7 @@ module Veewee
|
|
13
13
|
begin
|
14
14
|
s = TCPSocket.new(ip, port)
|
15
15
|
s.close
|
16
|
+
env.logger.debug("TCP port #{ip}:#{port} is used.")
|
16
17
|
return true
|
17
18
|
rescue Errno::ECONNREFUSED, Errno::EHOSTUNREACH,Errno::ENETDOWN
|
18
19
|
return false
|
@@ -26,11 +27,11 @@ module Veewee
|
|
26
27
|
|
27
28
|
# This tries to guess a local free tcp port
|
28
29
|
def guess_free_port(min_port,max_port)
|
29
|
-
ui.info "
|
30
|
+
ui.info "Finding unused TCP port in range: #{min_port} - #{max_port}"
|
30
31
|
|
31
32
|
guessed_port=nil
|
32
33
|
|
33
|
-
|
34
|
+
(min_port..max_port).each do |port|
|
34
35
|
unless is_tcp_port_open?(get_local_ip, port)
|
35
36
|
guessed_port=port
|
36
37
|
break
|
@@ -38,15 +39,27 @@ module Veewee
|
|
38
39
|
end
|
39
40
|
|
40
41
|
if guessed_port.nil?
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
ui.info "Found port #{guessed_port} available"
|
42
|
+
message = "No free TCP port available in range: #{min_port} - #{max_port}"
|
43
|
+
ui.error message
|
44
|
+
raise Veewee::Error, message
|
45
45
|
end
|
46
46
|
|
47
|
+
ui.info "Selected TCP port #{guessed_port}"
|
47
48
|
return guessed_port
|
48
49
|
end
|
49
50
|
|
51
|
+
def guess_free_ssh_port(min_port, max_port)
|
52
|
+
if definition.force_ssh_port
|
53
|
+
ui.warn "SSH port auto-configuration is disabled in the definition (force_ssh_port=true)."
|
54
|
+
if is_tcp_port_open?(get_local_ip, min_port)
|
55
|
+
ui.warn "TCP port #{min_port} is in use. You may execute the postinstall scripts on a different machine than intended!"
|
56
|
+
end
|
57
|
+
return min_port
|
58
|
+
else
|
59
|
+
return guess_free_port(min_port, max_port)
|
60
|
+
end
|
61
|
+
end
|
62
|
+
|
50
63
|
def execute_when_tcp_available(ip="127.0.0.1", options = { } , &block)
|
51
64
|
|
52
65
|
defaults={ :port => 22, :timeout => 2 , :pollrate => 5}
|