centostrano 0.1
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/CHANGELOG +215 -0
- data/COPYING +19 -0
- data/LICENSE +339 -0
- data/README +166 -0
- data/THANKS +5 -0
- data/bin/centify +137 -0
- data/docs/ANNOUNCE.deprec2 +47 -0
- data/docs/README.install +88 -0
- data/docs/README.nagios +28 -0
- data/docs/README.rails +20 -0
- data/docs/README.svn +31 -0
- data/docs/ROADMAP.txt +74 -0
- data/docs/deprec-1.x/deprec-1.x.quickstart +50 -0
- data/docs/deprec-1.x/notes.txt +12 -0
- data/docs/deprec_banner.gif +0 -0
- data/lib/centostrano.rb +9 -0
- data/lib/deprec/capistrano_extensions.rb +391 -0
- data/lib/deprec/centostrano.rb +46 -0
- data/lib/deprec/recipes/apache.rb +188 -0
- data/lib/deprec/recipes/canonical.rb +57 -0
- data/lib/deprec/recipes/deprec.rb +188 -0
- data/lib/deprec/recipes/deprecated.rb +71 -0
- data/lib/deprec/recipes/example.rb +115 -0
- data/lib/deprec/recipes/git.rb +106 -0
- data/lib/deprec/recipes/gitosis.rb +134 -0
- data/lib/deprec/recipes/logrotate.rb +54 -0
- data/lib/deprec/recipes/memcache.rb +53 -0
- data/lib/deprec/recipes/merb.rb +57 -0
- data/lib/deprec/recipes/mongrel.rb +220 -0
- data/lib/deprec/recipes/monit.rb +139 -0
- data/lib/deprec/recipes/mysql.rb +147 -0
- data/lib/deprec/recipes/nginx.rb +172 -0
- data/lib/deprec/recipes/postgresql.rb +132 -0
- data/lib/deprec/recipes/rails.rb +297 -0
- data/lib/deprec/recipes/ruby.rb +71 -0
- data/lib/deprec/recipes/sphinx.rb +89 -0
- data/lib/deprec/recipes/ssh.rb +93 -0
- data/lib/deprec/recipes/svn.rb +167 -0
- data/lib/deprec/recipes/users.rb +90 -0
- data/lib/deprec/recipes.rb +33 -0
- data/lib/deprec/templates/aoe/aoe-init +55 -0
- data/lib/deprec/templates/aoe/fence_aoemask +351 -0
- data/lib/deprec/templates/apache/httpd-vhost-app.conf.erb +144 -0
- data/lib/deprec/templates/apache/httpd.conf +465 -0
- data/lib/deprec/templates/apache/index.html.erb +37 -0
- data/lib/deprec/templates/apache/master.css +72 -0
- data/lib/deprec/templates/centos/repository.erb +6 -0
- data/lib/deprec/templates/coraid/aoe-init +55 -0
- data/lib/deprec/templates/deprec/caprc.erb +14 -0
- data/lib/deprec/templates/heartbeat/authkeys.erb +2 -0
- data/lib/deprec/templates/heartbeat/ha.cf.erb +15 -0
- data/lib/deprec/templates/heartbeat/haresources.erb +1 -0
- data/lib/deprec/templates/logrotate/logrotate.conf.erb +32 -0
- data/lib/deprec/templates/mongrel/logrotate.conf.erb +11 -0
- data/lib/deprec/templates/mongrel/logrotate.erb +0 -0
- data/lib/deprec/templates/mongrel/mongrel_cluster-init-script +54 -0
- data/lib/deprec/templates/mongrel/mongrel_cluster.logrotate.d +14 -0
- data/lib/deprec/templates/mongrel/mongrel_cluster.yml.erb +10 -0
- data/lib/deprec/templates/mongrel/monit.conf.erb +17 -0
- data/lib/deprec/templates/monit/monit-init-script +104 -0
- data/lib/deprec/templates/monit/monitrc.erb +227 -0
- data/lib/deprec/templates/monit/nothing +0 -0
- data/lib/deprec/templates/mysql/create_databases.sql +20 -0
- data/lib/deprec/templates/mysql/database.yml.prod +6 -0
- data/lib/deprec/templates/mysql/database.yml.stage +6 -0
- data/lib/deprec/templates/mysql/my.cnf.erb +140 -0
- data/lib/deprec/templates/mysql/sphinx.conf.prod +542 -0
- data/lib/deprec/templates/mysql/sphinx.conf.stage +542 -0
- data/lib/deprec/templates/nagios/cgi.cfg.erb +321 -0
- data/lib/deprec/templates/nagios/commands.cfg.erb +240 -0
- data/lib/deprec/templates/nagios/contacts.cfg.erb +57 -0
- data/lib/deprec/templates/nagios/hosts.cfg.erb +143 -0
- data/lib/deprec/templates/nagios/htpasswd.users +1 -0
- data/lib/deprec/templates/nagios/localhost.cfg.erb +157 -0
- data/lib/deprec/templates/nagios/nagios.cfg.erb +1274 -0
- data/lib/deprec/templates/nagios/nagios_apache_vhost.conf.erb +45 -0
- data/lib/deprec/templates/nagios/nrpe.cfg.erb +210 -0
- data/lib/deprec/templates/nagios/nrpe.xinetd.erb +16 -0
- data/lib/deprec/templates/nagios/resource.cfg.erb +34 -0
- data/lib/deprec/templates/nagios/services.cfg.erb +79 -0
- data/lib/deprec/templates/nagios/templates.cfg.erb +9 -0
- data/lib/deprec/templates/nagios/timeperiods.cfg.erb +94 -0
- data/lib/deprec/templates/network/hostname.erb +1 -0
- data/lib/deprec/templates/network/hosts.erb +2 -0
- data/lib/deprec/templates/network/interfaces.erb +22 -0
- data/lib/deprec/templates/nginx/logrotate.conf.erb +13 -0
- data/lib/deprec/templates/nginx/logrotate.erb +0 -0
- data/lib/deprec/templates/nginx/mime.types.erb +70 -0
- data/lib/deprec/templates/nginx/nginx-init-script +109 -0
- data/lib/deprec/templates/nginx/nginx.conf.erb +120 -0
- data/lib/deprec/templates/nginx/nginx.logrotate.d +12 -0
- data/lib/deprec/templates/nginx/nothing.conf +1 -0
- data/lib/deprec/templates/nginx/rails_nginx_vhost.conf.erb +41 -0
- data/lib/deprec/templates/ntp/ntp.conf.erb +42 -0
- data/lib/deprec/templates/postfix/aliases.erb +3 -0
- data/lib/deprec/templates/postfix/dynamicmaps.cf.erb +8 -0
- data/lib/deprec/templates/postfix/main.cf.erb +41 -0
- data/lib/deprec/templates/postfix/master.cf.erb +77 -0
- data/lib/deprec/templates/postgresql/pg_hba.conf.erb +76 -0
- data/lib/deprec/templates/sphinx/monit.conf.erb +5 -0
- data/lib/deprec/templates/ssh/ssh_config.erb +50 -0
- data/lib/deprec/templates/ssh/sshd_config.erb +78 -0
- data/lib/deprec/templates/subversion/svn.apache.vhost.erb +43 -0
- data/lib/deprec/templates/trac/apache_vhost.conf.erb +24 -0
- data/lib/deprec/templates/trac/trac.ini.erb +106 -0
- data/lib/deprec/templates/trac/trac_deprec.png +0 -0
- data/lib/deprec/templates/trac/tracd-init.erb +43 -0
- data/lib/deprec/templates/xen/15-disable-hwclock +40 -0
- data/lib/deprec/templates/xen/network-bridge-wrapper +3 -0
- data/lib/deprec/templates/xen/xen-tools.conf.erb +220 -0
- data/lib/deprec/templates/xen/xend-config.sxp.erb +195 -0
- data/lib/deprec/templates/xen/xend-init.erb +69 -0
- data/lib/deprec/templates/xen/xendomains.erb +137 -0
- data/lib/deprec/templates/xen/xm.tmpl.erb +85 -0
- data/lib/deprec_cmd_completion.sh +26 -0
- data/lib/vmbuilder_plugins/all.rb +20 -0
- data/lib/vmbuilder_plugins/apt.rb +93 -0
- data/lib/vmbuilder_plugins/emerge.rb +76 -0
- data/lib/vmbuilder_plugins/gem.rb +90 -0
- data/lib/vmbuilder_plugins/std.rb +203 -0
- metadata +207 -0
|
Binary file
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
#!/bin/bash
|
|
2
|
+
#
|
|
3
|
+
# Start tracd for AGR project
|
|
4
|
+
#
|
|
5
|
+
# Copy to /etc/init.d and enable with:
|
|
6
|
+
# sudo update-rc.d tracd-agr.sh defaults
|
|
7
|
+
|
|
8
|
+
tracd_cmd=<%= tracd_cmd %>
|
|
9
|
+
trac_port=<%= tracd_port %>
|
|
10
|
+
trac_pidfile=<%= tracd_pidfile %>
|
|
11
|
+
trac_parent_dir=<%= tracd_parent_dir %>
|
|
12
|
+
|
|
13
|
+
function usage
|
|
14
|
+
{
|
|
15
|
+
echo "
|
|
16
|
+
Usage: $0 {start|stop}
|
|
17
|
+
"
|
|
18
|
+
exit 1
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
case "$1" in
|
|
22
|
+
start)
|
|
23
|
+
echo "Starting tracd"
|
|
24
|
+
for dir in `ls $trac_parent_dir`; do
|
|
25
|
+
project="`basename $dir`"
|
|
26
|
+
passwords="$trac_parent_dir/${dir}/conf/users.htdigest"
|
|
27
|
+
auth_string="$auth_string --auth=${project},${passwords},${project}"
|
|
28
|
+
done
|
|
29
|
+
cmd="$tracd_cmd $auth_string --env-parent-dir=$trac_parent_dir \
|
|
30
|
+
--port=$trac_port --pidfile=$trac_pidfile --daemonize"
|
|
31
|
+
|
|
32
|
+
$cmd
|
|
33
|
+
;;
|
|
34
|
+
|
|
35
|
+
stop)
|
|
36
|
+
echo "Stopping tracd"
|
|
37
|
+
kill `cat $trac_pidfile` >/dev/null 2>&1
|
|
38
|
+
rm -f $trac_pidfile
|
|
39
|
+
;;
|
|
40
|
+
|
|
41
|
+
*)
|
|
42
|
+
usage
|
|
43
|
+
esac
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
#!/bin/sh
|
|
2
|
+
#
|
|
3
|
+
# This script disables the hardware clock.
|
|
4
|
+
#
|
|
5
|
+
# Steve
|
|
6
|
+
# --
|
|
7
|
+
# http://www.steve.org.uk/
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
prefix=$1
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
#
|
|
14
|
+
# Source our common functions
|
|
15
|
+
#
|
|
16
|
+
if [ -e /usr/lib/xen-tools/common.sh ]; then
|
|
17
|
+
. /usr/lib/xen-tools/common.sh
|
|
18
|
+
else
|
|
19
|
+
. ./hooks/common.sh
|
|
20
|
+
fi
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
#
|
|
24
|
+
# Log our start
|
|
25
|
+
#
|
|
26
|
+
logMessage Script $0 starting
|
|
27
|
+
|
|
28
|
+
|
|
29
|
+
#
|
|
30
|
+
# Disable the startup scripts from all runlevels.
|
|
31
|
+
#
|
|
32
|
+
chroot ${prefix} /usr/sbin/update-rc.d -f hwclock.sh remove
|
|
33
|
+
chroot ${prefix} /usr/sbin/update-rc.d -f hwclockfirst.sh remove
|
|
34
|
+
rm -f ${prefix}/etc/init.d/hwclock.sh ${prefix}/etc/init.d/hwclockfirst.sh ${prefix}/etc/udev/rules.d/85-hwclock.rules
|
|
35
|
+
|
|
36
|
+
#
|
|
37
|
+
# Log our finish
|
|
38
|
+
#
|
|
39
|
+
logMessage Script $0 finished.
|
|
40
|
+
|
|
@@ -0,0 +1,220 @@
|
|
|
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
|
|
@@ -0,0 +1,195 @@
|
|
|
1
|
+
# -*- sh -*-
|
|
2
|
+
|
|
3
|
+
#
|
|
4
|
+
# Xend configuration file.
|
|
5
|
+
#
|
|
6
|
+
|
|
7
|
+
# This example configuration is appropriate for an installation that
|
|
8
|
+
# utilizes a bridged network configuration. Access to xend via http
|
|
9
|
+
# is disabled.
|
|
10
|
+
|
|
11
|
+
# Commented out entries show the default for that entry, unless otherwise
|
|
12
|
+
# specified.
|
|
13
|
+
|
|
14
|
+
#(logfile /var/log/xen/xend.log)
|
|
15
|
+
#(loglevel DEBUG)
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
# The Xen-API server configuration. (Please note that this server is
|
|
19
|
+
# available as an UNSUPPORTED PREVIEW in Xen 3.0.4, and should not be relied
|
|
20
|
+
# upon).
|
|
21
|
+
#
|
|
22
|
+
# This value configures the ports, interfaces, and access controls for the
|
|
23
|
+
# Xen-API server. Each entry in the list starts with either unix, a port
|
|
24
|
+
# number, or an address:port pair. If this is "unix", then a UDP socket is
|
|
25
|
+
# opened, and this entry applies to that. If it is a port, then Xend will
|
|
26
|
+
# listen on all interfaces on that TCP port, and if it is an address:port
|
|
27
|
+
# pair, then Xend will listen on the specified port, using the interface with
|
|
28
|
+
# the specified address.
|
|
29
|
+
#
|
|
30
|
+
# The subsequent string configures the user-based access control for the
|
|
31
|
+
# listener in question. This can be one of "none" or "pam", indicating either
|
|
32
|
+
# that users should be allowed access unconditionally, or that the local
|
|
33
|
+
# Pluggable Authentication Modules configuration should be used. If this
|
|
34
|
+
# string is missing or empty, then "pam" is used.
|
|
35
|
+
#
|
|
36
|
+
# The final string gives the host-based access control for that listener. If
|
|
37
|
+
# this is missing or empty, then all connections are accepted. Otherwise,
|
|
38
|
+
# this should be a space-separated sequence of regular expressions; any host
|
|
39
|
+
# with a fully-qualified domain name or an IP address that matches one of
|
|
40
|
+
# these regular expressions will be accepted.
|
|
41
|
+
#
|
|
42
|
+
# Example: listen on TCP port 9363 on all interfaces, accepting connections
|
|
43
|
+
# only from machines in example.com or localhost, and allow access through
|
|
44
|
+
# the unix domain socket unconditionally:
|
|
45
|
+
#
|
|
46
|
+
# (xen-api-server ((9363 pam '^localhost$ example\\.com$')
|
|
47
|
+
# (unix none)))
|
|
48
|
+
#
|
|
49
|
+
# Optionally, the TCP Xen-API server can use SSL by specifying the private
|
|
50
|
+
# key and certificate location:
|
|
51
|
+
#
|
|
52
|
+
# (9367 pam '' /etc/xen/xen-api.key /etc/xen/xen-api.crt)
|
|
53
|
+
#
|
|
54
|
+
# Default:
|
|
55
|
+
# (xen-api-server ((unix)))
|
|
56
|
+
|
|
57
|
+
|
|
58
|
+
#(xend-http-server no)
|
|
59
|
+
#(xend-unix-server no)
|
|
60
|
+
#(xend-tcp-xmlrpc-server no)
|
|
61
|
+
#(xend-unix-xmlrpc-server yes)
|
|
62
|
+
#(xend-relocation-server no)
|
|
63
|
+
(xend-relocation-server yes)
|
|
64
|
+
|
|
65
|
+
#(xend-unix-path /var/lib/xend/xend-socket)
|
|
66
|
+
|
|
67
|
+
|
|
68
|
+
# Address and port xend should use for the legacy TCP XMLRPC interface,
|
|
69
|
+
# if xen-tcp-xmlrpc-server is set.
|
|
70
|
+
#(xen-tcp-xmlrpc-server-address 'localhost')
|
|
71
|
+
#(xen-tcp-xmlrpc-server-port 8006)
|
|
72
|
+
|
|
73
|
+
# SSL key and certificate to use for the legacy TCP XMLRPC interface.
|
|
74
|
+
# Setting these will mean that this port serves only SSL connections as
|
|
75
|
+
# opposed to plaintext ones.
|
|
76
|
+
#(xend-tcp-xmlrpc-server-ssl-key-file /etc/xen/xmlrpc.key)
|
|
77
|
+
#(xend-tcp-xmlrpc-server-ssl-cert-file /etc/xen/xmlrpc.crt)
|
|
78
|
+
|
|
79
|
+
|
|
80
|
+
# Port xend should use for the HTTP interface, if xend-http-server is set.
|
|
81
|
+
#(xend-port 8000)
|
|
82
|
+
|
|
83
|
+
# Port xend should use for the relocation interface, if xend-relocation-server
|
|
84
|
+
# is set.
|
|
85
|
+
#(xend-relocation-port 8002)
|
|
86
|
+
|
|
87
|
+
# Address xend should listen on for HTTP connections, if xend-http-server is
|
|
88
|
+
# set.
|
|
89
|
+
# Specifying 'localhost' prevents remote connections.
|
|
90
|
+
# Specifying the empty string '' (the default) allows all connections.
|
|
91
|
+
#(xend-address '')
|
|
92
|
+
#(xend-address localhost)
|
|
93
|
+
|
|
94
|
+
# Address xend should listen on for relocation-socket connections, if
|
|
95
|
+
# xend-relocation-server is set.
|
|
96
|
+
# Meaning and default as for xend-address above.
|
|
97
|
+
#(xend-relocation-address '')
|
|
98
|
+
|
|
99
|
+
# The hosts allowed to talk to the relocation port. If this is empty (the
|
|
100
|
+
# default), then all connections are allowed (assuming that the connection
|
|
101
|
+
# arrives on a port and interface on which we are listening; see
|
|
102
|
+
# xend-relocation-port and xend-relocation-address above). Otherwise, this
|
|
103
|
+
# should be a space-separated sequence of regular expressions. Any host with
|
|
104
|
+
# a fully-qualified domain name or an IP address that matches one of these
|
|
105
|
+
# regular expressions will be accepted.
|
|
106
|
+
#
|
|
107
|
+
# For example:
|
|
108
|
+
# (xend-relocation-hosts-allow '^localhost$ ^.*\\.example\\.org$')
|
|
109
|
+
#
|
|
110
|
+
#(xend-relocation-hosts-allow '')
|
|
111
|
+
(xend-relocation-hosts-allow '^localhost$ ^localhost\\.localdomain$')
|
|
112
|
+
|
|
113
|
+
# The limit (in kilobytes) on the size of the console buffer
|
|
114
|
+
#(console-limit 1024)
|
|
115
|
+
|
|
116
|
+
##
|
|
117
|
+
# To bridge network traffic, like this:
|
|
118
|
+
#
|
|
119
|
+
# dom0: fake eth0 -> vif0.0 -+
|
|
120
|
+
# |
|
|
121
|
+
# bridge -> real eth0 -> the network
|
|
122
|
+
# |
|
|
123
|
+
# domU: fake eth0 -> vifN.0 -+
|
|
124
|
+
#
|
|
125
|
+
# use
|
|
126
|
+
#
|
|
127
|
+
(network-script network-bridge-wrapper)
|
|
128
|
+
#
|
|
129
|
+
# Your default ethernet device is used as the outgoing interface, by default.
|
|
130
|
+
# To use a different one (e.g. eth1) use
|
|
131
|
+
#
|
|
132
|
+
# (network-script 'network-bridge netdev=eth1')
|
|
133
|
+
#
|
|
134
|
+
# The bridge is named xenbr0, by default. To rename the bridge, use
|
|
135
|
+
#
|
|
136
|
+
# (network-script 'network-bridge bridge=<name>')
|
|
137
|
+
#
|
|
138
|
+
# It is possible to use the network-bridge script in more complicated
|
|
139
|
+
# scenarios, such as having two outgoing interfaces, with two bridges, and
|
|
140
|
+
# two fake interfaces per guest domain. To do things like this, write
|
|
141
|
+
# yourself a wrapper script, and call network-bridge from it, as appropriate.
|
|
142
|
+
#
|
|
143
|
+
# (network-script network-dummy)
|
|
144
|
+
|
|
145
|
+
# The script used to control virtual interfaces. This can be overridden on a
|
|
146
|
+
# per-vif basis when creating a domain or a configuring a new vif. The
|
|
147
|
+
# vif-bridge script is designed for use with the network-bridge script, or
|
|
148
|
+
# similar configurations.
|
|
149
|
+
#
|
|
150
|
+
# If you have overridden the bridge name using
|
|
151
|
+
# (network-script 'network-bridge bridge=<name>') then you may wish to do the
|
|
152
|
+
# same here. The bridge name can also be set when creating a domain or
|
|
153
|
+
# configuring a new vif, but a value specified here would act as a default.
|
|
154
|
+
#
|
|
155
|
+
# If you are using only one bridge, the vif-bridge script will discover that,
|
|
156
|
+
# so there is no need to specify it explicitly.
|
|
157
|
+
#
|
|
158
|
+
(vif-script vif-bridge)
|
|
159
|
+
|
|
160
|
+
|
|
161
|
+
## Use the following if network traffic is routed, as an alternative to the
|
|
162
|
+
# settings for bridged networking given above.
|
|
163
|
+
#(network-script network-route)
|
|
164
|
+
#(vif-script vif-route)
|
|
165
|
+
|
|
166
|
+
|
|
167
|
+
## Use the following if network traffic is routed with NAT, as an alternative
|
|
168
|
+
# to the settings for bridged networking given above.
|
|
169
|
+
#(network-script network-nat)
|
|
170
|
+
#(vif-script vif-nat)
|
|
171
|
+
|
|
172
|
+
|
|
173
|
+
# Dom0 will balloon out when needed to free memory for domU.
|
|
174
|
+
# dom0-min-mem is the lowest memory level (in MB) dom0 will get down to.
|
|
175
|
+
# If dom0-min-mem=0, dom0 will never balloon out.
|
|
176
|
+
(dom0-min-mem 196)
|
|
177
|
+
|
|
178
|
+
# In SMP system, dom0 will use dom0-cpus # of CPUS
|
|
179
|
+
# If dom0-cpus = 0, dom0 will take all cpus available
|
|
180
|
+
(dom0-cpus 0)
|
|
181
|
+
|
|
182
|
+
# Whether to enable core-dumps when domains crash.
|
|
183
|
+
#(enable-dump no)
|
|
184
|
+
|
|
185
|
+
# The tool used for initiating virtual TPM migration
|
|
186
|
+
#(external-migration-tool '')
|
|
187
|
+
|
|
188
|
+
# The interface for VNC servers to listen on. Defaults
|
|
189
|
+
# to 127.0.0.1 To restore old 'listen everywhere' behaviour
|
|
190
|
+
# set this to 0.0.0.0
|
|
191
|
+
#(vnc-listen '127.0.0.1')
|
|
192
|
+
|
|
193
|
+
# The default password for VNC console on HVM domain.
|
|
194
|
+
# Empty string is no authentication.
|
|
195
|
+
(vncpasswd '')
|