veewee 0.1.26 → 0.1.27
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/Gemfile.lock +1 -1
- data/README.md +107 -99
- data/lib/veewee/command.rb +2 -1
- data/lib/veewee/scancode.rb +21 -4
- data/lib/veewee/session.rb +2 -2
- data/lib/veewee/version.rb +1 -1
- data/templates/CentOS-5.6-x86_64-netboot/definition.rb +16 -0
- data/templates/CentOS-5.6-x86_64-netboot/ks.cfg +45 -0
- data/templates/CentOS-5.6-x86_64-netboot/postinstall.sh +58 -0
- data/templates/{Debian-6.0.1a-amd64-netboot → Debian-5.0.8-amd64-netboot}/definition.rb +3 -3
- data/templates/Debian-5.0.8-amd64-netboot/postinstall.sh +57 -0
- data/templates/{Debian-6.0.1a-amd64-netboot → Debian-5.0.8-amd64-netboot}/preseed.cfg +0 -0
- data/templates/Debian-5.0.8-i386-netboot/definition.rb +39 -0
- data/templates/Debian-5.0.8-i386-netboot/postinstall.sh +57 -0
- data/templates/Debian-5.0.8-i386-netboot/preseed.cfg +312 -0
- data/templates/Debian-6.0.2-amd64-netboot/definition.rb +39 -0
- data/templates/Debian-6.0.2-amd64-netboot/postinstall.sh +68 -0
- data/templates/Debian-6.0.2-amd64-netboot/preseed.cfg +312 -0
- data/templates/{Debian-6.0.1a-i386-netboot → Debian-6.0.2-i386-netboot}/definition.rb +3 -3
- data/templates/{Debian-6.0.1a-i386-netboot → Debian-6.0.2-i386-netboot}/postinstall.sh +22 -2
- data/templates/{Debian-6.0.1a-i386-netboot → Debian-6.0.2-i386-netboot}/preseed.cfg +0 -0
- data/templates/archlinux-64-aif-experimental/definition.rb +29 -0
- data/templates/archlinux-64-aif-experimental/postinstall.sh +6 -0
- data/templates/archlinux-64-experimental/autorun0 +6 -0
- data/templates/archlinux-64-experimental/definition.rb +21 -0
- data/templates/archlinux-64-experimental/postinstall.sh +190 -0
- data/templates/archlinux-i686/definition.rb +1 -1
- data/templates/openindiana-148-ai-x86/auto_install/ai.dtd +58 -0
- data/templates/openindiana-148-ai-x86/auto_install/ai_manifest.xml +241 -0
- data/templates/openindiana-148-ai-x86/auto_install/configuration.dtd +44 -0
- data/templates/openindiana-148-ai-x86/auto_install/default.xml +121 -0
- data/templates/openindiana-148-ai-x86/auto_install/default.xml.orig +124 -0
- data/templates/openindiana-148-ai-x86/auto_install/sc_profiles/static_network.xml +105 -0
- data/templates/openindiana-148-ai-x86/auto_install/software.dtd +105 -0
- data/templates/openindiana-148-ai-x86/auto_install/target.dtd +196 -0
- data/templates/openindiana-148-ai-x86/default.xml +121 -0
- data/templates/openindiana-148-ai-x86/definition.rb +59 -0
- data/templates/openindiana-148-ai-x86/postinstall.sh +101 -0
- data/templates/solaris-11-express-i386/definition.rb +6 -11
- data/templates/solaris-11-express-i386/postinstall.sh +2 -2
- data/templates/ubuntu-10.04.2-amd64-netboot/postinstall.sh +1 -0
- data/templates/ubuntu-10.04.2-server-amd64/postinstall.sh +1 -0
- data/templates/ubuntu-10.04.2-server-i386-netboot/postinstall.sh +1 -0
- data/templates/ubuntu-10.04.2-server-i386/postinstall.sh +1 -0
- data/templates/ubuntu-10.10-server-amd64-netboot/postinstall.sh +1 -0
- data/templates/ubuntu-10.10-server-amd64/postinstall.sh +1 -0
- data/templates/ubuntu-10.10-server-i386-netboot/postinstall.sh +1 -0
- data/templates/ubuntu-10.10-server-i386/postinstall.sh +1 -0
- data/templates/ubuntu-11.04-server-amd64/postinstall.sh +1 -0
- data/templates/ubuntu-11.04-server-i386/postinstall.sh +1 -0
- data/templates/ubuntu-8.04.4-server-amd64/definition.rb +25 -0
- data/templates/ubuntu-8.04.4-server-amd64/postinstall.sh +66 -0
- data/templates/ubuntu-8.04.4-server-amd64/preseed.cfg +88 -0
- data/templates/ubuntu-8.04.4-server-i386/definition.rb +25 -0
- data/templates/{Debian-6.0.1a-amd64-netboot → ubuntu-8.04.4-server-i386}/postinstall.sh +7 -10
- data/templates/ubuntu-8.04.4-server-i386/preseed.cfg +87 -0
- data/templates/{windows-2008R2-amd64-experimental → windows-2008R2-amd64}/Autounattend.xml +1 -1
- data/templates/windows-2008R2-amd64/README.md +68 -0
- data/templates/{windows-2008R2-amd64-experimental → windows-2008R2-amd64}/cygwin-setup.exe +0 -0
- data/templates/{windows-2008R2-amd64-experimental → windows-2008R2-amd64}/definition.rb +2 -3
- data/templates/{windows-2008R2-amd64-experimental/cygwin-sshd.bat → windows-2008R2-amd64/install-cygwin-sshd.bat} +0 -0
- data/templates/{windows-2008R2-amd64-experimental → windows-2008R2-amd64}/install-winrm.bat +0 -0
- data/templates/windows-2008R2-amd64/oracle-cert.cer +0 -0
- data/templates/windows-2008R2-amd64/postinstall.sh +122 -0
- data/templates/{windows-2008R2-amd64-experimental → windows-2008R2-amd64}/winrm.rb +0 -0
- metadata +50 -19
- data/templates/windows-2008R2-amd64-experimental/README.md +0 -33
- data/templates/windows-2008R2-amd64-experimental/note-virtualbox-additions.txt +0 -23
- data/templates/windows-2008R2-amd64-experimental/postinstall.sh +0 -48
|
@@ -98,7 +98,7 @@
|
|
|
98
98
|
</AutoLogon>
|
|
99
99
|
<FirstLogonCommands>
|
|
100
100
|
<SynchronousCommand wcm:action="add">
|
|
101
|
-
<CommandLine>cmd.exe /c a:cygwin-sshd.bat</CommandLine>
|
|
101
|
+
<CommandLine>cmd.exe /c a:install-cygwin-sshd.bat</CommandLine>
|
|
102
102
|
<Description>Install Cygwin SSH</Description>
|
|
103
103
|
<Order>1</Order>
|
|
104
104
|
<RequiresUserInput>true</RequiresUserInput>
|
|
@@ -0,0 +1,68 @@
|
|
|
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
|
+
$ gem install chef
|
|
19
|
+
$ gem install knife-windows
|
|
20
|
+
#Create a tunnel
|
|
21
|
+
$ ssh -p 7222 -L5985:localhost:5985 vagrant@localhost
|
|
22
|
+
$ knife bootstrap windows winrm localhost -x Administrator -P 'vagrant'
|
|
23
|
+
</pre>
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
- http://wiki.opscode.com/display/chef/Knife+Windows+Bootstrap
|
|
27
|
+
- https://github.com/opscode/knife-windows/blob/master/lib/chef/knife/bootstrap/windows-shell.erb
|
|
28
|
+
|
|
29
|
+
- https://github.com/zenchild/WinRM
|
|
30
|
+
|
|
31
|
+
- http://devopscloud.net/2011/04/17/managing-chef-from-windows-7/
|
|
32
|
+
- http://devopscloud.net/2011/04/28/powershell-userdata-to-start-a-chef-run/
|
|
33
|
+
- http://devopscloud.net/2011/03/23/dissection-of-a-chef-recipe-or-two-for-windows/
|
|
34
|
+
- https://github.com/pmorton/chef-windows-installer
|
|
35
|
+
|
|
36
|
+
==
|
|
37
|
+
https://github.com/zenchild/WinRM/issues/unreads#issue/1
|
|
38
|
+
http -> requires unencryptedwinrm quickconfig (said yes to enable firewall)
|
|
39
|
+
winrm p winrm/config/service @{AllowUnencrypted="true"}
|
|
40
|
+
winrm set winrm/config/service/auth @{Basic="true"}netsh advfirewall firewall set rule group="remote administration" new enable=yes
|
|
41
|
+
|
|
42
|
+
- http://forums.citrix.com/thread.jspa?messageID=1535826
|
|
43
|
+
- http://support.microsoft.com/kb/2019527
|
|
44
|
+
|
|
45
|
+
winrm get winrm/config
|
|
46
|
+
|
|
47
|
+
The purpose of configuring WinRM for HTTPS is to encrypt the data being sent across the wire.
|
|
48
|
+
|
|
49
|
+
WinRM HTTPS requires a local computer "Server Authentication" certificate with a CN matching the hostname, that is not expired, revoked, or self-signed to be installed.
|
|
50
|
+
|
|
51
|
+
To install or view certificates for the local computer:
|
|
52
|
+
|
|
53
|
+
- click Start, run, MMC, "File" menu, "Add or Remove Snap-ins" select "Certificates" and click "Add". Go through the wizard selecting "Computer account".
|
|
54
|
+
|
|
55
|
+
- Install or view the certificates under:
|
|
56
|
+
Certificates (Local computer)
|
|
57
|
+
Personal
|
|
58
|
+
Certificates
|
|
59
|
+
|
|
60
|
+
If you do not have a Sever Authenticating certificate consult your certicate administrator. If you have a microsoft Certificate server you may be abel to request a certificate using the web certificate template from HTTPS://<MyDomainCertificateServer>/certsrv
|
|
61
|
+
|
|
62
|
+
Once the certificate is installed type the following to configure WINRM to listen on HTTPS:
|
|
63
|
+
|
|
64
|
+
winrm quickconfig -transport:https
|
|
65
|
+
|
|
66
|
+
If you do not have an appropriate certificate you can run the following with the authentication methods configured for WinRM however the data will not be encrypted.
|
|
67
|
+
|
|
68
|
+
winrm quickconfig
|
|
File without changes
|
|
@@ -5,10 +5,9 @@ Veewee::Session.declare({
|
|
|
5
5
|
:iso_file => "7601.17514.101119-1850_x64fre_server_eval_en-us-GRMSXEVAL_EN_DVD.iso",
|
|
6
6
|
:iso_src => "",
|
|
7
7
|
:iso_md5 => "",
|
|
8
|
-
:floppy_files => ["Autounattend.xml","cygwin-setup.exe","cygwin-sshd.bat","install-winrm.bat"],
|
|
8
|
+
:floppy_files => ["Autounattend.xml","cygwin-setup.exe","install-cygwin-sshd.bat","install-winrm.bat","oracle-cert.cer"],
|
|
9
9
|
:iso_download_timeout => "1000",
|
|
10
|
-
:boot_wait => "10", :boot_cmd_sequence => [
|
|
11
|
-
],
|
|
10
|
+
:boot_wait => "10", :boot_cmd_sequence => [ ],
|
|
12
11
|
:ssh_login_timeout => "10000", :ssh_user => "vagrant", :ssh_password => "vagrant", :ssh_key => "",
|
|
13
12
|
:ssh_host_port => "7222", :ssh_guest_port => "22",
|
|
14
13
|
:sudo_cmd => "sh '%f'",
|
|
File without changes
|
|
File without changes
|
|
Binary file
|
|
@@ -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 'http://github.com/mitchellh/vagrant/raw/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
|
+
|
|
File without changes
|
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: 45
|
|
5
5
|
prerelease:
|
|
6
6
|
segments:
|
|
7
7
|
- 0
|
|
8
8
|
- 1
|
|
9
|
-
-
|
|
10
|
-
version: 0.1.
|
|
9
|
+
- 27
|
|
10
|
+
version: 0.1.27
|
|
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-
|
|
19
|
+
date: 2011-07-01 00:00:00 +02:00
|
|
20
20
|
default_executable:
|
|
21
21
|
dependencies:
|
|
22
22
|
- !ruby/object:Gem::Dependency
|
|
@@ -204,12 +204,21 @@ files:
|
|
|
204
204
|
- templates/CentOS-5.6-i386/definition.rb
|
|
205
205
|
- templates/CentOS-5.6-i386/ks.cfg
|
|
206
206
|
- templates/CentOS-5.6-i386/postinstall.sh
|
|
207
|
-
- templates/
|
|
208
|
-
- templates/
|
|
209
|
-
- templates/
|
|
210
|
-
- templates/Debian-
|
|
211
|
-
- templates/Debian-
|
|
212
|
-
- templates/Debian-
|
|
207
|
+
- templates/CentOS-5.6-x86_64-netboot/definition.rb
|
|
208
|
+
- templates/CentOS-5.6-x86_64-netboot/ks.cfg
|
|
209
|
+
- templates/CentOS-5.6-x86_64-netboot/postinstall.sh
|
|
210
|
+
- templates/Debian-5.0.8-amd64-netboot/definition.rb
|
|
211
|
+
- templates/Debian-5.0.8-amd64-netboot/postinstall.sh
|
|
212
|
+
- templates/Debian-5.0.8-amd64-netboot/preseed.cfg
|
|
213
|
+
- templates/Debian-5.0.8-i386-netboot/definition.rb
|
|
214
|
+
- templates/Debian-5.0.8-i386-netboot/postinstall.sh
|
|
215
|
+
- templates/Debian-5.0.8-i386-netboot/preseed.cfg
|
|
216
|
+
- templates/Debian-6.0.2-amd64-netboot/definition.rb
|
|
217
|
+
- templates/Debian-6.0.2-amd64-netboot/postinstall.sh
|
|
218
|
+
- templates/Debian-6.0.2-amd64-netboot/preseed.cfg
|
|
219
|
+
- templates/Debian-6.0.2-i386-netboot/definition.rb
|
|
220
|
+
- templates/Debian-6.0.2-i386-netboot/postinstall.sh
|
|
221
|
+
- templates/Debian-6.0.2-i386-netboot/preseed.cfg
|
|
213
222
|
- templates/Fedora-14-amd64-netboot/definition.rb
|
|
214
223
|
- templates/Fedora-14-amd64-netboot/ks.cfg
|
|
215
224
|
- templates/Fedora-14-amd64-netboot/postinstall.sh
|
|
@@ -224,6 +233,11 @@ files:
|
|
|
224
233
|
- templates/Fedora-14-i386/postinstall.sh
|
|
225
234
|
- templates/Sysrescuecd-2.0.0-experimental/autorun0
|
|
226
235
|
- templates/Sysrescuecd-2.0.0-experimental/definition.rb
|
|
236
|
+
- templates/archlinux-64-aif-experimental/definition.rb
|
|
237
|
+
- templates/archlinux-64-aif-experimental/postinstall.sh
|
|
238
|
+
- templates/archlinux-64-experimental/autorun0
|
|
239
|
+
- templates/archlinux-64-experimental/definition.rb
|
|
240
|
+
- templates/archlinux-64-experimental/postinstall.sh
|
|
227
241
|
- templates/archlinux-i686/autorun0
|
|
228
242
|
- templates/archlinux-i686/definition.rb
|
|
229
243
|
- templates/archlinux-i686/postinstall.sh
|
|
@@ -237,6 +251,17 @@ files:
|
|
|
237
251
|
- templates/freebsd-8.2-pcbsd-i386/postinstall.sh
|
|
238
252
|
- templates/gentoo-latest-i386-experimental/definition.rb
|
|
239
253
|
- templates/gentoo-latest-i386-experimental/postinstall.sh
|
|
254
|
+
- templates/openindiana-148-ai-x86/auto_install/ai.dtd
|
|
255
|
+
- templates/openindiana-148-ai-x86/auto_install/ai_manifest.xml
|
|
256
|
+
- templates/openindiana-148-ai-x86/auto_install/configuration.dtd
|
|
257
|
+
- templates/openindiana-148-ai-x86/auto_install/default.xml
|
|
258
|
+
- templates/openindiana-148-ai-x86/auto_install/default.xml.orig
|
|
259
|
+
- templates/openindiana-148-ai-x86/auto_install/sc_profiles/static_network.xml
|
|
260
|
+
- templates/openindiana-148-ai-x86/auto_install/software.dtd
|
|
261
|
+
- templates/openindiana-148-ai-x86/auto_install/target.dtd
|
|
262
|
+
- templates/openindiana-148-ai-x86/default.xml
|
|
263
|
+
- templates/openindiana-148-ai-x86/definition.rb
|
|
264
|
+
- templates/openindiana-148-ai-x86/postinstall.sh
|
|
240
265
|
- templates/opensuse-11.4-i386-experimental/README
|
|
241
266
|
- templates/opensuse-11.4-i386-experimental/autoinst.xml
|
|
242
267
|
- templates/opensuse-11.4-i386-experimental/autoinst.xml.generated
|
|
@@ -284,15 +309,21 @@ files:
|
|
|
284
309
|
- templates/ubuntu-11.04-server-i386/definition.rb
|
|
285
310
|
- templates/ubuntu-11.04-server-i386/postinstall.sh
|
|
286
311
|
- templates/ubuntu-11.04-server-i386/preseed.cfg
|
|
287
|
-
- templates/
|
|
288
|
-
- templates/
|
|
289
|
-
- templates/
|
|
290
|
-
- templates/
|
|
291
|
-
- templates/
|
|
292
|
-
- templates/
|
|
293
|
-
- templates/windows-2008R2-amd64
|
|
294
|
-
- templates/windows-2008R2-amd64
|
|
295
|
-
- templates/windows-2008R2-amd64-
|
|
312
|
+
- templates/ubuntu-8.04.4-server-amd64/definition.rb
|
|
313
|
+
- templates/ubuntu-8.04.4-server-amd64/postinstall.sh
|
|
314
|
+
- templates/ubuntu-8.04.4-server-amd64/preseed.cfg
|
|
315
|
+
- templates/ubuntu-8.04.4-server-i386/definition.rb
|
|
316
|
+
- templates/ubuntu-8.04.4-server-i386/postinstall.sh
|
|
317
|
+
- templates/ubuntu-8.04.4-server-i386/preseed.cfg
|
|
318
|
+
- templates/windows-2008R2-amd64/Autounattend.xml
|
|
319
|
+
- templates/windows-2008R2-amd64/README.md
|
|
320
|
+
- templates/windows-2008R2-amd64/cygwin-setup.exe
|
|
321
|
+
- templates/windows-2008R2-amd64/definition.rb
|
|
322
|
+
- templates/windows-2008R2-amd64/install-cygwin-sshd.bat
|
|
323
|
+
- templates/windows-2008R2-amd64/install-winrm.bat
|
|
324
|
+
- templates/windows-2008R2-amd64/oracle-cert.cer
|
|
325
|
+
- templates/windows-2008R2-amd64/postinstall.sh
|
|
326
|
+
- templates/windows-2008R2-amd64/winrm.rb
|
|
296
327
|
- trials/docu-vbox.txt
|
|
297
328
|
- trials/f.rb
|
|
298
329
|
- trials/t.rb
|
|
@@ -1,33 +0,0 @@
|
|
|
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
|
|
@@ -1,23 +0,0 @@
|
|
|
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/
|
|
@@ -1,48 +0,0 @@
|
|
|
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"
|