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
data/lib/veewee/definitions.rb
CHANGED
@@ -2,6 +2,7 @@ require 'grit'
|
|
2
2
|
require 'veewee/definition'
|
3
3
|
require 'veewee/templates'
|
4
4
|
require 'veewee/template'
|
5
|
+
require 'erb'
|
5
6
|
|
6
7
|
module Veewee
|
7
8
|
class Definitions
|
@@ -10,16 +11,20 @@ module Veewee
|
|
10
11
|
|
11
12
|
def initialize(env)
|
12
13
|
@env = env
|
14
|
+
@definitions = {}
|
13
15
|
return self
|
14
16
|
end
|
15
17
|
|
18
|
+
|
16
19
|
def [](name)
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
20
|
+
if @definitions[name].nil?
|
21
|
+
begin
|
22
|
+
@definitions[name] = Veewee::Definition.load(name, env)
|
23
|
+
rescue Veewee::DefinitionNotExist
|
24
|
+
return nil
|
25
|
+
end
|
22
26
|
end
|
27
|
+
@definitions[name]
|
23
28
|
end
|
24
29
|
|
25
30
|
# Fetch all definitions
|
@@ -107,7 +112,7 @@ module Veewee
|
|
107
112
|
else
|
108
113
|
begin
|
109
114
|
env.logger.debug("Starting copy '#{template.path}' to '#{dst_dir}'")
|
110
|
-
FileUtils.cp_r(template.path + "/.", dst_dir)
|
115
|
+
FileUtils.cp_r(template.path + "/.", dst_dir, :preserve => true)
|
111
116
|
env.logger.debug("Copy '#{template.path}' to '#{dst_dir}' succesful")
|
112
117
|
rescue Exception => ex
|
113
118
|
env.logger.fatal("Copy '#{template.path}' to #{dst_dir}' failed: #{ex}")
|
@@ -115,6 +120,22 @@ module Veewee
|
|
115
120
|
end
|
116
121
|
end
|
117
122
|
|
123
|
+
# If the template includes a NOTICE.erb or NOTICE.txt file, display it to the user
|
124
|
+
# .erb file takes priority, then .txt
|
125
|
+
notice_erb = File.join(dst_dir, 'NOTICE.erb')
|
126
|
+
notice_txt = File.join(dst_dir, 'NOTICE.txt')
|
127
|
+
if File.exist?(notice_erb)
|
128
|
+
template = File.read(notice_erb)
|
129
|
+
text = ERB.new(template).result(binding)
|
130
|
+
elsif File.exist?(notice_txt)
|
131
|
+
text = File.read(notice_txt)
|
132
|
+
end
|
133
|
+
|
134
|
+
if text
|
135
|
+
env.ui.warn("Template #{template_name} includes this NOTICE text you should first read:\n")
|
136
|
+
env.ui.info("#{text}\n")
|
137
|
+
end
|
138
|
+
|
118
139
|
definition = env.definitions[definition_name]
|
119
140
|
return definition
|
120
141
|
end
|
data/lib/veewee/environment.rb
CHANGED
@@ -18,8 +18,6 @@ module Veewee
|
|
18
18
|
# The valid name for a Veeweefile for this environment
|
19
19
|
attr_accessor :veewee_filename
|
20
20
|
|
21
|
-
attr_accessor :loglevel
|
22
|
-
|
23
21
|
# This initializes a new Veewee Environment
|
24
22
|
# settings argument is a hash with the following options
|
25
23
|
# - :definition_dir : where definitions are located
|
@@ -45,22 +43,29 @@ module Veewee
|
|
45
43
|
# Hash element of all templates available
|
46
44
|
attr_accessor :templates
|
47
45
|
|
48
|
-
# Hash element of all
|
46
|
+
# Hash element of all providers available
|
49
47
|
attr_accessor :providers
|
50
48
|
|
51
|
-
# Hash
|
49
|
+
# Hash element of all OS types
|
52
50
|
attr_reader :ostypes
|
53
51
|
|
52
|
+
# Path to the config file
|
53
|
+
attr_reader :config_filepath
|
54
|
+
|
55
|
+
attr_accessor :current_provider
|
56
|
+
|
54
57
|
def initialize(options = {})
|
58
|
+
# symbolify commandline options
|
59
|
+
options = options.inject({}) {|result,(key,value)| result.update({key.to_sym => value})}
|
55
60
|
|
56
|
-
cwd = ENV['VEEWEE_DIR'] || Dir.pwd
|
57
61
|
# If a cwd was provided as option it overrules the default
|
58
|
-
cwd
|
62
|
+
# cwd is again merged later with all options but it has to merged here
|
63
|
+
# because several defaults are generated from it
|
64
|
+
cwd = options[:cwd] || Veewee::Environment.workdir
|
59
65
|
|
60
66
|
defaults = {
|
61
67
|
:cwd => cwd,
|
62
68
|
:veewee_filename => "Veeweefile",
|
63
|
-
:loglevel => :info,
|
64
69
|
:definition_dir => File.join(cwd, "definitions"),
|
65
70
|
:template_path => [File.expand_path(File.join(File.dirname(__FILE__), "..", "..", 'templates')), "templates"],
|
66
71
|
:iso_dir => File.join(cwd, "iso"),
|
@@ -69,6 +74,9 @@ module Veewee
|
|
69
74
|
}
|
70
75
|
|
71
76
|
options = defaults.merge(options)
|
77
|
+
|
78
|
+
@config_filepath = File.join(options[:cwd], options[:veewee_filename])
|
79
|
+
|
72
80
|
veeweefile_config = defaults.keys.inject({}) do |memo, obj|
|
73
81
|
if config.env.methods.include?(obj) && !config.env.send(obj).nil?
|
74
82
|
memo.merge({ obj => config.env.send(obj) })
|
@@ -78,13 +86,6 @@ module Veewee
|
|
78
86
|
end
|
79
87
|
options = options.merge(veeweefile_config)
|
80
88
|
|
81
|
-
# We need to set this variable before the first call to the logger object
|
82
|
-
if options.has_key?("debug")
|
83
|
-
if options["debug"] == true
|
84
|
-
ENV['VEEWEE_LOG'] = "STDOUT"
|
85
|
-
end
|
86
|
-
end
|
87
|
-
|
88
89
|
logger.info("environment") { "Environment initialized (#{self})" }
|
89
90
|
|
90
91
|
# Injecting all variables of the options and assign the variables
|
@@ -106,6 +107,10 @@ module Veewee
|
|
106
107
|
return self
|
107
108
|
end
|
108
109
|
|
110
|
+
def self.workdir
|
111
|
+
ENV['VEEWEE_DIR'] || Dir.pwd
|
112
|
+
end
|
113
|
+
|
109
114
|
#---------------------------------------------------------------
|
110
115
|
# Config Methods
|
111
116
|
#---------------------------------------------------------------
|
@@ -156,7 +161,6 @@ module Veewee
|
|
156
161
|
|
157
162
|
def load_config!
|
158
163
|
@config = Config.new({ :env => self }).load_veewee_config()
|
159
|
-
|
160
164
|
return self
|
161
165
|
end
|
162
166
|
|
@@ -188,26 +192,31 @@ module Veewee
|
|
188
192
|
def logger
|
189
193
|
return @logger if @logger
|
190
194
|
|
191
|
-
# Figure out where the output should go to.
|
192
195
|
output = nil
|
193
|
-
|
196
|
+
loglevel = Logger::ERROR
|
197
|
+
|
198
|
+
# Figure out where the output should go to.
|
199
|
+
if ENV["VEEWEE_LOG"]
|
194
200
|
output = STDOUT
|
195
|
-
|
196
|
-
output = nil
|
197
|
-
elsif ENV["VEEWEE_LOG"]
|
198
|
-
output = ENV["VEEWEE_LOG"]
|
199
|
-
else
|
200
|
-
output = nil #log_path.join("#{Time.now.to_i}.log")
|
201
|
+
loglevel = Logger.const_get(ENV["VEEWEE_LOG"].upcase)
|
201
202
|
end
|
202
203
|
|
203
|
-
|
204
|
+
# Create the logger and custom formatter
|
204
205
|
@logger = ::Logger.new(output)
|
206
|
+
@logger.level = loglevel
|
205
207
|
@logger.formatter = Proc.new do |severity, datetime, progname, msg|
|
206
208
|
"#{datetime} - #{progname} - [#{resource}] #{msg}\n"
|
207
209
|
end
|
208
|
-
|
209
210
|
@logger
|
210
211
|
end
|
211
212
|
|
213
|
+
# Get box from current provider
|
214
|
+
def get_box(name)
|
215
|
+
if current_provider.nil?
|
216
|
+
raise "Provider is unset in the environment."
|
217
|
+
else
|
218
|
+
providers[current_provider].get_box(name)
|
219
|
+
end
|
220
|
+
end
|
212
221
|
end #Class
|
213
222
|
end #Module
|
data/lib/veewee/error.rb
CHANGED
@@ -3,6 +3,20 @@ module Veewee
|
|
3
3
|
module Core
|
4
4
|
module BoxCommand
|
5
5
|
|
6
|
+
def run_hook(name)
|
7
|
+
hooks = definition.instance_variable_get(:@hooks)
|
8
|
+
if ! hooks.nil?
|
9
|
+
hook = hooks[name]
|
10
|
+
if hook.nil?
|
11
|
+
ui.info "Hook ##{name} is not defined"
|
12
|
+
else
|
13
|
+
raise Veewee::Error, "Hook is not callable" if ! hook.respond_to?(:call)
|
14
|
+
ui.info "Running ##{name} hook"
|
15
|
+
hook.call
|
16
|
+
end
|
17
|
+
end
|
18
|
+
end
|
19
|
+
|
6
20
|
def build(options={})
|
7
21
|
|
8
22
|
if definition.nil?
|
@@ -39,12 +53,18 @@ module Veewee
|
|
39
53
|
raise Veewee::Error, "The box should have been deleted by now. Something went terribly wrong. Sorry"
|
40
54
|
end
|
41
55
|
|
56
|
+
run_hook(:before_create)
|
57
|
+
|
42
58
|
self.create(options)
|
43
59
|
|
60
|
+
run_hook(:after_create)
|
61
|
+
|
44
62
|
# Check the GUI mode required
|
45
63
|
env.logger.info "Provider asks the box to start: GUI enabled? #{!options['nogui']}"
|
46
64
|
self.up(options)
|
47
65
|
|
66
|
+
run_hook(:after_up)
|
67
|
+
|
48
68
|
# Waiting for it to boot
|
49
69
|
ui.info "Waiting #{definition.boot_wait.to_i} seconds for the machine to boot"
|
50
70
|
sleep definition.boot_wait.to_i
|
@@ -66,7 +86,10 @@ module Veewee
|
|
66
86
|
})
|
67
87
|
|
68
88
|
# Type the boot sequence
|
69
|
-
|
89
|
+
Thread.new do
|
90
|
+
self.console_type(boot_sequence)
|
91
|
+
run_hook(:after_boot_sequence)
|
92
|
+
end
|
70
93
|
|
71
94
|
self.handle_kickstart(options)
|
72
95
|
|
@@ -78,15 +101,22 @@ module Veewee
|
|
78
101
|
sleep 2
|
79
102
|
end
|
80
103
|
|
104
|
+
if ! definition.skip_iso_transfer then
|
105
|
+
self.transfer_buildinfo(options)
|
106
|
+
end
|
81
107
|
|
82
|
-
|
108
|
+
# Transfer the VEEWEE_<params> environment variables + definition.params
|
109
|
+
# into .veewee_params
|
110
|
+
self.transfer_params(options)
|
83
111
|
|
84
112
|
# Filtering post install files based upon --postinstall-include and --postinstall--exclude
|
85
113
|
definition.postinstall_files=filter_postinstall_files(options)
|
86
114
|
|
87
115
|
self.handle_postinstall(options)
|
88
116
|
|
89
|
-
|
117
|
+
run_hook(:after_postinstall)
|
118
|
+
|
119
|
+
ui.success "The box #{name} was built successfully!"
|
90
120
|
ui.info "You can now login to the box with:"
|
91
121
|
if (definition.winrm_user && definition.winrm_password)
|
92
122
|
env.ui.info winrm_command_string
|
@@ -202,7 +232,6 @@ module Veewee
|
|
202
232
|
# It requires a box(to login to) and a definition(listing the postinstall files)
|
203
233
|
def handle_postinstall(options)
|
204
234
|
|
205
|
-
# Transfer all postinstall files
|
206
235
|
definition.postinstall_files.each do |postinstall_file|
|
207
236
|
# Filenames of postinstall_files are relative to their definition
|
208
237
|
filename=File.join(definition.path,postinstall_file)
|
@@ -215,7 +244,7 @@ module Veewee
|
|
215
244
|
# Prepare a pre_poinstall file if needed (not nil , or not empty)
|
216
245
|
unless definition.pre_postinstall_file.to_s.empty?
|
217
246
|
pre_filename=File.join(definition.path, definition.pre_postinstall_file)
|
218
|
-
self.copy_to_box(
|
247
|
+
self.copy_to_box(pre_filename,File.basename(pre_filename))
|
219
248
|
if (definition.winrm_user && definition.winrm_password)
|
220
249
|
# not implemented on windows yet
|
221
250
|
else
|
@@ -239,6 +268,8 @@ module Veewee
|
|
239
268
|
# Upload the pre postinstall script if not already transfered
|
240
269
|
command = "./" + File.basename(pre_filename)
|
241
270
|
command = sudo(command) + " ./"+File.basename(filename)
|
271
|
+
|
272
|
+
self.exec(command)
|
242
273
|
else
|
243
274
|
if (definition.winrm_user && definition.winrm_password)
|
244
275
|
# no sudo on windows, batch files only please?
|
@@ -248,8 +279,6 @@ module Veewee
|
|
248
279
|
end
|
249
280
|
end
|
250
281
|
|
251
|
-
self.exec(command)
|
252
|
-
|
253
282
|
else
|
254
283
|
env.logger.info "Skipping postinstallfile #{postinstall_file}"
|
255
284
|
end
|
@@ -278,6 +307,41 @@ module Veewee
|
|
278
307
|
end
|
279
308
|
end
|
280
309
|
|
310
|
+
def transfer_params(options)
|
311
|
+
filename = ".veewee_params"
|
312
|
+
content = ""
|
313
|
+
|
314
|
+
params = {}
|
315
|
+
|
316
|
+
# First check params in definition
|
317
|
+
params.merge!(definition.params) unless definition.params.nil?
|
318
|
+
|
319
|
+
# Environment vars override
|
320
|
+
veewee_env = ENV.select{|key,value| key.to_s.match(/^VEEWEE_/) }
|
321
|
+
veewee_env.each do |key,value|
|
322
|
+
params[key.gsub(/^VEEWEE_/,'')] = value
|
323
|
+
end
|
324
|
+
|
325
|
+
# Iterate over params
|
326
|
+
params.each do |key,value|
|
327
|
+
content += "export #{key}='#{value}'\n"
|
328
|
+
end
|
329
|
+
|
330
|
+
begin
|
331
|
+
infofile=Tempfile.open("#{filename}")
|
332
|
+
# Force binary mode to prevent windows from putting CR-LF end line style
|
333
|
+
# http://www.ruby-forum.com/topic/127453#568546
|
334
|
+
infofile.binmode
|
335
|
+
infofile.puts "#{content}"
|
336
|
+
infofile.rewind
|
337
|
+
infofile.close
|
338
|
+
self.copy_to_box(infofile.path,filename)
|
339
|
+
infofile.delete
|
340
|
+
rescue RuntimeError => ex
|
341
|
+
ui.error("Error transfering file #{filename} failed, possible not enough permissions to write? #{ex}",:prefix => false)
|
342
|
+
raise Veewee::Error,"Error transfering file #{filename} failed, possible not enough permissions to write? #{ex}"
|
343
|
+
end
|
344
|
+
end
|
281
345
|
|
282
346
|
end #Module
|
283
347
|
end #Module
|
@@ -41,7 +41,7 @@ module Veewee
|
|
41
41
|
end
|
42
42
|
rescue Net::SSH::AuthenticationFailed => ex # may want to catch winrm auth fails as well
|
43
43
|
env.ui.error "Authentication failure"
|
44
|
-
raise Veewee::SshError, "Authentication failure\n"+ex
|
44
|
+
raise Veewee::SshError, "Authentication failure\n"+ex.inspect
|
45
45
|
end
|
46
46
|
end
|
47
47
|
|
@@ -21,7 +21,7 @@ module Veewee
|
|
21
21
|
env.logger.info "Removing previous floppy file"
|
22
22
|
FileUtils.rm(floppy_file)
|
23
23
|
end
|
24
|
-
command="java -jar #{javacode_dir}/dir2floppy.jar \"#{temp_dir}\" \"#{floppy_file}\""
|
24
|
+
command="java -jar \"#{javacode_dir}/dir2floppy.jar\" \"#{temp_dir}\" \"#{floppy_file}\""
|
25
25
|
shell_exec("#{command}")
|
26
26
|
end
|
27
27
|
end
|
@@ -9,10 +9,11 @@ module Veewee
|
|
9
9
|
|
10
10
|
raise Veewee::Error,"Box is not running" unless self.running?
|
11
11
|
|
12
|
+
host_ip=self.ip_address
|
13
|
+
|
12
14
|
if (options[:interactive]==true)
|
13
15
|
# Command line options
|
14
16
|
extended_command="#{command}"
|
15
|
-
host_ip=self.ip_address
|
16
17
|
|
17
18
|
unless host_ip.nil? || host_ip==""
|
18
19
|
ssh_command="ssh #{ssh_commandline_options(options)} #{host_ip} \"#{extended_command}\""
|
@@ -92,4 +93,3 @@ module Veewee
|
|
92
93
|
end # Module
|
93
94
|
end # Module
|
94
95
|
end # Module
|
95
|
-
|
@@ -15,47 +15,154 @@ module Veewee
|
|
15
15
|
exit -1
|
16
16
|
end
|
17
17
|
|
18
|
-
|
18
|
+
if definition.winrm_user && definition.winrm_password # prefer winrm
|
19
|
+
checks = checks_windows
|
20
|
+
else
|
21
|
+
checks = checks_linux
|
22
|
+
end
|
19
23
|
|
20
|
-
|
21
|
-
|
24
|
+
# Some reject here based on tags
|
25
|
+
checks.reject! { |c|
|
26
|
+
tagged = false
|
27
|
+
c[:tags].each do |t|
|
28
|
+
tagged = true if tags.include?(t)
|
29
|
+
end
|
30
|
+
! tagged
|
31
|
+
}
|
22
32
|
|
23
|
-
#
|
24
|
-
|
25
|
-
cucumber_vars=ssh_options
|
26
|
-
cucumber_vars.each do |key,value|
|
27
|
-
ENV['VEEWEE_'+key.to_s.upcase]=cucumber_vars[key].to_s
|
28
|
-
end
|
33
|
+
# Assume clean exitcode
|
34
|
+
exitcode = 0
|
29
35
|
|
30
|
-
#
|
31
|
-
|
32
|
-
|
36
|
+
# Loop over checks
|
37
|
+
checks.each do |check|
|
38
|
+
if check[:sudo]
|
39
|
+
result = check_output_sudorun(check[:command],check[:expected_string])
|
40
|
+
else
|
41
|
+
result = check_output_run(check[:command],check[:expected_string])
|
42
|
+
end
|
33
43
|
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
44
|
+
if result[:match]
|
45
|
+
ui.success("#{check[:description]} - OK")
|
46
|
+
else
|
47
|
+
ui.error("#{check[:description]} - FAILED")
|
48
|
+
ui.error("Command: #{check[:command]}")
|
49
|
+
ui.error("Expected string #{check[:expected_string]}")
|
50
|
+
ui.error("Output: #{check[:output]}")
|
51
|
+
exitcode = -1
|
52
|
+
end
|
38
53
|
end
|
39
54
|
|
40
|
-
|
55
|
+
exit -1 if exitcode < 0
|
56
|
+
end
|
57
|
+
|
58
|
+
def check_output_sudorun(command,expected_string)
|
59
|
+
result = { :command => command,
|
60
|
+
:expected_string => expected_string,
|
61
|
+
:output => nil
|
62
|
+
}
|
63
|
+
|
64
|
+
begin
|
65
|
+
self.exec("echo '#{command}' > /tmp/validation.sh && chmod a+x /tmp/validation.sh", :mute => true)
|
66
|
+
sshresult = self.exec(self.sudo("/tmp/validation.sh"),:mute => true)
|
67
|
+
|
68
|
+
result[:output] = sshresult.stdout
|
69
|
+
result[:match] = ! sshresult.stdout.match(/#{expected_string}/).nil?
|
70
|
+
rescue
|
71
|
+
result[:match] = false
|
72
|
+
end
|
73
|
+
return result
|
74
|
+
end
|
41
75
|
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
76
|
+
def check_output_run(command,expected_string)
|
77
|
+
result = { :command => command,
|
78
|
+
:expected_string => expected_string,
|
79
|
+
:output => nil
|
80
|
+
}
|
46
81
|
|
47
82
|
begin
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
rescue
|
52
|
-
|
53
|
-
rescue Exception => e
|
54
|
-
ui.error("#{e.message} (#{e.class})")
|
55
|
-
ui.error(e.backtrace.join("\n"))
|
56
|
-
Kernel.exit(1)
|
83
|
+
sshresult = self.exec(command, {:exitcode => '*',:mute => true})
|
84
|
+
result[:output] = sshresult.stdout
|
85
|
+
result[:match] = ! sshresult.stdout.match(/#{expected_string}/).nil?
|
86
|
+
rescue
|
87
|
+
result[:match] = false
|
57
88
|
end
|
89
|
+
return result
|
90
|
+
end
|
91
|
+
|
92
|
+
def checks_linux
|
93
|
+
return [
|
94
|
+
{ :description => 'Checking user',
|
95
|
+
:tags => [ 'virtualbox','kvm', 'parallels'],
|
96
|
+
:command => 'who am i',
|
97
|
+
:expected_string => definition.ssh_user,
|
98
|
+
:sudo => false
|
99
|
+
},
|
100
|
+
{ :description => 'Checking sudo',
|
101
|
+
:tags => [ 'virtualbox','kvm', 'parallels'],
|
102
|
+
:command => 'whoami',
|
103
|
+
:expected_string => 'root',
|
104
|
+
:sudo => true
|
105
|
+
},
|
106
|
+
{ :description => 'Checking ruby',
|
107
|
+
:tags => [ 'virtualbox','kvm', 'parallels','ruby'],
|
108
|
+
:command => '. /etc/profile ;ruby --version 2> /dev/null 1> /dev/null; echo $?',
|
109
|
+
:expected_string => "0",
|
110
|
+
:sudo => false
|
111
|
+
},
|
112
|
+
{ :description => 'Checking gem',
|
113
|
+
:tags => [ 'virtualbox','kvm', 'parallels','gem'],
|
114
|
+
:command => '. /etc/profile ;gem --version 2> /dev/null 1> /dev/null; echo $?',
|
115
|
+
:expected_string => "0",
|
116
|
+
:sudo => false
|
117
|
+
},
|
118
|
+
{ :description => 'Checking chef',
|
119
|
+
:tags => [ 'chef'],
|
120
|
+
:command => '. /etc/profile ;chef-client --version 2> /dev/null 1>/dev/null; echo $?',
|
121
|
+
:expected_string => "0",
|
122
|
+
:sudo => false
|
123
|
+
},
|
124
|
+
{ :description => 'Checking puppet',
|
125
|
+
:tags => [ 'puppet'],
|
126
|
+
:command => '. /etc/profile ;puppet --version 2> /dev/null 1>/dev/null; echo $?',
|
127
|
+
:expected_string => "0",
|
128
|
+
:sudo => false
|
129
|
+
},
|
130
|
+
{ :description => 'Checking shared folder',
|
131
|
+
:tags => [ 'vagrant'],
|
132
|
+
:command => 'mount|grep veewee-validation; echo $?',
|
133
|
+
:expected_string => "0",
|
134
|
+
:sudo => false
|
135
|
+
}
|
136
|
+
]
|
137
|
+
end
|
58
138
|
|
139
|
+
def checks_windows
|
140
|
+
return [
|
141
|
+
{ :description => 'Checking user',
|
142
|
+
:tags => [ 'virtualbox','kvm','vmfusion'],
|
143
|
+
:command => 'whoami',
|
144
|
+
:expected_string => definition.ssh_user,
|
145
|
+
:sudo => false
|
146
|
+
},
|
147
|
+
{ :description => 'Checking ruby',
|
148
|
+
:tags => [ 'virtualbox','kvm','vmfusion'],
|
149
|
+
:command => 'ruby --version > %TEMP%\devnull && echo %ERRORLEVEL%',
|
150
|
+
:expected_string => "0",
|
151
|
+
:sudo => false
|
152
|
+
},
|
153
|
+
{ :description => 'Checking gem',
|
154
|
+
:tags => [ 'virtualbox','kvm','vmfusion'],
|
155
|
+
:command => 'gem --version > %TEMP%\devnull && echo %ERRORLEVEL%',
|
156
|
+
:expected_string => "0",
|
157
|
+
:sudo => false
|
158
|
+
},
|
159
|
+
{ :description => 'Checking chef',
|
160
|
+
:tags => [ 'chef'],
|
161
|
+
:command => 'chef-client --version > %TEMP%\devnull && echo %ERRORLEVEL%',
|
162
|
+
:expected_string => "0",
|
163
|
+
:sudo => false
|
164
|
+
},
|
165
|
+
]
|
59
166
|
end
|
60
167
|
end #Module
|
61
168
|
|