veewee 0.1.22 → 0.1.23
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.
- data/.gitignore +1 -0
- data/Gemfile.lock +1 -1
- data/lib/java/README.txt +5 -0
- data/lib/java/dir2floppy.jar +0 -0
- data/lib/java/dir2floppy.java +137 -0
- data/lib/veewee/session.rb +57 -10
- data/lib/veewee/version.rb +1 -1
- data/lib/veewee/web.rb +1 -1
- data/templates/CentOS-4.8-i386/definition.rb +2 -1
- data/templates/CentOS-4.8-i386/postinstall.sh +1 -1
- data/templates/{CentOS-5.5-i386-netboot → CentOS-5.6-i386-netboot}/definition.rb +4 -4
- data/templates/{CentOS-5.5-i386-netboot → CentOS-5.6-i386-netboot}/ks.cfg +0 -0
- data/templates/{CentOS-5.5-i386-netboot → CentOS-5.6-i386-netboot}/postinstall.sh +1 -1
- data/templates/{CentOS-5.5-i386 → CentOS-5.6-i386}/definition.rb +4 -2
- data/templates/{CentOS-5.5-i386 → CentOS-5.6-i386}/ks.cfg +0 -0
- data/templates/{CentOS-5.5-i386 → CentOS-5.6-i386}/postinstall.sh +1 -1
- data/templates/Debian-6.0.1a-amd64-netboot/postinstall.sh +1 -1
- data/templates/Fedora-14-amd64-netboot/definition.rb +1 -1
- data/templates/Fedora-14-amd64-netboot/postinstall.sh +1 -1
- data/templates/Fedora-14-amd64/definition.rb +1 -1
- data/templates/Fedora-14-amd64/postinstall.sh +1 -1
- data/templates/Fedora-14-i386-netboot/definition.rb +1 -1
- data/templates/Fedora-14-i386-netboot/postinstall.sh +1 -1
- data/templates/Fedora-14-i386/definition.rb +1 -1
- data/templates/Fedora-14-i386/postinstall.sh +1 -1
- data/templates/gentoo-latest-i386-experimental/definition.rb +29 -0
- data/templates/gentoo-latest-i386-experimental/postinstall.sh +182 -0
- data/templates/opensuse-11.4-i386-experimental/README +11 -0
- data/templates/opensuse-11.4-i386-experimental/autoinst.xml +1269 -0
- data/templates/opensuse-11.4-i386-experimental/autoinst.xml.generated +1269 -0
- data/templates/opensuse-11.4-i386-experimental/autoinst.xml.tweaked +1269 -0
- data/templates/opensuse-11.4-i386-experimental/definition.rb +31 -0
- data/templates/opensuse-11.4-i386-experimental/postinstall.sh +89 -0
- data/templates/solaris-11-express-i386/postinstall.sh +5 -5
- data/templates/ubuntu-10.04.2-server-amd64/postinstall.sh +44 -15
- data/templates/ubuntu-10.04.2-server-i386/postinstall.sh +46 -16
- data/templates/ubuntu-10.10-server-amd64-netboot/postinstall.sh +46 -16
- data/templates/ubuntu-10.10-server-amd64/postinstall.sh +45 -15
- data/templates/ubuntu-10.10-server-i386-netboot/postinstall.sh +45 -15
- data/templates/ubuntu-10.10-server-i386/postinstall.sh +45 -15
- data/templates/ubuntu-11.04-server-amd64/definition.rb +24 -0
- data/templates/ubuntu-11.04-server-amd64/postinstall.sh +73 -0
- data/templates/ubuntu-11.04-server-amd64/preseed.cfg +87 -0
- data/templates/ubuntu-11.04-server-i386/definition.rb +24 -0
- data/templates/ubuntu-11.04-server-i386/postinstall.sh +73 -0
- data/templates/ubuntu-11.04-server-i386/preseed.cfg +87 -0
- data/templates/windows-2008R2-amd64-experimental/Autounattend.xml +132 -0
- data/templates/windows-2008R2-amd64-experimental/README.md +33 -0
- data/templates/windows-2008R2-amd64-experimental/cygwin-setup.exe +0 -0
- data/templates/windows-2008R2-amd64-experimental/cygwin-sshd.bat +38 -0
- data/templates/windows-2008R2-amd64-experimental/definition.rb +17 -0
- data/templates/windows-2008R2-amd64-experimental/install-winrm.bat +6 -0
- data/templates/windows-2008R2-amd64-experimental/note-virtualbox-additions.txt +23 -0
- data/templates/windows-2008R2-amd64-experimental/postinstall.sh +48 -0
- data/templates/windows-2008R2-amd64-experimental/setup.exe +0 -0
- data/templates/windows-2008R2-amd64-experimental/winrm.rb +8 -0
- metadata +37 -15
- data/templates/ubuntu-10.04.2-server-i386/postinstall2.sh +0 -9
- data/templates/ubuntu-10.10-server-amd64-netboot/postinstall2.sh +0 -9
- data/templates/ubuntu-10.10-server-amd64/postinstall2.sh +0 -9
- data/templates/ubuntu-10.10-server-i386-netboot/postinstall2.sh +0 -9
- data/templates/ubuntu-10.10-server-i386/postinstall2.sh +0 -9
@@ -0,0 +1,87 @@
|
|
1
|
+
## Options to set on the command line
|
2
|
+
d-i debian-installer/locale string en_US.utf8
|
3
|
+
d-i console-setup/ask_detect boolean false
|
4
|
+
d-i console-setup/layout string USA
|
5
|
+
|
6
|
+
#d-i netcfg/get_hostname string dummy
|
7
|
+
d-i netcfg/get_hostname string unassigned-hostname
|
8
|
+
d-i netcfg/get_domain string unassigned-domain
|
9
|
+
|
10
|
+
# Continue without a default route
|
11
|
+
# Not working , specify a dummy in the DHCP
|
12
|
+
#d-i netcfg/no_default_route boolean
|
13
|
+
|
14
|
+
d-i time/zone string UTC
|
15
|
+
d-i clock-setup/utc-auto boolean true
|
16
|
+
d-i clock-setup/utc boolean true
|
17
|
+
|
18
|
+
d-i kbd-chooser/method select American English
|
19
|
+
|
20
|
+
d-i netcfg/wireless_wep string
|
21
|
+
|
22
|
+
d-i base-installer/kernel/override-image string linux-server
|
23
|
+
#d-i base-installer/kernel/override-image string linux-image-2.6.32-21-generic
|
24
|
+
|
25
|
+
# Choices: Dialog, Readline, Gnome, Kde, Editor, Noninteractive
|
26
|
+
d-i debconf debconf/frontend select Noninteractive
|
27
|
+
|
28
|
+
d-i pkgsel/install-language-support boolean false
|
29
|
+
tasksel tasksel/first multiselect standard, ubuntu-server
|
30
|
+
|
31
|
+
#d-i partman-auto/method string regular
|
32
|
+
d-i partman-auto/method string lvm
|
33
|
+
#d-i partman-auto/purge_lvm_from_device boolean true
|
34
|
+
|
35
|
+
d-i partman-lvm/confirm boolean true
|
36
|
+
d-i partman-lvm/device_remove_lvm boolean true
|
37
|
+
d-i partman-auto/choose_recipe select atomic
|
38
|
+
|
39
|
+
d-i partman/confirm_write_new_label boolean true
|
40
|
+
d-i partman/confirm_nooverwrite boolean true
|
41
|
+
d-i partman/choose_partition select finish
|
42
|
+
d-i partman/confirm boolean true
|
43
|
+
|
44
|
+
#http://ubuntu-virginia.ubuntuforums.org/showthread.php?p=9626883
|
45
|
+
#Message: "write the changes to disk and configure lvm preseed"
|
46
|
+
#http://serverfault.com/questions/189328/ubuntu-kickstart-installation-using-lvm-waits-for-input
|
47
|
+
#preseed partman-lvm/confirm_nooverwrite boolean true
|
48
|
+
|
49
|
+
# Write the changes to disks and configure LVM?
|
50
|
+
d-i partman-lvm/confirm boolean true
|
51
|
+
d-i partman-lvm/confirm_nooverwrite boolean true
|
52
|
+
d-i partman-auto-lvm/guided_size string max
|
53
|
+
|
54
|
+
## Default user, we can get away with a recipe to change this
|
55
|
+
d-i passwd/user-fullname string vagrant
|
56
|
+
d-i passwd/username string vagrant
|
57
|
+
d-i passwd/user-password password vagrant
|
58
|
+
d-i passwd/user-password-again password vagrant
|
59
|
+
d-i user-setup/encrypt-home boolean false
|
60
|
+
d-i user-setup/allow-password-weak boolean true
|
61
|
+
|
62
|
+
## minimum is puppet and ssh and ntp
|
63
|
+
# Individual additional packages to install
|
64
|
+
d-i pkgsel/include string openssh-server ntp
|
65
|
+
|
66
|
+
# Whether to upgrade packages after debootstrap.
|
67
|
+
# Allowed values: none, safe-upgrade, full-upgrade
|
68
|
+
d-i pkgsel/upgrade select full-upgrade
|
69
|
+
|
70
|
+
d-i grub-installer/only_debian boolean true
|
71
|
+
d-i grub-installer/with_other_os boolean true
|
72
|
+
d-i finish-install/reboot_in_progress note
|
73
|
+
|
74
|
+
#For the update
|
75
|
+
d-i pkgsel/update-policy select none
|
76
|
+
|
77
|
+
# debconf-get-selections --install
|
78
|
+
#Use mirror
|
79
|
+
#d-i apt-setup/use_mirror boolean true
|
80
|
+
#d-i mirror/country string manual
|
81
|
+
#choose-mirror-bin mirror/protocol string http
|
82
|
+
#choose-mirror-bin mirror/http/hostname string 192.168.4.150
|
83
|
+
#choose-mirror-bin mirror/http/directory string /ubuntu
|
84
|
+
#choose-mirror-bin mirror/suite select maverick
|
85
|
+
#d-i debian-installer/allow_unauthenticated string true
|
86
|
+
|
87
|
+
choose-mirror-bin mirror/http/proxy string
|
@@ -0,0 +1,132 @@
|
|
1
|
+
<?xml version="1.0" encoding="utf-8"?>
|
2
|
+
<unattend xmlns="urn:schemas-microsoft-com:unattend">
|
3
|
+
<servicing></servicing>
|
4
|
+
<settings pass="windowsPE">
|
5
|
+
<component name="Microsoft-Windows-Setup" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
|
6
|
+
<DiskConfiguration>
|
7
|
+
<Disk wcm:action="add">
|
8
|
+
<CreatePartitions>
|
9
|
+
<CreatePartition wcm:action="add">
|
10
|
+
<Order>1</Order>
|
11
|
+
<Type>Primary</Type>
|
12
|
+
<Size>10000</Size>
|
13
|
+
</CreatePartition>
|
14
|
+
</CreatePartitions>
|
15
|
+
<ModifyPartitions>
|
16
|
+
<ModifyPartition wcm:action="add">
|
17
|
+
<Extend>false</Extend>
|
18
|
+
<Format>NTFS</Format>
|
19
|
+
<Letter>C</Letter>
|
20
|
+
<Order>1</Order>
|
21
|
+
<PartitionID>1</PartitionID>
|
22
|
+
<Label>Windows 2008R2</Label>
|
23
|
+
</ModifyPartition>
|
24
|
+
</ModifyPartitions>
|
25
|
+
<DiskID>0</DiskID>
|
26
|
+
<WillWipeDisk>true</WillWipeDisk>
|
27
|
+
</Disk>
|
28
|
+
<WillShowUI>OnError</WillShowUI>
|
29
|
+
</DiskConfiguration>
|
30
|
+
<UserData>
|
31
|
+
<ProductKey>
|
32
|
+
<WillShowUI>Never</WillShowUI>
|
33
|
+
</ProductKey>
|
34
|
+
<AcceptEula>true</AcceptEula>
|
35
|
+
<FullName>Vagrant Fullname</FullName>
|
36
|
+
<Organization>Vagrant Inc</Organization>
|
37
|
+
</UserData>
|
38
|
+
<ImageInstall>
|
39
|
+
<OSImage>
|
40
|
+
<InstallTo>
|
41
|
+
<DiskID>0</DiskID>
|
42
|
+
<PartitionID>1</PartitionID>
|
43
|
+
</InstallTo>
|
44
|
+
<WillShowUI>OnError</WillShowUI>
|
45
|
+
<InstallToAvailablePartition>false</InstallToAvailablePartition>
|
46
|
+
<InstallFrom>
|
47
|
+
<MetaData wcm:action="add">
|
48
|
+
<Key>/IMAGE/NAME</Key>
|
49
|
+
<Value>Windows Server 2008 R2 SERVERSTANDARD</Value>
|
50
|
+
</MetaData>
|
51
|
+
</InstallFrom>
|
52
|
+
</OSImage>
|
53
|
+
</ImageInstall>
|
54
|
+
</component>
|
55
|
+
<component name="Microsoft-Windows-International-Core-WinPE" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
|
56
|
+
<SetupUILanguage>
|
57
|
+
<UILanguage>en-US</UILanguage>
|
58
|
+
</SetupUILanguage>
|
59
|
+
<InputLocale>en-US</InputLocale>
|
60
|
+
<SystemLocale>en-US</SystemLocale>
|
61
|
+
<UILanguage>en-US</UILanguage>
|
62
|
+
<UILanguageFallback>en-US</UILanguageFallback>
|
63
|
+
<UserLocale>en-US</UserLocale>
|
64
|
+
</component>
|
65
|
+
</settings>
|
66
|
+
<settings pass="oobeSystem">
|
67
|
+
<component name="Microsoft-Windows-Shell-Setup" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
|
68
|
+
<UserAccounts>
|
69
|
+
<AdministratorPassword>
|
70
|
+
<Value>dgBhAGcAcgBhAG4AdABBAGQAbQBpAG4AaQBzAHQAcgBhAHQAbwByAFAAYQBzAHMAdwBvAHIAZAA=</Value>
|
71
|
+
<PlainText>false</PlainText>
|
72
|
+
</AdministratorPassword>
|
73
|
+
<LocalAccounts>
|
74
|
+
<LocalAccount wcm:action="add">
|
75
|
+
<Password>
|
76
|
+
<Value>dgBhAGcAcgBhAG4AdABQAGEAcwBzAHcAbwByAGQA</Value>
|
77
|
+
<PlainText>false</PlainText>
|
78
|
+
</Password>
|
79
|
+
<Description>Vagrant User</Description>
|
80
|
+
<DisplayName>vagrant</DisplayName>
|
81
|
+
<Group>administrators</Group>
|
82
|
+
<Name>vagrant</Name>
|
83
|
+
</LocalAccount>
|
84
|
+
</LocalAccounts>
|
85
|
+
</UserAccounts>
|
86
|
+
<OOBE>
|
87
|
+
<HideEULAPage>true</HideEULAPage>
|
88
|
+
<HideWirelessSetupInOOBE>true</HideWirelessSetupInOOBE>
|
89
|
+
<NetworkLocation>Home</NetworkLocation>
|
90
|
+
</OOBE>
|
91
|
+
<AutoLogon>
|
92
|
+
<Password>
|
93
|
+
<Value>dgBhAGcAcgBhAG4AdABQAGEAcwBzAHcAbwByAGQA</Value>
|
94
|
+
<PlainText>false</PlainText>
|
95
|
+
</Password>
|
96
|
+
<Username>administrator</Username>
|
97
|
+
<Enabled>true</Enabled>
|
98
|
+
</AutoLogon>
|
99
|
+
<FirstLogonCommands>
|
100
|
+
<SynchronousCommand wcm:action="add">
|
101
|
+
<CommandLine>cmd.exe /c a:cygwin-sshd.bat</CommandLine>
|
102
|
+
<Description>Install Cygwin SSH</Description>
|
103
|
+
<Order>1</Order>
|
104
|
+
<RequiresUserInput>true</RequiresUserInput>
|
105
|
+
</SynchronousCommand>
|
106
|
+
<SynchronousCommand wcm:action="add">
|
107
|
+
<CommandLine>cmd.exe /c a:install-winrm.bat</CommandLine>
|
108
|
+
<Description>Install Win RM</Description>
|
109
|
+
<Order>2</Order>
|
110
|
+
<RequiresUserInput>true</RequiresUserInput>
|
111
|
+
</SynchronousCommand>
|
112
|
+
|
113
|
+
</FirstLogonCommands>
|
114
|
+
<ShowWindowsLive>false</ShowWindowsLive>
|
115
|
+
</component>
|
116
|
+
</settings>
|
117
|
+
<settings pass="specialize">
|
118
|
+
<component name="Microsoft-Windows-Shell-Setup" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" >
|
119
|
+
<OEMInformation>
|
120
|
+
<HelpCustomized>false</HelpCustomized>
|
121
|
+
</OEMInformation>
|
122
|
+
<!-- Rename computer here. -->
|
123
|
+
<ComputerName>vagrant-2008R2</ComputerName>
|
124
|
+
<TimeZone>Pacific Standard Time</TimeZone>
|
125
|
+
<RegisteredOwner></RegisteredOwner>
|
126
|
+
</component>
|
127
|
+
<component name="Microsoft-Windows-Security-SPP-UX" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
|
128
|
+
<SkipAutoActivation>true</SkipAutoActivation>
|
129
|
+
</component>
|
130
|
+
</settings>
|
131
|
+
<cpi:offlineImage cpi:source="catalog:d:/sources/install_windows server 2008 r2 serverdatacenter.clg" xmlns:cpi="urn:schemas-microsoft-com:cpi" />
|
132
|
+
</unattend>
|
@@ -0,0 +1,33 @@
|
|
1
|
+
You can download a free trial of Windows 2008 R2
|
2
|
+
|
3
|
+
My downloaded iso was named '7601.17514.101119-1850_x64fre_server_eval_en-us-GRMSXEVAL_EN_DVD.iso'
|
4
|
+
|
5
|
+
- place it in a directory called iso
|
6
|
+
|
7
|
+
The installation uses the Standard way for Windows Unattended installation. The XML file was created using the Windows AIK kit, but the file can also be edited by hand.
|
8
|
+
|
9
|
+
- Building the machine creates a floppy that contains:
|
10
|
+
- AutoUnattend.xml (that will configure the windows)
|
11
|
+
- cygwin-setup.exe (the standard setup.exe cygwin binaries)
|
12
|
+
- cygwin-install.bat (this script will run the cygwin installer + get sshd/openssl going)
|
13
|
+
- winrm-install.bat (activates the http and https listener + punches the firewall hole)
|
14
|
+
|
15
|
+
Expose the winrm port:
|
16
|
+
|
17
|
+
<pre>
|
18
|
+
$ ssh -p 7222 -L5985:localhost:5985 vagrant@localhost
|
19
|
+
$ gem install chef
|
20
|
+
$ gem install knife-windows
|
21
|
+
$ knife bootstrap windows winrm localhost -x Administrator -P 'vagrant'
|
22
|
+
</pre>
|
23
|
+
|
24
|
+
|
25
|
+
- http://wiki.opscode.com/display/chef/Knife+Windows+Bootstrap
|
26
|
+
- https://github.com/opscode/knife-windows/blob/master/lib/chef/knife/bootstrap/windows-shell.erb
|
27
|
+
|
28
|
+
- https://github.com/zenchild/WinRM
|
29
|
+
|
30
|
+
- http://devopscloud.net/2011/04/17/managing-chef-from-windows-7/
|
31
|
+
- http://devopscloud.net/2011/04/28/powershell-userdata-to-start-a-chef-run/
|
32
|
+
- http://devopscloud.net/2011/03/23/dissection-of-a-chef-recipe-or-two-for-windows/
|
33
|
+
- https://github.com/pmorton/chef-windows-installer
|
Binary file
|
@@ -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:/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,17 @@
|
|
1
|
+
Veewee::Session.declare({
|
2
|
+
:cpu_count => '1', :memory_size=> '384',
|
3
|
+
:disk_size => '10140', :disk_format => 'VDI', :hostiocache => 'off',
|
4
|
+
:os_type_id => 'Windows2008_64',
|
5
|
+
:iso_file => "7601.17514.101119-1850_x64fre_server_eval_en-us-GRMSXEVAL_EN_DVD.iso",
|
6
|
+
:iso_src => "",
|
7
|
+
:iso_md5 => "",
|
8
|
+
:floppy_files => ["Autounattend.xml","cygwin-setup.exe","cygwin-sshd.bat","install-winrm.bat"],
|
9
|
+
:iso_download_timeout => "1000",
|
10
|
+
:boot_wait => "10", :boot_cmd_sequence => [
|
11
|
+
],
|
12
|
+
:ssh_login_timeout => "10000", :ssh_user => "vagrant", :ssh_password => "vagrant", :ssh_key => "",
|
13
|
+
:ssh_host_port => "7222", :ssh_guest_port => "22",
|
14
|
+
:sudo_cmd => "sh '%f'",
|
15
|
+
:shutdown_cmd => "shutdown -P now",
|
16
|
+
:postinstall_files => ["postinstall.sh"], :postinstall_timeout => "10000"
|
17
|
+
})
|
@@ -0,0 +1,6 @@
|
|
1
|
+
cmd /c winrm quickconfig -q
|
2
|
+
cmd /c winrm quickconfig -transport:https
|
3
|
+
cmd /c winrm set winrm/config/winrs @{MaxMemoryPerShellMB="300"}
|
4
|
+
cmd /c winrm set winrm/config/service @{AllowUnencrypted="true"}
|
5
|
+
cmd /c winrm set winrm/config/service/auth @{Basic="true"}
|
6
|
+
cmd /c netsh advfirewall firewall set rule group="remote administration" new enable=yes
|
@@ -0,0 +1,23 @@
|
|
1
|
+
# PRO VERSION
|
2
|
+
wget http://www.daemon-tools.cc/eng/downloads/dtproAdv
|
3
|
+
mv getfile.php\@p\=http%3A%2F%2Fwww.disc-tools.com%2Fc3537614d404403feeba73e3231c5ecb%2FDAEMONToolsPro4410314-0232.exe daemontools.exe
|
4
|
+
|
5
|
+
wget http://disc-tools.com/request?p=dbfadc0bb380a8ddc61d2e04d015d770/DTLite4402-0131.exe
|
6
|
+
mv getfile.php\@p\=http%3A%2F%2Fdisc-tools.com%2Fdbfadc0bb380a8ddc61d2e04d015d770%2FDTLite4402-0131.exe DTLite.exe
|
7
|
+
|
8
|
+
chmod +x daemontools.exe
|
9
|
+
|
10
|
+
|
11
|
+
# http://www.daemon-help.com/en/installation_notes_lite/installation_lite.html
|
12
|
+
# Silent install - http://forum.daemon-tools.cc/f24/dt-4-08-a-15030/
|
13
|
+
./daemontools.exe /S
|
14
|
+
|
15
|
+
# http://www.daemon-help.com/en/windows_integration_lite/command_line_parameters.html
|
16
|
+
# /cygdrive/c/Program Files (x86)/DAEMON Tools Pro
|
17
|
+
./DTLite.exe -mount 0,"c:\cygwin\home\vagrant\VBoxGuestAdditions_4.0.8.iso"
|
18
|
+
|
19
|
+
./DTLite.exe -unmount 0
|
20
|
+
|
21
|
+
/cygdrive/e
|
22
|
+
|
23
|
+
#http://www.msfn.org/board/topic/105277-howto-create-a-fully-up-to-date-xp-x64-dvd/
|
@@ -0,0 +1,48 @@
|
|
1
|
+
mkdir /home/vagrant
|
2
|
+
chown vagrant /home/vagrant
|
3
|
+
cd /home/vagrant
|
4
|
+
|
5
|
+
mkdir /home/vagrant/.ssh
|
6
|
+
chmod 700 /home/vagrant/.ssh
|
7
|
+
cd /home/vagrant/.ssh
|
8
|
+
wget --no-check-certificate 'http://github.com/mitchellh/vagrant/raw/master/keys/vagrant.pub' -O authorized_keys
|
9
|
+
chown -R vagrant /home/vagrant/.ssh
|
10
|
+
|
11
|
+
# http://superuser.com/questions/40545/upgrading-and-installing-packages-through
|
12
|
+
-the-cygwin-command-line
|
13
|
+
wget http://apt-cyg.googlecode.com/svn/trunk/apt-cyg
|
14
|
+
chmod +x apt-cyg
|
15
|
+
mv apt-cyg /usr/local/bin/
|
16
|
+
|
17
|
+
# Install virtualbox
|
18
|
+
wget http://download.virtualbox.org/virtualbox/4.0.8/VirtualBox-4.0.8-71778-Win.exe
|
19
|
+
chmod +x VirtualBox-4.0.8-71778-Win.exe
|
20
|
+
./VirtualBox-4.0.8-71778-Win.exe -extract -s -p .
|
21
|
+
msiexec /i VirtualBox-4.0.8-r71778-MultiArch_amd64.msi ALLUSERS=2 /L virtualbox.log
|
22
|
+
|
23
|
+
|
24
|
+
##https://github.com/opscode/knife-windows/blob/master/lib/chef/knife/bootstrap/windows-shell.erb
|
25
|
+
#
|
26
|
+
##Installing ruby
|
27
|
+
#wget http://rubyforge.org/frs/download.php/74298/rubyinstaller-1.9.2-p180.exe
|
28
|
+
#chmod +x rubyinstaller-1.9.2-p180.exe
|
29
|
+
#./rubyinstaller-1.9.2-p180.exe /verysilent /tasks="assocfiles,modpath" /SUPPRESSMSGBOXES /LOG="rubyinstaller.log"
|
30
|
+
#
|
31
|
+
##Ruby dev kit
|
32
|
+
#wget --no-check-certificate http://github.com/downloads/oneclick/rubyinstaller/DevKit-tdm-32-4.5.1-20101214-1400-sfx.exe
|
33
|
+
#mkdir /cygdrive/c/devkit
|
34
|
+
#mv DevKit-tdm-32-4.5.1-20101214-1400-sfx.exe /cygdrive/c/devkit/rubydevkit.exe
|
35
|
+
#cd /cygdrive/c/devkit
|
36
|
+
#chmod +x rubydevkit.exe
|
37
|
+
#./rubydevkit -y
|
38
|
+
#ruby dk.rb init
|
39
|
+
#ruby dk.rb install
|
40
|
+
#
|
41
|
+
#cd /cygdrive/c/devkit
|
42
|
+
#./gem install win32-open3 rdp-ruby-wmi windows-api windows-pr --no-rdoc --no-ri --verbose
|
43
|
+
#./gem install puppet --no-rdoc --no-ri --verbose
|
44
|
+
#./gem install chef --no-rdoc --no-ri --verbose
|
45
|
+
#
|
46
|
+
## Reboot
|
47
|
+
## http://www.techrepublic.com/blog/datacenter/restart-windows-server-2003-from-the-command-line/245
|
48
|
+
##shutdown.exe /r /t 0 /c "Vagrant initial reboot"
|
Binary file
|
@@ -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
|
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:
|
4
|
+
hash: 53
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 1
|
9
|
-
-
|
10
|
-
version: 0.1.
|
9
|
+
- 23
|
10
|
+
version: 0.1.23
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Patrick Debois
|
@@ -16,7 +16,7 @@ autorequire:
|
|
16
16
|
bindir: bin
|
17
17
|
cert_chain: []
|
18
18
|
|
19
|
-
date: 2011-05-
|
19
|
+
date: 2011-05-24 00:00:00 +02:00
|
20
20
|
default_executable:
|
21
21
|
dependencies:
|
22
22
|
- !ruby/object:Gem::Dependency
|
@@ -179,6 +179,9 @@ files:
|
|
179
179
|
- README.md
|
180
180
|
- Rakefile
|
181
181
|
- bin/veewee
|
182
|
+
- lib/java/README.txt
|
183
|
+
- lib/java/dir2floppy.jar
|
184
|
+
- lib/java/dir2floppy.java
|
182
185
|
- lib/vagrant_init.rb
|
183
186
|
- lib/veewee.rb
|
184
187
|
- lib/veewee/command.rb
|
@@ -198,12 +201,12 @@ files:
|
|
198
201
|
- templates/CentOS-4.8-i386/definition.rb
|
199
202
|
- templates/CentOS-4.8-i386/ks.cfg
|
200
203
|
- templates/CentOS-4.8-i386/postinstall.sh
|
201
|
-
- templates/CentOS-5.
|
202
|
-
- templates/CentOS-5.
|
203
|
-
- templates/CentOS-5.
|
204
|
-
- templates/CentOS-5.
|
205
|
-
- templates/CentOS-5.
|
206
|
-
- templates/CentOS-5.
|
204
|
+
- templates/CentOS-5.6-i386-netboot/definition.rb
|
205
|
+
- templates/CentOS-5.6-i386-netboot/ks.cfg
|
206
|
+
- templates/CentOS-5.6-i386-netboot/postinstall.sh
|
207
|
+
- templates/CentOS-5.6-i386/definition.rb
|
208
|
+
- templates/CentOS-5.6-i386/ks.cfg
|
209
|
+
- templates/CentOS-5.6-i386/postinstall.sh
|
207
210
|
- templates/Debian-6.0.1a-amd64-netboot/definition.rb
|
208
211
|
- templates/Debian-6.0.1a-amd64-netboot/postinstall.sh
|
209
212
|
- templates/Debian-6.0.1a-amd64-netboot/preseed.cfg
|
@@ -232,6 +235,14 @@ files:
|
|
232
235
|
- templates/freebsd-8.2-pcbsd-i386/definition.rb
|
233
236
|
- templates/freebsd-8.2-pcbsd-i386/pcinstall.fbg.cfg
|
234
237
|
- templates/freebsd-8.2-pcbsd-i386/postinstall.sh
|
238
|
+
- templates/gentoo-latest-i386-experimental/definition.rb
|
239
|
+
- templates/gentoo-latest-i386-experimental/postinstall.sh
|
240
|
+
- templates/opensuse-11.4-i386-experimental/README
|
241
|
+
- templates/opensuse-11.4-i386-experimental/autoinst.xml
|
242
|
+
- templates/opensuse-11.4-i386-experimental/autoinst.xml.generated
|
243
|
+
- templates/opensuse-11.4-i386-experimental/autoinst.xml.tweaked
|
244
|
+
- templates/opensuse-11.4-i386-experimental/definition.rb
|
245
|
+
- templates/opensuse-11.4-i386-experimental/postinstall.sh
|
235
246
|
- templates/solaris-11-express-i386/auto_install/ai.dtd
|
236
247
|
- templates/solaris-11-express-i386/auto_install/ai_manifest.xml
|
237
248
|
- templates/solaris-11-express-i386/auto_install/configuration.dtd
|
@@ -248,24 +259,35 @@ files:
|
|
248
259
|
- templates/ubuntu-10.04.2-server-amd64/preseed.cfg
|
249
260
|
- templates/ubuntu-10.04.2-server-i386/definition.rb
|
250
261
|
- templates/ubuntu-10.04.2-server-i386/postinstall.sh
|
251
|
-
- templates/ubuntu-10.04.2-server-i386/postinstall2.sh
|
252
262
|
- templates/ubuntu-10.04.2-server-i386/preseed.cfg
|
253
263
|
- templates/ubuntu-10.10-server-amd64-netboot/definition.rb
|
254
264
|
- templates/ubuntu-10.10-server-amd64-netboot/postinstall.sh
|
255
|
-
- templates/ubuntu-10.10-server-amd64-netboot/postinstall2.sh
|
256
265
|
- templates/ubuntu-10.10-server-amd64-netboot/preseed.cfg
|
257
266
|
- templates/ubuntu-10.10-server-amd64/definition.rb
|
258
267
|
- templates/ubuntu-10.10-server-amd64/postinstall.sh
|
259
|
-
- templates/ubuntu-10.10-server-amd64/postinstall2.sh
|
260
268
|
- templates/ubuntu-10.10-server-amd64/preseed.cfg
|
261
269
|
- templates/ubuntu-10.10-server-i386-netboot/definition.rb
|
262
270
|
- templates/ubuntu-10.10-server-i386-netboot/postinstall.sh
|
263
|
-
- templates/ubuntu-10.10-server-i386-netboot/postinstall2.sh
|
264
271
|
- templates/ubuntu-10.10-server-i386-netboot/preseed.cfg
|
265
272
|
- templates/ubuntu-10.10-server-i386/definition.rb
|
266
273
|
- templates/ubuntu-10.10-server-i386/postinstall.sh
|
267
|
-
- templates/ubuntu-10.10-server-i386/postinstall2.sh
|
268
274
|
- templates/ubuntu-10.10-server-i386/preseed.cfg
|
275
|
+
- templates/ubuntu-11.04-server-amd64/definition.rb
|
276
|
+
- templates/ubuntu-11.04-server-amd64/postinstall.sh
|
277
|
+
- templates/ubuntu-11.04-server-amd64/preseed.cfg
|
278
|
+
- templates/ubuntu-11.04-server-i386/definition.rb
|
279
|
+
- templates/ubuntu-11.04-server-i386/postinstall.sh
|
280
|
+
- templates/ubuntu-11.04-server-i386/preseed.cfg
|
281
|
+
- templates/windows-2008R2-amd64-experimental/Autounattend.xml
|
282
|
+
- templates/windows-2008R2-amd64-experimental/README.md
|
283
|
+
- templates/windows-2008R2-amd64-experimental/cygwin-setup.exe
|
284
|
+
- templates/windows-2008R2-amd64-experimental/cygwin-sshd.bat
|
285
|
+
- templates/windows-2008R2-amd64-experimental/definition.rb
|
286
|
+
- templates/windows-2008R2-amd64-experimental/install-winrm.bat
|
287
|
+
- templates/windows-2008R2-amd64-experimental/note-virtualbox-additions.txt
|
288
|
+
- templates/windows-2008R2-amd64-experimental/postinstall.sh
|
289
|
+
- templates/windows-2008R2-amd64-experimental/setup.exe
|
290
|
+
- templates/windows-2008R2-amd64-experimental/winrm.rb
|
269
291
|
- trials/docu-vbox.txt
|
270
292
|
- trials/f.rb
|
271
293
|
- trials/t.rb
|