veewee 0.1.17 → 0.1.18

Sign up to get free protection for your applications and to get access to all the features.
Files changed (68) hide show
  1. data/Gemfile.lock +1 -1
  2. data/lib/veewee/scancode.rb +39 -21
  3. data/lib/veewee/session.rb +15 -4
  4. data/lib/veewee/version.rb +1 -1
  5. data/templates/Archlinux-latest/definition.rb +10 -11
  6. data/templates/Archlinux-latest/postinstall.sh +12 -12
  7. data/templates/CentOS-4.8-i386/definition.rb +6 -7
  8. data/templates/CentOS-4.8-i386/postinstall.sh +7 -7
  9. data/templates/CentOS-5.5-i386-netboot/definition.rb +16 -17
  10. data/templates/CentOS-5.5-i386-netboot/postinstall.sh +6 -11
  11. data/templates/CentOS-5.5-i386/definition.rb +15 -16
  12. data/templates/CentOS-5.5-i386/postinstall.sh +6 -11
  13. data/templates/Debian-6.0-amd64-netboot/definition.rb +18 -19
  14. data/templates/Debian-6.0-amd64-netboot/postinstall.sh +4 -5
  15. data/templates/Debian-6.0-amd64-netboot/preseed.cfg +1 -1
  16. data/templates/Debian-6.0-i386-netboot/definition.rb +4 -5
  17. data/templates/Debian-6.0-i386-netboot/postinstall.sh +1 -1
  18. data/templates/Fedora-14-amd64-netboot/definition.rb +16 -0
  19. data/templates/Fedora-14-amd64-netboot/ks.cfg +40 -0
  20. data/templates/Fedora-14-amd64-netboot/postinstall.sh +52 -0
  21. data/templates/Fedora-14-amd64/definition.rb +16 -0
  22. data/templates/Fedora-14-amd64/ks.cfg +41 -0
  23. data/templates/Fedora-14-amd64/postinstall.sh +52 -0
  24. data/templates/Fedora-14-i386-netboot/definition.rb +16 -0
  25. data/templates/Fedora-14-i386-netboot/ks.cfg +40 -0
  26. data/templates/Fedora-14-i386-netboot/postinstall.sh +52 -0
  27. data/templates/Fedora-14-i386/definition.rb +16 -0
  28. data/templates/Fedora-14-i386/ks.cfg +41 -0
  29. data/templates/Fedora-14-i386/postinstall.sh +52 -0
  30. data/templates/Sysrescuecd-2.0.0-experimental/definition.rb +11 -12
  31. data/templates/freebsd-8.2-experimental/definition.rb +9 -10
  32. data/templates/freebsd-8.2-experimental/postinstall.sh +16 -16
  33. data/templates/freebsd-8.2-pcbsd-i386/definition.rb +16 -17
  34. data/templates/freebsd-8.2-pcbsd-i386/pcinstall.fbg.cfg +1 -1
  35. data/templates/freebsd-8.2-pcbsd-i386/postinstall.sh +2 -2
  36. data/templates/solaris-11-express-i386-experimental/auto_install/ai.dtd +58 -0
  37. data/templates/solaris-11-express-i386-experimental/auto_install/ai_manifest.xml +241 -0
  38. data/templates/solaris-11-express-i386-experimental/auto_install/configuration.dtd +44 -0
  39. data/templates/solaris-11-express-i386-experimental/auto_install/default.xml +124 -0
  40. data/templates/solaris-11-express-i386-experimental/auto_install/default.xml.orig +124 -0
  41. data/templates/solaris-11-express-i386-experimental/auto_install/sc_profiles/static_network.xml +105 -0
  42. data/templates/solaris-11-express-i386-experimental/auto_install/software.dtd +105 -0
  43. data/templates/solaris-11-express-i386-experimental/auto_install/target.dtd +196 -0
  44. data/templates/solaris-11-express-i386-experimental/default.xml +121 -0
  45. data/templates/solaris-11-express-i386-experimental/definition.rb +65 -0
  46. data/templates/solaris-11-express-i386-experimental/postinstall.sh +72 -0
  47. data/templates/ubuntu-10.04.2-server-amd64/definition.rb +24 -0
  48. data/templates/{ubuntu-10.04.1-server-amd64 → ubuntu-10.04.2-server-amd64}/postinstall.sh +3 -4
  49. data/templates/{ubuntu-10.04.1-server-amd64 → ubuntu-10.04.2-server-amd64}/preseed.cfg +3 -3
  50. data/templates/ubuntu-10.04.2-server-i386/definition.rb +24 -0
  51. data/templates/{ubuntu-10.04.1-server-i386 → ubuntu-10.04.2-server-i386}/postinstall.sh +2 -3
  52. data/templates/{ubuntu-10.04.1-server-i386 → ubuntu-10.04.2-server-i386}/postinstall2.sh +0 -0
  53. data/templates/{ubuntu-10.04.1-server-i386 → ubuntu-10.04.2-server-i386}/preseed.cfg +3 -3
  54. data/templates/ubuntu-10.10-server-amd64-netboot/definition.rb +16 -17
  55. data/templates/ubuntu-10.10-server-amd64-netboot/postinstall.sh +2 -3
  56. data/templates/ubuntu-10.10-server-amd64-netboot/preseed.cfg +2 -2
  57. data/templates/ubuntu-10.10-server-amd64/definition.rb +16 -17
  58. data/templates/ubuntu-10.10-server-amd64/postinstall.sh +2 -3
  59. data/templates/ubuntu-10.10-server-amd64/preseed.cfg +3 -3
  60. data/templates/ubuntu-10.10-server-i386-netboot/definition.rb +16 -17
  61. data/templates/ubuntu-10.10-server-i386-netboot/postinstall.sh +3 -4
  62. data/templates/ubuntu-10.10-server-i386-netboot/preseed.cfg +2 -2
  63. data/templates/ubuntu-10.10-server-i386/definition.rb +16 -17
  64. data/templates/ubuntu-10.10-server-i386/postinstall.sh +3 -4
  65. data/templates/ubuntu-10.10-server-i386/preseed.cfg +4 -4
  66. metadata +34 -11
  67. data/templates/ubuntu-10.04.1-server-amd64/definition.rb +0 -25
  68. data/templates/ubuntu-10.04.1-server-i386/definition.rb +0 -25
@@ -0,0 +1,196 @@
1
+ <!--
2
+ CDDL HEADER START
3
+
4
+ The contents of this file are subject to the terms of the
5
+ Common Development and Distribution License (the "License").
6
+ You may not use this file except in compliance with the License.
7
+
8
+ You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9
+ or http://www.opensolaris.org/os/licensing.
10
+ See the License for the specific language governing permissions
11
+ and limitations under the License.
12
+
13
+ When distributing Covered Code, include this CDDL HEADER in each
14
+ file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15
+ If applicable, add the following below this CDDL HEADER, with the
16
+ fields enclosed by brackets "[]" replaced with your own identifying
17
+ information: Portions Copyright [yyyy] [name of copyright owner]
18
+
19
+ CDDL HEADER END
20
+
21
+ Copyright (c) 2010, Oracle and/or its affiliates. All rights reserved.
22
+
23
+ -->
24
+
25
+ <!ELEMENT target (target_device+)>
26
+
27
+ <!--
28
+ A partition and slice element must be specified within a
29
+ containing element, such as a disk, zpool or vdev. There must
30
+ be one element, if disk or pool are specified, that is
31
+ tagged as the root device. If no target_devices are specified
32
+ the the application must choose the device based on its
33
+ specific criteria and assume this is the root device.
34
+ -->
35
+
36
+ <!ELEMENT target_device (disk|zpool+|swap|dump)>
37
+
38
+ <!--
39
+ If a disk is specified at the top level, that is not contained
40
+ within a zpool specification, this disk will be assumed
41
+ to be the root device. If a disk target is specified
42
+ at the top level, and then a zpool with the is_root attribute
43
+ set this is an error. The user can specify a specific
44
+ slice within the disk to be used as the root slice. If
45
+ no slice specified then root slice will be 0.
46
+ -->
47
+
48
+ <!ELEMENT disk ((disk_name|disk_prop|disk_keyword|iscsi), partition*, slice*)>
49
+ <!--
50
+ Disk name can be one of ctd, volid, devpath or devid name.
51
+ Default is "ctd".
52
+ -->
53
+ <!ELEMENT disk_name EMPTY>
54
+ <!ATTLIST disk_name name CDATA #REQUIRED>
55
+ <!ATTLIST disk_name name_type (ctd|volid|devpath|devid) "ctd">
56
+
57
+ <!ELEMENT disk_prop EMPTY>
58
+ <!ATTLIST disk_prop dev_type CDATA #IMPLIED>
59
+ <!ATTLIST disk_prop dev_vendor CDATA #IMPLIED>
60
+ <!ATTLIST disk_prop dev_size CDATA #IMPLIED>
61
+
62
+ <!ELEMENT disk_keyword EMPTY>
63
+ <!ATTLIST disk_keyword key (boot_disk) #REQUIRED>
64
+
65
+ <!--
66
+ A vdev must start with a disk element. The slice and partition
67
+ elements use numerical names, such as 0 or 1. A disk must
68
+ be named for a vdev, using the disk element notation.
69
+ -->
70
+
71
+ <!ELEMENT vdev (disk+, partition*, slice*)>
72
+ <!ATTLIST vdev redundancy (mirror|raidz|raidz1|raidz2|raidz3|none) "mirror">
73
+
74
+ <!ELEMENT dataset (zvol|filesystem)>
75
+
76
+ <!--
77
+ No size specification means we create the slice the whole size of
78
+ the disk. If multiple slices specified for one disk, with
79
+ no sizes, this is an error. The attribute is_root is only
80
+ valid when a slice is part of a disk definition, outside of
81
+ a zpool definition. The user can request to format the disk
82
+ with multiple slices but specify one that they want to
83
+ be included in the root pool.
84
+
85
+ -->
86
+
87
+
88
+ <!ELEMENT slice (size?)>
89
+ <!ATTLIST slice action (create|delete|preserve) "create">
90
+ <!ATTLIST slice name CDATA #REQUIRED>
91
+ <!ATTLIST slice is_root (true|false) #IMPLIED>
92
+
93
+ <!--
94
+ The use of the 'force' attribute on slice specifies that on
95
+ a 'create' of a slice that already exists we overwrite the
96
+ slice if force==true. Otherwise the application errors.
97
+ -->
98
+
99
+ <!ATTLIST slice force (true|false) "false">
100
+
101
+ <!--
102
+ If partition size is not provided the partition will be the
103
+ remaining free size left on the disk.
104
+ -->
105
+
106
+ <!ELEMENT partition (slice*, size?)>
107
+ <!ATTLIST partition action (create|delete|use_existing) "create">
108
+
109
+ <!--
110
+ A partition name is a numeric value, e.g. 1, will be
111
+ interpreted as partition 1. If a name is not provided
112
+ the user must specify the use_existing action, otherwise
113
+ this will be an invalid specification.
114
+ -->
115
+ <!ATTLIST partition name CDATA #IMPLIED>
116
+ <!ATTLIST partition part_type CDATA "191">
117
+
118
+ <!--
119
+ Size must be suffixed with a size unit. i.e 100gb, 2secs, 2tb.
120
+ -->
121
+ <!ELEMENT size EMPTY>
122
+ <!ATTLIST size val CDATA #REQUIRED>
123
+ <!ATTLIST size start_sector CDATA #IMPLIED>
124
+
125
+
126
+ <!ELEMENT options (#PCDATA)>
127
+
128
+ <!--
129
+ Option elements allow any string type, and this string is parsable
130
+ character data, should the application require it.
131
+ -->
132
+
133
+ <!--
134
+ Filesystem options are for zfs filesystems. The format of these
135
+ is this: "-o property=value". Any editable ZFS filesystem property
136
+ can be set at creation time. Multiple -o options can be
137
+ specified. An error will occur if a propert is specified in
138
+ multiple -o options.
139
+ -->
140
+
141
+ <!ELEMENT filesystem (options?)>
142
+ <!ATTLIST filesystem name CDATA #REQUIRED>
143
+ <!ATTLIST filesystem action (create|delete|preserve) "create">
144
+ <!ATTLIST filesystem mountpoint CDATA #IMPLIED>
145
+
146
+ <!--
147
+ Redundancy needs to be part of the vdev grouping,
148
+ not a property on zpool itself. There can be multiple
149
+ vdev groupings within one pool configuration.
150
+ -->
151
+
152
+ <!ELEMENT zpool (vdev*, dataset*, pool_options?, dataset_options?)>
153
+ <!ATTLIST zpool action (create|delete|preserve|use_existing) "create">
154
+ <!ATTLIST zpool name CDATA #REQUIRED>
155
+ <!ATTLIST zpool is_root (true|false) "false">
156
+
157
+ <!--
158
+ The pool option string, which is also a parsable string,
159
+ can include both pool options and filesystem options.
160
+ For pool options the format is: "-o property=value". For
161
+ filesystem properties the format is: "-O file-system-property=value"
162
+ Both of these typs of properties can be set in the option string.
163
+ An example of combining these in the option string:
164
+
165
+ "-o altroot=/a -o autoexpand=off -o delegation=off -O atime=on -O compression=lzbj"
166
+ -->
167
+
168
+ <!ELEMENT pool_options (options)>
169
+ <!ELEMENT dataset_options (options)>
170
+
171
+
172
+ <!ELEMENT zvol (options?, size) >
173
+ <!ATTLIST zvol action (create|delete|preserve|use_existing) "create">
174
+ <!ATTLIST zvol name CDATA #REQUIRED>
175
+
176
+ <!--
177
+ ISCSI does not have an action attribute. We use iscsi devices but
178
+ we do not operate directly on them.
179
+ -->
180
+ <!ELEMENT iscsi (ip)>
181
+ <!ATTLIST iscsi name CDATA #REQUIRED>
182
+ <!ATTLIST iscsi source CDATA #IMPLIED>
183
+ <!ATTLIST iscsi target_lun CDATA #IMPLIED>
184
+ <!ATTLIST iscsi target_port CDATA #IMPLIED>
185
+
186
+ <!ELEMENT ip (#PCDATA)>
187
+
188
+ <!--
189
+ Swap and dump are optional with Solaris install.
190
+ -->
191
+
192
+ <!ELEMENT swap (zvol)>
193
+ <!ATTLIST swap no_swap (true|false) "false">
194
+
195
+ <!ELEMENT dump (zvol)>
196
+ <!ATTLIST dump no_dump (true|false) "false">
@@ -0,0 +1,121 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <!--
3
+ CDDL HEADER START
4
+
5
+ The contents of this file are subject to the terms of the
6
+ Common Development and Distribution License (the "License").
7
+ You may not use this file except in compliance with the License.
8
+
9
+ You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
10
+ or http://www.opensolaris.org/os/licensing.
11
+ See the License for the specific language governing permissions
12
+ and limitations under the License.
13
+
14
+ When distributing Covered Code, include this CDDL HEADER in each
15
+ file and include the License file at usr/src/OPENSOLARIS.LICENSE.
16
+ If applicable, add the following below this CDDL HEADER, with the
17
+ fields enclosed by brackets "[]" replaced with your own identifying
18
+ information: Portions Copyright [yyyy] [name of copyright owner]
19
+
20
+ CDDL HEADER END
21
+
22
+ Copyright (c) 2008, 2010, Oracle and/or its affiliates. All rights reserved.
23
+
24
+ -->
25
+ <!DOCTYPE auto_install SYSTEM "file:///usr/share/auto_install/ai.dtd">
26
+ <auto_install>
27
+ <ai_instance name="default">
28
+ <software>
29
+ <source>
30
+ <publisher name="solaris">
31
+ <origin name="http://pkg.oracle.com/solaris/release"/>
32
+ </publisher>
33
+ </source>
34
+ <!--
35
+ By default the latest build available, in the specified IPS
36
+ repository, is installed. If another build is required, the
37
+ build number has to be appended to the 'entire' package in following
38
+ form:
39
+
40
+ <name>pkg:/entire@0.5.11-0.build#</name>
41
+ -->
42
+ <software_data action="install" type="IPS">
43
+ <name>pkg:/server_install</name>
44
+ <!--
45
+ The following packages are required by iSCSI and included
46
+ by default to make it easier for users to enable iSCSI if
47
+ desired. They can be deleted from this list if iSCSI isn't
48
+ used. See iscsiadm(1m) man page for more information.
49
+ support for iSCSI.
50
+ -->
51
+ </software_data>
52
+ <!--
53
+ babel_install and slim_install are group packages used to
54
+ define the default installation. They are removed here so
55
+ that they do not inhibit removal of other packages on the
56
+ installed system.
57
+ -->
58
+ <software_data action="uninstall" type="IPS">
59
+ <name>pkg:/server_install</name>
60
+ </software_data>
61
+
62
+ </software>
63
+ <!--
64
+ Add missing driver packages to a booted install image so an
65
+ installation can complete. Add packages to target as well.
66
+ <search_all> searches and installs from configured repo.
67
+ -->
68
+ <add_drivers>
69
+ <search_all/>
70
+ </add_drivers>
71
+ <sc_embedded_manifest name="AI">
72
+ <!-- <?xml version='1.0'?>
73
+ <!DOCTYPE service_bundle SYSTEM "/usr/share/lib/xml/dtd/service_bundle.dtd.1">
74
+ <service_bundle type="profile" name="system configuration">
75
+ <service name="system/install/config" version="1" type="service">
76
+ <instance name="default" enabled="true">
77
+ <property_group name="user_account" type="application">
78
+ <propval name="login" type="astring" value="vagrant"/>
79
+ <propval name="password" type="astring" value="$1$MPmczGP9$1SeNO4bw5YgiEJuo/ZkWq1"/>
80
+ <propval name="description" type="astring" value="default_user"/>
81
+ <propval name="shell" type="astring" value="/usr/bin/bash"/>
82
+ <propval name="uid" type='count' value='101'/>
83
+ <propval name="gid" type='count' value='10'/>
84
+ <propval name="type" type="astring" value="normal"/>
85
+ <propval name="roles" type="astring" value="root"/>
86
+ </property_group>
87
+
88
+ <property_group name="root_account" type="application">
89
+ <propval name="password" type="astring" value="$1$MPmczGP9$1SeNO4bw5YgiEJuo/ZkWq1"/>
90
+ <propval name="type" type="astring" value="role"/>
91
+ </property_group>
92
+
93
+ <property_group name="other_sc_params" type="application">
94
+ <propval name="timezone" type="astring" value="GMT"/>
95
+ <propval name="hostname" type="astring" value="solaris"/>
96
+ </property_group>
97
+ </instance>
98
+ </service>
99
+ <service name="system/console-login" version="1" type="service">
100
+ <property_group name="ttymon" type="application">
101
+ <propval name="terminal_type" type="astring" value="sun"/>
102
+ </property_group>
103
+ </service>
104
+
105
+ <service name='system/keymap' version='1' type='service'>
106
+ <instance name='default' enabled='true'>
107
+ <property_group name='keymap' type='system'>
108
+ <propval name='layout' type='astring' value='US-English'/>
109
+ </property_group>
110
+ </instance>
111
+ </service>
112
+
113
+ <service name="network/physical" version="1" type="service">
114
+ <instance name="nwam" enabled="true"/>
115
+ <instance name="default" enabled="false"/>
116
+ </service>
117
+ </service_bundle>
118
+ -->
119
+ </sc_embedded_manifest>
120
+ </ai_instance>
121
+ </auto_install>
@@ -0,0 +1,65 @@
1
+ Veewee::Session.declare({
2
+ :cpu_count => '1', :memory_size=> '768',
3
+ #Disk size needs to be 12Gig +
4
+ :disk_size => '15140', :disk_format => 'VDI', :hostiocache => 'off', :use_hw_virt_ext => 'on',
5
+ :os_type_id => 'OpenSolaris',
6
+ :iso_file => "sol-11-exp-201011-ai-x86.iso",
7
+ :iso_src => "",
8
+ :iso_md5 => "36527d4d49a645ef6f6d2677c8e0118c",
9
+ :iso_download_timeout => 1000,
10
+ :boot_wait => "10", :boot_cmd_sequence => [
11
+ 'e',
12
+ 'e',
13
+ '<Backspace><Backspace><Backspace><Backspace><Backspace><Backspace><Backspace><Backspace><Backspace><Backspace>',
14
+ '<Backspace><Backspace><Backspace><Backspace><Backspace><Backspace><Backspace><Backspace><Backspace><Backspace><Backspace><Backspace>',
15
+ 'false',
16
+ #',aimanifest=prompt',
17
+ #',aimanifest=http://%IP%:%PORT%/default.xml',
18
+ '<Enter>',
19
+ 'b',
20
+ '<Wait><Wait><Wait><Wait><Wait><Wait><Wait><Wait><Wait><Wait><Wait><Wait><Wait><Wait><Wait><Wait><Wait>',
21
+ '<Wait><Wait><Wait><Wait><Wait><Wait><Wait><Wait><Wait><Wait><Wait><Wait><Wait><Wait><Wait><Wait><Wait>',
22
+ '<Wait><Wait><Wait><Wait><Wait><Wait><Wait><Wait><Wait><Wait><Wait><Wait><Wait><Wait><Wait><Wait><Wait>',
23
+ '<Wait><Wait><Wait><Wait><Wait><Wait><Wait><Wait><Wait><Wait><Wait><Wait><Wait><Wait><Wait><Wait><Wait>',
24
+
25
+ # login as root
26
+ 'root<Enter><Wait>',
27
+ 'solaris<Enter><Wait>',
28
+
29
+ # Background check when install is complete, add vagrant to the sudo
30
+ 'while (true); do sleep 5; test -f /a/etc/sudoers && grep -v "vagrant" "/a/etc/sudoers" 2> /dev/null',
31
+ ' && echo "vagrant ALL=(ALL) NOPASSWD: ALL" >> /a/etc/sudoers && break ; done &<Enter>',
32
+
33
+ # Background check to see if install has finished and reboot
34
+ '<Enter>while (true); do grep "You may wish to reboot" "/tmp/install_log" 2> /dev/null',
35
+ ' && reboot; sleep 10; done &<Enter>',
36
+
37
+
38
+ # Wait for 5 seconds, so the webserver will be up
39
+ 'sleep 5; curl http://%IP%:%PORT%/default.xml -o default.xml;',
40
+ 'cp default.xml /tmp/ai_combined_manifest.xml;',
41
+
42
+ # Start the installer
43
+ 'svcadm enable svc:/application/auto-installer:default;',
44
+
45
+ # Wait for the installer to launch and display the logfile
46
+ 'sleep 3; tail -f /tmp/install_log<Enter>'
47
+
48
+ ],
49
+ :kickstart_port => "7122", :kickstart_timeout => 10000, :kickstart_file => "default.xml",
50
+ :ssh_login_timeout => "100", :ssh_user => "vagrant", :ssh_password => "vagrant", :ssh_key => "",
51
+ :ssh_host_port => "7222", :ssh_guest_port => "22",
52
+ :sudo_cmd => "echo '%p'|sudo -S bash ./%f",
53
+ :shutdown_cmd => "/sbin/halt -h -p",
54
+ :postinstall_files => [ "postinstall.sh"], :postinstall_timeout => 10000
55
+ })
56
+
57
+ # Notes:
58
+ # http://dlc.sun.com/osol/docs/content/dev/AIinstall/aimanifest.html
59
+ # http://download.oracle.com/docs/cd/E19963-01/html/820-6566/media-ai.html#gklco
60
+ # default.xml
61
+ # /.cdrom/auto_install/default.xml
62
+ # /usr/share/auto_install/default.xml
63
+
64
+ #tail -f /tmp/install.log
65
+
@@ -0,0 +1,72 @@
1
+ # http://projects.puppetlabs.com/projects/1/wiki/Puppet_Solaris
2
+
3
+ # Add the opencsw package site
4
+ export PATH=/usr/bin/:/usr/sbin:$PATH
5
+
6
+ yes|/usr/sbin/pkgadd -d http://mirror.opencsw.org/opencsw/pkgutil-`uname -p`.pkg all
7
+
8
+ /opt/csw/bin/pkgutil -U
9
+
10
+ # yes|/opt/csw/bin/pkgutil -i CSWruby
11
+ # used SUNWspro
12
+ # has entries in /opt/csw/lib/ruby/1.8/i386-solaris2.9/rbconfig.rb
13
+ # luckily there is another one
14
+
15
+ yes|/opt/csw/bin/pkgutil -i CSWruby18-gcc4
16
+ yes|/opt/csw/bin/pkgutil -i CSWruby18-dev
17
+
18
+ # prevents ":in `require': no such file to load -- mkmf (LoadError)"
19
+ yes|/opt/csw/bin/pkgutil -i CSWrubygems
20
+
21
+ # These are needed to get a compiler working
22
+ # Mainly because chef depends on compiling some native gems
23
+ export PATH=/opt/csw/bin/:$PATH
24
+ export PATH=/opt/csw/gcc4/bin/:$PATH
25
+
26
+ yes | /opt/csw/bin/pkgutil -i CSWgcc4core
27
+ yes | /opt/csw/bin/pkgutil -i CSWgcc4g++
28
+ yes | /opt/csw/bin/pkgutil -i CSWreadline
29
+ yes | /opt/csw/bin/pkgutil -i CSWzlib
30
+ yes | /opt/csw/bin/pkgutil -i CSWossldevel
31
+
32
+ /opt/csw/bin/gem install puppet --no-ri --no-rdoc
33
+ /opt/csw/bin/gem install chef --no-ri --no-rdoc
34
+
35
+ #Installing vagrant keys
36
+ mkdir /export/home/vagrant/.ssh
37
+ chmod 700 /export/home/vagrant/.ssh
38
+ cd /export/home/vagrant/.ssh
39
+ /usr/bin/wget --no-check-certificate 'http://github.com/mitchellh/vagrant/raw/master/keys/vagrant.pub' -O authorized_keys
40
+ chown -R vagrant /export/home/vagrant/.ssh
41
+
42
+ #Installing the virtualbox guest additions
43
+ VBOX_VERSION=$(cat /export/home/vagrant/.vbox_version)
44
+ cd /tmp
45
+ /usr/bin/wget http://download.virtualbox.org/virtualbox/4.0.6/VirtualBox-4.0.6-71344-SunOS.tar.gz
46
+ /usr/gnu/bin/tar -xzvf VirtualBox-4.0.6-71344-SunOS.tar.gz
47
+ /usr/bin/pkgtrans VirtualBox-4.0.6-SunOS-r71344.pkg . all
48
+ yes|/usr/sbin/pkgadd -d . SUNWvbox
49
+
50
+ exit
51
+
52
+ #Inspiration for ruby enterprise
53
+
54
+ PATH=$PATH:/opt/csw/bin
55
+ wget http://rubyforge.org/frs/download.php/71096/ruby-enterprise-1.8.7-2010.02.tar.gz
56
+ tar xzvf ruby-enterprise-1.8.7-2010.02.tar.gz
57
+ ./ruby-enterprise-1.8.7-2010.02/installer -a /opt/ruby --no-dev-docs --dont-install-useful-gems
58
+
59
+ # http://www.darkaslight.com/blog/entry/38-Compiling-Ruby-Enterprise-Edition-on-Solaris-10
60
+ * To install C compiler:
61
+ * To install C++ compiler:
62
+ * To install Zlib development headers:
63
+ * To install OpenSSL development headers:
64
+ * To install GNU Readline development headers:
65
+
66
+ bash-3.00# wget http://rubyforge.org/frs/download.php/38084/ruby-enterprise-1.8.6-20080507.tar.gz
67
+ bash-3.00# gtar xvf ruby-enterprise-1.8.6-20080507.tar.gz
68
+ bash-3.00# cd ruby-enterprise-1.8.6-20080507/source
69
+ bash-3.00# ./configure --with-openssl-dir=/opt/csw --with-readline-dir=/opt/csw \
70
+ --with-iconv-dir=/opt/csw --prefix=/opt/rubyenterprise
71
+ bash-3.00# make
72
+ bash-3.00# make install