andyh-deprec 1.99.26

Sign up to get free protection for your applications and to get access to all the features.
Files changed (139) hide show
  1. data/CHANGELOG +187 -0
  2. data/COPYING +19 -0
  3. data/LICENSE +339 -0
  4. data/README +138 -0
  5. data/THANKS +5 -0
  6. data/bin/depify +133 -0
  7. data/docs/ANNOUNCE.deprec2 +47 -0
  8. data/docs/README.install +88 -0
  9. data/docs/README.nagios +22 -0
  10. data/docs/README.rails +20 -0
  11. data/docs/README.svn +31 -0
  12. data/docs/ROADMAP.txt +74 -0
  13. data/docs/deprec-1.x/deprec-1.x.quickstart +50 -0
  14. data/docs/deprec-1.x/notes.txt +12 -0
  15. data/docs/deprec_banner.gif +0 -0
  16. data/docs/windows_linux.txt +350 -0
  17. data/docs/xen/plan.txt +5 -0
  18. data/docs/xen/traffic_monitoring_with_vnstat.txt +95 -0
  19. data/docs/xen/xen-tools-notes.txt +31 -0
  20. data/docs/xen/xen_on_hardy.txt +39 -0
  21. data/lib/deprec/capistrano_extensions.rb +391 -0
  22. data/lib/deprec/recipes/aoe.rb +80 -0
  23. data/lib/deprec/recipes/apache.rb +179 -0
  24. data/lib/deprec/recipes/ar_sendmail.rb +65 -0
  25. data/lib/deprec/recipes/canonical.rb +57 -0
  26. data/lib/deprec/recipes/deprec.rb +188 -0
  27. data/lib/deprec/recipes/deprecated.rb +71 -0
  28. data/lib/deprec/recipes/example.rb +115 -0
  29. data/lib/deprec/recipes/git.rb +97 -0
  30. data/lib/deprec/recipes/gitosis.rb +48 -0
  31. data/lib/deprec/recipes/heartbeat.rb +138 -0
  32. data/lib/deprec/recipes/logrotate.rb +54 -0
  33. data/lib/deprec/recipes/lvm.rb +20 -0
  34. data/lib/deprec/recipes/memcache.rb +49 -0
  35. data/lib/deprec/recipes/mongrel.rb +219 -0
  36. data/lib/deprec/recipes/monit.rb +135 -0
  37. data/lib/deprec/recipes/mysql.rb +115 -0
  38. data/lib/deprec/recipes/nagios.rb +305 -0
  39. data/lib/deprec/recipes/network.rb +81 -0
  40. data/lib/deprec/recipes/nginx.rb +144 -0
  41. data/lib/deprec/recipes/ntp.rb +103 -0
  42. data/lib/deprec/recipes/php.rb +99 -0
  43. data/lib/deprec/recipes/postfix.rb +105 -0
  44. data/lib/deprec/recipes/rails.rb +288 -0
  45. data/lib/deprec/recipes/ruby.rb +66 -0
  46. data/lib/deprec/recipes/sphinx.rb +83 -0
  47. data/lib/deprec/recipes/ssh.rb +93 -0
  48. data/lib/deprec/recipes/svn.rb +171 -0
  49. data/lib/deprec/recipes/trac.rb +277 -0
  50. data/lib/deprec/recipes/ubuntu.rb +20 -0
  51. data/lib/deprec/recipes/users.rb +90 -0
  52. data/lib/deprec/recipes/utils.rb +39 -0
  53. data/lib/deprec/recipes/vnstat.rb +85 -0
  54. data/lib/deprec/recipes/xen.rb +262 -0
  55. data/lib/deprec/recipes.rb +37 -0
  56. data/lib/deprec/templates/aoe/aoe-init +55 -0
  57. data/lib/deprec/templates/aoe/fence_aoemask +351 -0
  58. data/lib/deprec/templates/apache/httpd-vhost-app.conf.erb +144 -0
  59. data/lib/deprec/templates/apache/httpd.conf +465 -0
  60. data/lib/deprec/templates/apache/index.html.erb +37 -0
  61. data/lib/deprec/templates/apache/master.css +72 -0
  62. data/lib/deprec/templates/ar_sendmail/logrotate.conf.erb +9 -0
  63. data/lib/deprec/templates/ar_sendmail/monit.conf.erb +5 -0
  64. data/lib/deprec/templates/deprec/caprc.erb +14 -0
  65. data/lib/deprec/templates/heartbeat/authkeys.erb +2 -0
  66. data/lib/deprec/templates/heartbeat/ha.cf.erb +15 -0
  67. data/lib/deprec/templates/heartbeat/haresources.erb +1 -0
  68. data/lib/deprec/templates/logrotate/logrotate.conf.erb +32 -0
  69. data/lib/deprec/templates/mongrel/logrotate.conf.erb +11 -0
  70. data/lib/deprec/templates/mongrel/mongrel_cluster-init-script +54 -0
  71. data/lib/deprec/templates/mongrel/mongrel_cluster.logrotate.d +14 -0
  72. data/lib/deprec/templates/mongrel/mongrel_cluster.yml.erb +10 -0
  73. data/lib/deprec/templates/mongrel/monit.conf.erb +17 -0
  74. data/lib/deprec/templates/monit/monit-init-script +104 -0
  75. data/lib/deprec/templates/monit/monitrc.erb +227 -0
  76. data/lib/deprec/templates/monit/nothing +0 -0
  77. data/lib/deprec/templates/mysql/create_databases.sql +20 -0
  78. data/lib/deprec/templates/mysql/database.yml.prod +6 -0
  79. data/lib/deprec/templates/mysql/database.yml.stage +6 -0
  80. data/lib/deprec/templates/mysql/my.cnf.erb +140 -0
  81. data/lib/deprec/templates/mysql/sphinx.conf.prod +542 -0
  82. data/lib/deprec/templates/mysql/sphinx.conf.stage +542 -0
  83. data/lib/deprec/templates/nagios/cgi.cfg.erb +321 -0
  84. data/lib/deprec/templates/nagios/check_linux_free_memory.pl +118 -0
  85. data/lib/deprec/templates/nagios/check_mongrel_cluster.rb +82 -0
  86. data/lib/deprec/templates/nagios/commands.cfg.erb +240 -0
  87. data/lib/deprec/templates/nagios/contacts.cfg.erb +57 -0
  88. data/lib/deprec/templates/nagios/hosts.cfg.erb +143 -0
  89. data/lib/deprec/templates/nagios/htpasswd.users +1 -0
  90. data/lib/deprec/templates/nagios/localhost.cfg.erb +157 -0
  91. data/lib/deprec/templates/nagios/nagios.cfg.erb +1274 -0
  92. data/lib/deprec/templates/nagios/nagios_apache_vhost.conf.erb +45 -0
  93. data/lib/deprec/templates/nagios/nrpe.cfg.erb +210 -0
  94. data/lib/deprec/templates/nagios/nrpe.xinetd.erb +16 -0
  95. data/lib/deprec/templates/nagios/resource.cfg.erb +34 -0
  96. data/lib/deprec/templates/nagios/services.cfg.erb +79 -0
  97. data/lib/deprec/templates/nagios/templates.cfg.erb +9 -0
  98. data/lib/deprec/templates/nagios/timeperiods.cfg.erb +94 -0
  99. data/lib/deprec/templates/network/hostname.erb +1 -0
  100. data/lib/deprec/templates/network/hosts.erb +2 -0
  101. data/lib/deprec/templates/network/interfaces.erb +18 -0
  102. data/lib/deprec/templates/nginx/logrotate.conf.erb +13 -0
  103. data/lib/deprec/templates/nginx/mime.types.erb +70 -0
  104. data/lib/deprec/templates/nginx/nginx-init-script +62 -0
  105. data/lib/deprec/templates/nginx/nginx.conf.erb +125 -0
  106. data/lib/deprec/templates/nginx/nginx.logrotate.d +12 -0
  107. data/lib/deprec/templates/nginx/nothing.conf +1 -0
  108. data/lib/deprec/templates/nginx/rails_nginx_vhost.conf.erb +41 -0
  109. data/lib/deprec/templates/ntp/ntp.conf.erb +42 -0
  110. data/lib/deprec/templates/postfix/aliases.erb +3 -0
  111. data/lib/deprec/templates/postfix/dynamicmaps.cf.erb +8 -0
  112. data/lib/deprec/templates/postfix/main.cf.erb +41 -0
  113. data/lib/deprec/templates/postfix/master.cf.erb +77 -0
  114. data/lib/deprec/templates/sphinx/monit.conf.erb +5 -0
  115. data/lib/deprec/templates/ssh/ssh_config.erb +50 -0
  116. data/lib/deprec/templates/ssh/sshd_config.erb +78 -0
  117. data/lib/deprec/templates/subversion/svn.apache.vhost.erb +43 -0
  118. data/lib/deprec/templates/trac/apache_vhost.conf.erb +24 -0
  119. data/lib/deprec/templates/trac/nginx_vhost.conf.erb +26 -0
  120. data/lib/deprec/templates/trac/trac.ini.erb +169 -0
  121. data/lib/deprec/templates/trac/trac_deprec.png +0 -0
  122. data/lib/deprec/templates/trac/tracd-init.erb +43 -0
  123. data/lib/deprec/templates/trac/users.htdigest.erb +0 -0
  124. data/lib/deprec/templates/vnstat/config.php +57 -0
  125. data/lib/deprec/templates/xen/15-disable-hwclock +40 -0
  126. data/lib/deprec/templates/xen/network-bridge-wrapper +3 -0
  127. data/lib/deprec/templates/xen/xen-tools.conf.erb +220 -0
  128. data/lib/deprec/templates/xen/xend-config.sxp.erb +195 -0
  129. data/lib/deprec/templates/xen/xend-init.erb +69 -0
  130. data/lib/deprec/templates/xen/xendomains.erb +137 -0
  131. data/lib/deprec/templates/xen/xm.tmpl.erb +85 -0
  132. data/lib/deprec.rb +8 -0
  133. data/lib/deprec_cmd_completion.sh +26 -0
  134. data/lib/vmbuilder_plugins/all.rb +20 -0
  135. data/lib/vmbuilder_plugins/apt.rb +93 -0
  136. data/lib/vmbuilder_plugins/emerge.rb +76 -0
  137. data/lib/vmbuilder_plugins/gem.rb +90 -0
  138. data/lib/vmbuilder_plugins/std.rb +203 -0
  139. metadata +224 -0
@@ -0,0 +1,169 @@
1
+ # -*- coding: utf-8 -*-
2
+
3
+ [attachment]
4
+ max_size = 262144
5
+ render_unsafe_content = false
6
+
7
+ [browser]
8
+ color_scale = True
9
+ downloadable_paths = /trunk, /branches/*, /tags/*
10
+ hide_properties = svk:merge
11
+ intermediate_color =
12
+ intermediate_point =
13
+ newest_color = (255, 136, 136)
14
+ oldest_color = (136, 136, 255)
15
+ oneliner_properties = trac:summary
16
+ render_unsafe_content = false
17
+ wiki_properties = trac:description
18
+
19
+ [changeset]
20
+ max_diff_bytes = 10000000
21
+ max_diff_files = 0
22
+ wiki_format_messages = true
23
+
24
+ [header_logo]
25
+ alt = (please configure the [header_logo] section in trac.ini)
26
+ height = -1
27
+ link =
28
+ src = site/your_project_logo.png
29
+ width = -1
30
+
31
+ [inherit]
32
+ plugins_dir =
33
+ templates_dir =
34
+
35
+ [logging]
36
+ log_file = trac.log
37
+ # log_format = <inherited>
38
+ log_level = DEBUG
39
+ log_type = none
40
+
41
+ [milestone]
42
+ stats_provider = DefaultTicketGroupStatsProvider
43
+
44
+ [mimeviewer]
45
+ enscript_modes = text/x-dylan:dylan:4
46
+ enscript_path = enscript
47
+ max_preview_size = 262144
48
+ mime_map = text/x-dylan:dylan,text/x-idl:ice,text/x-ada:ads:adb
49
+ php_path = php
50
+ tab_width = 8
51
+
52
+ [notification]
53
+ admit_domains =
54
+ always_notify_owner = false
55
+ always_notify_reporter = false
56
+ always_notify_updater = true
57
+ ignore_domains =
58
+ mime_encoding = base64
59
+ smtp_always_bcc =
60
+ smtp_always_cc =
61
+ smtp_default_domain =
62
+ smtp_enabled = false
63
+ smtp_from = trac@localhost
64
+ smtp_from_name =
65
+ smtp_password =
66
+ smtp_port = 25
67
+ smtp_replyto = trac@localhost
68
+ smtp_server = localhost
69
+ smtp_subject_prefix = __default__
70
+ smtp_user =
71
+ ticket_subject_template = $prefix #$ticket.id: $summary
72
+ use_public_cc = false
73
+ use_short_addr = false
74
+ use_tls = false
75
+
76
+ [project]
77
+ admin =
78
+ descr = My example project
79
+ footer = Visit the Trac open source project at<br /><a href="http://trac.edgewall.org/">http://trac.edgewall.org/</a>
80
+ icon = common/trac.ico
81
+ name = mikehome
82
+ url =
83
+
84
+ [query]
85
+ default_anonymous_query = status!=closed&cc~=$USER
86
+ default_query = status!=closed&owner=$USER
87
+ items_per_page = 100
88
+
89
+ [report]
90
+ items_per_page = 100
91
+ items_per_page_rss = 0
92
+
93
+ [revisionlog]
94
+ default_log_limit = 100
95
+
96
+ [roadmap]
97
+ stats_provider = DefaultTicketGroupStatsProvider
98
+
99
+ [search]
100
+ min_query_length = 3
101
+
102
+ [svn]
103
+ branches = trunk,branches/*
104
+ tags = tags/*
105
+
106
+ [ticket]
107
+ default_component =
108
+ default_milestone =
109
+ default_priority = major
110
+ default_resolution = fixed
111
+ default_type = defect
112
+ default_version =
113
+ max_description_size = 262144
114
+ preserve_newlines = default
115
+ restrict_owner = false
116
+ workflow = ConfigurableTicketWorkflow
117
+
118
+ [ticket-workflow]
119
+ accept = new,assigned,accepted,reopened -> accepted
120
+ accept.operations = set_owner_to_self
121
+ accept.permissions = TICKET_MODIFY
122
+ leave = * -> *
123
+ leave.default = 1
124
+ leave.operations = leave_status
125
+ reassign = new,assigned,accepted,reopened -> assigned
126
+ reassign.operations = set_owner
127
+ reassign.permissions = TICKET_MODIFY
128
+ reopen = closed -> reopened
129
+ reopen.operations = del_resolution
130
+ reopen.permissions = TICKET_CREATE
131
+ resolve = new,assigned,accepted,reopened -> closed
132
+ resolve.operations = set_resolution
133
+ resolve.permissions = TICKET_MODIFY
134
+
135
+ [timeline]
136
+ abbreviated_messages = true
137
+ changeset_collapse_events = false
138
+ changeset_long_messages = false
139
+ changeset_show_files = 0
140
+ default_daysback = 30
141
+ max_daysback = 90
142
+ newticket_formatter = oneliner
143
+ ticket_show_details = false
144
+
145
+ [trac]
146
+ authz_file =
147
+ authz_module_name =
148
+ auto_reload = False
149
+ base_url =
150
+ check_auth_ip = true
151
+ database = sqlite:db/trac.db
152
+ default_charset = iso-8859-15
153
+ htdocs_location =
154
+ ignore_auth_case = false
155
+ mainnav = wiki,timeline,roadmap,browser,tickets,newticket,search
156
+ metanav = login,logout,prefs,help,about
157
+ permission_policies = DefaultPermissionPolicy, LegacyAttachmentPolicy
158
+ permission_store = DefaultPermissionStore
159
+ repository_dir = /var/www/apps/mikehome/repos
160
+ repository_type = svn
161
+ show_email_addresses = false
162
+ timeout = 20
163
+ use_base_url_for_redirect = False
164
+
165
+ [wiki]
166
+ ignore_missing_pages = false
167
+ render_unsafe_content = false
168
+ split_page_names = false
169
+
@@ -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
File without changes
@@ -0,0 +1,57 @@
1
+ <?php
2
+ //
3
+ // vnStat PHP frontend 1.3 (c)2006-2007 Bjorge Dijkstra (bjd@jooz.net)
4
+ //
5
+ // This program is free software; you can redistribute it and/or modify
6
+ // it under the terms of the GNU General Public License as published by
7
+ // the Free Software Foundation; either version 2 of the License, or
8
+ // (at your option) any later version.
9
+ //
10
+ // This program is distributed in the hope that it will be useful,
11
+ // but WITHOUT ANY WARRANTY; without even the implied warranty of
12
+ // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13
+ // GNU General Public License for more details.
14
+ //
15
+ // You should have received a copy of the GNU General Public License
16
+ // along with this program; if not, write to the Free Software
17
+ // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
18
+ //
19
+ //
20
+ // see file COPYING or at http://www.gnu.org/licenses/gpl.html
21
+ // for more information.
22
+ //
23
+
24
+ //
25
+ // configuration parameters
26
+ //
27
+ // edit these to reflect your particular situation
28
+ //
29
+
30
+ // list of network interfaces monitored by vnStat
31
+ $iface_list = array('eth0', 'eth1', 'sixxs');
32
+
33
+ //
34
+ // optional names for interfaces
35
+ // if there's no name set for an interface then the interface identifier
36
+ // will be displayed instead
37
+ //
38
+ $iface_title['eth0'] = 'Internal';
39
+ $iface_title['eth1'] = 'Internet';
40
+ $iface_title['sixxs'] = 'SixXS IPv6';
41
+
42
+ //
43
+ // There are two possible sources for vnstat data. If the $vnstat_bin
44
+ // variable is set then vnstat is called directly from the PHP script
45
+ // to get the interface data.
46
+ //
47
+ // The other option is to periodically dump the vnstat interface data to
48
+ // a file (e.g. by a cronjob). In that case the $vnstat_bin variable
49
+ // must be cleared and set $data_dir to the location where the dumps
50
+ // are stored. Dumps must be named 'vnstat_dump_$iface'.
51
+ //
52
+ // You can generate vnstat dumps with the command:
53
+ // vnstat --dumpdb -i $iface > /path/to/data_dir/vnstat_dump_$iface
54
+ //
55
+ $vnstat_bin = '/usr/bin/vmstat';
56
+ $data_dir = './dumps';
57
+ ?>
@@ -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,3 @@
1
+ #!/bin/sh
2
+ /etc/xen/scripts/network-bridge $1 netdev=eth0 bridge=xenbr0 vifnum=0 antispoof=no
3
+ /etc/xen/scripts/network-bridge $1 netdev=eth1 bridge=xenbr1 vifnum=1 antispoof=no
@@ -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