veewee 0.2.2 → 0.2.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (123) hide show
  1. data/Gemfile +1 -1
  2. data/Gemfile.lock +75 -0
  3. data/lib/veewee.rb +2 -0
  4. data/lib/veewee/command.rb +1 -59
  5. data/lib/veewee/command/basebox.rb +63 -0
  6. data/lib/veewee/command/basebox_build.rb +32 -0
  7. data/lib/veewee/command/basebox_define.rb +28 -0
  8. data/lib/veewee/command/basebox_destroy.rb +22 -0
  9. data/lib/veewee/command/basebox_export.rb +22 -0
  10. data/lib/veewee/command/basebox_list.rb +23 -0
  11. data/lib/veewee/command/basebox_ostypes.rb +23 -0
  12. data/lib/veewee/command/basebox_templates.rb +23 -0
  13. data/lib/veewee/command/basebox_undefine.rb +22 -0
  14. data/lib/veewee/command/basebox_validate.rb +26 -0
  15. data/lib/veewee/config.rb +1 -2
  16. data/lib/veewee/version.rb +1 -1
  17. data/templates/CentOS-6.0-x86_64-minimal/definition.rb +1 -1
  18. data/templates/CentOS-6.0-x86_64-minimal/postinstall.sh +12 -4
  19. data/templates/CentOS-6.2-x86_64-minimal/definition.rb +15 -0
  20. data/templates/CentOS-6.2-x86_64-minimal/ks.cfg +37 -0
  21. data/templates/CentOS-6.2-x86_64-minimal/postinstall.sh +50 -0
  22. data/templates/SLES-11-SP1-DVD-i586-GM/autoinst_de.xml +1127 -0
  23. data/templates/SLES-11-SP1-DVD-i586-GM/autoinst_en.xml +1127 -0
  24. data/templates/SLES-11-SP1-DVD-i586-GM/definition.rb +37 -0
  25. data/templates/SLES-11-SP1-DVD-i586-GM/postinstall.sh +43 -0
  26. data/templates/SLES-11-SP1-DVD-x86_64-GM/autoinst_de.xml +1171 -0
  27. data/templates/SLES-11-SP1-DVD-x86_64-GM/autoinst_en.xml +1171 -0
  28. data/templates/SLES-11-SP1-DVD-x86_64-GM/definition.rb +37 -0
  29. data/templates/SLES-11-SP1-DVD-x86_64-GM/postinstall.sh +43 -0
  30. data/templates/funtoo-latest-generic_64-stable/definition.rb +34 -0
  31. data/templates/funtoo-latest-generic_64-stable/postinstall.sh +177 -0
  32. data/templates/funtoo-latest-generic_64-stable/postinstall2.sh +83 -0
  33. data/templates/gentoo-latest-x86_64-experimental/definition.rb +4 -4
  34. data/templates/gentoo-latest-x86_64-experimental/postinstall.sh +2 -2
  35. data/templates/openSUSE-12.1-DVD+NET-i586/autoinst_de.xml +1483 -0
  36. data/templates/openSUSE-12.1-DVD+NET-i586/autoinst_en.xml +1483 -0
  37. data/templates/openSUSE-12.1-DVD+NET-i586/definition.rb +44 -0
  38. data/templates/openSUSE-12.1-DVD+NET-i586/postinstall.sh +43 -0
  39. data/templates/openSUSE-12.1-DVD+NET-x86_64/autoinst_de.xml +1727 -0
  40. data/templates/openSUSE-12.1-DVD+NET-x86_64/autoinst_en.xml +1727 -0
  41. data/templates/openSUSE-12.1-DVD+NET-x86_64/definition.rb +44 -0
  42. data/templates/openSUSE-12.1-DVD+NET-x86_64/postinstall.sh +43 -0
  43. data/templates/openbsd50_amd64/README +28 -0
  44. data/templates/openbsd50_amd64/definition.rb +84 -0
  45. data/templates/openbsd50_amd64/postinstall.sh +81 -0
  46. data/templates/openbsd50_i386/.definition.rb.swp +0 -0
  47. data/templates/openbsd50_i386/README +28 -0
  48. data/templates/openbsd50_i386/definition.rb +84 -0
  49. data/templates/openbsd50_i386/postinstall.sh +80 -0
  50. data/templates/windows-2008R1-serverstandard-amd64/Autounattend.xml +146 -0
  51. data/templates/windows-2008R1-serverstandard-amd64/README.md +134 -0
  52. data/templates/windows-2008R1-serverstandard-amd64/cygwin-setup.exe +0 -0
  53. data/templates/windows-2008R1-serverstandard-amd64/definition.rb +114 -0
  54. data/templates/windows-2008R1-serverstandard-amd64/install-cygwin-sshd.bat +40 -0
  55. data/templates/windows-2008R1-serverstandard-amd64/install-guest-additions.bat +5 -0
  56. data/templates/windows-2008R1-serverstandard-amd64/install-winrm.bat +14 -0
  57. data/templates/windows-2008R1-serverstandard-amd64/oracle-cert.cer +0 -0
  58. data/templates/windows-2008R1-serverstandard-amd64/postinstall.sh +74 -0
  59. data/templates/windows-2008R1-serverstandard-amd64/sudo +2 -0
  60. data/templates/windows-2008R1-serverstandard-amd64/winrm.rb +8 -0
  61. data/templates/windows-2008R2-amd64/cygwin-setup.exe +0 -0
  62. data/templates/windows-2008R2-amd64/install-winrm.bat +2 -0
  63. data/templates/windows-2008R2-serverstandard-amd64/Autounattend.xml +147 -0
  64. data/templates/windows-2008R2-serverstandard-amd64/README.md +142 -0
  65. data/templates/windows-2008R2-serverstandard-amd64/definition.rb +44 -0
  66. data/templates/windows-2008R2-serverstandard-amd64/install-cygwin-sshd.bat +41 -0
  67. data/templates/windows-2008R2-serverstandard-amd64/install-winrm.bat +11 -0
  68. data/templates/windows-2008R2-serverstandard-amd64/oracle-cert.cer +0 -0
  69. data/templates/windows-2008R2-serverstandard-amd64/postinstall.sh +74 -0
  70. data/templates/windows-7-enterprise-amd64/Autounattend.xml +149 -0
  71. data/templates/windows-7-enterprise-amd64/README.md +52 -0
  72. data/templates/windows-7-enterprise-amd64/definition.rb +39 -0
  73. data/templates/windows-7-enterprise-amd64/install-cygwin-sshd.bat +40 -0
  74. data/templates/windows-7-enterprise-amd64/install-winrm.bat +14 -0
  75. data/templates/windows-7-enterprise-amd64/oracle-cert.cer +0 -0
  76. data/templates/windows-7-enterprise-amd64/postinstall.sh +74 -0
  77. data/templates/windows-7-enterprise-i386/Autounattend.xml +151 -0
  78. data/templates/windows-7-enterprise-i386/README.md +169 -0
  79. data/templates/windows-7-enterprise-i386/definition.rb +40 -0
  80. data/templates/windows-7-enterprise-i386/install-cygwin-sshd.bat +40 -0
  81. data/templates/windows-7-enterprise-i386/install-winrm.bat +14 -0
  82. data/templates/windows-7-enterprise-i386/oracle-cert.cer +0 -0
  83. data/templates/windows-7-enterprise-i386/postinstall.sh +74 -0
  84. data/templates/windows-7-premium-amd64/Autounattend.xml +152 -0
  85. data/templates/windows-7-premium-amd64/README.md +171 -0
  86. data/templates/windows-7-premium-amd64/definition.rb +38 -0
  87. data/templates/windows-7-premium-amd64/install-chefclient.bat +44 -0
  88. data/templates/windows-7-premium-amd64/install-winrm.bat +11 -0
  89. data/templates/windows-7-premium-amd64/oracle-cert.cer +0 -0
  90. data/templates/windows-7-premium-amd64/postinstall.sh +124 -0
  91. data/templates/windows-7-premium-amd64/winrm.rb +8 -0
  92. data/templates/windows-7-professional-amd64/Autounattend.xml +152 -0
  93. data/templates/windows-7-professional-amd64/README.md +171 -0
  94. data/templates/windows-7-professional-amd64/definition.rb +41 -0
  95. data/templates/windows-7-professional-amd64/install-cygwin-sshd.bat +40 -0
  96. data/templates/windows-7-professional-amd64/install-winrm.bat +14 -0
  97. data/templates/windows-7-professional-amd64/oracle-cert.cer +0 -0
  98. data/templates/windows-7-professional-amd64/postinstall.sh +74 -0
  99. data/templates/windows-7-ultimate-amd64/Autounattend.xml +152 -0
  100. data/templates/windows-7-ultimate-amd64/README.md +89 -0
  101. data/templates/windows-7-ultimate-amd64/definition.rb +41 -0
  102. data/templates/windows-7-ultimate-amd64/install-cygwin-sshd.bat +40 -0
  103. data/templates/windows-7-ultimate-amd64/install-winrm.bat +14 -0
  104. data/templates/windows-7-ultimate-amd64/oracle-cert.cer +0 -0
  105. data/templates/windows-7-ultimate-amd64/postinstall.sh +74 -0
  106. data/templates/windows-7sp1-ultimate-amd64/Autounattend.xml +152 -0
  107. data/templates/windows-7sp1-ultimate-amd64/README.md +89 -0
  108. data/templates/windows-7sp1-ultimate-amd64/definition.rb +42 -0
  109. data/templates/windows-7sp1-ultimate-amd64/install-cygwin-sshd.bat +40 -0
  110. data/templates/windows-7sp1-ultimate-amd64/install-winrm.bat +14 -0
  111. data/templates/windows-7sp1-ultimate-amd64/oracle-cert.cer +0 -0
  112. data/templates/windows-7sp1-ultimate-amd64/postinstall.sh +74 -0
  113. data/templates/windows-8-preview-dev-amd64/Autounattend.xml +140 -0
  114. data/templates/windows-8-preview-dev-amd64/README.md +134 -0
  115. data/templates/windows-8-preview-dev-amd64/cygwin-setup.exe +0 -0
  116. data/templates/windows-8-preview-dev-amd64/definition.rb +114 -0
  117. data/templates/windows-8-preview-dev-amd64/install-cygwin-sshd.bat +38 -0
  118. data/templates/windows-8-preview-dev-amd64/install-winrm.bat +11 -0
  119. data/templates/windows-8-preview-dev-amd64/oracle-cert.cer +0 -0
  120. data/templates/windows-8-preview-dev-amd64/postinstall.sh +122 -0
  121. data/templates/windows-8-preview-dev-amd64/winrm.rb +8 -0
  122. data/veewee.gemspec +3 -2
  123. metadata +162 -34
@@ -0,0 +1,114 @@
1
+
2
+
3
+ # Download Windows 8 Developer Preview with developer tools English, 64-bit (x64)
4
+ # http://msdn.microsoft.com/en-us/windows/apps/br229516?ppud=4
5
+ # 64bit
6
+ # http://wdp.dlws.microsoft.com/WDPDL/9B8DFDFF736C5B1DBF956B89D8A9D4FD925DACD2/WindowsDeveloperPreview-64bit-English-Developer.iso
7
+ # md5sum WindowsDeveloperPreview-64bit-English-Developer.iso
8
+ # sha1hash 6FE9352FB59F6D0789AF35D1001BD4E4E81E42AF
9
+ # md5sum
10
+
11
+
12
+ # Win2008 requires at least 10gig hard drive to install...
13
+
14
+ Veewee::Session.declare({
15
+ :os_type_id => 'Windows8_64',
16
+ :iso_file => "WindowsDeveloperPreview-64bit-English-Developer.iso"
17
+ :iso_md5 => "0477c88678efb8ebc5cd7a9e9efd8b82",
18
+ :iso_src => "http://wdp.dlws.microsoft.com/WDPDL/9B8DFDFF736C5B1DBF956B89D8A9D4FD925DACD2/WindowsDeveloperPreview-64bit-English-Developer.iso"
19
+ :iso_download_timeout => "1000",
20
+ :cpu_count => '1',
21
+ :memory_size=> '384',
22
+ :disk_size => '20280', :disk_format => 'VDI', :hostiocache => 'off',
23
+
24
+ :floppy_files => ["Autounattend.xml",
25
+ "cygwin-setup.exe",
26
+ "install-cygwin-sshd.bat",
27
+ "install-winrm.bat",
28
+ "oracle-cert.cer"],
29
+
30
+ :floppy_files => [
31
+ "Autounattend.xml", # automate install and setup winrm
32
+ "install-winrm.bat",
33
+ "install-cygwin-sshd.bat",
34
+ "cygwin-setup.exe",
35
+ "oracle-cert.cer"
36
+ ],
37
+
38
+ :boot_wait => "50",
39
+ # after 40 seconds, hit these keys to not enter a product key and fully automate the install
40
+ # if your machine is slower it may take more time
41
+ :boot_cmd_sequence => [
42
+ '<Tab><Tab><Spacebar>',
43
+ '<Tab><Tab><Tab><Spacebar>',
44
+ '<Tab><Spacebar>'
45
+ ],
46
+
47
+ :ssh_login_timeout => "10000",
48
+ # Actively attempt to ssh in for 10000 seconds
49
+ :ssh_user => "vagrant", :ssh_password => "vagrant", :ssh_key => "",
50
+ :ssh_host_port => "7233", :ssh_guest_port => "22",
51
+ # And run postinstall.sh for up to 10000 seconds
52
+ :postinstall_timeout => "10000",
53
+ :postinstall_files => ["postinstall.sh"],
54
+ # No sudo on windows
55
+ :sudo_cmd => "sh '%f'",
56
+ # Shutdown is different as well
57
+ :shutdown_cmd => "shutdown -P now",
58
+ })
59
+
60
+
61
+ # To edit the Autounattend.xml and validate it:
62
+ # Download Automated Installation Kit (AIK) for Windows Vista SP1 and Windows Server 2008:
63
+ # http://www.microsoft.com/download/en/details.aspx?id=9085
64
+ # Resulting in 6001.18000.080118-1840-kb3aikl_en.iso
65
+ # md5sum b83fad8fd28e637b82cb4a6bef7d6920 6001.18000.080118-1840-kb3aikl_en.iso
66
+
67
+ # AIK also includes dism, which will allow you to choose a specific version:
68
+
69
+ # If you want to install a different version, edit Autoattended.xml and replace the /IMAGE/NAME value with
70
+ # one of the names listed in the Longhorn install.wim on the install .iso
71
+
72
+ # <InstallFrom>
73
+ # <MetaData wcm:action="add">
74
+ # <Key>/IMAGE/NAME</Key>
75
+ # <Value>Windows Longhorn SERVERSTANDARD</Value> ### This comes from the Name: field below
76
+ # </MetaData>
77
+ # </InstallFrom>
78
+
79
+ # PS C:\Users\Administrator> Dism /Get-WIMInfo /WimFile:d:\sources\install.wim
80
+
81
+ # Deployment Image Servicing and Management tool
82
+ # Version: 6.1.7600.16385
83
+
84
+ # Details for image : d:\sources\install.wim
85
+
86
+ # Index : 1
87
+ # Name : Windows Longhorn SERVERSTANDARD
88
+ # Description : Windows Longhorn SERVERSTANDARD
89
+ # Size : 8,784,297,519 bytes
90
+
91
+ # Index : 2
92
+ # Name : Windows Longhorn SERVERENTERPRISE
93
+ # Description : Windows Longhorn SERVERENTERPRISE
94
+ # Size : 8,792,036,862 bytes
95
+
96
+ # Index : 3
97
+ # Name : Windows Longhorn SERVERDATACENTER
98
+ # Description : Windows Longhorn SERVERDATACENTER
99
+ # Size : 8,792,568,645 bytes
100
+
101
+ # Index : 4
102
+ # Name : Windows Longhorn SERVERSTANDARDCORE
103
+ # Description : Windows Longhorn SERVERSTANDARDCORE
104
+ # Size : 2,512,939,954 bytes
105
+
106
+ # Index : 5
107
+ # Name : Windows Longhorn SERVERENTERPRISECORE
108
+ # Description : Windows Longhorn SERVERENTERPRISECORE
109
+ # Size : 2,522,686,340 bytes
110
+
111
+ # Index : 6
112
+ # Name : Windows Longhorn SERVERDATACENTERCORE
113
+ # Description : Windows Longhorn SERVERDATACENTERCORE
114
+ # Size : 2,522,615,418 bytes
@@ -0,0 +1,38 @@
1
+ REM http://webcache.googleusercontent.com/search?q=cache:SjoPPpuQxuoJ:www.tcm.phy.cam.ac.uk/~mr349/cygwin_install.html+install+cygwin+ssh+commandline&cd=2&hl=nl&ct=clnk&gl=be&source=www.google.be
2
+
3
+ REM create the cygwin directory
4
+ cmd /c mkdir %SystemDrive%\cygwin
5
+ copy a:cygwin-setup.exe %SystemDrive%\cygwin
6
+
7
+ REM goto a temp directory
8
+ cd %SystemDrive%\windows\temp
9
+
10
+ REM run the installation
11
+ cmd /c a:/cygwin-setup.exe -q -R %SystemDrive%\cygwin -P openssh,openssl,curl,cygrunsrv,wget,rebase,vim -s http://cygwin.mirrors.pair.com
12
+
13
+ %SystemDrive%\cygwin\bin\bash -c 'PATH=/usr/local/bin:/usr/bin:/bin:/usr/X11R6/bin cygrunsrv -R sshd'
14
+
15
+ REM /bin/ash is the right shell for this command
16
+ cmd /c %SystemDrive%\cygwin\bin\ash -c /bin/rebaseall
17
+
18
+ cmd /c %SystemDrive%\cygwin\bin\bash -c 'PATH=/usr/local/bin:/usr/bin:/bin:/usr/X11R6/bin mkgroup -l'>%SystemDrive%\cygwin\etc\group
19
+
20
+ cmd /c %SystemDrive%\cygwin\bin\bash -c 'PATH=/usr/local/bin:/usr/bin:/bin:/usr/X11R6/bin mkpasswd -l'>%SystemDrive%\cygwin\etc\passwd
21
+
22
+ %SystemDrive%\cygwin\usr\bin\sleep 1
23
+
24
+ %SystemDrive%\cygwin\bin\bash -c 'PATH=/usr/local/bin:/usr/bin:/bin:/usr/X11R6/bin /usr/bin/ssh-host-config -y -c "ntsecbinmode tty" -w "abc&&123!!" '
25
+
26
+ %SystemDrive%\cygwin\usr\bin\sleep 2
27
+
28
+ cmd /c if exist %Systemroot%\system32\netsh.exe netsh advfirewall firewall add rule name="SSHD" dir=in action=allow program="c:\cygwin\usr\sbin\sshd.exe" SSHD enable=yes
29
+
30
+ cmd /c if exist %Systemroot%\system32\netsh.exe netsh advfirewall firewall add rule name="ssh" dir=in action=allow protocol=TCP localport=22
31
+
32
+ %SystemDrive%\cygwin\usr\bin\sleep 2
33
+
34
+ net start sshd
35
+
36
+ # Fix corrupt recycle bin
37
+ # http://www.winhelponline.com/blog/fix-corrupted-recycle-bin-windows-7-vista/
38
+ cmd /c rd /s /q c:\$Recycle.bin
@@ -0,0 +1,11 @@
1
+ cmd /c winrm quickconfig -q
2
+ cmd /c winrm quickconfig -transport:http
3
+ cmd /c winrm set winrm/config @{MaxTimeoutms="1800000"}
4
+ cmd /c winrm set winrm/config/winrs @{MaxMemoryPerShellMB="300"}
5
+ cmd /c winrm set winrm/config/service @{AllowUnencrypted="true"}
6
+ cmd /c winrm set winrm/config/service/auth @{Basic="true"}
7
+ cmd /c winrm set winrm/config/listener?Address=*+Transport=HTTP @{Port="5985"}
8
+ cmd /c netsh advfirewall firewall set rule group="remote administration" new enable=yes
9
+ cmd /c netsh firewall add portopening TCP 5985 "Port 5985"
10
+ cmd /c net stop winrm
11
+ cmd /c net start winrm
@@ -0,0 +1,122 @@
1
+ # Create the home directory
2
+ mkdir /home/vagrant
3
+ chown vagrant /home/vagrant
4
+ cd /home/vagrant
5
+
6
+ # Install ssh certificates
7
+ mkdir /home/vagrant/.ssh
8
+ chmod 700 /home/vagrant/.ssh
9
+ cd /home/vagrant/.ssh
10
+ wget --no-check-certificate 'https://raw.github.com/mitchellh/vagrant/master/keys/vagrant.pub' -O authorized_keys
11
+ chown -R vagrant /home/vagrant/.ssh
12
+ cd ..
13
+
14
+ # Install rpm,apt-get like code for cygwin
15
+ # http://superuser.com/questions/40545/upgrading-and-installing-packages-through-the-cygwin-command-line
16
+ wget http://apt-cyg.googlecode.com/svn/trunk/apt-cyg
17
+ chmod +x apt-cyg
18
+ mv apt-cyg /usr/local/bin/
19
+
20
+ # Download Daemontools Lite
21
+ # This needs some fixing as the url seems to change every X time ...
22
+ #wget http://www.daemon-tools.cc/eng/downloads/dtproAdv
23
+ #cat http://www.daemon-tools.cc/eng/downloads/dtLite|grep <div download ...>
24
+ URL=$(curl -L http://www.daemon-tools.cc/eng/downloads/dtLite|grep http|grep exe|cut -d '"' -f 4)
25
+ curl -L $URL -o daemontools.exe
26
+
27
+ #curl -L http://disc-tools.com/request?p=70e5b112a42060a5439c5edec8e4f8c3/DTLite4402-0131.exe -o daemontools.exe
28
+ chmod +x daemontools.exe
29
+
30
+ # Silent install Daemontools
31
+ # http://www.daemon-help.com/en/installation_notes_lite/installation_lite.html
32
+ # Silent install - http://forum.daemon-tools.cc/f24/dt-4-08-a-15030/
33
+ ./daemontools.exe /S
34
+
35
+ # Download Virtualbox Additions
36
+ VBOX_VERSION="4.0.8"
37
+ wget http://download.virtualbox.org/virtualbox/$VBOX_VERSION/VBoxGuestAdditions_$VBOX_VERSION.iso
38
+
39
+ # Mount iso file
40
+ # http://www.daemon-help.com/en/windows_integration_lite/command_line_parameters.html
41
+ # /cygdrive/c/Program Files (x86)/DAEMON Tools Pro
42
+ cd "/cygdrive/c/Program Files (x86)/DAEMON Tools Lite"
43
+ ./DTLite.exe -mount 0,"c:\cygwin\home\vagrant\VBoxGuestAdditions_4.0.8.iso"
44
+
45
+ # Mark Oracle as a trusted installer
46
+ #http://blogs.msdn.com/b/steverac/archive/2009/07/09/adding-certificates-to-the-local-certificates-store-and-setting-local-policy-using-a-command-line-system-center-updates-publisher-example.aspx
47
+
48
+ certutil -addstore -f "TrustedPublisher" a:oracle-cert.cer
49
+
50
+ # Install the Virtualbox Additions
51
+ cd /cygdrive/e
52
+ ./VBoxWindowsAdditions.exe /S
53
+
54
+ #http://www.msfn.org/board/topic/105277-howto-create-a-fully-up-to-date-xp-x64-dvd/
55
+
56
+ # Unmount ISO file
57
+ cd "/cygdrive/c/Program Files (x86)/DAEMON Tools Lite"
58
+ ./DTLite.exe -unmount 0
59
+
60
+ # Next step is get ruby working
61
+ # But thanks to opscode's work , that should not be an issue
62
+ # https://github.com/opscode/knife-windows/blob/master/lib/chef/knife/bootstrap/windows-shell.erb
63
+
64
+ #Installing ruby
65
+ cd /home/vagrant
66
+
67
+ # Ruby 1.9
68
+ #wget http://rubyforge.org/frs/download.php/74298/rubyinstaller-1.9.2-p180.exe -O rubyinstaller.exe
69
+ # Ruby 1.8
70
+ wget http://files.rubyforge.vm.bytemark.co.uk/rubyinstaller/rubyinstaller-1.8.7-p334.exe -O rubyinstaller.exe
71
+
72
+ chmod +x rubyinstaller.exe
73
+ ./rubyinstaller.exe /verysilent /dir="C:\ruby" /tasks="assocfiles,modpath" /SUPPRESSMSGBOXES
74
+
75
+ # Now add it to the path cmd, and cygwin path
76
+ # http://serverfault.com/questions/63017/how-do-i-modify-the-system-path-in-windows-2003-windows-2008-using-a-script
77
+ /cygdrive/c/Windows/System32/setx.exe PATH "c:\windows\system32;c:\ruby\bin" /M
78
+ export PATH=$PATH:/cygdrive/c/ruby/bin
79
+
80
+ # Install Ruby dev kit (native extensions)
81
+ mkdir /cygdrive/c/devkit
82
+ cd /cygdrive/c/devkit
83
+ wget --no-check-certificate http://github.com/downloads/oneclick/rubyinstaller/DevKit-tdm-32-4.5.1-20101214-1400-sfx.exe -O rubydevkit.exe
84
+ chmod +x rubydevkit.exe
85
+ ./rubydevkit -y
86
+ ruby dk.rb init
87
+ ruby dk.rb install
88
+
89
+ # Installing puppet
90
+ gem.bat install puppet --no-rdoc --no-ri --verbose
91
+
92
+ # Installing chef required gems on windows
93
+ # For ruby 1.8
94
+ gem.bat install win32-open3 ruby-wmi windows-api windows-pr --no-rdoc --no-ri --verbose
95
+ # For ruby 1.9
96
+ #gem.bat install win32-open3 rdp-ruby-wmi windows-api windows-pr --no-rdoc --no-ri --verbose
97
+
98
+ # Install chef
99
+ gem.bat install ohai --no-rdoc --no-ri --verbose
100
+ gem.bat install chef --no-rdoc --no-ri --verbose
101
+
102
+ # Currently 1.9 ruby + chef 10 doesn't seem to be able to
103
+ #http://stackoverflow.com/questions/4819807/ohai-fails-to-determine-os-version-in-cygwin
104
+
105
+ #Making aliases
106
+ cat <<EOF > /home/vagrant/.bash_profile
107
+ alias chef-client="chef-client.bat"
108
+ alias gem="gem.bat"
109
+ alias ruby="ruby.exe"
110
+ alias puppet="puppet.bat"
111
+ alias ohai="ohai.bat"
112
+ alias irb="irb.bat"
113
+ alias facter="facter.bat"
114
+ EOF
115
+
116
+ # Reboot
117
+ # http://www.techrepublic.com/blog/datacenter/restart-windows-server-2003-from-the-command-line/245
118
+ shutdown.exe /r /t 0 /c "Vagrant initial reboot"
119
+
120
+ # Mounting a directory
121
+ #./net.exe use x: \\vboxsvr\veewee-validation
122
+
@@ -0,0 +1,8 @@
1
+ require 'winrm'
2
+ endpoint = 'http://localhost:5985/wsman'
3
+ winrm=WinRM::WinRMWebService.new(endpoint, :plaintext, :user => 'Administrator', :pass => 'vagrant', :basic_auth_only => true)
4
+ winrm.cmd('ifconfig /all') do |stdout, stderr|
5
+ STDOUT.print stdout
6
+ STDERR.print stderr
7
+ end
8
+ #winrm.open_shell
@@ -14,8 +14,9 @@ Gem::Specification.new do |s|
14
14
  s.required_rubygems_version = ">= 1.3.6"
15
15
  s.rubyforge_project = "veewee"
16
16
 
17
- s.add_dependency "vagrant", "~> 0.8.2"
18
- s.add_dependency "net-ssh", "~> 2.1.0"
17
+ s.add_dependency "vagrant", ">= 0.9.0"
18
+ s.add_dependency "virtualbox", ">= 0.9.2"
19
+ s.add_dependency "net-ssh", ">= 2.1.0"
19
20
  s.add_dependency "popen4", "~> 0.1.2"
20
21
  s.add_dependency "thor", "~> 0.14.6"
21
22
  s.add_dependency "highline", "~> 1.6.1"
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: veewee
3
3
  version: !ruby/object:Gem::Version
4
- hash: 19
4
+ hash: 17
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 2
9
- - 2
10
- version: 0.2.2
9
+ - 3
10
+ version: 0.2.3
11
11
  platform: ruby
12
12
  authors:
13
13
  - Patrick Debois
@@ -16,29 +16,46 @@ autorequire:
16
16
  bindir: bin
17
17
  cert_chain: []
18
18
 
19
- date: 2011-12-15 00:00:00 Z
19
+ date: 2012-02-07 00:00:00 +01:00
20
+ default_executable:
20
21
  dependencies:
21
22
  - !ruby/object:Gem::Dependency
22
23
  version_requirements: &id001 !ruby/object:Gem::Requirement
23
24
  none: false
24
25
  requirements:
25
- - - ~>
26
+ - - ">="
26
27
  - !ruby/object:Gem::Version
27
28
  hash: 59
28
29
  segments:
29
30
  - 0
30
- - 8
31
- - 2
32
- version: 0.8.2
31
+ - 9
32
+ - 0
33
+ version: 0.9.0
34
+ type: :runtime
33
35
  requirement: *id001
34
36
  name: vagrant
35
- type: :runtime
36
37
  prerelease: false
37
38
  - !ruby/object:Gem::Dependency
38
39
  version_requirements: &id002 !ruby/object:Gem::Requirement
39
40
  none: false
40
41
  requirements:
41
- - - ~>
42
+ - - ">="
43
+ - !ruby/object:Gem::Version
44
+ hash: 63
45
+ segments:
46
+ - 0
47
+ - 9
48
+ - 2
49
+ version: 0.9.2
50
+ type: :runtime
51
+ requirement: *id002
52
+ name: virtualbox
53
+ prerelease: false
54
+ - !ruby/object:Gem::Dependency
55
+ version_requirements: &id003 !ruby/object:Gem::Requirement
56
+ none: false
57
+ requirements:
58
+ - - ">="
42
59
  - !ruby/object:Gem::Version
43
60
  hash: 11
44
61
  segments:
@@ -46,12 +63,12 @@ dependencies:
46
63
  - 1
47
64
  - 0
48
65
  version: 2.1.0
49
- requirement: *id002
50
- name: net-ssh
51
66
  type: :runtime
67
+ requirement: *id003
68
+ name: net-ssh
52
69
  prerelease: false
53
70
  - !ruby/object:Gem::Dependency
54
- version_requirements: &id003 !ruby/object:Gem::Requirement
71
+ version_requirements: &id004 !ruby/object:Gem::Requirement
55
72
  none: false
56
73
  requirements:
57
74
  - - ~>
@@ -62,12 +79,12 @@ dependencies:
62
79
  - 1
63
80
  - 2
64
81
  version: 0.1.2
65
- requirement: *id003
66
- name: popen4
67
82
  type: :runtime
83
+ requirement: *id004
84
+ name: popen4
68
85
  prerelease: false
69
86
  - !ruby/object:Gem::Dependency
70
- version_requirements: &id004 !ruby/object:Gem::Requirement
87
+ version_requirements: &id005 !ruby/object:Gem::Requirement
71
88
  none: false
72
89
  requirements:
73
90
  - - ~>
@@ -78,12 +95,12 @@ dependencies:
78
95
  - 14
79
96
  - 6
80
97
  version: 0.14.6
81
- requirement: *id004
82
- name: thor
83
98
  type: :runtime
99
+ requirement: *id005
100
+ name: thor
84
101
  prerelease: false
85
102
  - !ruby/object:Gem::Dependency
86
- version_requirements: &id005 !ruby/object:Gem::Requirement
103
+ version_requirements: &id006 !ruby/object:Gem::Requirement
87
104
  none: false
88
105
  requirements:
89
106
  - - ~>
@@ -94,12 +111,12 @@ dependencies:
94
111
  - 6
95
112
  - 1
96
113
  version: 1.6.1
97
- requirement: *id005
98
- name: highline
99
114
  type: :runtime
115
+ requirement: *id006
116
+ name: highline
100
117
  prerelease: false
101
118
  - !ruby/object:Gem::Dependency
102
- version_requirements: &id006 !ruby/object:Gem::Requirement
119
+ version_requirements: &id007 !ruby/object:Gem::Requirement
103
120
  none: false
104
121
  requirements:
105
122
  - - ">="
@@ -108,12 +125,12 @@ dependencies:
108
125
  segments:
109
126
  - 0
110
127
  version: "0"
111
- requirement: *id006
112
- name: progressbar
113
128
  type: :runtime
129
+ requirement: *id007
130
+ name: progressbar
114
131
  prerelease: false
115
132
  - !ruby/object:Gem::Dependency
116
- version_requirements: &id007 !ruby/object:Gem::Requirement
133
+ version_requirements: &id008 !ruby/object:Gem::Requirement
117
134
  none: false
118
135
  requirements:
119
136
  - - ">="
@@ -124,12 +141,12 @@ dependencies:
124
141
  - 0
125
142
  - 0
126
143
  version: 1.0.0
127
- requirement: *id007
128
- name: cucumber
129
144
  type: :runtime
145
+ requirement: *id008
146
+ name: cucumber
130
147
  prerelease: false
131
148
  - !ruby/object:Gem::Dependency
132
- version_requirements: &id008 !ruby/object:Gem::Requirement
149
+ version_requirements: &id009 !ruby/object:Gem::Requirement
133
150
  none: false
134
151
  requirements:
135
152
  - - ~>
@@ -139,12 +156,12 @@ dependencies:
139
156
  - 2
140
157
  - 5
141
158
  version: "2.5"
142
- requirement: *id008
143
- name: rspec
144
159
  type: :runtime
160
+ requirement: *id009
161
+ name: rspec
145
162
  prerelease: false
146
163
  - !ruby/object:Gem::Dependency
147
- version_requirements: &id009 !ruby/object:Gem::Requirement
164
+ version_requirements: &id010 !ruby/object:Gem::Requirement
148
165
  none: false
149
166
  requirements:
150
167
  - - ">="
@@ -155,9 +172,9 @@ dependencies:
155
172
  - 0
156
173
  - 0
157
174
  version: 1.0.0
158
- requirement: *id009
159
- name: bundler
160
175
  type: :development
176
+ requirement: *id010
177
+ name: bundler
161
178
  prerelease: false
162
179
  description: Expand the 'vagrant box' command to support the creation of base boxes from scratch
163
180
  email:
@@ -173,6 +190,7 @@ files:
173
190
  - .gitignore
174
191
  - .rvmrc
175
192
  - Gemfile
193
+ - Gemfile.lock
176
194
  - README.md
177
195
  - Rakefile
178
196
  - bin/veewee
@@ -182,6 +200,16 @@ files:
182
200
  - lib/vagrant_init.rb
183
201
  - lib/veewee.rb
184
202
  - lib/veewee/command.rb
203
+ - lib/veewee/command/basebox.rb
204
+ - lib/veewee/command/basebox_build.rb
205
+ - lib/veewee/command/basebox_define.rb
206
+ - lib/veewee/command/basebox_destroy.rb
207
+ - lib/veewee/command/basebox_export.rb
208
+ - lib/veewee/command/basebox_list.rb
209
+ - lib/veewee/command/basebox_ostypes.rb
210
+ - lib/veewee/command/basebox_templates.rb
211
+ - lib/veewee/command/basebox_undefine.rb
212
+ - lib/veewee/command/basebox_validate.rb
185
213
  - lib/veewee/config.rb
186
214
  - lib/veewee/export.rb
187
215
  - lib/veewee/scancode.rb
@@ -231,6 +259,9 @@ files:
231
259
  - templates/CentOS-6.1-x86_64-minimal/definition.rb
232
260
  - templates/CentOS-6.1-x86_64-minimal/ks.cfg
233
261
  - templates/CentOS-6.1-x86_64-minimal/postinstall.sh
262
+ - templates/CentOS-6.2-x86_64-minimal/definition.rb
263
+ - templates/CentOS-6.2-x86_64-minimal/ks.cfg
264
+ - templates/CentOS-6.2-x86_64-minimal/postinstall.sh
234
265
  - templates/Debian-5.0.8-amd64-netboot/definition.rb
235
266
  - templates/Debian-5.0.8-amd64-netboot/postinstall.sh
236
267
  - templates/Debian-5.0.8-amd64-netboot/preseed.cfg
@@ -273,6 +304,14 @@ files:
273
304
  - templates/Fedora-16-x86_64/definition.rb
274
305
  - templates/Fedora-16-x86_64/ks.cfg
275
306
  - templates/Fedora-16-x86_64/postinstall.sh
307
+ - templates/SLES-11-SP1-DVD-i586-GM/autoinst_de.xml
308
+ - templates/SLES-11-SP1-DVD-i586-GM/autoinst_en.xml
309
+ - templates/SLES-11-SP1-DVD-i586-GM/definition.rb
310
+ - templates/SLES-11-SP1-DVD-i586-GM/postinstall.sh
311
+ - templates/SLES-11-SP1-DVD-x86_64-GM/autoinst_de.xml
312
+ - templates/SLES-11-SP1-DVD-x86_64-GM/autoinst_en.xml
313
+ - templates/SLES-11-SP1-DVD-x86_64-GM/definition.rb
314
+ - templates/SLES-11-SP1-DVD-x86_64-GM/postinstall.sh
276
315
  - templates/Sysrescuecd-2.0.0-experimental/autorun0
277
316
  - templates/Sysrescuecd-2.0.0-experimental/definition.rb
278
317
  - templates/archlinux-i386-netboot/aif.cfg
@@ -298,6 +337,9 @@ files:
298
337
  - templates/freebsd-8.2-pcbsd-i386/definition.rb
299
338
  - templates/freebsd-8.2-pcbsd-i386/pcinstall.fbg.cfg
300
339
  - templates/freebsd-8.2-pcbsd-i386/postinstall.sh
340
+ - templates/funtoo-latest-generic_64-stable/definition.rb
341
+ - templates/funtoo-latest-generic_64-stable/postinstall.sh
342
+ - templates/funtoo-latest-generic_64-stable/postinstall2.sh
301
343
  - templates/gentoo-latest-i386-experimental/definition.rb
302
344
  - templates/gentoo-latest-i386-experimental/postinstall.sh
303
345
  - templates/gentoo-latest-x86_64-experimental/definition.rb
@@ -318,6 +360,21 @@ files:
318
360
  - templates/openSUSE-11.4-NET-x86_64/autoinst_en.xml
319
361
  - templates/openSUSE-11.4-NET-x86_64/definition.rb
320
362
  - templates/openSUSE-11.4-NET-x86_64/postinstall.sh
363
+ - templates/openSUSE-12.1-DVD+NET-i586/autoinst_de.xml
364
+ - templates/openSUSE-12.1-DVD+NET-i586/autoinst_en.xml
365
+ - templates/openSUSE-12.1-DVD+NET-i586/definition.rb
366
+ - templates/openSUSE-12.1-DVD+NET-i586/postinstall.sh
367
+ - templates/openSUSE-12.1-DVD+NET-x86_64/autoinst_de.xml
368
+ - templates/openSUSE-12.1-DVD+NET-x86_64/autoinst_en.xml
369
+ - templates/openSUSE-12.1-DVD+NET-x86_64/definition.rb
370
+ - templates/openSUSE-12.1-DVD+NET-x86_64/postinstall.sh
371
+ - templates/openbsd50_amd64/README
372
+ - templates/openbsd50_amd64/definition.rb
373
+ - templates/openbsd50_amd64/postinstall.sh
374
+ - templates/openbsd50_i386/.definition.rb.swp
375
+ - templates/openbsd50_i386/README
376
+ - templates/openbsd50_i386/definition.rb
377
+ - templates/openbsd50_i386/postinstall.sh
321
378
  - templates/openindiana-148-ai-x86/auto_install/ai.dtd
322
379
  - templates/openindiana-148-ai-x86/auto_install/ai_manifest.xml
323
380
  - templates/openindiana-148-ai-x86/auto_install/configuration.dtd
@@ -403,6 +460,17 @@ files:
403
460
  - templates/ubuntu-8.04.4-server-i386/definition.rb
404
461
  - templates/ubuntu-8.04.4-server-i386/postinstall.sh
405
462
  - templates/ubuntu-8.04.4-server-i386/preseed.cfg
463
+ - templates/windows-2008R1-serverstandard-amd64/Autounattend.xml
464
+ - templates/windows-2008R1-serverstandard-amd64/README.md
465
+ - templates/windows-2008R1-serverstandard-amd64/cygwin-setup.exe
466
+ - templates/windows-2008R1-serverstandard-amd64/definition.rb
467
+ - templates/windows-2008R1-serverstandard-amd64/install-cygwin-sshd.bat
468
+ - templates/windows-2008R1-serverstandard-amd64/install-guest-additions.bat
469
+ - templates/windows-2008R1-serverstandard-amd64/install-winrm.bat
470
+ - templates/windows-2008R1-serverstandard-amd64/oracle-cert.cer
471
+ - templates/windows-2008R1-serverstandard-amd64/postinstall.sh
472
+ - templates/windows-2008R1-serverstandard-amd64/sudo
473
+ - templates/windows-2008R1-serverstandard-amd64/winrm.rb
406
474
  - templates/windows-2008R2-amd64/Autounattend.xml
407
475
  - templates/windows-2008R2-amd64/README.md
408
476
  - templates/windows-2008R2-amd64/cygwin-setup.exe
@@ -412,6 +480,65 @@ files:
412
480
  - templates/windows-2008R2-amd64/oracle-cert.cer
413
481
  - templates/windows-2008R2-amd64/postinstall.sh
414
482
  - templates/windows-2008R2-amd64/winrm.rb
483
+ - templates/windows-2008R2-serverstandard-amd64/Autounattend.xml
484
+ - templates/windows-2008R2-serverstandard-amd64/README.md
485
+ - templates/windows-2008R2-serverstandard-amd64/definition.rb
486
+ - templates/windows-2008R2-serverstandard-amd64/install-cygwin-sshd.bat
487
+ - templates/windows-2008R2-serverstandard-amd64/install-winrm.bat
488
+ - templates/windows-2008R2-serverstandard-amd64/oracle-cert.cer
489
+ - templates/windows-2008R2-serverstandard-amd64/postinstall.sh
490
+ - templates/windows-7-enterprise-amd64/Autounattend.xml
491
+ - templates/windows-7-enterprise-amd64/README.md
492
+ - templates/windows-7-enterprise-amd64/definition.rb
493
+ - templates/windows-7-enterprise-amd64/install-cygwin-sshd.bat
494
+ - templates/windows-7-enterprise-amd64/install-winrm.bat
495
+ - templates/windows-7-enterprise-amd64/oracle-cert.cer
496
+ - templates/windows-7-enterprise-amd64/postinstall.sh
497
+ - templates/windows-7-enterprise-i386/Autounattend.xml
498
+ - templates/windows-7-enterprise-i386/README.md
499
+ - templates/windows-7-enterprise-i386/definition.rb
500
+ - templates/windows-7-enterprise-i386/install-cygwin-sshd.bat
501
+ - templates/windows-7-enterprise-i386/install-winrm.bat
502
+ - templates/windows-7-enterprise-i386/oracle-cert.cer
503
+ - templates/windows-7-enterprise-i386/postinstall.sh
504
+ - templates/windows-7-premium-amd64/Autounattend.xml
505
+ - templates/windows-7-premium-amd64/README.md
506
+ - templates/windows-7-premium-amd64/definition.rb
507
+ - templates/windows-7-premium-amd64/install-chefclient.bat
508
+ - templates/windows-7-premium-amd64/install-winrm.bat
509
+ - templates/windows-7-premium-amd64/oracle-cert.cer
510
+ - templates/windows-7-premium-amd64/postinstall.sh
511
+ - templates/windows-7-premium-amd64/winrm.rb
512
+ - templates/windows-7-professional-amd64/Autounattend.xml
513
+ - templates/windows-7-professional-amd64/README.md
514
+ - templates/windows-7-professional-amd64/definition.rb
515
+ - templates/windows-7-professional-amd64/install-cygwin-sshd.bat
516
+ - templates/windows-7-professional-amd64/install-winrm.bat
517
+ - templates/windows-7-professional-amd64/oracle-cert.cer
518
+ - templates/windows-7-professional-amd64/postinstall.sh
519
+ - templates/windows-7-ultimate-amd64/Autounattend.xml
520
+ - templates/windows-7-ultimate-amd64/README.md
521
+ - templates/windows-7-ultimate-amd64/definition.rb
522
+ - templates/windows-7-ultimate-amd64/install-cygwin-sshd.bat
523
+ - templates/windows-7-ultimate-amd64/install-winrm.bat
524
+ - templates/windows-7-ultimate-amd64/oracle-cert.cer
525
+ - templates/windows-7-ultimate-amd64/postinstall.sh
526
+ - templates/windows-7sp1-ultimate-amd64/Autounattend.xml
527
+ - templates/windows-7sp1-ultimate-amd64/README.md
528
+ - templates/windows-7sp1-ultimate-amd64/definition.rb
529
+ - templates/windows-7sp1-ultimate-amd64/install-cygwin-sshd.bat
530
+ - templates/windows-7sp1-ultimate-amd64/install-winrm.bat
531
+ - templates/windows-7sp1-ultimate-amd64/oracle-cert.cer
532
+ - templates/windows-7sp1-ultimate-amd64/postinstall.sh
533
+ - templates/windows-8-preview-dev-amd64/Autounattend.xml
534
+ - templates/windows-8-preview-dev-amd64/README.md
535
+ - templates/windows-8-preview-dev-amd64/cygwin-setup.exe
536
+ - templates/windows-8-preview-dev-amd64/definition.rb
537
+ - templates/windows-8-preview-dev-amd64/install-cygwin-sshd.bat
538
+ - templates/windows-8-preview-dev-amd64/install-winrm.bat
539
+ - templates/windows-8-preview-dev-amd64/oracle-cert.cer
540
+ - templates/windows-8-preview-dev-amd64/postinstall.sh
541
+ - templates/windows-8-preview-dev-amd64/winrm.rb
415
542
  - trials/docu-vbox.txt
416
543
  - trials/f.rb
417
544
  - trials/t.rb
@@ -421,6 +548,7 @@ files:
421
548
  - validation/vagrant.feature
422
549
  - validation/vagrant.pub
423
550
  - veewee.gemspec
551
+ has_rdoc: true
424
552
  homepage: http://github.com/jedi4ever/veewee/
425
553
  licenses: []
426
554
 
@@ -452,7 +580,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
452
580
  requirements: []
453
581
 
454
582
  rubyforge_project: veewee
455
- rubygems_version: 1.8.12
583
+ rubygems_version: 1.4.2
456
584
  signing_key:
457
585
  specification_version: 3
458
586
  summary: Vagrant box creation