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.
Files changed (121) hide show
  1. data/CHANGELOG +215 -0
  2. data/COPYING +19 -0
  3. data/LICENSE +339 -0
  4. data/README +166 -0
  5. data/THANKS +5 -0
  6. data/bin/centify +137 -0
  7. data/docs/ANNOUNCE.deprec2 +47 -0
  8. data/docs/README.install +88 -0
  9. data/docs/README.nagios +28 -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/lib/centostrano.rb +9 -0
  17. data/lib/deprec/capistrano_extensions.rb +391 -0
  18. data/lib/deprec/centostrano.rb +46 -0
  19. data/lib/deprec/recipes/apache.rb +188 -0
  20. data/lib/deprec/recipes/canonical.rb +57 -0
  21. data/lib/deprec/recipes/deprec.rb +188 -0
  22. data/lib/deprec/recipes/deprecated.rb +71 -0
  23. data/lib/deprec/recipes/example.rb +115 -0
  24. data/lib/deprec/recipes/git.rb +106 -0
  25. data/lib/deprec/recipes/gitosis.rb +134 -0
  26. data/lib/deprec/recipes/logrotate.rb +54 -0
  27. data/lib/deprec/recipes/memcache.rb +53 -0
  28. data/lib/deprec/recipes/merb.rb +57 -0
  29. data/lib/deprec/recipes/mongrel.rb +220 -0
  30. data/lib/deprec/recipes/monit.rb +139 -0
  31. data/lib/deprec/recipes/mysql.rb +147 -0
  32. data/lib/deprec/recipes/nginx.rb +172 -0
  33. data/lib/deprec/recipes/postgresql.rb +132 -0
  34. data/lib/deprec/recipes/rails.rb +297 -0
  35. data/lib/deprec/recipes/ruby.rb +71 -0
  36. data/lib/deprec/recipes/sphinx.rb +89 -0
  37. data/lib/deprec/recipes/ssh.rb +93 -0
  38. data/lib/deprec/recipes/svn.rb +167 -0
  39. data/lib/deprec/recipes/users.rb +90 -0
  40. data/lib/deprec/recipes.rb +33 -0
  41. data/lib/deprec/templates/aoe/aoe-init +55 -0
  42. data/lib/deprec/templates/aoe/fence_aoemask +351 -0
  43. data/lib/deprec/templates/apache/httpd-vhost-app.conf.erb +144 -0
  44. data/lib/deprec/templates/apache/httpd.conf +465 -0
  45. data/lib/deprec/templates/apache/index.html.erb +37 -0
  46. data/lib/deprec/templates/apache/master.css +72 -0
  47. data/lib/deprec/templates/centos/repository.erb +6 -0
  48. data/lib/deprec/templates/coraid/aoe-init +55 -0
  49. data/lib/deprec/templates/deprec/caprc.erb +14 -0
  50. data/lib/deprec/templates/heartbeat/authkeys.erb +2 -0
  51. data/lib/deprec/templates/heartbeat/ha.cf.erb +15 -0
  52. data/lib/deprec/templates/heartbeat/haresources.erb +1 -0
  53. data/lib/deprec/templates/logrotate/logrotate.conf.erb +32 -0
  54. data/lib/deprec/templates/mongrel/logrotate.conf.erb +11 -0
  55. data/lib/deprec/templates/mongrel/logrotate.erb +0 -0
  56. data/lib/deprec/templates/mongrel/mongrel_cluster-init-script +54 -0
  57. data/lib/deprec/templates/mongrel/mongrel_cluster.logrotate.d +14 -0
  58. data/lib/deprec/templates/mongrel/mongrel_cluster.yml.erb +10 -0
  59. data/lib/deprec/templates/mongrel/monit.conf.erb +17 -0
  60. data/lib/deprec/templates/monit/monit-init-script +104 -0
  61. data/lib/deprec/templates/monit/monitrc.erb +227 -0
  62. data/lib/deprec/templates/monit/nothing +0 -0
  63. data/lib/deprec/templates/mysql/create_databases.sql +20 -0
  64. data/lib/deprec/templates/mysql/database.yml.prod +6 -0
  65. data/lib/deprec/templates/mysql/database.yml.stage +6 -0
  66. data/lib/deprec/templates/mysql/my.cnf.erb +140 -0
  67. data/lib/deprec/templates/mysql/sphinx.conf.prod +542 -0
  68. data/lib/deprec/templates/mysql/sphinx.conf.stage +542 -0
  69. data/lib/deprec/templates/nagios/cgi.cfg.erb +321 -0
  70. data/lib/deprec/templates/nagios/commands.cfg.erb +240 -0
  71. data/lib/deprec/templates/nagios/contacts.cfg.erb +57 -0
  72. data/lib/deprec/templates/nagios/hosts.cfg.erb +143 -0
  73. data/lib/deprec/templates/nagios/htpasswd.users +1 -0
  74. data/lib/deprec/templates/nagios/localhost.cfg.erb +157 -0
  75. data/lib/deprec/templates/nagios/nagios.cfg.erb +1274 -0
  76. data/lib/deprec/templates/nagios/nagios_apache_vhost.conf.erb +45 -0
  77. data/lib/deprec/templates/nagios/nrpe.cfg.erb +210 -0
  78. data/lib/deprec/templates/nagios/nrpe.xinetd.erb +16 -0
  79. data/lib/deprec/templates/nagios/resource.cfg.erb +34 -0
  80. data/lib/deprec/templates/nagios/services.cfg.erb +79 -0
  81. data/lib/deprec/templates/nagios/templates.cfg.erb +9 -0
  82. data/lib/deprec/templates/nagios/timeperiods.cfg.erb +94 -0
  83. data/lib/deprec/templates/network/hostname.erb +1 -0
  84. data/lib/deprec/templates/network/hosts.erb +2 -0
  85. data/lib/deprec/templates/network/interfaces.erb +22 -0
  86. data/lib/deprec/templates/nginx/logrotate.conf.erb +13 -0
  87. data/lib/deprec/templates/nginx/logrotate.erb +0 -0
  88. data/lib/deprec/templates/nginx/mime.types.erb +70 -0
  89. data/lib/deprec/templates/nginx/nginx-init-script +109 -0
  90. data/lib/deprec/templates/nginx/nginx.conf.erb +120 -0
  91. data/lib/deprec/templates/nginx/nginx.logrotate.d +12 -0
  92. data/lib/deprec/templates/nginx/nothing.conf +1 -0
  93. data/lib/deprec/templates/nginx/rails_nginx_vhost.conf.erb +41 -0
  94. data/lib/deprec/templates/ntp/ntp.conf.erb +42 -0
  95. data/lib/deprec/templates/postfix/aliases.erb +3 -0
  96. data/lib/deprec/templates/postfix/dynamicmaps.cf.erb +8 -0
  97. data/lib/deprec/templates/postfix/main.cf.erb +41 -0
  98. data/lib/deprec/templates/postfix/master.cf.erb +77 -0
  99. data/lib/deprec/templates/postgresql/pg_hba.conf.erb +76 -0
  100. data/lib/deprec/templates/sphinx/monit.conf.erb +5 -0
  101. data/lib/deprec/templates/ssh/ssh_config.erb +50 -0
  102. data/lib/deprec/templates/ssh/sshd_config.erb +78 -0
  103. data/lib/deprec/templates/subversion/svn.apache.vhost.erb +43 -0
  104. data/lib/deprec/templates/trac/apache_vhost.conf.erb +24 -0
  105. data/lib/deprec/templates/trac/trac.ini.erb +106 -0
  106. data/lib/deprec/templates/trac/trac_deprec.png +0 -0
  107. data/lib/deprec/templates/trac/tracd-init.erb +43 -0
  108. data/lib/deprec/templates/xen/15-disable-hwclock +40 -0
  109. data/lib/deprec/templates/xen/network-bridge-wrapper +3 -0
  110. data/lib/deprec/templates/xen/xen-tools.conf.erb +220 -0
  111. data/lib/deprec/templates/xen/xend-config.sxp.erb +195 -0
  112. data/lib/deprec/templates/xen/xend-init.erb +69 -0
  113. data/lib/deprec/templates/xen/xendomains.erb +137 -0
  114. data/lib/deprec/templates/xen/xm.tmpl.erb +85 -0
  115. data/lib/deprec_cmd_completion.sh +26 -0
  116. data/lib/vmbuilder_plugins/all.rb +20 -0
  117. data/lib/vmbuilder_plugins/apt.rb +93 -0
  118. data/lib/vmbuilder_plugins/emerge.rb +76 -0
  119. data/lib/vmbuilder_plugins/gem.rb +90 -0
  120. data/lib/vmbuilder_plugins/std.rb +203 -0
  121. metadata +207 -0
@@ -0,0 +1,3 @@
1
+ # See man 5 aliases for format
2
+ postmaster: root
3
+
@@ -0,0 +1,8 @@
1
+ # Postfix dynamic maps configuration file.
2
+ #
3
+ # The first match found is the one that is used. Wildcards are not supported
4
+ # as of postfix 2.0.2
5
+ #
6
+ #type location of .so file open function (mkmap func)
7
+ #==== ================================ ============= ============
8
+ tcp /usr/lib/postfix/dict_tcp.so dict_tcp_open
@@ -0,0 +1,41 @@
1
+ # See /usr/share/postfix/main.cf.dist for a commented, more complete version
2
+
3
+ # Debian specific: Specifying a file name will cause the first
4
+ # line of that file to be used as the name. The Debian default
5
+ # is /etc/mailname.
6
+ #myorigin = /etc/mailname
7
+
8
+ smtpd_banner = $myhostname ESMTP $mail_name (Ubuntu)
9
+ biff = no
10
+
11
+ # appending .domain is the MUA's job.
12
+ append_dot_mydomain = no
13
+
14
+ # Uncomment the next line to generate "delayed mail" warnings
15
+ #delay_warning_time = 4h
16
+
17
+ # TLS parameters
18
+ smtpd_tls_cert_file=/etc/ssl/certs/ssl-cert-snakeoil.pem
19
+ smtpd_tls_key_file=/etc/ssl/private/ssl-cert-snakeoil.key
20
+ smtpd_use_tls=yes
21
+ smtpd_tls_session_cache_database = btree:${queue_directory}/smtpd_scache
22
+ smtp_tls_session_cache_database = btree:${queue_directory}/smtp_scache
23
+
24
+ # See /usr/share/doc/postfix/TLS_README.gz in the postfix-doc package for
25
+ # information on enabling SSL in the smtp client.
26
+
27
+ myhostname = dn.blocksglobal.com
28
+ alias_maps = hash:/etc/aliases
29
+ alias_database = hash:/etc/aliases
30
+ myorigin = /etc/mailname
31
+
32
+ # deprec - XXX add something like this to template file
33
+ #
34
+ # mydestination = <%# postfix_destination_domains * ', ' %>, localhost.localdomain, localhost
35
+ mydestination = dn.blocksglobal.com, localhost.blocksglobal.com, , localhost
36
+
37
+ relayhost =
38
+ mynetworks = 127.0.0.0/8
39
+ mailbox_size_limit = 0
40
+ recipient_delimiter = +
41
+ inet_interfaces = all
@@ -0,0 +1,77 @@
1
+ #
2
+ # Postfix master process configuration file. For details on the format
3
+ # of the file, see the master(5) manual page (command: "man 5 master").
4
+ #
5
+ # ==========================================================================
6
+ # service type private unpriv chroot wakeup maxproc command + args
7
+ # (yes) (yes) (yes) (never) (100)
8
+ # ==========================================================================
9
+ smtp inet n - - - - smtpd
10
+ #submission inet n - - - - smtpd
11
+ # -o smtpd_enforce_tls=yes
12
+ # -o smtpd_sasl_auth_enable=yes
13
+ # -o smtpd_client_restrictions=permit_sasl_authenticated,reject
14
+ #smtps inet n - - - - smtpd
15
+ # -o smtpd_tls_wrappermode=yes
16
+ # -o smtpd_sasl_auth_enable=yes
17
+ # -o smtpd_client_restrictions=permit_sasl_authenticated,reject
18
+ #628 inet n - - - - qmqpd
19
+ pickup fifo n - - 60 1 pickup
20
+ cleanup unix n - - - 0 cleanup
21
+ qmgr fifo n - n 300 1 qmgr
22
+ #qmgr fifo n - - 300 1 oqmgr
23
+ tlsmgr unix - - - 1000? 1 tlsmgr
24
+ rewrite unix - - - - - trivial-rewrite
25
+ bounce unix - - - - 0 bounce
26
+ defer unix - - - - 0 bounce
27
+ trace unix - - - - 0 bounce
28
+ verify unix - - - - 1 verify
29
+ flush unix n - - 1000? 0 flush
30
+ proxymap unix - - n - - proxymap
31
+ smtp unix - - - - - smtp
32
+ # When relaying mail as backup MX, disable fallback_relay to avoid MX loops
33
+ relay unix - - - - - smtp
34
+ -o smtp_fallback_relay=
35
+ # -o smtp_helo_timeout=5 -o smtp_connect_timeout=5
36
+ showq unix n - - - - showq
37
+ error unix - - - - - error
38
+ retry unix - - - - - error
39
+ discard unix - - - - - discard
40
+ local unix - n n - - local
41
+ virtual unix - n n - - virtual
42
+ lmtp unix - - - - - lmtp
43
+ anvil unix - - - - 1 anvil
44
+ scache unix - - - - 1 scache
45
+ #
46
+ # ====================================================================
47
+ # Interfaces to non-Postfix software. Be sure to examine the manual
48
+ # pages of the non-Postfix software to find out what options it wants.
49
+ #
50
+ # Many of the following services use the Postfix pipe(8) delivery
51
+ # agent. See the pipe(8) man page for information about ${recipient}
52
+ # and other message envelope options.
53
+ # ====================================================================
54
+ #
55
+ # maildrop. See the Postfix MAILDROP_README file for details.
56
+ # Also specify in main.cf: maildrop_destination_recipient_limit=1
57
+ #
58
+ maildrop unix - n n - - pipe
59
+ flags=DRhu user=vmail argv=/usr/bin/maildrop -d ${recipient}
60
+ #
61
+ # See the Postfix UUCP_README file for configuration details.
62
+ #
63
+ uucp unix - n n - - pipe
64
+ flags=Fqhu user=uucp argv=uux -r -n -z -a$sender - $nexthop!rmail ($recipient)
65
+ #
66
+ # Other external delivery methods.
67
+ #
68
+ ifmail unix - n n - - pipe
69
+ flags=F user=ftn argv=/usr/lib/ifmail/ifmail -r $nexthop ($recipient)
70
+ bsmtp unix - n n - - pipe
71
+ flags=Fq. user=bsmtp argv=/usr/lib/bsmtp/bsmtp -t$nexthop -f$sender $recipient
72
+ scalemail-backend unix - n n - 2 pipe
73
+ flags=R user=scalemail argv=/usr/lib/scalemail/bin/scalemail-store ${nexthop} ${user} ${extension}
74
+ mailman unix - n n - - pipe
75
+ flags=FR user=list argv=/usr/lib/mailman/bin/postfix-to-mailman.py
76
+ ${nexthop} ${user}
77
+
@@ -0,0 +1,76 @@
1
+ # PostgreSQL Client Authentication Configuration File
2
+ # ===================================================
3
+ #
4
+ # Refer to the PostgreSQL Administrator's Guide, chapter "Client
5
+ # Authentication" for a complete description. A short synopsis
6
+ # follows.
7
+ #
8
+ # This file controls: which hosts are allowed to connect, how clients
9
+ # are authenticated, which PostgreSQL user names they can use, which
10
+ # databases they can access. Records take one of these forms:
11
+ #
12
+ # local DATABASE USER METHOD [OPTION]
13
+ # host DATABASE USER CIDR-ADDRESS METHOD [OPTION]
14
+ # hostssl DATABASE USER CIDR-ADDRESS METHOD [OPTION]
15
+ # hostnossl DATABASE USER CIDR-ADDRESS METHOD [OPTION]
16
+ #
17
+ # (The uppercase items must be replaced by actual values.)
18
+ #
19
+ # The first field is the connection type: "local" is a Unix-domain socket,
20
+ # "host" is either a plain or SSL-encrypted TCP/IP socket, "hostssl" is an
21
+ # SSL-encrypted TCP/IP socket, and "hostnossl" is a plain TCP/IP socket.
22
+ #
23
+ # DATABASE can be "all", "sameuser", "samerole", a database name, or
24
+ # a comma-separated list thereof.
25
+ #
26
+ # USER can be "all", a user name, a group name prefixed with "+", or
27
+ # a comma-separated list thereof. In both the DATABASE and USER fields
28
+ # you can also write a file name prefixed with "@" to include names from
29
+ # a separate file.
30
+ #
31
+ # CIDR-ADDRESS specifies the set of hosts the record matches.
32
+ # It is made up of an IP address and a CIDR mask that is an integer
33
+ # (between 0 and 32 (IPv4) or 128 (IPv6) inclusive) that specifies
34
+ # the number of significant bits in the mask. Alternatively, you can write
35
+ # an IP address and netmask in separate columns to specify the set of hosts.
36
+ #
37
+ # METHOD can be "trust", "reject", "md5", "crypt", "password",
38
+ # "krb5", "ident", or "pam". Note that "password" sends passwords
39
+ # in clear text; "md5" is preferred since it sends encrypted passwords.
40
+ #
41
+ # OPTION is the ident map or the name of the PAM service, depending on METHOD.
42
+ #
43
+ # Database and user names containing spaces, commas, quotes and other special
44
+ # characters must be quoted. Quoting one of the keywords "all", "sameuser" or
45
+ # "samerole" makes the name lose its special character, and just match a
46
+ # database or username with that name.
47
+ #
48
+ # This file is read on server startup and when the postmaster receives
49
+ # a SIGHUP signal. If you edit the file on a running system, you have
50
+ # to SIGHUP the postmaster for the changes to take effect. You can use
51
+ # "pg_ctl reload" to do that.
52
+
53
+ # Put your actual configuration here
54
+ # ----------------------------------
55
+ #
56
+ # If you want to allow non-local connections, you need to add more
57
+ # "host" records. In that case you will also need to make PostgreSQL listen
58
+ # on a non-local interface via the listen_addresses configuration parameter,
59
+ # or via the -i or -h command line switches.
60
+ #
61
+
62
+
63
+
64
+ # TYPE DATABASE USER CIDR-ADDRESS METHOD
65
+
66
+ # "local" is for Unix domain socket connections only
67
+ local all postgres ident sameuser
68
+ local all all password
69
+ # IPv4 local connections:
70
+ host all postgres 127.0.0.1/32 ident sameuser
71
+ host all all 127.0.0.1/32 password
72
+
73
+ # IPv6 local connections:
74
+ host all all ::1/128 password
75
+
76
+
@@ -0,0 +1,5 @@
1
+ check process searchd with pidfile /opt/local/var/db/sphinx/log/searchd.pid
2
+ start program = "/usr/local/bin/searchd --config <%= deploy_to %>/current/config/ultrasphinx/production.conf"
3
+ stop program = "/usr/local/bin/searchd --stop --config <%= deploy_to %>/current/config/ultrasphinx/production.conf"
4
+
5
+ if 3 restarts within 5 cycles then timeout
@@ -0,0 +1,50 @@
1
+
2
+ # This is the ssh client system-wide configuration file. See
3
+ # ssh_config(5) for more information. This file provides defaults for
4
+ # users, and the values can be changed in per-user configuration files
5
+ # or on the command line.
6
+
7
+ # Configuration data is parsed as follows:
8
+ # 1. command line options
9
+ # 2. user-specific file
10
+ # 3. system-wide file
11
+ # Any configuration value is only changed the first time it is set.
12
+ # Thus, host-specific definitions should be at the beginning of the
13
+ # configuration file, and defaults at the end.
14
+
15
+ # Site-wide defaults for some commonly used options. For a comprehensive
16
+ # list of available options, their meanings and defaults, please see the
17
+ # ssh_config(5) man page.
18
+
19
+ Host *
20
+ # ForwardAgent no
21
+ # ForwardX11 no
22
+ # ForwardX11Trusted yes
23
+ # RhostsRSAAuthentication no
24
+ # RSAAuthentication yes
25
+ # PasswordAuthentication yes
26
+ # HostbasedAuthentication no
27
+ # GSSAPIAuthentication no
28
+ # GSSAPIDelegateCredentials no
29
+ # GSSAPIKeyExchange no
30
+ # GSSAPITrustDNS no
31
+ # BatchMode no
32
+ # CheckHostIP yes
33
+ # AddressFamily any
34
+ # ConnectTimeout 0
35
+ # StrictHostKeyChecking ask
36
+ # IdentityFile ~/.ssh/identity
37
+ # IdentityFile ~/.ssh/id_rsa
38
+ # IdentityFile ~/.ssh/id_dsa
39
+ # Port 22
40
+ # Protocol 2,1
41
+ # Cipher 3des
42
+ # Ciphers aes128-cbc,3des-cbc,blowfish-cbc,cast128-cbc,arcfour,aes192-cbc,aes256-cbc
43
+ # EscapeChar ~
44
+ # Tunnel no
45
+ # TunnelDevice any:any
46
+ # PermitLocalCommand no
47
+ SendEnv LANG LC_*
48
+ HashKnownHosts yes
49
+ GSSAPIAuthentication yes
50
+ GSSAPIDelegateCredentials no
@@ -0,0 +1,78 @@
1
+ # Package generated configuration file
2
+ # See the sshd(8) manpage for details
3
+
4
+ # What ports, IPs and protocols we listen for
5
+ Port 22
6
+ # Use these options to restrict which interfaces/protocols sshd will bind to
7
+ #ListenAddress ::
8
+ #ListenAddress 0.0.0.0
9
+ Protocol 2
10
+ # HostKeys for protocol version 2
11
+ HostKey /etc/ssh/ssh_host_rsa_key
12
+ HostKey /etc/ssh/ssh_host_dsa_key
13
+ #Privilege Separation is turned on for security
14
+ UsePrivilegeSeparation yes
15
+
16
+ # Lifetime and size of ephemeral version 1 server key
17
+ KeyRegenerationInterval 3600
18
+ ServerKeyBits 768
19
+
20
+ # Logging
21
+ SyslogFacility AUTH
22
+ LogLevel INFO
23
+
24
+ # Authentication:
25
+ LoginGraceTime 120
26
+ PermitRootLogin no
27
+ StrictModes yes
28
+
29
+ RSAAuthentication yes
30
+ PubkeyAuthentication yes
31
+ #AuthorizedKeysFile %h/.ssh/authorized_keys
32
+
33
+ # Don't read the user's ~/.rhosts and ~/.shosts files
34
+ IgnoreRhosts yes
35
+ # For this to work you will also need host keys in /etc/ssh_known_hosts
36
+ RhostsRSAAuthentication no
37
+ # similar for protocol version 2
38
+ HostbasedAuthentication no
39
+ # Uncomment if you don't trust ~/.ssh/known_hosts for RhostsRSAAuthentication
40
+ #IgnoreUserKnownHosts yes
41
+
42
+ # To enable empty passwords, change to yes (NOT RECOMMENDED)
43
+ PermitEmptyPasswords no
44
+
45
+ # Change to yes to enable challenge-response passwords (beware issues with
46
+ # some PAM modules and threads)
47
+ ChallengeResponseAuthentication no
48
+
49
+ # Change to no to disable tunnelled clear text passwords
50
+ PasswordAuthentication no
51
+
52
+ # Kerberos options
53
+ #KerberosAuthentication no
54
+ #KerberosGetAFSToken no
55
+ #KerberosOrLocalPasswd yes
56
+ #KerberosTicketCleanup yes
57
+
58
+ # GSSAPI options
59
+ #GSSAPIAuthentication no
60
+ #GSSAPICleanupCredentials yes
61
+
62
+ X11Forwarding yes
63
+ X11DisplayOffset 10
64
+ PrintMotd no
65
+ PrintLastLog yes
66
+ TCPKeepAlive yes
67
+ #UseLogin no
68
+
69
+ #MaxStartups 10:30:60
70
+ #Banner /etc/issue.net
71
+
72
+ # Allow client to pass locale environment variables
73
+ AcceptEnv LANG LC_*
74
+
75
+ Subsystem sftp /usr/libexec/openssh/sftp-server
76
+
77
+ UsePAM no
78
+ UseDNS no
@@ -0,0 +1,43 @@
1
+ <VirtualHost *:80>
2
+ ServerName <%= @username %>.svn.engineyard.com
3
+ ServerAdmin admin@engineyard.com
4
+
5
+ <Location />
6
+ DAV svn
7
+
8
+ Satisfy Any
9
+ Require valid-user
10
+
11
+ AuthType Basic
12
+ AuthName "Engine Yard SVN Cluster: <%= @username %>"
13
+ AuthUserFile /data/svn/<%= @username %>/users
14
+
15
+ AuthzSVNAccessFile /data/svn/<%= @username %>/access
16
+
17
+ SVNPath /data/svn/<%= @username %>/repo
18
+ </Location>
19
+ </VirtualHost>
20
+
21
+ <VirtualHost *:443>
22
+ ServerName <%= @username %>.svn.engineyard.com
23
+ ServerAdmin admin@engineyard.com
24
+
25
+ <Location />
26
+ DAV svn
27
+
28
+ Satisfy Any
29
+ Require valid-user
30
+
31
+ AuthType Basic
32
+ AuthName "Engine Yard SVN Cluster: <%= @username %>"
33
+ AuthUserFile /data/svn/<%= @username %>/users
34
+
35
+ AuthzSVNAccessFile /data/svn/<%= @username %>/access
36
+
37
+ SVNPath /data/svn/<%= @username %>/repo
38
+ </Location>
39
+
40
+ SSLEngine on
41
+ SSLProtocol all
42
+ SSLCipherSuite HIGH:MEDIUM
43
+ </VirtualHost>
@@ -0,0 +1,24 @@
1
+ <VirtualHost *:80>
2
+ ServerName <%= trac_home_url %>
3
+
4
+ # Configure trac_cluster
5
+ <Proxy balancer://trac_cluster>
6
+ BalancerMember http://127.0.0.1:<%= tracd_port %>
7
+ </Proxy>
8
+
9
+ RewriteEngine On
10
+
11
+ # Redirect to the AGR track instance
12
+ RewriteRule ^/$ /<%= application %>/ [R]
13
+ # Send all traffic to tracd
14
+ RewriteRule ^/(.*)$ balancer://trac_cluster%{REQUEST_URI} [P,QSA,L]
15
+
16
+ # Deflate
17
+ AddOutputFilterByType DEFLATE text/html text/plain text/xml text/css application/x-javascript
18
+ BrowserMatch ^Mozilla/4 gzip-only-text/html
19
+ BrowserMatch ^Mozilla/4\.0[678] no-gzip
20
+ BrowserMatch \bMSIE !no-gzip !gzip-only-text/html
21
+
22
+ ErrorLog logs/trac.agoodride.tv-error_log
23
+ CustomLog logs/trac.agoodride.tv-access_log combined
24
+ </VirtualHost>
@@ -0,0 +1,106 @@
1
+ # -*- coding: utf-8 -*-
2
+
3
+ [attachment]
4
+ max_size = 262144
5
+ render_unsafe_content = false
6
+
7
+ [browser]
8
+ downloadable_paths = /trunk, /branches/*, /tags/*
9
+ hide_properties = svk:merge
10
+ render_unsafe_content = false
11
+
12
+ [changeset]
13
+ max_diff_bytes = 10000000
14
+ max_diff_files = 0
15
+ wiki_format_messages = true
16
+
17
+ [header_logo]
18
+ alt =
19
+ height = -1
20
+ link = <%= trac_header_logo_link %>
21
+ src = common/trac_banner.png
22
+ width = -1
23
+
24
+ [logging]
25
+ log_file = trac.log
26
+ # log_format = <set in global trac.ini>
27
+ log_level = DEBUG
28
+ log_type = none
29
+
30
+ [mimeviewer]
31
+ enscript_modes = text/x-dylan:dylan:4
32
+ enscript_path = enscript
33
+ max_preview_size = 262144
34
+ mime_map = text/x-dylan:dylan,text/x-idl:ice,text/x-ada:ads:adb
35
+ php_path = php
36
+ silvercity_modes =
37
+ tab_width = 8
38
+
39
+ [notification]
40
+ always_notify_owner = <%= trac_always_notify_owner.to_s %>
41
+ always_notify_reporter = <%= trac_always_notify_reporter.to_s %>
42
+ always_notify_updater = <%= trac_always_notify_updater.to_s %>
43
+ mime_encoding = base64
44
+ smtp_always_bcc = <%= trac_smtp_always_bcc %>
45
+ smtp_always_cc = <%= trac_smtp_always_cc %>
46
+ smtp_default_domain = <%= trac_smtp_default_domain %>
47
+ smtp_enabled = <%= trac_smtp_enabled.to_s %>
48
+ smtp_from = <%= trac_smtp_from %>
49
+ smtp_password = <%= trac_smtp_password %>
50
+ smtp_port = <%= trac_smtp_port %>
51
+ smtp_replyto = <%= trac_smtp_replyto %>
52
+ smtp_server = <%= trac_smtp_server %>
53
+ smtp_subject_prefix = <%= trac_smtp_subject_prefix %>
54
+ smtp_user = <%= trac_smtp_user %>
55
+ use_public_cc = <%= trac_use_public_cc.to_s %>
56
+ use_short_addr = <%= trac_use_short_addr.to_s %>
57
+ use_tls = <%= trac_use_tls.to_s %>
58
+
59
+ [project]
60
+ descr = <%= trac_desc %>
61
+ footer = Visit the Trac open source project at<br /><a href="http://trac.edgewall.org/">http://trac.edgewall.org/</a>
62
+ icon = common/trac.ico
63
+ name = <%= application %>
64
+ url = http://<%= domain %>/
65
+
66
+ [search]
67
+ min_query_length = 3
68
+
69
+ [ticket]
70
+ default_component =
71
+ default_milestone =
72
+ default_priority = major
73
+ default_type = defect
74
+ default_version =
75
+ restrict_owner = false
76
+
77
+ [timeline]
78
+ changeset_long_messages = false
79
+ changeset_show_files = 0
80
+ default_daysback = 30
81
+ ticket_show_details = false
82
+
83
+ [trac]
84
+ authz_file =
85
+ authz_module_name =
86
+ base_url = <%= trac_base_url %>
87
+ check_auth_ip = true
88
+ database = sqlite:db/trac.db
89
+ default_charset = iso-8859-15
90
+ default_handler = WikiModule
91
+ htdocs_location =
92
+ ignore_auth_case = false
93
+ mainnav = wiki,timeline,roadmap,browser,tickets,newticket,search
94
+ metanav = login,logout,settings,help,about
95
+ permission_store = DefaultPermissionStore
96
+ repository_dir = <%= repos_root %>
97
+ repository_type = svn
98
+ # request_filters = <set in global trac.ini>
99
+ # templates_dir = <set in global trac.ini>
100
+ timeout = 20
101
+
102
+ [wiki]
103
+ ignore_missing_pages = false
104
+ render_unsafe_content = false
105
+ split_page_names = false
106
+