isaac-deprec 1.99.30 → 1.99.32
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/README +24 -2
- data/THANKS +12 -0
- data/bin/depify +12 -6
- data/lib/deprec/capistrano_extensions.rb +7 -0
- data/lib/deprec/recipes.rb +7 -2
- data/lib/deprec/recipes/apache.rb +19 -96
- data/lib/deprec/recipes/deprec.rb +32 -29
- data/lib/deprec/recipes/git.rb +3 -3
- data/lib/deprec/recipes/mongrel.rb +6 -35
- data/lib/deprec/recipes/mysql.rb +30 -1
- data/lib/deprec/recipes/network.rb +1 -1
- data/lib/deprec/recipes/nginx.rb +55 -12
- data/lib/deprec/recipes/passenger.rb +147 -27
- data/lib/deprec/recipes/rails.rb +98 -77
- data/lib/deprec/recipes/ree.rb +11 -10
- data/lib/deprec/recipes/ruby.rb +5 -14
- data/lib/deprec/recipes/utils.rb +21 -2
- data/lib/deprec/recipes/wordpress.rb +2 -5
- data/lib/deprec/recipes/xen.rb +38 -40
- data/lib/deprec/templates/apache/index.html.erb +0 -7
- data/lib/deprec/templates/mongrel/mongrel_cluster.yml.erb +3 -3
- data/lib/deprec/templates/passenger/apache_vhost.erb +21 -10
- data/lib/deprec/templates/ssh/ssh_config.erb +1 -1
- data/lib/deprec/templates/xen/xend-config.sxp.erb +1 -1
- metadata +2 -2
- data/lib/deprec/templates/passenger/passenger.erb +0 -20
- data/lib/deprec/templates/xen/15-disable-hwclock +0 -40
- data/lib/deprec/templates/xen/40-setup-networking +0 -145
- data/lib/deprec/templates/xen/xen-tools.conf.erb +0 -220
- data/lib/deprec/templates/xen/xm.tmpl.erb +0 -85
@@ -1,220 +0,0 @@
|
|
1
|
-
#
|
2
|
-
# /etc/xen-tools/xen-tools.conf
|
3
|
-
#
|
4
|
-
# Global configuration file for the scripts included with Xen-tools.
|
5
|
-
#
|
6
|
-
# Values may be set here so they don't need to be specified upon the
|
7
|
-
# command line.
|
8
|
-
#
|
9
|
-
# Steve
|
10
|
-
# --
|
11
|
-
#
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
#
|
16
|
-
##
|
17
|
-
# Output directory for storing loopback images.
|
18
|
-
#
|
19
|
-
# If you choose to use loopback images, which are simple to manage but
|
20
|
-
# slower than LVM partitions, then specify a directory here and uncomment
|
21
|
-
# the line.
|
22
|
-
#
|
23
|
-
# New instances will be stored in subdirectories named after their
|
24
|
-
# hostnames.
|
25
|
-
#
|
26
|
-
##
|
27
|
-
# dir = /home/xen
|
28
|
-
# dir = /var/vm
|
29
|
-
#
|
30
|
-
|
31
|
-
#
|
32
|
-
##
|
33
|
-
#
|
34
|
-
# If you don't wish to use loopback images then you may specify an
|
35
|
-
# LVM volume group here instead
|
36
|
-
#
|
37
|
-
##
|
38
|
-
# lvm = skx-vg
|
39
|
-
lvm = vm_local
|
40
|
-
|
41
|
-
|
42
|
-
#
|
43
|
-
##
|
44
|
-
#
|
45
|
-
# Installation method.
|
46
|
-
#
|
47
|
-
# There are four distinct methods which you may to install a new copy
|
48
|
-
# of Linux to use in your Xen guest domain:
|
49
|
-
#
|
50
|
-
# - Installation via the debootstrap command.
|
51
|
-
# - Installation via the rpmstrap command.
|
52
|
-
# - Installation by copying a directory containing a previous installation.
|
53
|
-
# - Installation by untarring a previously archived image.
|
54
|
-
#
|
55
|
-
# NOTE That if you use the "untar", or "copy" options you should ensure
|
56
|
-
# that the image you're left with matches the 'dist' setting later in
|
57
|
-
# this file.
|
58
|
-
#
|
59
|
-
#
|
60
|
-
##
|
61
|
-
#
|
62
|
-
#
|
63
|
-
# install-method = [ debootstrap | rpmstrap | copy | tar ]
|
64
|
-
#
|
65
|
-
#
|
66
|
-
install-method = debootstrap
|
67
|
-
|
68
|
-
#
|
69
|
-
# If you're using "copy", or "tar" you will need to specify the
|
70
|
-
# source location to copy from, or the source .tar file to unpack.
|
71
|
-
#
|
72
|
-
# You may specify that with a line such as:
|
73
|
-
#
|
74
|
-
# install-source = /path/to/copy
|
75
|
-
# install-source = /some/path/img.tar
|
76
|
-
#
|
77
|
-
#
|
78
|
-
|
79
|
-
#
|
80
|
-
##
|
81
|
-
# Command definitions.
|
82
|
-
##
|
83
|
-
#
|
84
|
-
# The "debootstrap" and "rpmstrap" commands are hardwired into the
|
85
|
-
# script, but if you wish to modify the commands which are executed
|
86
|
-
# when installing new systems by a "copy" or "tar" method you can
|
87
|
-
# do so here:
|
88
|
-
#
|
89
|
-
# install-method=copy:
|
90
|
-
# copy-cmd = /bin/cp -a $src/* $dest
|
91
|
-
#
|
92
|
-
# install-method=tar:
|
93
|
-
# tar-cmd = /bin/tar --numeric-owner -xvf $src
|
94
|
-
#
|
95
|
-
#
|
96
|
-
|
97
|
-
|
98
|
-
|
99
|
-
#
|
100
|
-
##
|
101
|
-
# Disk and Sizing options.
|
102
|
-
##
|
103
|
-
#
|
104
|
-
size = 10Gb # Disk image size.
|
105
|
-
memory = 256Mb # Memory size
|
106
|
-
swap = 512Mb # Swap size
|
107
|
-
# noswap = 1 # Don't use swap at all for the new system.
|
108
|
-
fs = ext3 # use the EXT3 filesystem for the disk image.
|
109
|
-
dist = gutsy # Default distribution to install.
|
110
|
-
image = full # Specify sparse vs. full disk images.
|
111
|
-
|
112
|
-
#
|
113
|
-
# Currently supported and tested distributions include:
|
114
|
-
#
|
115
|
-
# sid - Debian
|
116
|
-
# sarge - Debian
|
117
|
-
# etch - Debian
|
118
|
-
# dapper - Ubuntu
|
119
|
-
# centos4 - CentOS 4
|
120
|
-
# fedora-core4 - Fedora Core 4 (codname stentz)
|
121
|
-
#
|
122
|
-
|
123
|
-
|
124
|
-
|
125
|
-
##
|
126
|
-
# Networking setup values.
|
127
|
-
##
|
128
|
-
|
129
|
-
#
|
130
|
-
# Uncomment and adjust these network settings if you wish to give your
|
131
|
-
# new instances static IP addresses.
|
132
|
-
#
|
133
|
-
gateway = 192.168.1.1
|
134
|
-
netmask = 255.255.255.0
|
135
|
-
broadcast = 192.168.1.255
|
136
|
-
#
|
137
|
-
# Uncomment this if you wish the images to use DHCP
|
138
|
-
#
|
139
|
-
# dhcp = 1
|
140
|
-
|
141
|
-
|
142
|
-
##
|
143
|
-
# Misc options
|
144
|
-
##
|
145
|
-
|
146
|
-
#
|
147
|
-
# Uncomment the following line if you wish to disable the caching
|
148
|
-
# of downloaded .deb files when using debootstrap to install images.
|
149
|
-
#
|
150
|
-
# cache = no
|
151
|
-
#
|
152
|
-
|
153
|
-
#
|
154
|
-
# Uncomment the following line if you wish to interactively setup
|
155
|
-
# a new root password for images.
|
156
|
-
#
|
157
|
-
passwd = 1
|
158
|
-
|
159
|
-
#
|
160
|
-
# If you'd like all accounts on your host system which are not present
|
161
|
-
# on the guest system to be copied over then uncomment the following line.
|
162
|
-
#
|
163
|
-
# accounts = 1
|
164
|
-
#
|
165
|
-
|
166
|
-
#
|
167
|
-
# Default kernel and ramdisk to use for the virtual servers
|
168
|
-
#
|
169
|
-
kernel = /boot/vmlinuz-`uname -r`
|
170
|
-
initrd = /boot/initrd.img-`uname -r`
|
171
|
-
|
172
|
-
#
|
173
|
-
# The architecture to use when using debootstrap or rpmstrap.
|
174
|
-
#
|
175
|
-
# This is most useful on 64 bit host machines, for other systems it
|
176
|
-
# doesn't need to be used.
|
177
|
-
#
|
178
|
-
# arch=i386
|
179
|
-
#
|
180
|
-
|
181
|
-
#
|
182
|
-
# The default mirror for debootstrap to install Debian-derived distributions
|
183
|
-
#
|
184
|
-
# mirror = http://ftp.us.debian.org/debian/
|
185
|
-
|
186
|
-
#
|
187
|
-
# A mirror suitable for use when installing the Dapper release of Ubuntu.
|
188
|
-
#
|
189
|
-
# mirror = http://gb.archive.ubuntu.com/ubuntu/
|
190
|
-
|
191
|
-
#
|
192
|
-
# If you like you could use per-distribution mirrors, which will
|
193
|
-
# be more useful if you're working in an environment where you want
|
194
|
-
# to regularly use multiple distributions:
|
195
|
-
#
|
196
|
-
# mirror_sid=http://ftp.us.debian.org/debian
|
197
|
-
# mirror_sarge=http://ftp.us.debian.org/debian
|
198
|
-
# mirror_etch=http://ftp.us.debian.org/debian
|
199
|
-
# mirror_dapper=http://archive.ubuntu.com/ubuntu
|
200
|
-
# mirror_edgy=http://archive.ubuntu.com/ubuntu
|
201
|
-
# mirror_feisty=http://archive.ubuntu.com/ubuntu
|
202
|
-
mirror_gutsy=http://archive.ubuntu.com/ubuntu
|
203
|
-
|
204
|
-
|
205
|
-
#
|
206
|
-
# Uncomment if you wish newly created images to boot once they've been
|
207
|
-
# created.
|
208
|
-
#
|
209
|
-
# boot = 1
|
210
|
-
#
|
211
|
-
|
212
|
-
# If you're using a newer version of the Xen guest kernel you will
|
213
|
-
# need to make sure that you use 'xvc0' for the guest serial device,
|
214
|
-
# and 'xvdX' instead of 'sdX' for serial devices.
|
215
|
-
#
|
216
|
-
# serial_device = tty1 #default
|
217
|
-
# serial_device = xvc0
|
218
|
-
#
|
219
|
-
# disk_device = sda #default
|
220
|
-
# disk_device = xvda
|
@@ -1,85 +0,0 @@
|
|
1
|
-
#
|
2
|
-
# Configuration file for the Xen instance {$hostname}, created
|
3
|
-
# by xen-tools {$xen_tools_version} on { scalar localtime }.
|
4
|
-
#
|
5
|
-
|
6
|
-
#
|
7
|
-
# Kernel + memory size
|
8
|
-
#
|
9
|
-
{ if ( $kernel )
|
10
|
-
{
|
11
|
-
$OUT.= "kernel = '$kernel'";
|
12
|
-
}
|
13
|
-
}
|
14
|
-
{ if ( $initrd )
|
15
|
-
{
|
16
|
-
$OUT.= "ramdisk = '$initrd'";
|
17
|
-
}
|
18
|
-
}
|
19
|
-
memory = '{$memory}'
|
20
|
-
|
21
|
-
#
|
22
|
-
# Disk device(s).
|
23
|
-
#
|
24
|
-
root = '/dev/{$device}1 ro'
|
25
|
-
{ if ( $noswap )
|
26
|
-
{
|
27
|
-
$OUT .= "disk = [ '$image_vbd,$device" . "1,w' ]";
|
28
|
-
}
|
29
|
-
else
|
30
|
-
{
|
31
|
-
$OUT .= "disk = [ '$image_vbd,$device" . "1,w', '$swap_vbd,$device" . "2,w' ]";
|
32
|
-
}
|
33
|
-
}
|
34
|
-
|
35
|
-
#
|
36
|
-
# Hostname
|
37
|
-
#
|
38
|
-
name = '{$hostname}'
|
39
|
-
|
40
|
-
#
|
41
|
-
# Networking
|
42
|
-
#
|
43
|
-
{ if ( $dhcp )
|
44
|
-
{
|
45
|
-
$OUT .= "dhcp = 'dhcp'\n";
|
46
|
-
|
47
|
-
# Setup the mac address, if present.
|
48
|
-
my $m = '';
|
49
|
-
if ( $mac )
|
50
|
-
{
|
51
|
-
$m = "mac=$mac"
|
52
|
-
}
|
53
|
-
|
54
|
-
$OUT .= "vif = [ '$m' ]";
|
55
|
-
}
|
56
|
-
else
|
57
|
-
{
|
58
|
-
#
|
59
|
-
# Setup the mac address, if present.
|
60
|
-
#
|
61
|
-
my $m = '';
|
62
|
-
if ( $mac )
|
63
|
-
{
|
64
|
-
$m = ",mac=$mac"
|
65
|
-
}
|
66
|
-
|
67
|
-
$OUT .= "vif = [ 'ip=$ip1";
|
68
|
-
$OUT .= "$m' ]";
|
69
|
-
}
|
70
|
-
}
|
71
|
-
|
72
|
-
#
|
73
|
-
# Behaviour
|
74
|
-
#
|
75
|
-
on_poweroff = 'destroy'
|
76
|
-
on_reboot = 'restart'
|
77
|
-
on_crash = 'restart'
|
78
|
-
|
79
|
-
|
80
|
-
{ if ( $admins )
|
81
|
-
{
|
82
|
-
$OUT .= "xen_shell = '$admins'\n";
|
83
|
-
}
|
84
|
-
}
|
85
|
-
extra = ' TERM=xterm xencons=tty console=tty1'
|