nogara-rubber 1.7.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (389) hide show
  1. data/CHANGELOG +448 -0
  2. data/COPYING +339 -0
  3. data/README +6 -0
  4. data/TODO +11 -0
  5. data/VERSION +1 -0
  6. data/bin/vulcanize +25 -0
  7. data/generators/vulcanize/USAGE +6 -0
  8. data/generators/vulcanize/templates/apache/config/rubber/deploy-apache.rb +51 -0
  9. data/generators/vulcanize/templates/apache/config/rubber/role/apache/deflate.conf +10 -0
  10. data/generators/vulcanize/templates/apache/config/rubber/role/apache/expires.conf +9 -0
  11. data/generators/vulcanize/templates/apache/config/rubber/role/apache/headers.conf +6 -0
  12. data/generators/vulcanize/templates/apache/config/rubber/role/apache/monit-apache.conf +8 -0
  13. data/generators/vulcanize/templates/apache/config/rubber/role/apache/ports.conf +8 -0
  14. data/generators/vulcanize/templates/apache/config/rubber/role/apache/setenvif.conf +52 -0
  15. data/generators/vulcanize/templates/apache/config/rubber/role/web_tools/tools-apache-vhost.conf +79 -0
  16. data/generators/vulcanize/templates/apache/config/rubber/role/web_tools/tools-apache.auth +7 -0
  17. data/generators/vulcanize/templates/apache/config/rubber/role/web_tools/tools-index.html +34 -0
  18. data/generators/vulcanize/templates/apache/config/rubber/rubber-apache.yml +6 -0
  19. data/generators/vulcanize/templates/apache/templates.yml +1 -0
  20. data/generators/vulcanize/templates/base/Capfile +14 -0
  21. data/generators/vulcanize/templates/base/Rakefile +23 -0
  22. data/generators/vulcanize/templates/base/config/deploy.rb +56 -0
  23. data/generators/vulcanize/templates/base/config/rubber/common/crontab +22 -0
  24. data/generators/vulcanize/templates/base/config/rubber/common/monit-postfix.conf +8 -0
  25. data/generators/vulcanize/templates/base/config/rubber/common/rubber.profile +13 -0
  26. data/generators/vulcanize/templates/base/config/rubber/deploy-setup.rb +92 -0
  27. data/generators/vulcanize/templates/base/config/rubber/deploy-util.rb +97 -0
  28. data/generators/vulcanize/templates/base/config/rubber/rubber-dns.yml +78 -0
  29. data/generators/vulcanize/templates/base/config/rubber/rubber-rvm.yml +33 -0
  30. data/generators/vulcanize/templates/base/config/rubber/rubber.yml +233 -0
  31. data/generators/vulcanize/templates/base/lib/tasks/rubber.rake +15 -0
  32. data/generators/vulcanize/templates/base/script/cron-rake +18 -0
  33. data/generators/vulcanize/templates/base/script/cron-runner +18 -0
  34. data/generators/vulcanize/templates/base/script/cron-sh +67 -0
  35. data/generators/vulcanize/templates/base/templates.rb +11 -0
  36. data/generators/vulcanize/templates/base/templates.yml +6 -0
  37. data/generators/vulcanize/templates/cassandra/config/rubber/deploy-cassandra.rb +88 -0
  38. data/generators/vulcanize/templates/cassandra/config/rubber/role/cassandra/cassandra.in.sh +60 -0
  39. data/generators/vulcanize/templates/cassandra/config/rubber/role/cassandra/cassandra.yaml +210 -0
  40. data/generators/vulcanize/templates/cassandra/config/rubber/role/cassandra/log4j-server.properties +45 -0
  41. data/generators/vulcanize/templates/cassandra/config/rubber/role/cassandra/monit-cassandra.conf +8 -0
  42. data/generators/vulcanize/templates/cassandra/config/rubber/rubber-cassandra.yml +18 -0
  43. data/generators/vulcanize/templates/cassandra/templates.yml +1 -0
  44. data/generators/vulcanize/templates/complete_mongrel_mysql/config/rubber/role/haproxy/haproxy-mongrel.conf +23 -0
  45. data/generators/vulcanize/templates/complete_mongrel_mysql/config/rubber/role/nginx/nginx-mongrel.conf +113 -0
  46. data/generators/vulcanize/templates/complete_mongrel_mysql/config/rubber/rubber-complete.yml +41 -0
  47. data/generators/vulcanize/templates/complete_mongrel_mysql/templates.yml +6 -0
  48. data/generators/vulcanize/templates/complete_passenger/config/rubber/role/haproxy/haproxy-passenger.conf +21 -0
  49. data/generators/vulcanize/templates/complete_passenger/config/rubber/rubber-complete.yml +40 -0
  50. data/generators/vulcanize/templates/complete_passenger/templates.rb +9 -0
  51. data/generators/vulcanize/templates/complete_passenger/templates.yml +9 -0
  52. data/generators/vulcanize/templates/complete_passenger_mysql/templates.yml +4 -0
  53. data/generators/vulcanize/templates/complete_passenger_postgresql/templates.yml +4 -0
  54. data/generators/vulcanize/templates/cruise/config/rubber/deploy-cruise.rb +72 -0
  55. data/generators/vulcanize/templates/cruise/config/rubber/role/cruise/cruise +40 -0
  56. data/generators/vulcanize/templates/cruise/config/rubber/role/cruise/my.cnf +165 -0
  57. data/generators/vulcanize/templates/cruise/config/rubber/role/cruise/production.rb +8 -0
  58. data/generators/vulcanize/templates/cruise/config/rubber/role/cruise/site_config.rb +76 -0
  59. data/generators/vulcanize/templates/cruise/config/rubber/role/web_tools/cruise-nginx.conf +11 -0
  60. data/generators/vulcanize/templates/cruise/config/rubber/rubber-cruise.yml +18 -0
  61. data/generators/vulcanize/templates/cruise/templates.yml +1 -0
  62. data/generators/vulcanize/templates/haproxy/config/rubber/deploy-haproxy.rb +45 -0
  63. data/generators/vulcanize/templates/haproxy/config/rubber/role/haproxy/haproxy-base.conf +26 -0
  64. data/generators/vulcanize/templates/haproxy/config/rubber/role/haproxy/haproxy-default.conf +8 -0
  65. data/generators/vulcanize/templates/haproxy/config/rubber/role/haproxy/monit-haproxy.conf +9 -0
  66. data/generators/vulcanize/templates/haproxy/config/rubber/role/haproxy/syslog-haproxy.conf +11 -0
  67. data/generators/vulcanize/templates/haproxy/config/rubber/role/haproxy/syslogd-default.conf +21 -0
  68. data/generators/vulcanize/templates/haproxy/config/rubber/role/web_tools/haproxy-nginx.conf +10 -0
  69. data/generators/vulcanize/templates/haproxy/config/rubber/rubber-haproxy.yml +7 -0
  70. data/generators/vulcanize/templates/haproxy/templates.yml +1 -0
  71. data/generators/vulcanize/templates/jetty/config/rubber/deploy-jetty.rb +59 -0
  72. data/generators/vulcanize/templates/jetty/config/rubber/role/jetty/jetty.sh +589 -0
  73. data/generators/vulcanize/templates/jetty/config/rubber/role/jetty/jetty.xml +199 -0
  74. data/generators/vulcanize/templates/jetty/config/rubber/role/jetty/monit-jetty.conf +9 -0
  75. data/generators/vulcanize/templates/jetty/config/rubber/rubber-jetty.yml +10 -0
  76. data/generators/vulcanize/templates/jetty/templates.yml +1 -0
  77. data/generators/vulcanize/templates/memcached/config/memcached.yml +28 -0
  78. data/generators/vulcanize/templates/memcached/config/rubber/common/memcached.yml +14 -0
  79. data/generators/vulcanize/templates/memcached/config/rubber/role/memcached/memcached.conf +52 -0
  80. data/generators/vulcanize/templates/memcached/config/rubber/role/memcached/memcached_munin_plugin +249 -0
  81. data/generators/vulcanize/templates/memcached/config/rubber/rubber-memcached.yml +7 -0
  82. data/generators/vulcanize/templates/memcached/templates.yml +1 -0
  83. data/generators/vulcanize/templates/minimal_mysql/templates.yml +7 -0
  84. data/generators/vulcanize/templates/minimal_nodb/templates.yml +6 -0
  85. data/generators/vulcanize/templates/mongrel/config/rubber/deploy-mongrel.rb +75 -0
  86. data/generators/vulcanize/templates/mongrel/config/rubber/role/mongrel/mongrel_cluster.yml +12 -0
  87. data/generators/vulcanize/templates/mongrel/config/rubber/role/mongrel/monit-mongrel.conf +20 -0
  88. data/generators/vulcanize/templates/mongrel/config/rubber/rubber-mongrel.yml +9 -0
  89. data/generators/vulcanize/templates/mongrel/templates.yml +1 -0
  90. data/generators/vulcanize/templates/monit/config/rubber/common/monit-default.conf +15 -0
  91. data/generators/vulcanize/templates/monit/config/rubber/common/monit.conf +252 -0
  92. data/generators/vulcanize/templates/monit/config/rubber/deploy-monit.rb +33 -0
  93. data/generators/vulcanize/templates/monit/config/rubber/role/web_tools/monit-admin-nginx.conf +10 -0
  94. data/generators/vulcanize/templates/monit/config/rubber/rubber-monit.yml +6 -0
  95. data/generators/vulcanize/templates/monit/templates.yml +1 -0
  96. data/generators/vulcanize/templates/munin/config/rubber/common/monit-munin.conf +8 -0
  97. data/generators/vulcanize/templates/munin/config/rubber/common/munin-node.conf +48 -0
  98. data/generators/vulcanize/templates/munin/config/rubber/common/munin-plugins.conf +11 -0
  99. data/generators/vulcanize/templates/munin/config/rubber/deploy-munin.rb +46 -0
  100. data/generators/vulcanize/templates/munin/config/rubber/role/web_tools/munin-nginx.conf +8 -0
  101. data/generators/vulcanize/templates/munin/config/rubber/role/web_tools/munin-plugins.conf +31 -0
  102. data/generators/vulcanize/templates/munin/config/rubber/role/web_tools/munin.conf +115 -0
  103. data/generators/vulcanize/templates/munin/config/rubber/rubber-munin.yml +8 -0
  104. data/generators/vulcanize/templates/munin/script/munin/example_mysql_query.rb +55 -0
  105. data/generators/vulcanize/templates/munin/script/munin/example_simple.rb +24 -0
  106. data/generators/vulcanize/templates/munin/templates.yml +1 -0
  107. data/generators/vulcanize/templates/mysql/config/rubber/common/database.yml +12 -0
  108. data/generators/vulcanize/templates/mysql/config/rubber/deploy-mysql.rb +169 -0
  109. data/generators/vulcanize/templates/mysql/config/rubber/role/db/apparmor-mysql.conf +46 -0
  110. data/generators/vulcanize/templates/mysql/config/rubber/role/db/crontab +14 -0
  111. data/generators/vulcanize/templates/mysql/config/rubber/role/db/monit-mysql.cnf +10 -0
  112. data/generators/vulcanize/templates/mysql/config/rubber/role/db/my.cnf +163 -0
  113. data/generators/vulcanize/templates/mysql/config/rubber/role/mysql_slave/mysql_slave_munin_plugin +51 -0
  114. data/generators/vulcanize/templates/mysql/config/rubber/rubber-mysql.yml +47 -0
  115. data/generators/vulcanize/templates/mysql/templates.yml +1 -0
  116. data/generators/vulcanize/templates/mysql_cluster/config/rubber/common/mysql_cluster_migrations.rb +13 -0
  117. data/generators/vulcanize/templates/mysql_cluster/config/rubber/deploy-mysql_cluster.rb +177 -0
  118. data/generators/vulcanize/templates/mysql_cluster/config/rubber/role/mysql_data/my.cnf +15 -0
  119. data/generators/vulcanize/templates/mysql_cluster/config/rubber/role/mysql_mgm/ndb_mgmd.cnf +39 -0
  120. data/generators/vulcanize/templates/mysql_cluster/config/rubber/role/mysql_sql/monit-mysql_cluster_sql.cnf +10 -0
  121. data/generators/vulcanize/templates/mysql_cluster/config/rubber/role/mysql_sql/my.cnf +23 -0
  122. data/generators/vulcanize/templates/mysql_cluster/config/rubber/rubber-mysql_cluster.yml +32 -0
  123. data/generators/vulcanize/templates/mysql_cluster/templates.yml +1 -0
  124. data/generators/vulcanize/templates/mysql_proxy/config/rubber/common/database.yml +16 -0
  125. data/generators/vulcanize/templates/mysql_proxy/config/rubber/common/monit-mysql_proxy.cnf +10 -0
  126. data/generators/vulcanize/templates/mysql_proxy/config/rubber/common/mysql-proxy +153 -0
  127. data/generators/vulcanize/templates/mysql_proxy/config/rubber/common/mysql-proxy.conf +10 -0
  128. data/generators/vulcanize/templates/mysql_proxy/config/rubber/common/mysql-proxy.lua +5 -0
  129. data/generators/vulcanize/templates/mysql_proxy/config/rubber/deploy-mysql_proxy.rb +52 -0
  130. data/generators/vulcanize/templates/mysql_proxy/config/rubber/rubber-mysql_proxy.yml +11 -0
  131. data/generators/vulcanize/templates/mysql_proxy/templates.yml +1 -0
  132. data/generators/vulcanize/templates/nginx/config/rubber/deploy-nginx.rb +45 -0
  133. data/generators/vulcanize/templates/nginx/config/rubber/role/nginx/crontab +9 -0
  134. data/generators/vulcanize/templates/nginx/config/rubber/role/nginx/monit-nginx.conf +8 -0
  135. data/generators/vulcanize/templates/nginx/config/rubber/role/nginx/nginx.conf +42 -0
  136. data/generators/vulcanize/templates/nginx/config/rubber/role/web_tools/nginx-tools.conf +55 -0
  137. data/generators/vulcanize/templates/nginx/config/rubber/role/web_tools/tools-index.html +30 -0
  138. data/generators/vulcanize/templates/nginx/config/rubber/role/web_tools/tools-nginx.auth +7 -0
  139. data/generators/vulcanize/templates/nginx/config/rubber/rubber-nginx.yml +10 -0
  140. data/generators/vulcanize/templates/nginx/templates.yml +1 -0
  141. data/generators/vulcanize/templates/passenger/config/rubber/deploy-passenger.rb +46 -0
  142. data/generators/vulcanize/templates/passenger/config/rubber/role/passenger/munin-passenger-memory.conf +34 -0
  143. data/generators/vulcanize/templates/passenger/config/rubber/role/passenger/munin-passenger-sudoers.conf +7 -0
  144. data/generators/vulcanize/templates/passenger/config/rubber/role/passenger/munin-passenger.conf +47 -0
  145. data/generators/vulcanize/templates/passenger/config/rubber/role/passenger/passenger-apache-vhost.conf +46 -0
  146. data/generators/vulcanize/templates/passenger/config/rubber/role/passenger/passenger.conf +35 -0
  147. data/generators/vulcanize/templates/passenger/config/rubber/rubber-passenger.yml +15 -0
  148. data/generators/vulcanize/templates/passenger/templates.yml +3 -0
  149. data/generators/vulcanize/templates/postgresql/config/rubber/common/database.yml +12 -0
  150. data/generators/vulcanize/templates/postgresql/config/rubber/deploy-postgresql.rb +131 -0
  151. data/generators/vulcanize/templates/postgresql/config/rubber/role/db/crontab +14 -0
  152. data/generators/vulcanize/templates/postgresql/config/rubber/role/db/monit-postgresql.conf +10 -0
  153. data/generators/vulcanize/templates/postgresql/config/rubber/role/db/pg_hba.conf +89 -0
  154. data/generators/vulcanize/templates/postgresql/config/rubber/role/db/postgresql-sysctl.conf +6 -0
  155. data/generators/vulcanize/templates/postgresql/config/rubber/role/db/postgresql.conf +504 -0
  156. data/generators/vulcanize/templates/postgresql/config/rubber/rubber-postgresql.yml +45 -0
  157. data/generators/vulcanize/templates/postgresql/templates.yml +1 -0
  158. data/generators/vulcanize/templates/redis/config/rubber/deploy-redis.rb +37 -0
  159. data/generators/vulcanize/templates/redis/config/rubber/role/redis/crontab +8 -0
  160. data/generators/vulcanize/templates/redis/config/rubber/role/redis/monit-redis.conf +9 -0
  161. data/generators/vulcanize/templates/redis/config/rubber/role/redis/redis.conf +141 -0
  162. data/generators/vulcanize/templates/redis/config/rubber/rubber-redis.yml +4 -0
  163. data/generators/vulcanize/templates/redis/templates.yml +1 -0
  164. data/generators/vulcanize/templates/resque/config/initializers/resque.rb +15 -0
  165. data/generators/vulcanize/templates/resque/config/rubber/common/resque.yml +5 -0
  166. data/generators/vulcanize/templates/resque/config/rubber/deploy-resque.rb +58 -0
  167. data/generators/vulcanize/templates/resque/config/rubber/role/resque_web/monit-resque_web.conf +14 -0
  168. data/generators/vulcanize/templates/resque/config/rubber/role/resque_worker/monit-resque_worker.conf +19 -0
  169. data/generators/vulcanize/templates/resque/config/rubber/rubber-resque.yml +18 -0
  170. data/generators/vulcanize/templates/resque/script/resque_worker_management.rb +144 -0
  171. data/generators/vulcanize/templates/resque/templates.rb +1 -0
  172. data/generators/vulcanize/templates/resque/templates.yml +3 -0
  173. data/generators/vulcanize/templates/sphinx/config/rubber/common/sphinx.yml +46 -0
  174. data/generators/vulcanize/templates/sphinx/config/rubber/deploy-sphinx.rb +112 -0
  175. data/generators/vulcanize/templates/sphinx/config/rubber/role/sphinx/crontab +11 -0
  176. data/generators/vulcanize/templates/sphinx/config/rubber/role/sphinx/monit-sphinx.conf +13 -0
  177. data/generators/vulcanize/templates/sphinx/config/rubber/rubber-sphinx.yml +6 -0
  178. data/generators/vulcanize/templates/sphinx/templates.yml +1 -0
  179. data/generators/vulcanize/vulcanize_generator.rb +184 -0
  180. data/lib/capistrano/hostcmd.rb +12 -0
  181. data/lib/generators/vulcanize/USAGE +6 -0
  182. data/lib/generators/vulcanize/templates/apache/config/rubber/deploy-apache.rb +51 -0
  183. data/lib/generators/vulcanize/templates/apache/config/rubber/role/apache/deflate.conf +10 -0
  184. data/lib/generators/vulcanize/templates/apache/config/rubber/role/apache/expires.conf +9 -0
  185. data/lib/generators/vulcanize/templates/apache/config/rubber/role/apache/headers.conf +6 -0
  186. data/lib/generators/vulcanize/templates/apache/config/rubber/role/apache/monit-apache.conf +8 -0
  187. data/lib/generators/vulcanize/templates/apache/config/rubber/role/apache/ports.conf +8 -0
  188. data/lib/generators/vulcanize/templates/apache/config/rubber/role/apache/setenvif.conf +52 -0
  189. data/lib/generators/vulcanize/templates/apache/config/rubber/role/web_tools/tools-apache-vhost.conf +79 -0
  190. data/lib/generators/vulcanize/templates/apache/config/rubber/role/web_tools/tools-apache.auth +7 -0
  191. data/lib/generators/vulcanize/templates/apache/config/rubber/role/web_tools/tools-index.html +34 -0
  192. data/lib/generators/vulcanize/templates/apache/config/rubber/rubber-apache.yml +6 -0
  193. data/lib/generators/vulcanize/templates/apache/templates.yml +1 -0
  194. data/lib/generators/vulcanize/templates/base/Capfile +14 -0
  195. data/lib/generators/vulcanize/templates/base/Rakefile +23 -0
  196. data/lib/generators/vulcanize/templates/base/config/deploy.rb +56 -0
  197. data/lib/generators/vulcanize/templates/base/config/rubber/common/crontab +22 -0
  198. data/lib/generators/vulcanize/templates/base/config/rubber/common/monit-postfix.conf +8 -0
  199. data/lib/generators/vulcanize/templates/base/config/rubber/common/rubber.profile +13 -0
  200. data/lib/generators/vulcanize/templates/base/config/rubber/deploy-setup.rb +92 -0
  201. data/lib/generators/vulcanize/templates/base/config/rubber/deploy-util.rb +97 -0
  202. data/lib/generators/vulcanize/templates/base/config/rubber/rubber-dns.yml +78 -0
  203. data/lib/generators/vulcanize/templates/base/config/rubber/rubber-rvm.yml +33 -0
  204. data/lib/generators/vulcanize/templates/base/config/rubber/rubber.yml +233 -0
  205. data/lib/generators/vulcanize/templates/base/lib/tasks/rubber.rake +15 -0
  206. data/lib/generators/vulcanize/templates/base/script/cron-rake +18 -0
  207. data/lib/generators/vulcanize/templates/base/script/cron-runner +18 -0
  208. data/lib/generators/vulcanize/templates/base/script/cron-sh +67 -0
  209. data/lib/generators/vulcanize/templates/base/templates.rb +11 -0
  210. data/lib/generators/vulcanize/templates/base/templates.yml +6 -0
  211. data/lib/generators/vulcanize/templates/cassandra/config/rubber/deploy-cassandra.rb +88 -0
  212. data/lib/generators/vulcanize/templates/cassandra/config/rubber/role/cassandra/cassandra.in.sh +60 -0
  213. data/lib/generators/vulcanize/templates/cassandra/config/rubber/role/cassandra/cassandra.yaml +210 -0
  214. data/lib/generators/vulcanize/templates/cassandra/config/rubber/role/cassandra/log4j-server.properties +45 -0
  215. data/lib/generators/vulcanize/templates/cassandra/config/rubber/role/cassandra/monit-cassandra.conf +8 -0
  216. data/lib/generators/vulcanize/templates/cassandra/config/rubber/rubber-cassandra.yml +18 -0
  217. data/lib/generators/vulcanize/templates/cassandra/templates.yml +1 -0
  218. data/lib/generators/vulcanize/templates/complete_mongrel_mysql/config/rubber/role/haproxy/haproxy-mongrel.conf +23 -0
  219. data/lib/generators/vulcanize/templates/complete_mongrel_mysql/config/rubber/role/nginx/nginx-mongrel.conf +113 -0
  220. data/lib/generators/vulcanize/templates/complete_mongrel_mysql/config/rubber/rubber-complete.yml +41 -0
  221. data/lib/generators/vulcanize/templates/complete_mongrel_mysql/templates.yml +6 -0
  222. data/lib/generators/vulcanize/templates/complete_passenger/config/rubber/role/haproxy/haproxy-passenger.conf +21 -0
  223. data/lib/generators/vulcanize/templates/complete_passenger/config/rubber/rubber-complete.yml +40 -0
  224. data/lib/generators/vulcanize/templates/complete_passenger/templates.rb +9 -0
  225. data/lib/generators/vulcanize/templates/complete_passenger/templates.yml +9 -0
  226. data/lib/generators/vulcanize/templates/complete_passenger_mysql/templates.yml +4 -0
  227. data/lib/generators/vulcanize/templates/complete_passenger_postgresql/templates.yml +4 -0
  228. data/lib/generators/vulcanize/templates/cruise/config/rubber/deploy-cruise.rb +72 -0
  229. data/lib/generators/vulcanize/templates/cruise/config/rubber/role/cruise/cruise +40 -0
  230. data/lib/generators/vulcanize/templates/cruise/config/rubber/role/cruise/my.cnf +165 -0
  231. data/lib/generators/vulcanize/templates/cruise/config/rubber/role/cruise/production.rb +8 -0
  232. data/lib/generators/vulcanize/templates/cruise/config/rubber/role/cruise/site_config.rb +76 -0
  233. data/lib/generators/vulcanize/templates/cruise/config/rubber/role/web_tools/cruise-nginx.conf +11 -0
  234. data/lib/generators/vulcanize/templates/cruise/config/rubber/rubber-cruise.yml +18 -0
  235. data/lib/generators/vulcanize/templates/cruise/templates.yml +1 -0
  236. data/lib/generators/vulcanize/templates/haproxy/config/rubber/deploy-haproxy.rb +45 -0
  237. data/lib/generators/vulcanize/templates/haproxy/config/rubber/role/haproxy/haproxy-base.conf +26 -0
  238. data/lib/generators/vulcanize/templates/haproxy/config/rubber/role/haproxy/haproxy-default.conf +8 -0
  239. data/lib/generators/vulcanize/templates/haproxy/config/rubber/role/haproxy/monit-haproxy.conf +9 -0
  240. data/lib/generators/vulcanize/templates/haproxy/config/rubber/role/haproxy/syslog-haproxy.conf +11 -0
  241. data/lib/generators/vulcanize/templates/haproxy/config/rubber/role/haproxy/syslogd-default.conf +21 -0
  242. data/lib/generators/vulcanize/templates/haproxy/config/rubber/role/web_tools/haproxy-nginx.conf +10 -0
  243. data/lib/generators/vulcanize/templates/haproxy/config/rubber/rubber-haproxy.yml +7 -0
  244. data/lib/generators/vulcanize/templates/haproxy/templates.yml +1 -0
  245. data/lib/generators/vulcanize/templates/jetty/config/rubber/deploy-jetty.rb +59 -0
  246. data/lib/generators/vulcanize/templates/jetty/config/rubber/role/jetty/jetty.sh +589 -0
  247. data/lib/generators/vulcanize/templates/jetty/config/rubber/role/jetty/jetty.xml +199 -0
  248. data/lib/generators/vulcanize/templates/jetty/config/rubber/role/jetty/monit-jetty.conf +9 -0
  249. data/lib/generators/vulcanize/templates/jetty/config/rubber/rubber-jetty.yml +10 -0
  250. data/lib/generators/vulcanize/templates/jetty/templates.yml +1 -0
  251. data/lib/generators/vulcanize/templates/memcached/config/memcached.yml +28 -0
  252. data/lib/generators/vulcanize/templates/memcached/config/rubber/common/memcached.yml +14 -0
  253. data/lib/generators/vulcanize/templates/memcached/config/rubber/role/memcached/memcached.conf +52 -0
  254. data/lib/generators/vulcanize/templates/memcached/config/rubber/role/memcached/memcached_munin_plugin +249 -0
  255. data/lib/generators/vulcanize/templates/memcached/config/rubber/rubber-memcached.yml +7 -0
  256. data/lib/generators/vulcanize/templates/memcached/templates.yml +1 -0
  257. data/lib/generators/vulcanize/templates/minimal_mysql/templates.yml +7 -0
  258. data/lib/generators/vulcanize/templates/minimal_nodb/templates.yml +6 -0
  259. data/lib/generators/vulcanize/templates/mongrel/config/rubber/deploy-mongrel.rb +75 -0
  260. data/lib/generators/vulcanize/templates/mongrel/config/rubber/role/mongrel/mongrel_cluster.yml +12 -0
  261. data/lib/generators/vulcanize/templates/mongrel/config/rubber/role/mongrel/monit-mongrel.conf +20 -0
  262. data/lib/generators/vulcanize/templates/mongrel/config/rubber/rubber-mongrel.yml +9 -0
  263. data/lib/generators/vulcanize/templates/mongrel/templates.yml +1 -0
  264. data/lib/generators/vulcanize/templates/monit/config/rubber/common/monit-default.conf +15 -0
  265. data/lib/generators/vulcanize/templates/monit/config/rubber/common/monit.conf +252 -0
  266. data/lib/generators/vulcanize/templates/monit/config/rubber/deploy-monit.rb +33 -0
  267. data/lib/generators/vulcanize/templates/monit/config/rubber/role/web_tools/monit-admin-nginx.conf +10 -0
  268. data/lib/generators/vulcanize/templates/monit/config/rubber/rubber-monit.yml +6 -0
  269. data/lib/generators/vulcanize/templates/monit/templates.yml +1 -0
  270. data/lib/generators/vulcanize/templates/munin/config/rubber/common/monit-munin.conf +8 -0
  271. data/lib/generators/vulcanize/templates/munin/config/rubber/common/munin-node.conf +48 -0
  272. data/lib/generators/vulcanize/templates/munin/config/rubber/common/munin-plugins.conf +11 -0
  273. data/lib/generators/vulcanize/templates/munin/config/rubber/deploy-munin.rb +46 -0
  274. data/lib/generators/vulcanize/templates/munin/config/rubber/role/web_tools/munin-nginx.conf +8 -0
  275. data/lib/generators/vulcanize/templates/munin/config/rubber/role/web_tools/munin-plugins.conf +31 -0
  276. data/lib/generators/vulcanize/templates/munin/config/rubber/role/web_tools/munin.conf +115 -0
  277. data/lib/generators/vulcanize/templates/munin/config/rubber/rubber-munin.yml +8 -0
  278. data/lib/generators/vulcanize/templates/munin/script/munin/example_mysql_query.rb +55 -0
  279. data/lib/generators/vulcanize/templates/munin/script/munin/example_simple.rb +24 -0
  280. data/lib/generators/vulcanize/templates/munin/templates.yml +1 -0
  281. data/lib/generators/vulcanize/templates/mysql/config/rubber/common/database.yml +12 -0
  282. data/lib/generators/vulcanize/templates/mysql/config/rubber/deploy-mysql.rb +169 -0
  283. data/lib/generators/vulcanize/templates/mysql/config/rubber/role/db/apparmor-mysql.conf +46 -0
  284. data/lib/generators/vulcanize/templates/mysql/config/rubber/role/db/crontab +14 -0
  285. data/lib/generators/vulcanize/templates/mysql/config/rubber/role/db/monit-mysql.cnf +10 -0
  286. data/lib/generators/vulcanize/templates/mysql/config/rubber/role/db/my.cnf +163 -0
  287. data/lib/generators/vulcanize/templates/mysql/config/rubber/role/mysql_slave/mysql_slave_munin_plugin +51 -0
  288. data/lib/generators/vulcanize/templates/mysql/config/rubber/rubber-mysql.yml +47 -0
  289. data/lib/generators/vulcanize/templates/mysql/templates.yml +1 -0
  290. data/lib/generators/vulcanize/templates/mysql_cluster/config/rubber/common/mysql_cluster_migrations.rb +13 -0
  291. data/lib/generators/vulcanize/templates/mysql_cluster/config/rubber/deploy-mysql_cluster.rb +177 -0
  292. data/lib/generators/vulcanize/templates/mysql_cluster/config/rubber/role/mysql_data/my.cnf +15 -0
  293. data/lib/generators/vulcanize/templates/mysql_cluster/config/rubber/role/mysql_mgm/ndb_mgmd.cnf +39 -0
  294. data/lib/generators/vulcanize/templates/mysql_cluster/config/rubber/role/mysql_sql/monit-mysql_cluster_sql.cnf +10 -0
  295. data/lib/generators/vulcanize/templates/mysql_cluster/config/rubber/role/mysql_sql/my.cnf +23 -0
  296. data/lib/generators/vulcanize/templates/mysql_cluster/config/rubber/rubber-mysql_cluster.yml +32 -0
  297. data/lib/generators/vulcanize/templates/mysql_cluster/templates.yml +1 -0
  298. data/lib/generators/vulcanize/templates/mysql_proxy/config/rubber/common/database.yml +16 -0
  299. data/lib/generators/vulcanize/templates/mysql_proxy/config/rubber/common/monit-mysql_proxy.cnf +10 -0
  300. data/lib/generators/vulcanize/templates/mysql_proxy/config/rubber/common/mysql-proxy +153 -0
  301. data/lib/generators/vulcanize/templates/mysql_proxy/config/rubber/common/mysql-proxy.conf +10 -0
  302. data/lib/generators/vulcanize/templates/mysql_proxy/config/rubber/common/mysql-proxy.lua +5 -0
  303. data/lib/generators/vulcanize/templates/mysql_proxy/config/rubber/deploy-mysql_proxy.rb +52 -0
  304. data/lib/generators/vulcanize/templates/mysql_proxy/config/rubber/rubber-mysql_proxy.yml +11 -0
  305. data/lib/generators/vulcanize/templates/mysql_proxy/templates.yml +1 -0
  306. data/lib/generators/vulcanize/templates/nginx/config/rubber/deploy-nginx.rb +45 -0
  307. data/lib/generators/vulcanize/templates/nginx/config/rubber/role/nginx/crontab +9 -0
  308. data/lib/generators/vulcanize/templates/nginx/config/rubber/role/nginx/monit-nginx.conf +8 -0
  309. data/lib/generators/vulcanize/templates/nginx/config/rubber/role/nginx/nginx.conf +42 -0
  310. data/lib/generators/vulcanize/templates/nginx/config/rubber/role/web_tools/nginx-tools.conf +55 -0
  311. data/lib/generators/vulcanize/templates/nginx/config/rubber/role/web_tools/tools-index.html +30 -0
  312. data/lib/generators/vulcanize/templates/nginx/config/rubber/role/web_tools/tools-nginx.auth +7 -0
  313. data/lib/generators/vulcanize/templates/nginx/config/rubber/rubber-nginx.yml +10 -0
  314. data/lib/generators/vulcanize/templates/nginx/templates.yml +1 -0
  315. data/lib/generators/vulcanize/templates/passenger/config/rubber/deploy-passenger.rb +46 -0
  316. data/lib/generators/vulcanize/templates/passenger/config/rubber/role/passenger/munin-passenger-memory.conf +34 -0
  317. data/lib/generators/vulcanize/templates/passenger/config/rubber/role/passenger/munin-passenger-sudoers.conf +7 -0
  318. data/lib/generators/vulcanize/templates/passenger/config/rubber/role/passenger/munin-passenger.conf +47 -0
  319. data/lib/generators/vulcanize/templates/passenger/config/rubber/role/passenger/passenger-apache-vhost.conf +46 -0
  320. data/lib/generators/vulcanize/templates/passenger/config/rubber/role/passenger/passenger.conf +35 -0
  321. data/lib/generators/vulcanize/templates/passenger/config/rubber/rubber-passenger.yml +15 -0
  322. data/lib/generators/vulcanize/templates/passenger/templates.yml +3 -0
  323. data/lib/generators/vulcanize/templates/postgresql/config/rubber/common/database.yml +12 -0
  324. data/lib/generators/vulcanize/templates/postgresql/config/rubber/deploy-postgresql.rb +131 -0
  325. data/lib/generators/vulcanize/templates/postgresql/config/rubber/role/db/crontab +14 -0
  326. data/lib/generators/vulcanize/templates/postgresql/config/rubber/role/db/monit-postgresql.conf +10 -0
  327. data/lib/generators/vulcanize/templates/postgresql/config/rubber/role/db/pg_hba.conf +89 -0
  328. data/lib/generators/vulcanize/templates/postgresql/config/rubber/role/db/postgresql-sysctl.conf +6 -0
  329. data/lib/generators/vulcanize/templates/postgresql/config/rubber/role/db/postgresql.conf +504 -0
  330. data/lib/generators/vulcanize/templates/postgresql/config/rubber/rubber-postgresql.yml +45 -0
  331. data/lib/generators/vulcanize/templates/postgresql/templates.yml +1 -0
  332. data/lib/generators/vulcanize/templates/redis/config/rubber/deploy-redis.rb +37 -0
  333. data/lib/generators/vulcanize/templates/redis/config/rubber/role/redis/crontab +8 -0
  334. data/lib/generators/vulcanize/templates/redis/config/rubber/role/redis/monit-redis.conf +9 -0
  335. data/lib/generators/vulcanize/templates/redis/config/rubber/role/redis/redis.conf +141 -0
  336. data/lib/generators/vulcanize/templates/redis/config/rubber/rubber-redis.yml +4 -0
  337. data/lib/generators/vulcanize/templates/redis/templates.yml +1 -0
  338. data/lib/generators/vulcanize/templates/resque/config/initializers/resque.rb +15 -0
  339. data/lib/generators/vulcanize/templates/resque/config/rubber/common/resque.yml +5 -0
  340. data/lib/generators/vulcanize/templates/resque/config/rubber/deploy-resque.rb +58 -0
  341. data/lib/generators/vulcanize/templates/resque/config/rubber/role/resque_web/monit-resque_web.conf +14 -0
  342. data/lib/generators/vulcanize/templates/resque/config/rubber/role/resque_worker/monit-resque_worker.conf +19 -0
  343. data/lib/generators/vulcanize/templates/resque/config/rubber/rubber-resque.yml +18 -0
  344. data/lib/generators/vulcanize/templates/resque/script/resque_worker_management.rb +144 -0
  345. data/lib/generators/vulcanize/templates/resque/templates.rb +1 -0
  346. data/lib/generators/vulcanize/templates/resque/templates.yml +3 -0
  347. data/lib/generators/vulcanize/templates/sphinx/config/rubber/common/sphinx.yml +46 -0
  348. data/lib/generators/vulcanize/templates/sphinx/config/rubber/deploy-sphinx.rb +112 -0
  349. data/lib/generators/vulcanize/templates/sphinx/config/rubber/role/sphinx/crontab +11 -0
  350. data/lib/generators/vulcanize/templates/sphinx/config/rubber/role/sphinx/monit-sphinx.conf +13 -0
  351. data/lib/generators/vulcanize/templates/sphinx/config/rubber/rubber-sphinx.yml +6 -0
  352. data/lib/generators/vulcanize/templates/sphinx/templates.yml +1 -0
  353. data/lib/generators/vulcanize/vulcanize_generator.rb +184 -0
  354. data/lib/rubber.rb +76 -0
  355. data/lib/rubber/capistrano.rb +1 -0
  356. data/lib/rubber/cloud.rb +13 -0
  357. data/lib/rubber/cloud/aws.rb +355 -0
  358. data/lib/rubber/cloud/base.rb +16 -0
  359. data/lib/rubber/configuration.rb +47 -0
  360. data/lib/rubber/dns.rb +13 -0
  361. data/lib/rubber/dns/base.rb +84 -0
  362. data/lib/rubber/dns/dyndns.rb +77 -0
  363. data/lib/rubber/dns/nettica.rb +117 -0
  364. data/lib/rubber/dns/zerigo.rb +115 -0
  365. data/lib/rubber/environment.rb +177 -0
  366. data/lib/rubber/generator.rb +209 -0
  367. data/lib/rubber/instance.rb +176 -0
  368. data/lib/rubber/railtie.rb +14 -0
  369. data/lib/rubber/recipes/rubber.rb +96 -0
  370. data/lib/rubber/recipes/rubber/bundles.rb +30 -0
  371. data/lib/rubber/recipes/rubber/deploy.rb +90 -0
  372. data/lib/rubber/recipes/rubber/instances.rb +445 -0
  373. data/lib/rubber/recipes/rubber/load_balancers.rb +44 -0
  374. data/lib/rubber/recipes/rubber/security_groups.rb +189 -0
  375. data/lib/rubber/recipes/rubber/setup.rb +534 -0
  376. data/lib/rubber/recipes/rubber/spot_requests.rb +23 -0
  377. data/lib/rubber/recipes/rubber/static_ips.rb +190 -0
  378. data/lib/rubber/recipes/rubber/utils.rb +226 -0
  379. data/lib/rubber/recipes/rubber/volumes.rb +264 -0
  380. data/lib/rubber/tasks/rubber.rb +279 -0
  381. data/lib/rubber/util.rb +72 -0
  382. data/rails/init.rb +6 -0
  383. data/test/environment_test.rb +144 -0
  384. data/test/generator_test.rb +370 -0
  385. data/test/instance_test.rb +96 -0
  386. data/test/test_helper.rb +14 -0
  387. data/test/util_test.rb +19 -0
  388. data/test/zerigo_test.rb +88 -0
  389. metadata +494 -0
@@ -0,0 +1,14 @@
1
+ <%
2
+ @read_cmd = 'crontab -l'
3
+ @write_cmd = 'crontab -'
4
+ @additive = ["# rubber-postgresql-start", "# rubber-postgresql-end"]
5
+ %>
6
+
7
+ <%
8
+ # Backup db every 3 hours to secondary db if available, else primary db
9
+ backup_db_host = rubber_instances.for_role('db', {}).first rescue nil
10
+ backup_db_host ||= rubber_instances.for_role('db', 'primary' => true).first
11
+ if backup_db_host.name == rubber_env.host
12
+ %>
13
+ 0 */3 * * * BACKUP_DIR=/mnt/db_backups DBUSER=<%= rubber_env.db_user %> DBPASS=<%= rubber_env.db_pass %> DBNAME=<%= rubber_env.db_name %> DBHOST=<%= backup_db_host.full_name %> <%= RUBBER_ROOT %>/script/cron-rake rubber:backup_db
14
+ <% end %>
@@ -0,0 +1,10 @@
1
+ <%
2
+ @path = '/etc/monit/monit.d/monit-postgresql.conf'
3
+ %>
4
+
5
+ check process postgresql with pidfile <%= rubber_env.postgresql_pid_file %>
6
+ group postgresql-<%= RUBBER_ENV %>
7
+ start program = "<%= rubber_env.postgresql_ctl %> restart"
8
+ stop program = "<%= rubber_env.postgresql_ctl %> stop"
9
+ if failed host 127.0.0.1 port 5432 protocol pgsql then alert
10
+ if 5 restarts within 5 cycles then timeout
@@ -0,0 +1,89 @@
1
+ <%
2
+ @path = "#{rubber_env.postgresql_conf_dir}/pg_hba.conf"
3
+ %>
4
+ # PostgreSQL Client Authentication Configuration File
5
+ # ===================================================
6
+ #
7
+ # Refer to the "Client Authentication" section in the
8
+ # PostgreSQL documentation for a complete description
9
+ # of this file. A short synopsis follows.
10
+ #
11
+ # This file controls: which hosts are allowed to connect, how clients
12
+ # are authenticated, which PostgreSQL user names they can use, which
13
+ # databases they can access. Records take one of these forms:
14
+ #
15
+ # local DATABASE USER METHOD [OPTIONS]
16
+ # host DATABASE USER CIDR-ADDRESS METHOD [OPTIONS]
17
+ # hostssl DATABASE USER CIDR-ADDRESS METHOD [OPTIONS]
18
+ # hostnossl DATABASE USER CIDR-ADDRESS METHOD [OPTIONS]
19
+ #
20
+ # (The uppercase items must be replaced by actual values.)
21
+ #
22
+ # The first field is the connection type: "local" is a Unix-domain socket,
23
+ # "host" is either a plain or SSL-encrypted TCP/IP socket, "hostssl" is an
24
+ # SSL-encrypted TCP/IP socket, and "hostnossl" is a plain TCP/IP socket.
25
+ #
26
+ # DATABASE can be "all", "sameuser", "samerole", a database name, or
27
+ # a comma-separated list thereof.
28
+ #
29
+ # USER can be "all", a user name, a group name prefixed with "+", or
30
+ # a comma-separated list thereof. In both the DATABASE and USER fields
31
+ # you can also write a file name prefixed with "@" to include names from
32
+ # a separate file.
33
+ #
34
+ # CIDR-ADDRESS specifies the set of hosts the record matches.
35
+ # It is made up of an IP address and a CIDR mask that is an integer
36
+ # (between 0 and 32 (IPv4) or 128 (IPv6) inclusive) that specifies
37
+ # the number of significant bits in the mask. Alternatively, you can write
38
+ # an IP address and netmask in separate columns to specify the set of hosts.
39
+ #
40
+ # METHOD can be "trust", "reject", "md5", "password", "gss", "sspi", "krb5",
41
+ # "ident", "pam", "ldap" or "cert". Note that "password" sends passwords
42
+ # in clear text; "md5" is preferred since it sends encrypted passwords.
43
+ #
44
+ # OPTIONS are a set of options for the authentication in the format
45
+ # NAME=VALUE. The available options depend on the different authentication
46
+ # methods - refer to the "Client Authentication" section in the documentation
47
+ # for a list of which options are available for which authentication methods.
48
+ #
49
+ # Database and user names containing spaces, commas, quotes and other special
50
+ # characters must be quoted. Quoting one of the keywords "all", "sameuser" or
51
+ # "samerole" makes the name lose its special character, and just match a
52
+ # database or username with that name.
53
+ #
54
+ # This file is read on server startup and when the postmaster receives
55
+ # a SIGHUP signal. If you edit the file on a running system, you have
56
+ # to SIGHUP the postmaster for the changes to take effect. You can use
57
+ # "pg_ctl reload" to do that.
58
+
59
+ # Put your actual configuration here
60
+ # ----------------------------------
61
+ #
62
+ # If you want to allow non-local connections, you need to add more
63
+ # "host" records. In that case you will also need to make PostgreSQL listen
64
+ # on a non-local interface via the listen_addresses configuration parameter,
65
+ # or via the -i or -h command line switches.
66
+ #
67
+
68
+
69
+
70
+
71
+ # DO NOT DISABLE!
72
+ # If you change this first entry you will need to make sure that the
73
+ # database
74
+ # super user can access the database using some other method.
75
+ # Noninteractive
76
+ # access to all databases is required during automatic maintenance
77
+ # (custom daily cronjobs, replication, and similar tasks).
78
+ #
79
+ # Database administrative login by UNIX sockets
80
+ local all postgres ident
81
+
82
+ # TYPE DATABASE USER CIDR-ADDRESS METHOD
83
+ <%
84
+ scheme = rubber_env.db_pass ? 'md5' : 'trust'
85
+ %>
86
+ local all <%= rubber_env.db_user %> <%= scheme %>
87
+ host all all 127.0.0.1/32 <%= scheme %>
88
+ host all all ::1/128 <%= scheme %>
89
+ host all <%= rubber_env.db_user %> 10.0.0.1/8 <%= scheme %>
@@ -0,0 +1,6 @@
1
+ <%
2
+ @path = "/etc/sysctl.d/30-postgresql.conf"
3
+ @post = "service procps start"
4
+ %>
5
+ kernel.shmmax=1610612736
6
+ kernel.shmall=393216
@@ -0,0 +1,504 @@
1
+ <%
2
+ @path = "#{rubber_env.postgresql_conf_dir}/postgresql.conf"
3
+ %>
4
+ # -----------------------------
5
+ # PostgreSQL configuration file
6
+ # -----------------------------
7
+ #
8
+ # This file consists of lines of the form:
9
+ #
10
+ # name = value
11
+ #
12
+ # (The "=" is optional.) Whitespace may be used. Comments are introduced with
13
+ # "#" anywhere on a line. The complete list of parameter names and allowed
14
+ # values can be found in the PostgreSQL documentation.
15
+ #
16
+ # The commented-out settings shown in this file represent the default values.
17
+ # Re-commenting a setting is NOT sufficient to revert it to the default value;
18
+ # you need to reload the server.
19
+ #
20
+ # This file is read on server startup and when the server receives a SIGHUP
21
+ # signal. If you edit the file on a running system, you have to SIGHUP the
22
+ # server for the changes to take effect, or use "pg_ctl reload". Some
23
+ # parameters, which are marked below, require a server shutdown and restart to
24
+ # take effect.
25
+ #
26
+ # Any parameter can also be given as a command-line option to the server, e.g.,
27
+ # "postgres -c log_connections=on". Some parameters can be changed at run time
28
+ # with the "SET" SQL command.
29
+ #
30
+ # Memory units: kB = kilobytes Time units: ms = milliseconds
31
+ # MB = megabytes s = seconds
32
+ # GB = gigabytes min = minutes
33
+ # h = hours
34
+ # d = days
35
+
36
+
37
+ #------------------------------------------------------------------------------
38
+ # FILE LOCATIONS
39
+ #------------------------------------------------------------------------------
40
+
41
+ # The default values of these variables are driven from the -D command-line
42
+ # option or PGDATA environment variable, represented here as ConfigDir.
43
+
44
+ data_directory = '<%= rubber_env.postgresql_data_dir %>' # use data in another directory
45
+ # (change requires restart)
46
+ hba_file = '<%= rubber_env.postgresql_conf_dir %>/pg_hba.conf' # host-based authentication file
47
+ # (change requires restart)
48
+ ident_file = '<%= rubber_env.postgresql_conf_dir %>/pg_ident.conf' # ident configuration file
49
+ # (change requires restart)
50
+
51
+ # If external_pid_file is not explicitly set, no extra PID file is written.
52
+ external_pid_file = '<%= rubber_env.postgresql_pid_file %>' # write an extra PID file
53
+ # (change requires restart)
54
+
55
+
56
+ #------------------------------------------------------------------------------
57
+ # CONNECTIONS AND AUTHENTICATION
58
+ #------------------------------------------------------------------------------
59
+
60
+ # - Connection Settings -
61
+
62
+ listen_addresses = '*' # what IP address(es) to listen on;
63
+ # comma-separated list of addresses;
64
+ # defaults to 'localhost', '*' = all
65
+ # (change requires restart)
66
+ port = 5432 # (change requires restart)
67
+ max_connections = 100 # (change requires restart)
68
+ # Note: Increasing max_connections costs ~400 bytes of shared memory per
69
+ # connection slot, plus lock space (see max_locks_per_transaction).
70
+ #superuser_reserved_connections = 3 # (change requires restart)
71
+ unix_socket_directory = '/var/run/postgresql' # (change requires restart)
72
+ #unix_socket_group = '' # (change requires restart)
73
+ #unix_socket_permissions = 0777 # begin with 0 to use octal notation
74
+ # (change requires restart)
75
+ #bonjour_name = '' # defaults to the computer name
76
+ # (change requires restart)
77
+
78
+ # - Security and Authentication -
79
+
80
+ #authentication_timeout = 1min # 1s-600s
81
+ #ssl = true # (change requires restart)
82
+ #ssl_ciphers = 'ALL:!ADH:!LOW:!EXP:!MD5:@STRENGTH' # allowed SSL ciphers
83
+ # (change requires restart)
84
+ #ssl_renegotiation_limit = 512MB # amount of data between renegotiations
85
+ #password_encryption = on
86
+ #db_user_namespace = off
87
+
88
+ # Kerberos and GSSAPI
89
+ #krb_server_keyfile = ''
90
+ #krb_srvname = 'postgres' # (Kerberos only)
91
+ #krb_caseins_users = off
92
+
93
+ # - TCP Keepalives -
94
+ # see "man 7 tcp" for details
95
+
96
+ #tcp_keepalives_idle = 0 # TCP_KEEPIDLE, in seconds;
97
+ # 0 selects the system default
98
+ #tcp_keepalives_interval = 0 # TCP_KEEPINTVL, in seconds;
99
+ # 0 selects the system default
100
+ #tcp_keepalives_count = 0 # TCP_KEEPCNT;
101
+ # 0 selects the system default
102
+
103
+
104
+ #------------------------------------------------------------------------------
105
+ # RESOURCE USAGE (except WAL)
106
+ #------------------------------------------------------------------------------
107
+
108
+ # - Memory -
109
+
110
+ shared_buffers = 28MB # min 128kB
111
+ # (change requires restart)
112
+ #temp_buffers = 8MB # min 800kB
113
+ #max_prepared_transactions = 0 # zero disables the feature
114
+ # (change requires restart)
115
+ # Note: Increasing max_prepared_transactions costs ~600 bytes of shared memory
116
+ # per transaction slot, plus lock space (see max_locks_per_transaction).
117
+ # It is not advisable to set max_prepared_transactions nonzero unless you
118
+ # actively intend to use prepared transactions.
119
+ #work_mem = 1MB # min 64kB
120
+ #maintenance_work_mem = 16MB # min 1MB
121
+ #max_stack_depth = 2MB # min 100kB
122
+
123
+ # - Kernel Resource Usage -
124
+
125
+ #max_files_per_process = 1000 # min 25
126
+ # (change requires restart)
127
+ #shared_preload_libraries = '' # (change requires restart)
128
+
129
+ # - Cost-Based Vacuum Delay -
130
+
131
+ #vacuum_cost_delay = 0ms # 0-100 milliseconds
132
+ #vacuum_cost_page_hit = 1 # 0-10000 credits
133
+ #vacuum_cost_page_miss = 10 # 0-10000 credits
134
+ #vacuum_cost_page_dirty = 20 # 0-10000 credits
135
+ #vacuum_cost_limit = 200 # 1-10000 credits
136
+
137
+ # - Background Writer -
138
+
139
+ #bgwriter_delay = 200ms # 10-10000ms between rounds
140
+ #bgwriter_lru_maxpages = 100 # 0-1000 max buffers written/round
141
+ #bgwriter_lru_multiplier = 2.0 # 0-10.0 multipler on buffers scanned/round
142
+
143
+ # - Asynchronous Behavior -
144
+
145
+ #effective_io_concurrency = 1 # 1-1000. 0 disables prefetching
146
+
147
+
148
+ #------------------------------------------------------------------------------
149
+ # WRITE AHEAD LOG
150
+ #------------------------------------------------------------------------------
151
+
152
+ # - Settings -
153
+
154
+ #fsync = on # turns forced synchronization on or off
155
+ #synchronous_commit = on # immediate fsync at commit
156
+ #wal_sync_method = fsync # the default is the first option
157
+ # supported by the operating system:
158
+ # open_datasync
159
+ # fdatasync
160
+ # fsync
161
+ # fsync_writethrough
162
+ # open_sync
163
+ #full_page_writes = on # recover from partial page writes
164
+ #wal_buffers = 64kB # min 32kB
165
+ # (change requires restart)
166
+ #wal_writer_delay = 200ms # 1-10000 milliseconds
167
+
168
+ #commit_delay = 0 # range 0-100000, in microseconds
169
+ #commit_siblings = 5 # range 1-1000
170
+
171
+ # - Checkpoints -
172
+
173
+ #checkpoint_segments = 3 # in logfile segments, min 1, 16MB each
174
+ #checkpoint_timeout = 5min # range 30s-1h
175
+ #checkpoint_completion_target = 0.5 # checkpoint target duration, 0.0 - 1.0
176
+ #checkpoint_warning = 30s # 0 disables
177
+
178
+ # - Archiving -
179
+
180
+ #archive_mode = off # allows archiving to be done
181
+ # (change requires restart)
182
+ #archive_command = 'cp -i %p <%= rubber_env.postgresql_archive_dir %>/%f </dev/null' # command to use to archive a logfile segment
183
+ #archive_timeout = 300 # force a logfile segment switch after this
184
+ # number of seconds; 0 disables
185
+
186
+
187
+ #------------------------------------------------------------------------------
188
+ # QUERY TUNING
189
+ #------------------------------------------------------------------------------
190
+
191
+ # - Planner Method Configuration -
192
+
193
+ #enable_bitmapscan = on
194
+ #enable_hashagg = on
195
+ #enable_hashjoin = on
196
+ #enable_indexscan = on
197
+ #enable_mergejoin = on
198
+ #enable_nestloop = on
199
+ #enable_seqscan = on
200
+ #enable_sort = on
201
+ #enable_tidscan = on
202
+
203
+ # - Planner Cost Constants -
204
+
205
+ #seq_page_cost = 1.0 # measured on an arbitrary scale
206
+ #random_page_cost = 4.0 # same scale as above
207
+ #cpu_tuple_cost = 0.01 # same scale as above
208
+ #cpu_index_tuple_cost = 0.005 # same scale as above
209
+ #cpu_operator_cost = 0.0025 # same scale as above
210
+ #effective_cache_size = 128MB
211
+
212
+ # - Genetic Query Optimizer -
213
+
214
+ #geqo = on
215
+ #geqo_threshold = 12
216
+ #geqo_effort = 5 # range 1-10
217
+ #geqo_pool_size = 0 # selects default based on effort
218
+ #geqo_generations = 0 # selects default based on effort
219
+ #geqo_selection_bias = 2.0 # range 1.5-2.0
220
+
221
+ # - Other Planner Options -
222
+
223
+ #default_statistics_target = 100 # range 1-10000
224
+ #constraint_exclusion = partition # on, off, or partition
225
+ #cursor_tuple_fraction = 0.1 # range 0.0-1.0
226
+ #from_collapse_limit = 8
227
+ #join_collapse_limit = 8 # 1 disables collapsing of explicit
228
+ # JOIN clauses
229
+
230
+
231
+ #------------------------------------------------------------------------------
232
+ # ERROR REPORTING AND LOGGING
233
+ #------------------------------------------------------------------------------
234
+
235
+ # - Where to Log -
236
+
237
+ #log_destination = 'stderr' # Valid values are combinations of
238
+ # stderr, csvlog, syslog and eventlog,
239
+ # depending on platform. csvlog
240
+ # requires logging_collector to be on.
241
+
242
+ # This is used when logging to stderr:
243
+ #logging_collector = off # Enable capturing of stderr and csvlog
244
+ # into log files. Required to be on for
245
+ # csvlogs.
246
+ # (change requires restart)
247
+
248
+ # These are only used if logging_collector is on:
249
+ #log_directory = 'pg_log' # directory where log files are written,
250
+ # can be absolute or relative to PGDATA
251
+ #log_filename = 'postgresql-%Y-%m-%d_%H%M%S.log' # log file name pattern,
252
+ # can include strftime() escapes
253
+ #log_truncate_on_rotation = off # If on, an existing log file of the
254
+ # same name as the new log file will be
255
+ # truncated rather than appended to.
256
+ # But such truncation only occurs on
257
+ # time-driven rotation, not on restarts
258
+ # or size-driven rotation. Default is
259
+ # off, meaning append to existing files
260
+ # in all cases.
261
+ #log_rotation_age = 1d # Automatic rotation of logfiles will
262
+ # happen after that time. 0 disables.
263
+ #log_rotation_size = 10MB # Automatic rotation of logfiles will
264
+ # happen after that much log output.
265
+ # 0 disables.
266
+
267
+ # These are relevant when logging to syslog:
268
+ #syslog_facility = 'LOCAL0'
269
+ #syslog_ident = 'postgres'
270
+
271
+ #silent_mode = off # Run server silently.
272
+ # DO NOT USE without syslog or
273
+ # logging_collector
274
+ # (change requires restart)
275
+
276
+
277
+ # - When to Log -
278
+
279
+ #client_min_messages = notice # values in order of decreasing detail:
280
+ # debug5
281
+ # debug4
282
+ # debug3
283
+ # debug2
284
+ # debug1
285
+ # log
286
+ # notice
287
+ # warning
288
+ # error
289
+
290
+ #log_min_messages = warning # values in order of decreasing detail:
291
+ # debug5
292
+ # debug4
293
+ # debug3
294
+ # debug2
295
+ # debug1
296
+ # info
297
+ # notice
298
+ # warning
299
+ # error
300
+ # log
301
+ # fatal
302
+ # panic
303
+
304
+ #log_error_verbosity = default # terse, default, or verbose messages
305
+
306
+ #log_min_error_statement = error # values in order of decreasing detail:
307
+ # debug5
308
+ # debug4
309
+ # debug3
310
+ # debug2
311
+ # debug1
312
+ # info
313
+ # notice
314
+ # warning
315
+ # error
316
+ # log
317
+ # fatal
318
+ # panic (effectively off)
319
+
320
+ log_min_duration_statement = 1 # -1 is disabled, 0 logs all statements
321
+ # and their durations, > 0 logs only
322
+ # statements running at least this number
323
+ # of milliseconds
324
+
325
+
326
+ # - What to Log -
327
+
328
+ #debug_print_parse = off
329
+ #debug_print_rewritten = off
330
+ #debug_print_plan = off
331
+ #debug_pretty_print = on
332
+ #log_checkpoints = off
333
+ #log_connections = off
334
+ #log_disconnections = off
335
+ #log_duration = off
336
+ #log_hostname = off
337
+ log_line_prefix = '%t ' # special values:
338
+ # %u = user name
339
+ # %d = database name
340
+ # %r = remote host and port
341
+ # %h = remote host
342
+ # %p = process ID
343
+ # %t = timestamp without milliseconds
344
+ # %m = timestamp with milliseconds
345
+ # %i = command tag
346
+ # %c = session ID
347
+ # %l = session line number
348
+ # %s = session start timestamp
349
+ # %v = virtual transaction ID
350
+ # %x = transaction ID (0 if none)
351
+ # %q = stop here in non-session
352
+ # processes
353
+ # %% = '%'
354
+ # e.g. '<%u%%%d> '
355
+ #log_lock_waits = off # log lock waits >= deadlock_timeout
356
+ #log_statement = 'none' # none, ddl, mod, all
357
+ #log_temp_files = -1 # log temporary files equal or larger
358
+ # than the specified size in kilobytes;
359
+ # -1 disables, 0 logs all temp files
360
+ #log_timezone = unknown # actually, defaults to TZ environment
361
+ # setting
362
+
363
+
364
+ #------------------------------------------------------------------------------
365
+ # RUNTIME STATISTICS
366
+ #------------------------------------------------------------------------------
367
+
368
+ # - Query/Index Statistics Collector -
369
+
370
+ #track_activities = on
371
+ track_counts = on
372
+ #track_functions = none # none, pl, all
373
+ #track_activity_query_size = 1024
374
+ #update_process_title = on
375
+ #stats_temp_directory = 'pg_stat_tmp'
376
+
377
+
378
+ # - Statistics Monitoring -
379
+
380
+ #log_parser_stats = off
381
+ #log_planner_stats = off
382
+ #log_executor_stats = off
383
+ #log_statement_stats = off
384
+
385
+
386
+ #------------------------------------------------------------------------------
387
+ # AUTOVACUUM PARAMETERS
388
+ #------------------------------------------------------------------------------
389
+
390
+ autovacuum = on # Enable autovacuum subprocess? 'on'
391
+ # requires track_counts to also be on.
392
+ #log_autovacuum_min_duration = -1 # -1 disables, 0 logs all actions and
393
+ # their durations, > 0 logs only
394
+ # actions running at least this number
395
+ # of milliseconds.
396
+ #autovacuum_max_workers = 3 # max number of autovacuum subprocesses
397
+ #autovacuum_naptime = 1min # time between autovacuum runs
398
+ #autovacuum_vacuum_threshold = 50 # min number of row updates before
399
+ # vacuum
400
+ #autovacuum_analyze_threshold = 50 # min number of row updates before
401
+ # analyze
402
+ #autovacuum_vacuum_scale_factor = 0.2 # fraction of table size before vacuum
403
+ #autovacuum_analyze_scale_factor = 0.1 # fraction of table size before analyze
404
+ #autovacuum_freeze_max_age = 200000000 # maximum XID age before forced vacuum
405
+ # (change requires restart)
406
+ #autovacuum_vacuum_cost_delay = 20ms # default vacuum cost delay for
407
+ # autovacuum, in milliseconds;
408
+ # -1 means use vacuum_cost_delay
409
+ #autovacuum_vacuum_cost_limit = -1 # default vacuum cost limit for
410
+ # autovacuum, -1 means use
411
+ # vacuum_cost_limit
412
+
413
+
414
+ #------------------------------------------------------------------------------
415
+ # CLIENT CONNECTION DEFAULTS
416
+ #------------------------------------------------------------------------------
417
+
418
+ # - Statement Behavior -
419
+
420
+ #search_path = '"$user",public' # schema names
421
+ #default_tablespace = '' # a tablespace name, '' uses the default
422
+ #temp_tablespaces = '' # a list of tablespace names, '' uses
423
+ # only default tablespace
424
+ #check_function_bodies = on
425
+ #default_transaction_isolation = 'read committed'
426
+ #default_transaction_read_only = off
427
+ #session_replication_role = 'origin'
428
+ #statement_timeout = 0 # in milliseconds, 0 is disabled
429
+ #vacuum_freeze_min_age = 50000000
430
+ #vacuum_freeze_table_age = 150000000
431
+ #xmlbinary = 'base64'
432
+ #xmloption = 'content'
433
+
434
+ # - Locale and Formatting -
435
+
436
+ datestyle = 'iso, mdy'
437
+ #intervalstyle = 'postgres'
438
+ #timezone = unknown # actually, defaults to TZ environment
439
+ # setting
440
+ #timezone_abbreviations = 'Default' # Select the set of available time zone
441
+ # abbreviations. Currently, there are
442
+ # Default
443
+ # Australia
444
+ # India
445
+ # You can create your own file in
446
+ # share/timezonesets/.
447
+ #extra_float_digits = 0 # min -15, max 2
448
+ #client_encoding = sql_ascii # actually, defaults to database
449
+ # encoding
450
+
451
+ # These settings are initialized by initdb, but they can be changed.
452
+ lc_messages = 'en_US.UTF-8' # locale for system error message
453
+ # strings
454
+ lc_monetary = 'en_US.UTF-8' # locale for monetary formatting
455
+ lc_numeric = 'en_US.UTF-8' # locale for number formatting
456
+ lc_time = 'en_US.UTF-8' # locale for time formatting
457
+
458
+ # default configuration for text search
459
+ default_text_search_config = 'pg_catalog.english'
460
+
461
+ # - Other Defaults -
462
+
463
+ #dynamic_library_path = '$libdir'
464
+ #local_preload_libraries = ''
465
+
466
+
467
+ #------------------------------------------------------------------------------
468
+ # LOCK MANAGEMENT
469
+ #------------------------------------------------------------------------------
470
+
471
+ #deadlock_timeout = 1s
472
+ #max_locks_per_transaction = 64 # min 10
473
+ # (change requires restart)
474
+ # Note: Each lock table slot uses ~270 bytes of shared memory, and there are
475
+ # max_locks_per_transaction * (max_connections + max_prepared_transactions)
476
+ # lock table slots.
477
+
478
+
479
+ #------------------------------------------------------------------------------
480
+ # VERSION/PLATFORM COMPATIBILITY
481
+ #------------------------------------------------------------------------------
482
+
483
+ # - Previous PostgreSQL Versions -
484
+
485
+ #add_missing_from = off
486
+ #array_nulls = on
487
+ #backslash_quote = safe_encoding # on, off, or safe_encoding
488
+ #default_with_oids = off
489
+ #escape_string_warning = on
490
+ #regex_flavor = advanced # advanced, extended, or basic
491
+ #sql_inheritance = on
492
+ #standard_conforming_strings = off
493
+ #synchronize_seqscans = on
494
+
495
+ # - Other Platforms and Clients -
496
+
497
+ #transform_null_equals = off
498
+
499
+
500
+ #------------------------------------------------------------------------------
501
+ # CUSTOMIZED OPTIONS
502
+ #------------------------------------------------------------------------------
503
+
504
+ #custom_variable_classes = '' # list of custom variable class names