VladTheEnterprising 0.1.4
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.
Potentially problematic release.
This version of VladTheEnterprising might be problematic. Click here for more details.
- data.tar.gz.sig +3 -0
- data/History.txt +5 -0
- data/Manifest.txt +27 -0
- data/README.txt +140 -0
- data/Rakefile +25 -0
- data/files/mysql/templates/db_slave.cnf.tmpl +12 -0
- data/files/xen_master/centos4.1 +63 -0
- data/files/xen_master/role.d/centos5-default +36 -0
- data/files/xen_master/role.d/default-edgy +36 -0
- data/files/xen_master/role.d/mysql-server-centos5 +47 -0
- data/files/xen_master/role.d/mysql-server-edgy +47 -0
- data/files/xen_master/xen-tools-centos4.conf +188 -0
- data/files/xen_master/xen-tools-centos5.conf +188 -0
- data/files/xen_master/xen-tools-edgy.conf +189 -0
- data/files/xen_master/xend-config.sxp +139 -0
- data/lib/vlad/dba/mysql.rb +445 -0
- data/lib/vlad/enterprising.rb +39 -0
- data/lib/vlad/environmentalist.rb +32 -0
- data/lib/vlad/translator.rb +138 -0
- data/lib/vlad/xen_master.rb +95 -0
- data/test/test_vlad_the_enterprising.rb +0 -0
- metadata +121 -0
- metadata.gz.sig +3 -0
@@ -0,0 +1,188 @@
|
|
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 = /xen-images
|
28
|
+
#
|
29
|
+
|
30
|
+
#
|
31
|
+
##
|
32
|
+
#
|
33
|
+
# If you don't wish to use loopback images then you may specify an
|
34
|
+
# LVM volume group here instead
|
35
|
+
#
|
36
|
+
##
|
37
|
+
# lvm = skx-vg
|
38
|
+
|
39
|
+
|
40
|
+
#
|
41
|
+
##
|
42
|
+
#
|
43
|
+
# Installation method.
|
44
|
+
#
|
45
|
+
# There are four different methods you can use to install a new copy
|
46
|
+
# of Linux to use in your Xen guest domain:
|
47
|
+
#
|
48
|
+
# - Installation via the debootstrap command.
|
49
|
+
# - Installation via the rpmstrap command.
|
50
|
+
# - Installation by copying a directory containing a previous installation.
|
51
|
+
# - Installation by untarring a previously archived image.
|
52
|
+
#
|
53
|
+
# NOTE That if you use the "untar", or "copy" options you should ensure
|
54
|
+
# that the image you're left with matches the 'dist' setting later in
|
55
|
+
# this file.
|
56
|
+
#
|
57
|
+
# Note that you can only uncomment one method - they are mutually exclusive.
|
58
|
+
# However the command line installation method will allow you to override
|
59
|
+
# the choice you make here.
|
60
|
+
#
|
61
|
+
##
|
62
|
+
#
|
63
|
+
# copy = /path/to/pristine/image
|
64
|
+
# debootstrap = 1
|
65
|
+
# rpmstrap = 1
|
66
|
+
# tar = /paty/to/tar
|
67
|
+
|
68
|
+
#
|
69
|
+
##
|
70
|
+
# Command definitions.
|
71
|
+
##
|
72
|
+
#
|
73
|
+
# The "debootstrap" and "rpmstrap" commands are hardwired, but if you
|
74
|
+
# wish to alter the commands invoked when using the "--copy" + "--tar"
|
75
|
+
# options you can adjust these two settings:
|
76
|
+
#
|
77
|
+
# --copy:
|
78
|
+
# copy-cmd = /bin/cp -a $src/* $dest
|
79
|
+
#
|
80
|
+
# --tar:
|
81
|
+
# tar-cmd = /bin/tar --numeric-owner -xvf $src
|
82
|
+
#
|
83
|
+
#
|
84
|
+
|
85
|
+
|
86
|
+
|
87
|
+
#
|
88
|
+
##
|
89
|
+
# Disk and Sizing options.
|
90
|
+
##
|
91
|
+
#
|
92
|
+
size = 5Gb # Disk image size.
|
93
|
+
memory = 128Mb # Memory size
|
94
|
+
swap = 256Mb # Swap size
|
95
|
+
# noswap = 1 # Don't use swap at all for the new system.
|
96
|
+
fs = ext3 # use the EXT3 filesystem for the disk image.
|
97
|
+
dist = centos4 # Default distribution to install.
|
98
|
+
image = sparse # Specify sparse vs. full disk images.
|
99
|
+
|
100
|
+
#
|
101
|
+
# Currently supported and tested distributions include:
|
102
|
+
#
|
103
|
+
# sid - Debian
|
104
|
+
# sarge - Debian
|
105
|
+
# etch - Debian
|
106
|
+
# dapper - Ubuntu
|
107
|
+
# centos4 - CentOS 4
|
108
|
+
# fedora-core4 - Fedora Core 4 (codname stentz)
|
109
|
+
#
|
110
|
+
|
111
|
+
|
112
|
+
|
113
|
+
##
|
114
|
+
# Networking setup values.
|
115
|
+
##
|
116
|
+
|
117
|
+
#
|
118
|
+
# Uncomment and adjust these network settings if you wish to give your
|
119
|
+
# new instances static IP addresses.
|
120
|
+
#
|
121
|
+
# gateway = 192.168.1.1
|
122
|
+
# netmask = 255.255.255.0
|
123
|
+
#
|
124
|
+
# Uncomment this if you wish the images to use DHCP
|
125
|
+
#
|
126
|
+
dhcp = 1
|
127
|
+
|
128
|
+
|
129
|
+
##
|
130
|
+
# Misc options
|
131
|
+
##
|
132
|
+
|
133
|
+
#
|
134
|
+
# Uncomment the following line if you wish to disable the caching
|
135
|
+
# of downloaded .deb files when using debootstrap to install images.
|
136
|
+
#
|
137
|
+
# cache = no
|
138
|
+
#
|
139
|
+
|
140
|
+
#
|
141
|
+
# Uncomment the following line if you wish to interactively setup
|
142
|
+
# a new root password for images.
|
143
|
+
#
|
144
|
+
# passwd = 1
|
145
|
+
|
146
|
+
#
|
147
|
+
# If you'd like all accounts on your host system which are not present
|
148
|
+
# on the guest system to be copied over then uncomment the following line.
|
149
|
+
#
|
150
|
+
accounts = 1
|
151
|
+
#
|
152
|
+
|
153
|
+
#
|
154
|
+
# Default kernel and ramdisk to use for the virtual servers
|
155
|
+
#
|
156
|
+
#kernel = /boot/vmlinuz-2.6.16-2-xen-686
|
157
|
+
kernel = /boot/vmlinuz-2.6.19-4-server
|
158
|
+
#initrd = /boot/initrd.img-2.6.16-2-xen-686
|
159
|
+
initrd = /boot/initrd.img-2.6.19-4-server
|
160
|
+
|
161
|
+
#
|
162
|
+
# The architecture to use when using debootstrap or rpmstrap.
|
163
|
+
#
|
164
|
+
# This is most useful on 64 bit host machines, for other systems it
|
165
|
+
# doesn't need to be used.
|
166
|
+
#
|
167
|
+
# arch=i386
|
168
|
+
#
|
169
|
+
|
170
|
+
#
|
171
|
+
# The default mirror for debootstrap which can be used to install
|
172
|
+
# Debian Sid, Sarge, and Etch.
|
173
|
+
#
|
174
|
+
#mirror = http://ftp.us.debian.org/debian/
|
175
|
+
#http://de.archive.ubuntu.com/ubuntu/
|
176
|
+
|
177
|
+
#
|
178
|
+
# A mirror suitable for use when installing the Dapper release of Ubuntu.
|
179
|
+
#
|
180
|
+
#mirror = http://gb.archive.ubuntu.com/ubuntu/
|
181
|
+
#mirror = http://us.archive.ubuntu.com/ubuntu/
|
182
|
+
#
|
183
|
+
# Uncomment if you wish newly created images to boot once they've been
|
184
|
+
# created.
|
185
|
+
#
|
186
|
+
#boot = 1
|
187
|
+
ide = 1
|
188
|
+
force = 1
|
@@ -0,0 +1,188 @@
|
|
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 = /xen-images
|
28
|
+
#
|
29
|
+
|
30
|
+
#
|
31
|
+
##
|
32
|
+
#
|
33
|
+
# If you don't wish to use loopback images then you may specify an
|
34
|
+
# LVM volume group here instead
|
35
|
+
#
|
36
|
+
##
|
37
|
+
# lvm = skx-vg
|
38
|
+
|
39
|
+
|
40
|
+
#
|
41
|
+
##
|
42
|
+
#
|
43
|
+
# Installation method.
|
44
|
+
#
|
45
|
+
# There are four different methods you can use to install a new copy
|
46
|
+
# of Linux to use in your Xen guest domain:
|
47
|
+
#
|
48
|
+
# - Installation via the debootstrap command.
|
49
|
+
# - Installation via the rpmstrap command.
|
50
|
+
# - Installation by copying a directory containing a previous installation.
|
51
|
+
# - Installation by untarring a previously archived image.
|
52
|
+
#
|
53
|
+
# NOTE That if you use the "untar", or "copy" options you should ensure
|
54
|
+
# that the image you're left with matches the 'dist' setting later in
|
55
|
+
# this file.
|
56
|
+
#
|
57
|
+
# Note that you can only uncomment one method - they are mutually exclusive.
|
58
|
+
# However the command line installation method will allow you to override
|
59
|
+
# the choice you make here.
|
60
|
+
#
|
61
|
+
##
|
62
|
+
#
|
63
|
+
# copy = /path/to/pristine/image
|
64
|
+
# debootstrap = 1
|
65
|
+
# rpmstrap = 1
|
66
|
+
# tar = /paty/to/tar
|
67
|
+
|
68
|
+
#
|
69
|
+
##
|
70
|
+
# Command definitions.
|
71
|
+
##
|
72
|
+
#
|
73
|
+
# The "debootstrap" and "rpmstrap" commands are hardwired, but if you
|
74
|
+
# wish to alter the commands invoked when using the "--copy" + "--tar"
|
75
|
+
# options you can adjust these two settings:
|
76
|
+
#
|
77
|
+
# --copy:
|
78
|
+
# copy-cmd = /bin/cp -a $src/* $dest
|
79
|
+
#
|
80
|
+
# --tar:
|
81
|
+
# tar-cmd = /bin/tar --numeric-owner -xvf $src
|
82
|
+
#
|
83
|
+
#
|
84
|
+
|
85
|
+
|
86
|
+
|
87
|
+
#
|
88
|
+
##
|
89
|
+
# Disk and Sizing options.
|
90
|
+
##
|
91
|
+
#
|
92
|
+
size = 5Gb # Disk image size.
|
93
|
+
memory = 128Mb # Memory size
|
94
|
+
swap = 256Mb # Swap size
|
95
|
+
# noswap = 1 # Don't use swap at all for the new system.
|
96
|
+
fs = ext3 # use the EXT3 filesystem for the disk image.
|
97
|
+
dist = centos4 # Default distribution to install.
|
98
|
+
image = sparse # Specify sparse vs. full disk images.
|
99
|
+
|
100
|
+
#
|
101
|
+
# Currently supported and tested distributions include:
|
102
|
+
#
|
103
|
+
# sid - Debian
|
104
|
+
# sarge - Debian
|
105
|
+
# etch - Debian
|
106
|
+
# dapper - Ubuntu
|
107
|
+
# centos4 - CentOS 4
|
108
|
+
# fedora-core4 - Fedora Core 4 (codname stentz)
|
109
|
+
#
|
110
|
+
|
111
|
+
|
112
|
+
|
113
|
+
##
|
114
|
+
# Networking setup values.
|
115
|
+
##
|
116
|
+
|
117
|
+
#
|
118
|
+
# Uncomment and adjust these network settings if you wish to give your
|
119
|
+
# new instances static IP addresses.
|
120
|
+
#
|
121
|
+
# gateway = 192.168.1.1
|
122
|
+
# netmask = 255.255.255.0
|
123
|
+
#
|
124
|
+
# Uncomment this if you wish the images to use DHCP
|
125
|
+
#
|
126
|
+
dhcp = 1
|
127
|
+
|
128
|
+
|
129
|
+
##
|
130
|
+
# Misc options
|
131
|
+
##
|
132
|
+
|
133
|
+
#
|
134
|
+
# Uncomment the following line if you wish to disable the caching
|
135
|
+
# of downloaded .deb files when using debootstrap to install images.
|
136
|
+
#
|
137
|
+
# cache = no
|
138
|
+
#
|
139
|
+
|
140
|
+
#
|
141
|
+
# Uncomment the following line if you wish to interactively setup
|
142
|
+
# a new root password for images.
|
143
|
+
#
|
144
|
+
# passwd = 1
|
145
|
+
|
146
|
+
#
|
147
|
+
# If you'd like all accounts on your host system which are not present
|
148
|
+
# on the guest system to be copied over then uncomment the following line.
|
149
|
+
#
|
150
|
+
accounts = 1
|
151
|
+
#
|
152
|
+
|
153
|
+
#
|
154
|
+
# Default kernel and ramdisk to use for the virtual servers
|
155
|
+
#
|
156
|
+
#kernel = /boot/vmlinuz-2.6.16-2-xen-686
|
157
|
+
kernel = /boot/vmlinuz-2.6.19-4-server
|
158
|
+
#initrd = /boot/initrd.img-2.6.16-2-xen-686
|
159
|
+
initrd = /boot/initrd.img-2.6.19-4-server
|
160
|
+
|
161
|
+
#
|
162
|
+
# The architecture to use when using debootstrap or rpmstrap.
|
163
|
+
#
|
164
|
+
# This is most useful on 64 bit host machines, for other systems it
|
165
|
+
# doesn't need to be used.
|
166
|
+
#
|
167
|
+
# arch=i386
|
168
|
+
#
|
169
|
+
|
170
|
+
#
|
171
|
+
# The default mirror for debootstrap which can be used to install
|
172
|
+
# Debian Sid, Sarge, and Etch.
|
173
|
+
#
|
174
|
+
#mirror = http://ftp.us.debian.org/debian/
|
175
|
+
#http://de.archive.ubuntu.com/ubuntu/
|
176
|
+
|
177
|
+
#
|
178
|
+
# A mirror suitable for use when installing the Dapper release of Ubuntu.
|
179
|
+
#
|
180
|
+
#mirror = http://gb.archive.ubuntu.com/ubuntu/
|
181
|
+
#mirror = http://us.archive.ubuntu.com/ubuntu/
|
182
|
+
#
|
183
|
+
# Uncomment if you wish newly created images to boot once they've been
|
184
|
+
# created.
|
185
|
+
#
|
186
|
+
#boot = 1
|
187
|
+
ide = 1
|
188
|
+
force = 1
|
@@ -0,0 +1,189 @@
|
|
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 = /xen-images
|
28
|
+
#
|
29
|
+
|
30
|
+
#
|
31
|
+
##
|
32
|
+
#
|
33
|
+
# If you don't wish to use loopback images then you may specify an
|
34
|
+
# LVM volume group here instead
|
35
|
+
#
|
36
|
+
##
|
37
|
+
# lvm = skx-vg
|
38
|
+
|
39
|
+
|
40
|
+
#
|
41
|
+
##
|
42
|
+
#
|
43
|
+
# Installation method.
|
44
|
+
#
|
45
|
+
# There are four different methods you can use to install a new copy
|
46
|
+
# of Linux to use in your Xen guest domain:
|
47
|
+
#
|
48
|
+
# - Installation via the debootstrap command.
|
49
|
+
# - Installation via the rpmstrap command.
|
50
|
+
# - Installation by copying a directory containing a previous installation.
|
51
|
+
# - Installation by untarring a previously archived image.
|
52
|
+
#
|
53
|
+
# NOTE That if you use the "untar", or "copy" options you should ensure
|
54
|
+
# that the image you're left with matches the 'dist' setting later in
|
55
|
+
# this file.
|
56
|
+
#
|
57
|
+
# Note that you can only uncomment one method - they are mutually exclusive.
|
58
|
+
# However the command line installation method will allow you to override
|
59
|
+
# the choice you make here.
|
60
|
+
#
|
61
|
+
##
|
62
|
+
#
|
63
|
+
# copy = /path/to/pristine/image
|
64
|
+
debootstrap = 1
|
65
|
+
# rpmstrap = 1
|
66
|
+
#tar = /path/to/img.tar
|
67
|
+
#
|
68
|
+
|
69
|
+
#
|
70
|
+
##
|
71
|
+
# Command definitions.
|
72
|
+
##
|
73
|
+
#
|
74
|
+
# The "debootstrap" and "rpmstrap" commands are hardwired, but if you
|
75
|
+
# wish to alter the commands invoked when using the "--copy" + "--tar"
|
76
|
+
# options you can adjust these two settings:
|
77
|
+
#
|
78
|
+
# --copy:
|
79
|
+
# copy-cmd = /bin/cp -a $src/* $dest
|
80
|
+
#
|
81
|
+
# --tar:
|
82
|
+
# tar-cmd = /bin/tar --numeric-owner -xvf $src
|
83
|
+
#
|
84
|
+
#
|
85
|
+
|
86
|
+
|
87
|
+
|
88
|
+
#
|
89
|
+
##
|
90
|
+
# Disk and Sizing options.
|
91
|
+
##
|
92
|
+
#
|
93
|
+
size = 5Gb # Disk image size.
|
94
|
+
memory = 128Mb # Memory size
|
95
|
+
swap = 256Mb # Swap size
|
96
|
+
# noswap = 1 # Don't use swap at all for the new system.
|
97
|
+
fs = ext3 # use the EXT3 filesystem for the disk image.
|
98
|
+
dist = edgy # Default distribution to install.
|
99
|
+
image = sparse # Specify sparse vs. full disk images.
|
100
|
+
|
101
|
+
#
|
102
|
+
# Currently supported and tested distributions include:
|
103
|
+
#
|
104
|
+
# sid - Debian
|
105
|
+
# sarge - Debian
|
106
|
+
# etch - Debian
|
107
|
+
# dapper - Ubuntu
|
108
|
+
# centos4 - CentOS 4
|
109
|
+
# fedora-core4 - Fedora Core 4 (codname stentz)
|
110
|
+
#
|
111
|
+
|
112
|
+
|
113
|
+
|
114
|
+
##
|
115
|
+
# Networking setup values.
|
116
|
+
##
|
117
|
+
|
118
|
+
#
|
119
|
+
# Uncomment and adjust these network settings if you wish to give your
|
120
|
+
# new instances static IP addresses.
|
121
|
+
#
|
122
|
+
# gateway = 192.168.1.1
|
123
|
+
# netmask = 255.255.255.0
|
124
|
+
#
|
125
|
+
# Uncomment this if you wish the images to use DHCP
|
126
|
+
#
|
127
|
+
dhcp = 1
|
128
|
+
|
129
|
+
|
130
|
+
##
|
131
|
+
# Misc options
|
132
|
+
##
|
133
|
+
|
134
|
+
#
|
135
|
+
# Uncomment the following line if you wish to disable the caching
|
136
|
+
# of downloaded .deb files when using debootstrap to install images.
|
137
|
+
#
|
138
|
+
# cache = no
|
139
|
+
#
|
140
|
+
|
141
|
+
#
|
142
|
+
# Uncomment the following line if you wish to interactively setup
|
143
|
+
# a new root password for images.
|
144
|
+
#
|
145
|
+
# passwd = 1
|
146
|
+
|
147
|
+
#
|
148
|
+
# If you'd like all accounts on your host system which are not present
|
149
|
+
# on the guest system to be copied over then uncomment the following line.
|
150
|
+
#
|
151
|
+
accounts = 1
|
152
|
+
#
|
153
|
+
|
154
|
+
#
|
155
|
+
# Default kernel and ramdisk to use for the virtual servers
|
156
|
+
#
|
157
|
+
#kernel = /boot/vmlinuz-2.6.16-2-xen-686
|
158
|
+
kernel = /boot/vmlinuz-2.6.19-4-server
|
159
|
+
#initrd = /boot/initrd.img-2.6.16-2-xen-686
|
160
|
+
initrd = /boot/initrd.img-2.6.19-4-server
|
161
|
+
|
162
|
+
#
|
163
|
+
# The architecture to use when using debootstrap or rpmstrap.
|
164
|
+
#
|
165
|
+
# This is most useful on 64 bit host machines, for other systems it
|
166
|
+
# doesn't need to be used.
|
167
|
+
#
|
168
|
+
# arch=i386
|
169
|
+
#
|
170
|
+
|
171
|
+
#
|
172
|
+
# The default mirror for debootstrap which can be used to install
|
173
|
+
# Debian Sid, Sarge, and Etch.
|
174
|
+
#
|
175
|
+
#mirror = http://ftp.us.debian.org/debian/
|
176
|
+
mirror = http://us.archive.ubuntu.com/ubuntu/
|
177
|
+
|
178
|
+
#
|
179
|
+
# A mirror suitable for use when installing the Dapper release of Ubuntu.
|
180
|
+
#
|
181
|
+
#mirror = http://gb.archive.ubuntu.com/ubuntu/
|
182
|
+
#mirror = http://us.archive.ubuntu.com/ubuntu/
|
183
|
+
#
|
184
|
+
# Uncomment if you wish newly created images to boot once they've been
|
185
|
+
# created.
|
186
|
+
#
|
187
|
+
#boot = 1
|
188
|
+
ide = 1
|
189
|
+
force = 1
|