rubber 1.15.0 → 2.0.0.pre1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (574) hide show
  1. data/.travis.yml +10 -0
  2. data/CHANGELOG +68 -1
  3. data/Gemfile +4 -0
  4. data/{COPYING → LICENSE} +0 -0
  5. data/Rakefile +89 -0
  6. data/bin/rubber +17 -0
  7. data/lib/rubber.rb +12 -6
  8. data/lib/rubber/cli.rb +30 -0
  9. data/lib/rubber/cloud.rb +2 -1
  10. data/lib/rubber/cloud/aws.rb +58 -298
  11. data/lib/rubber/cloud/aws_table_store.rb +127 -0
  12. data/lib/rubber/cloud/fog.rb +313 -0
  13. data/lib/rubber/cloud/fog_storage.rb +143 -0
  14. data/lib/rubber/commands/config.rb +70 -0
  15. data/lib/rubber/commands/cron.rb +127 -0
  16. data/lib/rubber/commands/util.rb +308 -0
  17. data/lib/rubber/commands/vulcanize.rb +197 -0
  18. data/lib/rubber/configuration.rb +20 -9
  19. data/lib/rubber/dns.rb +2 -1
  20. data/lib/rubber/dns/base.rb +6 -8
  21. data/lib/rubber/dns/fog.rb +117 -0
  22. data/lib/rubber/dns/nettica.rb +6 -1
  23. data/lib/rubber/dns/zerigo.rb +8 -103
  24. data/lib/rubber/environment.rb +25 -6
  25. data/lib/rubber/generator.rb +2 -0
  26. data/lib/rubber/instance.rb +121 -19
  27. data/lib/rubber/recipes/rubber.rb +3 -4
  28. data/lib/rubber/recipes/rubber/deploy.rb +12 -12
  29. data/lib/rubber/recipes/rubber/instances.rb +30 -31
  30. data/lib/rubber/recipes/rubber/security_groups.rb +2 -2
  31. data/lib/rubber/recipes/rubber/setup.rb +139 -42
  32. data/lib/rubber/recipes/rubber/utils.rb +12 -7
  33. data/lib/rubber/recipes/rubber/volumes.rb +2 -2
  34. data/lib/rubber/tag.rb +3 -8
  35. data/lib/rubber/util.rb +43 -22
  36. data/lib/rubber/version.rb +4 -0
  37. data/rubber.gemspec +44 -0
  38. data/{generators/vulcanize/templates → templates}/apache/config/rubber/deploy-apache.rb +2 -2
  39. data/{generators/vulcanize/templates → templates}/apache/config/rubber/role/apache/deflate.conf +0 -0
  40. data/{generators/vulcanize/templates → templates}/apache/config/rubber/role/apache/expires.conf +0 -0
  41. data/{generators/vulcanize/templates → templates}/apache/config/rubber/role/apache/headers.conf +0 -0
  42. data/{generators/vulcanize/templates → templates}/apache/config/rubber/role/apache/ports.conf +0 -0
  43. data/{generators/vulcanize/templates → templates}/apache/config/rubber/role/apache/setenvif.conf +0 -0
  44. data/{generators/vulcanize/templates → templates}/apache/config/rubber/role/web_tools/tools-apache-vhost.conf +51 -23
  45. data/{lib/generators/vulcanize/templates → templates}/apache/config/rubber/role/web_tools/tools-apache.auth +1 -1
  46. data/templates/apache/config/rubber/role/web_tools/tools-index.html +38 -0
  47. data/{generators/vulcanize/templates → templates}/apache/config/rubber/rubber-apache.yml +0 -0
  48. data/{generators/vulcanize/templates → templates}/apache/templates.yml +0 -0
  49. data/{lib/generators/vulcanize/templates → templates}/base/Capfile +6 -0
  50. data/{lib/generators/vulcanize/templates → templates}/base/config/deploy.rb +13 -3
  51. data/templates/base/config/rubber/common/crontab +21 -0
  52. data/{generators/vulcanize/templates → templates}/base/config/rubber/common/rsyslog.conf +0 -0
  53. data/{generators/vulcanize/templates → templates}/base/config/rubber/common/rubber.profile +4 -4
  54. data/{lib/generators/vulcanize/templates → templates}/base/config/rubber/deploy-setup.rb +1 -1
  55. data/{lib/generators/vulcanize/templates → templates}/base/config/rubber/deploy-util.rb +17 -23
  56. data/{lib/generators/vulcanize/templates → templates}/base/config/rubber/rubber-dns.yml +7 -0
  57. data/{lib/generators/vulcanize/templates → templates}/base/config/rubber/rubber-rvm.yml +6 -6
  58. data/{lib/generators/vulcanize/templates → templates}/base/config/rubber/rubber.yml +54 -20
  59. data/templates/base/script/rubber +8 -0
  60. data/templates/base/templates.rb +7 -0
  61. data/templates/base/templates.yml +1 -0
  62. data/{lib/generators/vulcanize/templates → templates}/cassandra/config/rubber/deploy-cassandra.rb +1 -1
  63. data/{generators/vulcanize/templates → templates}/cassandra/config/rubber/role/cassandra/cassandra.in.sh +0 -0
  64. data/{generators/vulcanize/templates → templates}/cassandra/config/rubber/role/cassandra/cassandra.yaml +0 -0
  65. data/{generators/vulcanize/templates → templates}/cassandra/config/rubber/role/cassandra/log4j-server.properties +0 -0
  66. data/{generators/vulcanize/templates → templates}/cassandra/config/rubber/rubber-cassandra.yml +0 -0
  67. data/{generators/vulcanize/templates → templates}/cassandra/templates.yml +0 -0
  68. data/templates/collectd/config/rubber/deploy-collectd.rb +48 -0
  69. data/templates/collectd/config/rubber/role/collectd/collectd.conf +69 -0
  70. data/templates/collectd/config/rubber/role/collectd/filters.conf +35 -0
  71. data/templates/collectd/config/rubber/role/collectd/thresholds.conf +76 -0
  72. data/templates/collectd/config/rubber/role/collectd/types.db +5 -0
  73. data/templates/collectd/config/rubber/role/passenger/collectd-passenger.conf +7 -0
  74. data/templates/collectd/config/rubber/role/passenger/collectd-passenger.rb.conf +77 -0
  75. data/{lib/generators/vulcanize/templates/passenger/config/rubber/role/passenger/munin-passenger-sudoers.conf → templates/collectd/config/rubber/role/passenger/passenger-status-sudoers.conf} +1 -1
  76. data/templates/collectd/config/rubber/role/postgresql/collectd-postgresql.conf +22 -0
  77. data/templates/collectd/config/rubber/role/postgresql_slave/collectd-postgresql-threshold.conf +23 -0
  78. data/templates/collectd/config/rubber/rubber-collectd.yml +8 -0
  79. data/templates/collectd/script/collectd/collectd-runner.rb +107 -0
  80. data/templates/collectd/script/collectd/role/examples/example_db_query.rb +19 -0
  81. data/templates/collectd/script/collectd/role/examples/example_simple.rb +1 -0
  82. data/templates/collectd/script/collectd/role/postgresql_slave/replication_status.rb +31 -0
  83. data/templates/collectd/script/collectd/role/redis/redis_info.rb +28 -0
  84. data/templates/collectd/script/collectd/role/resque_worker/global_worker_stats.rb +12 -0
  85. data/templates/collectd/script/collectd/role/resque_worker/host_worker_stats.rb +70 -0
  86. data/templates/collectd/script/collectd/role/resque_worker/resque_jobs_processed.rb +8 -0
  87. data/templates/collectd/templates.yml +2 -0
  88. data/{generators/vulcanize/templates → templates}/complete_mongrel_mysql/config/rubber/role/haproxy/haproxy-mongrel.conf +0 -0
  89. data/{generators/vulcanize/templates → templates}/complete_mongrel_mysql/config/rubber/role/nginx/nginx-mongrel.conf +5 -5
  90. data/{lib/generators/vulcanize/templates → templates}/complete_mongrel_mysql/config/rubber/rubber-complete.yml +1 -1
  91. data/{lib/generators/vulcanize/templates → templates}/complete_mongrel_mysql/templates.yml +2 -2
  92. data/{generators/vulcanize/templates → templates}/complete_passenger/config/rubber/role/haproxy/haproxy-passenger.conf +0 -0
  93. data/{lib/generators/vulcanize/templates → templates}/complete_passenger/config/rubber/rubber-complete.yml +1 -1
  94. data/{generators/vulcanize/templates → templates}/complete_passenger/templates.rb +0 -0
  95. data/{generators/vulcanize/templates → templates}/complete_passenger/templates.yml +4 -2
  96. data/{generators/vulcanize/templates → templates}/complete_passenger_mysql/templates.yml +0 -0
  97. data/{generators/vulcanize/templates → templates}/complete_passenger_nginx/config/rubber/role/haproxy/haproxy-passenger.conf +0 -0
  98. data/{generators/vulcanize/templates → templates}/complete_passenger_nginx/config/rubber/rubber-complete.yml +0 -0
  99. data/{generators/vulcanize/templates → templates}/complete_passenger_nginx/templates.rb +0 -0
  100. data/{generators/vulcanize/templates → templates}/complete_passenger_nginx/templates.yml +2 -2
  101. data/{generators/vulcanize/templates → templates}/complete_passenger_nginx_mysql/templates.yml +0 -0
  102. data/{generators/vulcanize/templates → templates}/complete_passenger_nginx_postgresql/templates.yml +0 -0
  103. data/{generators/vulcanize/templates → templates}/complete_passenger_postgresql/templates.yml +0 -0
  104. data/{generators/vulcanize/templates → templates}/cruise/config/rubber/deploy-cruise.rb +0 -0
  105. data/{generators/vulcanize/templates → templates}/cruise/config/rubber/role/cruise/cruise +0 -0
  106. data/{generators/vulcanize/templates → templates}/cruise/config/rubber/role/cruise/my.cnf +0 -0
  107. data/{generators/vulcanize/templates → templates}/cruise/config/rubber/role/cruise/production.rb +0 -0
  108. data/{generators/vulcanize/templates → templates}/cruise/config/rubber/role/cruise/site_config.rb +1 -1
  109. data/{generators/vulcanize/templates → templates}/cruise/config/rubber/role/web_tools/cruise-nginx.conf +0 -0
  110. data/{generators/vulcanize/templates → templates}/cruise/config/rubber/rubber-cruise.yml +6 -0
  111. data/{generators/vulcanize/templates → templates}/cruise/templates.yml +0 -0
  112. data/templates/elasticsearch/config/rubber/deploy-elasticsearch.rb +47 -0
  113. data/templates/elasticsearch/config/rubber/role/elasticsearch/elasticsearch-upstart.conf +23 -0
  114. data/templates/elasticsearch/config/rubber/role/elasticsearch/elasticsearch.yml +348 -0
  115. data/templates/elasticsearch/config/rubber/role/elasticsearch/logging.yml +48 -0
  116. data/templates/elasticsearch/config/rubber/rubber-elasticsearch.yml +12 -0
  117. data/templates/elasticsearch/templates.yml +2 -0
  118. data/templates/graphite/config/rubber/deploy-graphite.rb +255 -0
  119. data/templates/graphite/config/rubber/role/collectd/graphite-collectd.conf +19 -0
  120. data/templates/graphite/config/rubber/role/graphite_server/carbon.conf +232 -0
  121. data/templates/graphite/config/rubber/role/graphite_server/graphite-collectd-ping.conf +11 -0
  122. data/templates/graphite/config/rubber/role/graphite_server/graphite_server-upstart.conf +16 -0
  123. data/templates/graphite/config/rubber/role/graphite_server/storage-schemas.conf +19 -0
  124. data/templates/graphite/config/rubber/role/graphite_web/crontab +8 -0
  125. data/templates/graphite/config/rubber/role/graphite_web/dashboard.conf +60 -0
  126. data/templates/graphite/config/rubber/role/graphite_web/graphite-vhost.conf +62 -0
  127. data/templates/graphite/config/rubber/role/graphite_web/graphite.wsgi +10 -0
  128. data/templates/graphite/config/rubber/role/graphite_web/local_settings.py +98 -0
  129. data/templates/graphite/config/rubber/rubber-graphite.yml +20 -0
  130. data/templates/graphite/templates.yml +1 -0
  131. data/templates/graylog/config/initializers/graylog.rb +53 -0
  132. data/templates/graylog/config/rubber/deploy-graylog.rb +118 -0
  133. data/templates/graylog/config/rubber/role/common/graylog-rsyslog.conf +32 -0
  134. data/templates/graylog/config/rubber/role/graylog_server/graylog2.conf +67 -0
  135. data/templates/graylog/config/rubber/role/graylog_server/graylog_server-upstart.conf +22 -0
  136. data/templates/graylog/config/rubber/role/graylog_web/crontab +9 -0
  137. data/templates/graylog/config/rubber/role/graylog_web/email.yml +16 -0
  138. data/templates/graylog/config/rubber/role/graylog_web/general.yml +27 -0
  139. data/templates/graylog/config/rubber/role/graylog_web/graylog_web-upstart.conf +21 -0
  140. data/templates/graylog/config/rubber/role/graylog_web/mongoid.yml +28 -0
  141. data/templates/graylog/config/rubber/rubber-graylog.yml +42 -0
  142. data/templates/graylog/templates.rb +5 -0
  143. data/templates/graylog/templates.yml +5 -0
  144. data/{lib/generators/vulcanize/templates → templates}/haproxy/config/rubber/deploy-haproxy.rb +2 -2
  145. data/{generators/vulcanize/templates → templates}/haproxy/config/rubber/role/haproxy/haproxy-base.conf +0 -0
  146. data/{generators/vulcanize/templates → templates}/haproxy/config/rubber/role/haproxy/haproxy-default.conf +0 -0
  147. data/{generators/vulcanize/templates → templates}/haproxy/config/rubber/role/haproxy/syslog-haproxy.conf +0 -0
  148. data/{generators/vulcanize/templates → templates}/haproxy/config/rubber/role/haproxy/syslogd-default.conf +0 -0
  149. data/{generators/vulcanize/templates → templates}/haproxy/config/rubber/role/web_tools/haproxy-nginx.conf +0 -0
  150. data/templates/haproxy/config/rubber/role/web_tools/rubber-web-tools-haproxy.html +18 -0
  151. data/{generators/vulcanize/templates → templates}/haproxy/config/rubber/rubber-haproxy.yml +0 -0
  152. data/{generators/vulcanize/templates → templates}/haproxy/templates.yml +0 -0
  153. data/{generators/vulcanize/templates → templates}/jetty/config/rubber/deploy-jetty.rb +0 -0
  154. data/{generators/vulcanize/templates → templates}/jetty/config/rubber/role/jetty/jetty.sh +0 -0
  155. data/{generators/vulcanize/templates → templates}/jetty/config/rubber/role/jetty/jetty.xml +0 -0
  156. data/{generators/vulcanize/templates → templates}/jetty/config/rubber/rubber-jetty.yml +0 -0
  157. data/{generators/vulcanize/templates → templates}/jetty/templates.yml +0 -0
  158. data/{generators/vulcanize/templates → templates}/memcached/config/memcached.yml +0 -0
  159. data/{generators/vulcanize/templates → templates}/memcached/config/rubber/common/memcached.yml +2 -2
  160. data/{generators/vulcanize/templates → templates}/memcached/config/rubber/role/memcached/memcached.conf +0 -0
  161. data/{generators/vulcanize/templates → templates}/memcached/config/rubber/rubber-memcached.yml +0 -0
  162. data/{generators/vulcanize/templates → templates}/memcached/templates.yml +0 -0
  163. data/{generators/vulcanize/templates → templates}/minimal_mysql/templates.yml +0 -0
  164. data/{generators/vulcanize/templates → templates}/minimal_nodb/templates.yml +0 -0
  165. data/{generators/vulcanize/templates → templates}/minimal_passenger_nginx/config/rubber/rubber-complete.yml +0 -0
  166. data/{generators/vulcanize/templates → templates}/minimal_passenger_nginx/templates.yml +0 -0
  167. data/{lib/generators/vulcanize/templates → templates}/mongodb/config/rubber/deploy-mongodb.rb +17 -14
  168. data/templates/mongodb/config/rubber/role/mongodb/mongodb-defaults.conf +5 -0
  169. data/{lib/generators/vulcanize/templates → templates}/mongodb/config/rubber/role/mongodb/mongodb.conf +4 -1
  170. data/{generators/vulcanize/templates → templates}/mongodb/config/rubber/rubber-mongodb.yml +0 -0
  171. data/templates/mongodb/templates.yml +1 -0
  172. data/{generators/vulcanize/templates → templates}/mongrel/config/rubber/deploy-mongrel.rb +1 -1
  173. data/{generators/vulcanize/templates → templates}/mongrel/config/rubber/role/mongrel/mongrel_cluster.yml +3 -3
  174. data/{lib/generators/vulcanize/templates → templates}/mongrel/config/rubber/rubber-mongrel.yml +1 -1
  175. data/{generators/vulcanize/templates → templates}/mongrel/templates.yml +0 -0
  176. data/{lib/generators/vulcanize/templates → templates}/monit/config/rubber/deploy-monit.rb +4 -4
  177. data/{lib/generators/vulcanize/templates/apache → templates/monit}/config/rubber/role/apache/monit-apache.conf +1 -1
  178. data/{generators/vulcanize/templates/cassandra → templates/monit}/config/rubber/role/cassandra/monit-cassandra.conf +1 -1
  179. data/templates/monit/config/rubber/role/elasticsearch/monit-elasticsearch.conf +8 -0
  180. data/templates/monit/config/rubber/role/graphite_server/monit-graphite_server.conf +8 -0
  181. data/templates/monit/config/rubber/role/graylog_server/monit-graylog_server.conf +8 -0
  182. data/templates/monit/config/rubber/role/graylog_web/monit-graylog_web.conf +8 -0
  183. data/{generators/vulcanize/templates/haproxy → templates/monit}/config/rubber/role/haproxy/monit-haproxy.conf +1 -1
  184. data/{generators/vulcanize/templates/jetty → templates/monit}/config/rubber/role/jetty/monit-jetty.conf +1 -1
  185. data/{lib/generators/vulcanize/templates/mongodb/config/rubber/role/mongodb/monit-mongodb.cnf → templates/monit/config/rubber/role/mongodb/monit-mongodb.conf} +2 -2
  186. data/{generators/vulcanize/templates/mongrel → templates/monit}/config/rubber/role/mongrel/monit-mongrel.conf +4 -4
  187. data/{generators/vulcanize/templates/monit/config/rubber/common → templates/monit/config/rubber/role/monit}/monit-default.conf +0 -0
  188. data/{generators/vulcanize/templates/base/config/rubber/common → templates/monit/config/rubber/role/monit}/monit-postfix.conf +0 -0
  189. data/{generators/vulcanize/templates/monit/config/rubber/common → templates/monit/config/rubber/role/monit}/monit.conf +0 -0
  190. data/{generators/vulcanize/templates/munin/config/rubber/common → templates/monit/config/rubber/role/munin}/monit-munin.conf +0 -0
  191. data/{lib/generators/vulcanize/templates/mysql/config/rubber/role/db/monit-mysql.cnf → templates/monit/config/rubber/role/mysql/monit-mysql.conf} +1 -1
  192. data/{lib/generators/vulcanize/templates/mysql_proxy/config/rubber/common/monit-mysql_proxy.cnf → templates/monit/config/rubber/role/mysql_proxy/monit-mysql_proxy.conf} +1 -1
  193. data/{generators/vulcanize/templates/nginx → templates/monit}/config/rubber/role/nginx/monit-nginx.conf +1 -1
  194. data/{generators/vulcanize/templates/passenger_nginx → templates/monit}/config/rubber/role/passenger_nginx/monit-nginx.conf +1 -1
  195. data/{lib/generators/vulcanize/templates/postgresql/config/rubber/role/db → templates/monit/config/rubber/role/postgresql}/monit-postgresql.conf +1 -1
  196. data/templates/monit/config/rubber/role/redis/monit-redis.conf +8 -0
  197. data/templates/monit/config/rubber/role/resque_web/monit-resque_web.conf +10 -0
  198. data/templates/monit/config/rubber/role/resque_worker/monit-resque_pool.conf +8 -0
  199. data/{generators/vulcanize/templates/sphinx → templates/monit}/config/rubber/role/sphinx/monit-sphinx.conf +4 -4
  200. data/{generators/vulcanize/templates → templates}/monit/config/rubber/role/web_tools/monit-admin-nginx.conf +0 -0
  201. data/templates/monit/config/rubber/role/web_tools/rubber-web-tools-monit.html +19 -0
  202. data/templates/monit/config/rubber/rubber-monit.yml +11 -0
  203. data/{generators/vulcanize/templates → templates}/monit/templates.yml +1 -0
  204. data/templates/munin/config/rubber/deploy-munin.rb +81 -0
  205. data/{generators/vulcanize/templates/memcached → templates/munin}/config/rubber/role/memcached/memcached_munin_plugin +0 -0
  206. data/{generators/vulcanize/templates/munin/config/rubber/common → templates/munin/config/rubber/role/munin}/munin-node.conf +0 -0
  207. data/{generators/vulcanize/templates/munin/config/rubber/common → templates/munin/config/rubber/role/munin}/munin-plugins.conf +0 -0
  208. data/{generators/vulcanize/templates/mysql → templates/munin}/config/rubber/role/mysql_slave/mysql_slave_munin_plugin +0 -0
  209. data/{generators/vulcanize/templates/passenger → templates/munin}/config/rubber/role/passenger/munin-passenger-memory.conf +0 -0
  210. data/{generators/vulcanize/templates/passenger → templates/munin}/config/rubber/role/passenger/munin-passenger-sudoers.conf +0 -0
  211. data/{generators/vulcanize/templates/passenger → templates/munin}/config/rubber/role/passenger/munin-passenger.conf +0 -0
  212. data/{generators/vulcanize/templates/passenger_nginx → templates/munin}/config/rubber/role/passenger_nginx/munin-passenger-memory.conf +0 -0
  213. data/{generators/vulcanize/templates/passenger_nginx → templates/munin}/config/rubber/role/passenger_nginx/munin-passenger-sudoers.conf +0 -0
  214. data/{generators/vulcanize/templates/passenger_nginx → templates/munin}/config/rubber/role/passenger_nginx/munin-passenger.conf +0 -0
  215. data/{generators/vulcanize/templates/postgresql/config/rubber/role/db → templates/munin/config/rubber/role/postgresql}/munin-postgresql.conf +0 -0
  216. data/{generators/vulcanize/templates → templates}/munin/config/rubber/role/web_tools/munin-nginx.conf +0 -0
  217. data/{lib/generators/vulcanize/templates → templates}/munin/config/rubber/role/web_tools/munin-plugins.conf +3 -3
  218. data/{generators/vulcanize/templates → templates}/munin/config/rubber/role/web_tools/munin.conf +0 -0
  219. data/templates/munin/config/rubber/role/web_tools/rubber-web-tools-munin.html +16 -0
  220. data/templates/munin/config/rubber/rubber-munin.yml +12 -0
  221. data/{lib/generators/vulcanize/templates → templates}/munin/script/munin/example_mysql_query.rb +1 -1
  222. data/{lib/generators/vulcanize/templates → templates}/munin/script/munin/example_simple.rb +1 -1
  223. data/{generators/vulcanize/templates → templates}/munin/templates.yml +1 -0
  224. data/{generators/vulcanize/templates → templates}/mysql/config/rubber/common/database.yml +3 -3
  225. data/{lib/generators/vulcanize/templates → templates}/mysql/config/rubber/deploy-mysql.rb +1 -15
  226. data/{generators/vulcanize/templates → templates}/mysql/config/rubber/role/db/apparmor-mysql.conf +0 -0
  227. data/{lib/generators/vulcanize/templates → templates}/mysql/config/rubber/role/db/crontab +3 -1
  228. data/{generators/vulcanize/templates → templates}/mysql/config/rubber/role/db/my.cnf +0 -0
  229. data/{generators/vulcanize/templates → templates}/mysql/config/rubber/rubber-mysql.yml +9 -10
  230. data/{generators/vulcanize/templates → templates}/mysql/templates.yml +0 -0
  231. data/{lib/generators/vulcanize/templates → templates}/mysql_cluster/config/rubber/common/mysql_cluster_migrations.rb +1 -1
  232. data/{generators/vulcanize/templates → templates}/mysql_cluster/config/rubber/deploy-mysql_cluster.rb +3 -3
  233. data/{generators/vulcanize/templates → templates}/mysql_cluster/config/rubber/role/mysql_data/my.cnf +0 -0
  234. data/{generators/vulcanize/templates → templates}/mysql_cluster/config/rubber/role/mysql_mgm/ndb_mgmd.cnf +0 -0
  235. data/{generators/vulcanize/templates → templates}/mysql_cluster/config/rubber/role/mysql_sql/my.cnf +0 -0
  236. data/{lib/generators/vulcanize/templates → templates}/mysql_cluster/config/rubber/rubber-mysql_cluster.yml +6 -3
  237. data/{generators/vulcanize/templates → templates}/mysql_cluster/templates.yml +0 -0
  238. data/{generators/vulcanize/templates → templates}/mysql_proxy/config/rubber/deploy-mysql_proxy.rb +0 -0
  239. data/{lib/generators/vulcanize/templates/mysql_proxy/config/rubber/common → templates/mysql_proxy/config/rubber/mysql_proxy}/database.yml +3 -3
  240. data/{generators/vulcanize/templates/mysql_proxy/config/rubber/common → templates/mysql_proxy/config/rubber/mysql_proxy}/mysql-proxy +0 -0
  241. data/{generators/vulcanize/templates/mysql_proxy/config/rubber/common → templates/mysql_proxy/config/rubber/mysql_proxy}/mysql-proxy.conf +0 -0
  242. data/{generators/vulcanize/templates/mysql_proxy/config/rubber/common → templates/mysql_proxy/config/rubber/mysql_proxy}/mysql-proxy.lua +0 -0
  243. data/{generators/vulcanize/templates → templates}/mysql_proxy/config/rubber/rubber-mysql_proxy.yml +3 -0
  244. data/{generators/vulcanize/templates → templates}/mysql_proxy/templates.yml +0 -0
  245. data/{generators/vulcanize/templates → templates}/nginx/config/rubber/deploy-nginx.rb +0 -0
  246. data/{generators/vulcanize/templates → templates}/nginx/config/rubber/role/nginx/crontab +1 -1
  247. data/{generators/vulcanize/templates → templates}/nginx/config/rubber/role/nginx/nginx.conf +0 -0
  248. data/{lib/generators/vulcanize/templates → templates}/nginx/config/rubber/role/web_tools/nginx-tools.conf +8 -5
  249. data/{generators/vulcanize/templates → templates}/nginx/config/rubber/role/web_tools/tools-index.html +7 -1
  250. data/{generators/vulcanize/templates → templates}/nginx/config/rubber/role/web_tools/tools-nginx.auth +1 -1
  251. data/{generators/vulcanize/templates → templates}/nginx/config/rubber/rubber-nginx.yml +0 -0
  252. data/{generators/vulcanize/templates → templates}/nginx/templates.yml +0 -0
  253. data/{generators/vulcanize/templates → templates}/passenger/config/rubber/deploy-passenger.rb +0 -0
  254. data/{generators/vulcanize/templates → templates}/passenger/config/rubber/role/passenger/passenger-apache-vhost.conf +5 -5
  255. data/{lib/generators/vulcanize/templates → templates}/passenger/config/rubber/role/passenger/passenger.conf +2 -2
  256. data/{lib/generators/vulcanize/templates → templates}/passenger/config/rubber/rubber-passenger.yml +2 -1
  257. data/{generators/vulcanize/templates → templates}/passenger/templates.yml +0 -0
  258. data/{lib/generators/vulcanize/templates → templates}/passenger_nginx/config/rubber/deploy-passenger_nginx.rb +1 -2
  259. data/{lib/generators/vulcanize/templates → templates}/passenger_nginx/config/rubber/role/passenger_nginx/application.conf +3 -3
  260. data/{generators/vulcanize/templates → templates}/passenger_nginx/config/rubber/role/passenger_nginx/crontab +1 -1
  261. data/{generators/vulcanize/templates → templates}/passenger_nginx/config/rubber/role/passenger_nginx/nginx +0 -0
  262. data/{lib/generators/vulcanize/templates → templates}/passenger_nginx/config/rubber/role/passenger_nginx/nginx.conf +2 -2
  263. data/{generators/vulcanize/templates → templates}/passenger_nginx/config/rubber/role/passenger_nginx/passenger_nginx.conf +2 -2
  264. data/{generators/vulcanize/templates → templates}/passenger_nginx/config/rubber/role/web_tools/nginx-tools.conf +8 -5
  265. data/{lib/generators/vulcanize/templates → templates}/passenger_nginx/config/rubber/role/web_tools/tools-index.html +7 -1
  266. data/{generators/vulcanize/templates → templates}/passenger_nginx/config/rubber/role/web_tools/tools-nginx.auth +1 -1
  267. data/{lib/generators/vulcanize/templates → templates}/passenger_nginx/config/rubber/rubber-passenger_nginx.yml +1 -1
  268. data/{generators/vulcanize/templates → templates}/passenger_nginx/templates.yml +0 -0
  269. data/{lib/generators/vulcanize/templates → templates}/postgresql/config/rubber/common/database.yml +2 -2
  270. data/{lib/generators/vulcanize/templates → templates}/postgresql/config/rubber/deploy-postgresql.rb +27 -47
  271. data/{generators/vulcanize/templates → templates}/postgresql/config/rubber/role/db/crontab +3 -1
  272. data/templates/postgresql/config/rubber/role/db/pg_hba.conf +98 -0
  273. data/{generators/vulcanize/templates → templates}/postgresql/config/rubber/role/db/postgresql-sysctl.conf +0 -0
  274. data/{lib/generators/vulcanize/templates → templates}/postgresql/config/rubber/role/db/postgresql.conf +50 -20
  275. data/{lib/generators/vulcanize/templates → templates}/postgresql/config/rubber/role/postgresql_slave/recovery.conf +34 -19
  276. data/{generators/vulcanize/templates → templates}/postgresql/config/rubber/rubber-postgresql.yml +13 -13
  277. data/{generators/vulcanize/templates → templates}/postgresql/templates.yml +0 -0
  278. data/templates/redis/config/rubber/deploy-redis.rb +79 -0
  279. data/{lib/generators/vulcanize/templates → templates}/redis/config/rubber/role/redis/crontab +3 -1
  280. data/{generators/vulcanize/templates → templates}/redis/config/rubber/role/redis/redis-sysctl.conf +0 -0
  281. data/templates/redis/config/rubber/role/redis/redis-upstart.conf +23 -0
  282. data/{generators/vulcanize/templates → templates}/redis/config/rubber/role/redis/redis.conf +62 -9
  283. data/templates/redis/config/rubber/rubber-redis.yml +17 -0
  284. data/{generators/vulcanize/templates → templates}/redis/templates.yml +0 -0
  285. data/{generators/vulcanize/templates → templates}/resque/config/initializers/resque.rb +0 -0
  286. data/templates/resque/config/resque-pool.yml +4 -0
  287. data/templates/resque/config/rubber/common/resque.yml +5 -0
  288. data/templates/resque/config/rubber/deploy-resque.rb +190 -0
  289. data/templates/resque/config/rubber/role/resque_web/resque-web-upstart.conf +20 -0
  290. data/templates/resque/config/rubber/role/resque_worker/resque-pool-upstart.conf +50 -0
  291. data/templates/resque/config/rubber/role/resque_worker/resque-pool.yml +6 -0
  292. data/{generators/vulcanize/templates → templates}/resque/config/rubber/rubber-resque.yml +11 -1
  293. data/templates/resque/lib/tasks/resque.rake +18 -0
  294. data/templates/resque/templates.rb +2 -0
  295. data/{generators/vulcanize/templates → templates}/resque/templates.yml +0 -0
  296. data/{lib/generators/vulcanize/templates → templates}/sphinx/config/rubber/common/sphinx.yml +9 -9
  297. data/{generators/vulcanize/templates → templates}/sphinx/config/rubber/deploy-sphinx.rb +1 -1
  298. data/templates/sphinx/config/rubber/role/sphinx/crontab +11 -0
  299. data/{generators/vulcanize/templates → templates}/sphinx/config/rubber/rubber-sphinx.yml +0 -0
  300. data/{generators/vulcanize/templates → templates}/sphinx/templates.yml +0 -0
  301. data/templates/unicorn/config/rubber/deploy-unicorn.rb +35 -0
  302. data/templates/unicorn/config/rubber/role/nginx/unicorn_nginx.conf +56 -0
  303. data/templates/unicorn/config/rubber/role/unicorn/unicorn.rb +79 -0
  304. data/templates/unicorn/config/rubber/rubber-unicorn.yml +5 -0
  305. data/templates/unicorn/templates.yml +3 -0
  306. data/test/cloud/aws_table_store_test.rb +172 -0
  307. data/test/cloud/aws_test.rb +33 -0
  308. data/test/cloud/fog_storage_test.rb +183 -0
  309. data/test/cloud/fog_test.rb +34 -0
  310. data/test/command_test.rb +85 -0
  311. data/test/dns/fog_test.rb +131 -0
  312. data/test/environment_test.rb +135 -0
  313. data/test/fixtures/basic/common/bar.conf +4 -0
  314. data/test/fixtures/basic/common/foo.conf +4 -0
  315. data/test/fixtures/basic/host/host1/foo.conf +4 -0
  316. data/test/fixtures/basic/host/host2/foo.conf +4 -0
  317. data/test/fixtures/basic/role/role1/foo.conf +4 -0
  318. data/test/fixtures/basic/role/role2/foo.conf +4 -0
  319. data/test/fixtures/basic/rubber-extra.yml +1 -0
  320. data/test/fixtures/basic/rubber.yml +26 -0
  321. data/test/fixtures/expansion/rubber.yml +34 -0
  322. data/test/fixtures/generator_order/common/a_first.conf +5 -0
  323. data/test/fixtures/generator_order/common/z_last.conf +5 -0
  324. data/test/fixtures/generator_order/host/host1/a_first.conf +5 -0
  325. data/test/fixtures/generator_order/host/host1/z_last.conf +5 -0
  326. data/test/fixtures/generator_order/role/role1/a_first.conf +5 -0
  327. data/test/fixtures/generator_order/role/role1/z_last.conf +5 -0
  328. data/test/fixtures/generator_order/role/role2/a_first.conf +5 -0
  329. data/test/fixtures/generator_order/role/role2/z_last.conf +5 -0
  330. data/test/fixtures/instance_expansion/instance-test.yml +20 -0
  331. data/test/fixtures/instance_expansion/rubber.yml +1 -0
  332. data/test/fixtures/nested/rubber.yml +9 -0
  333. data/test/fixtures/secret/rubber.yml +2 -0
  334. data/test/fixtures/secret/secret.yml +2 -0
  335. data/test/generator_test.rb +365 -0
  336. data/test/instance_test.rb +293 -0
  337. data/test/test-rails-template.rb +35 -0
  338. data/test/test_helper.rb +19 -0
  339. data/test/util_test.rb +79 -0
  340. metadata +490 -508
  341. data/VERSION +0 -1
  342. data/bin/vulcanize +0 -25
  343. data/generators/vulcanize/USAGE +0 -6
  344. data/generators/vulcanize/templates/apache/config/rubber/role/apache/monit-apache.conf +0 -7
  345. data/generators/vulcanize/templates/apache/config/rubber/role/web_tools/tools-apache.auth +0 -7
  346. data/generators/vulcanize/templates/apache/config/rubber/role/web_tools/tools-index.html +0 -34
  347. data/generators/vulcanize/templates/base/Capfile +0 -14
  348. data/generators/vulcanize/templates/base/Rakefile +0 -27
  349. data/generators/vulcanize/templates/base/config/deploy.rb +0 -56
  350. data/generators/vulcanize/templates/base/config/rubber/common/crontab +0 -21
  351. data/generators/vulcanize/templates/base/config/rubber/deploy-setup.rb +0 -96
  352. data/generators/vulcanize/templates/base/config/rubber/deploy-util.rb +0 -97
  353. data/generators/vulcanize/templates/base/config/rubber/rubber-dns.yml +0 -78
  354. data/generators/vulcanize/templates/base/config/rubber/rubber-rvm.yml +0 -39
  355. data/generators/vulcanize/templates/base/config/rubber/rubber.yml +0 -263
  356. data/generators/vulcanize/templates/base/lib/tasks/rubber.rake +0 -15
  357. data/generators/vulcanize/templates/base/script/cron-rake +0 -18
  358. data/generators/vulcanize/templates/base/script/cron-runner +0 -18
  359. data/generators/vulcanize/templates/base/script/cron-sh +0 -67
  360. data/generators/vulcanize/templates/base/templates.rb +0 -11
  361. data/generators/vulcanize/templates/base/templates.yml +0 -6
  362. data/generators/vulcanize/templates/cassandra/config/rubber/deploy-cassandra.rb +0 -88
  363. data/generators/vulcanize/templates/complete_mongrel_mysql/config/rubber/rubber-complete.yml +0 -41
  364. data/generators/vulcanize/templates/complete_mongrel_mysql/templates.yml +0 -6
  365. data/generators/vulcanize/templates/complete_passenger/config/rubber/rubber-complete.yml +0 -40
  366. data/generators/vulcanize/templates/haproxy/config/rubber/deploy-haproxy.rb +0 -45
  367. data/generators/vulcanize/templates/mongodb/config/rubber/deploy-mongodb.rb +0 -53
  368. data/generators/vulcanize/templates/mongodb/config/rubber/role/mongodb/mongodb.conf +0 -89
  369. data/generators/vulcanize/templates/mongodb/config/rubber/role/mongodb/monit-mongodb.cnf +0 -10
  370. data/generators/vulcanize/templates/mongodb/templates.yml +0 -3
  371. data/generators/vulcanize/templates/mongrel/config/rubber/rubber-mongrel.yml +0 -9
  372. data/generators/vulcanize/templates/monit/config/rubber/deploy-monit.rb +0 -33
  373. data/generators/vulcanize/templates/monit/config/rubber/rubber-monit.yml +0 -6
  374. data/generators/vulcanize/templates/munin/config/rubber/deploy-munin.rb +0 -46
  375. data/generators/vulcanize/templates/munin/config/rubber/role/web_tools/munin-plugins.conf +0 -31
  376. data/generators/vulcanize/templates/munin/config/rubber/rubber-munin.yml +0 -8
  377. data/generators/vulcanize/templates/munin/script/munin/example_mysql_query.rb +0 -55
  378. data/generators/vulcanize/templates/munin/script/munin/example_simple.rb +0 -24
  379. data/generators/vulcanize/templates/mysql/config/rubber/deploy-mysql.rb +0 -169
  380. data/generators/vulcanize/templates/mysql/config/rubber/role/db/crontab +0 -14
  381. data/generators/vulcanize/templates/mysql/config/rubber/role/db/monit-mysql.cnf +0 -10
  382. data/generators/vulcanize/templates/mysql_cluster/config/rubber/common/mysql_cluster_migrations.rb +0 -13
  383. data/generators/vulcanize/templates/mysql_cluster/config/rubber/role/mysql_sql/monit-mysql_cluster_sql.cnf +0 -10
  384. data/generators/vulcanize/templates/mysql_cluster/config/rubber/rubber-mysql_cluster.yml +0 -32
  385. data/generators/vulcanize/templates/mysql_proxy/config/rubber/common/database.yml +0 -16
  386. data/generators/vulcanize/templates/mysql_proxy/config/rubber/common/monit-mysql_proxy.cnf +0 -10
  387. data/generators/vulcanize/templates/nginx/config/rubber/role/web_tools/nginx-tools.conf +0 -55
  388. data/generators/vulcanize/templates/passenger/config/rubber/role/passenger/passenger.conf +0 -41
  389. data/generators/vulcanize/templates/passenger/config/rubber/rubber-passenger.yml +0 -15
  390. data/generators/vulcanize/templates/passenger_nginx/config/rubber/deploy-passenger_nginx.rb +0 -86
  391. data/generators/vulcanize/templates/passenger_nginx/config/rubber/role/passenger_nginx/application.conf +0 -30
  392. data/generators/vulcanize/templates/passenger_nginx/config/rubber/role/passenger_nginx/nginx.conf +0 -65
  393. data/generators/vulcanize/templates/passenger_nginx/config/rubber/role/web_tools/tools-index.html +0 -34
  394. data/generators/vulcanize/templates/passenger_nginx/config/rubber/rubber-passenger_nginx.yml +0 -20
  395. data/generators/vulcanize/templates/postgresql/config/rubber/common/database.yml +0 -12
  396. data/generators/vulcanize/templates/postgresql/config/rubber/deploy-postgresql.rb +0 -160
  397. data/generators/vulcanize/templates/postgresql/config/rubber/role/db/monit-postgresql.conf +0 -10
  398. data/generators/vulcanize/templates/postgresql/config/rubber/role/db/pg_hba.conf +0 -90
  399. data/generators/vulcanize/templates/postgresql/config/rubber/role/db/postgresql.conf +0 -544
  400. data/generators/vulcanize/templates/postgresql/config/rubber/role/postgresql_slave/recovery.conf +0 -120
  401. data/generators/vulcanize/templates/redis/config/rubber/deploy-redis.rb +0 -88
  402. data/generators/vulcanize/templates/redis/config/rubber/role/redis/crontab +0 -15
  403. data/generators/vulcanize/templates/redis/config/rubber/role/redis/monit-redis.conf +0 -8
  404. data/generators/vulcanize/templates/redis/config/rubber/rubber-redis.yml +0 -13
  405. data/generators/vulcanize/templates/resque/config/rubber/common/resque.yml +0 -5
  406. data/generators/vulcanize/templates/resque/config/rubber/deploy-resque.rb +0 -71
  407. data/generators/vulcanize/templates/resque/config/rubber/role/resque_web/monit-resque_web.conf +0 -14
  408. data/generators/vulcanize/templates/resque/config/rubber/role/resque_worker/monit-resque_worker.conf +0 -19
  409. data/generators/vulcanize/templates/resque/script/resque_worker_management.rb +0 -144
  410. data/generators/vulcanize/templates/resque/templates.rb +0 -1
  411. data/generators/vulcanize/templates/sphinx/config/rubber/common/sphinx.yml +0 -46
  412. data/generators/vulcanize/templates/sphinx/config/rubber/role/sphinx/crontab +0 -11
  413. data/generators/vulcanize/vulcanize_generator.rb +0 -184
  414. data/lib/generators/vulcanize/USAGE +0 -6
  415. data/lib/generators/vulcanize/templates/apache/config/rubber/deploy-apache.rb +0 -51
  416. data/lib/generators/vulcanize/templates/apache/config/rubber/role/apache/deflate.conf +0 -10
  417. data/lib/generators/vulcanize/templates/apache/config/rubber/role/apache/expires.conf +0 -9
  418. data/lib/generators/vulcanize/templates/apache/config/rubber/role/apache/headers.conf +0 -6
  419. data/lib/generators/vulcanize/templates/apache/config/rubber/role/apache/ports.conf +0 -8
  420. data/lib/generators/vulcanize/templates/apache/config/rubber/role/apache/setenvif.conf +0 -52
  421. data/lib/generators/vulcanize/templates/apache/config/rubber/role/web_tools/tools-apache-vhost.conf +0 -79
  422. data/lib/generators/vulcanize/templates/apache/config/rubber/role/web_tools/tools-index.html +0 -34
  423. data/lib/generators/vulcanize/templates/apache/config/rubber/rubber-apache.yml +0 -6
  424. data/lib/generators/vulcanize/templates/apache/templates.yml +0 -1
  425. data/lib/generators/vulcanize/templates/base/Rakefile +0 -27
  426. data/lib/generators/vulcanize/templates/base/config/rubber/common/crontab +0 -21
  427. data/lib/generators/vulcanize/templates/base/config/rubber/common/monit-postfix.conf +0 -8
  428. data/lib/generators/vulcanize/templates/base/config/rubber/common/rsyslog.conf +0 -71
  429. data/lib/generators/vulcanize/templates/base/config/rubber/common/rubber.profile +0 -13
  430. data/lib/generators/vulcanize/templates/base/lib/tasks/rubber.rake +0 -15
  431. data/lib/generators/vulcanize/templates/base/script/cron-rake +0 -18
  432. data/lib/generators/vulcanize/templates/base/script/cron-runner +0 -18
  433. data/lib/generators/vulcanize/templates/base/script/cron-sh +0 -67
  434. data/lib/generators/vulcanize/templates/base/templates.rb +0 -11
  435. data/lib/generators/vulcanize/templates/base/templates.yml +0 -6
  436. data/lib/generators/vulcanize/templates/cassandra/config/rubber/role/cassandra/cassandra.in.sh +0 -60
  437. data/lib/generators/vulcanize/templates/cassandra/config/rubber/role/cassandra/cassandra.yaml +0 -210
  438. data/lib/generators/vulcanize/templates/cassandra/config/rubber/role/cassandra/log4j-server.properties +0 -45
  439. data/lib/generators/vulcanize/templates/cassandra/config/rubber/role/cassandra/monit-cassandra.conf +0 -8
  440. data/lib/generators/vulcanize/templates/cassandra/config/rubber/rubber-cassandra.yml +0 -18
  441. data/lib/generators/vulcanize/templates/cassandra/templates.yml +0 -1
  442. data/lib/generators/vulcanize/templates/complete_mongrel_mysql/config/rubber/role/haproxy/haproxy-mongrel.conf +0 -23
  443. data/lib/generators/vulcanize/templates/complete_mongrel_mysql/config/rubber/role/nginx/nginx-mongrel.conf +0 -113
  444. data/lib/generators/vulcanize/templates/complete_passenger/config/rubber/role/haproxy/haproxy-passenger.conf +0 -21
  445. data/lib/generators/vulcanize/templates/complete_passenger/templates.rb +0 -9
  446. data/lib/generators/vulcanize/templates/complete_passenger/templates.yml +0 -9
  447. data/lib/generators/vulcanize/templates/complete_passenger_mysql/templates.yml +0 -4
  448. data/lib/generators/vulcanize/templates/complete_passenger_nginx/config/rubber/role/haproxy/haproxy-passenger.conf +0 -21
  449. data/lib/generators/vulcanize/templates/complete_passenger_nginx/config/rubber/rubber-complete.yml +0 -38
  450. data/lib/generators/vulcanize/templates/complete_passenger_nginx/templates.rb +0 -8
  451. data/lib/generators/vulcanize/templates/complete_passenger_nginx/templates.yml +0 -8
  452. data/lib/generators/vulcanize/templates/complete_passenger_nginx_mysql/templates.yml +0 -4
  453. data/lib/generators/vulcanize/templates/complete_passenger_nginx_postgresql/templates.yml +0 -4
  454. data/lib/generators/vulcanize/templates/complete_passenger_postgresql/templates.yml +0 -4
  455. data/lib/generators/vulcanize/templates/cruise/config/rubber/deploy-cruise.rb +0 -72
  456. data/lib/generators/vulcanize/templates/cruise/config/rubber/role/cruise/cruise +0 -40
  457. data/lib/generators/vulcanize/templates/cruise/config/rubber/role/cruise/my.cnf +0 -165
  458. data/lib/generators/vulcanize/templates/cruise/config/rubber/role/cruise/production.rb +0 -8
  459. data/lib/generators/vulcanize/templates/cruise/config/rubber/role/cruise/site_config.rb +0 -76
  460. data/lib/generators/vulcanize/templates/cruise/config/rubber/role/web_tools/cruise-nginx.conf +0 -11
  461. data/lib/generators/vulcanize/templates/cruise/config/rubber/rubber-cruise.yml +0 -18
  462. data/lib/generators/vulcanize/templates/cruise/templates.yml +0 -1
  463. data/lib/generators/vulcanize/templates/haproxy/config/rubber/role/haproxy/haproxy-base.conf +0 -26
  464. data/lib/generators/vulcanize/templates/haproxy/config/rubber/role/haproxy/haproxy-default.conf +0 -8
  465. data/lib/generators/vulcanize/templates/haproxy/config/rubber/role/haproxy/monit-haproxy.conf +0 -8
  466. data/lib/generators/vulcanize/templates/haproxy/config/rubber/role/haproxy/syslog-haproxy.conf +0 -11
  467. data/lib/generators/vulcanize/templates/haproxy/config/rubber/role/haproxy/syslogd-default.conf +0 -21
  468. data/lib/generators/vulcanize/templates/haproxy/config/rubber/role/web_tools/haproxy-nginx.conf +0 -10
  469. data/lib/generators/vulcanize/templates/haproxy/config/rubber/rubber-haproxy.yml +0 -7
  470. data/lib/generators/vulcanize/templates/haproxy/templates.yml +0 -1
  471. data/lib/generators/vulcanize/templates/jetty/config/rubber/deploy-jetty.rb +0 -59
  472. data/lib/generators/vulcanize/templates/jetty/config/rubber/role/jetty/jetty.sh +0 -589
  473. data/lib/generators/vulcanize/templates/jetty/config/rubber/role/jetty/jetty.xml +0 -199
  474. data/lib/generators/vulcanize/templates/jetty/config/rubber/role/jetty/monit-jetty.conf +0 -8
  475. data/lib/generators/vulcanize/templates/jetty/config/rubber/rubber-jetty.yml +0 -10
  476. data/lib/generators/vulcanize/templates/jetty/templates.yml +0 -1
  477. data/lib/generators/vulcanize/templates/memcached/config/memcached.yml +0 -28
  478. data/lib/generators/vulcanize/templates/memcached/config/rubber/common/memcached.yml +0 -14
  479. data/lib/generators/vulcanize/templates/memcached/config/rubber/role/memcached/memcached.conf +0 -52
  480. data/lib/generators/vulcanize/templates/memcached/config/rubber/role/memcached/memcached_munin_plugin +0 -249
  481. data/lib/generators/vulcanize/templates/memcached/config/rubber/rubber-memcached.yml +0 -7
  482. data/lib/generators/vulcanize/templates/memcached/templates.yml +0 -1
  483. data/lib/generators/vulcanize/templates/minimal_mysql/templates.yml +0 -7
  484. data/lib/generators/vulcanize/templates/minimal_nodb/templates.yml +0 -6
  485. data/lib/generators/vulcanize/templates/minimal_passenger_nginx/config/rubber/rubber-complete.yml +0 -37
  486. data/lib/generators/vulcanize/templates/minimal_passenger_nginx/templates.yml +0 -4
  487. data/lib/generators/vulcanize/templates/mongodb/config/rubber/rubber-mongodb.yml +0 -8
  488. data/lib/generators/vulcanize/templates/mongodb/templates.yml +0 -3
  489. data/lib/generators/vulcanize/templates/mongrel/config/rubber/deploy-mongrel.rb +0 -75
  490. data/lib/generators/vulcanize/templates/mongrel/config/rubber/role/mongrel/mongrel_cluster.yml +0 -12
  491. data/lib/generators/vulcanize/templates/mongrel/config/rubber/role/mongrel/monit-mongrel.conf +0 -20
  492. data/lib/generators/vulcanize/templates/mongrel/templates.yml +0 -1
  493. data/lib/generators/vulcanize/templates/monit/config/rubber/common/monit-default.conf +0 -15
  494. data/lib/generators/vulcanize/templates/monit/config/rubber/common/monit.conf +0 -252
  495. data/lib/generators/vulcanize/templates/monit/config/rubber/role/web_tools/monit-admin-nginx.conf +0 -11
  496. data/lib/generators/vulcanize/templates/monit/config/rubber/rubber-monit.yml +0 -6
  497. data/lib/generators/vulcanize/templates/monit/templates.yml +0 -1
  498. data/lib/generators/vulcanize/templates/munin/config/rubber/common/monit-munin.conf +0 -8
  499. data/lib/generators/vulcanize/templates/munin/config/rubber/common/munin-node.conf +0 -48
  500. data/lib/generators/vulcanize/templates/munin/config/rubber/common/munin-plugins.conf +0 -11
  501. data/lib/generators/vulcanize/templates/munin/config/rubber/deploy-munin.rb +0 -46
  502. data/lib/generators/vulcanize/templates/munin/config/rubber/role/web_tools/munin-nginx.conf +0 -8
  503. data/lib/generators/vulcanize/templates/munin/config/rubber/role/web_tools/munin.conf +0 -116
  504. data/lib/generators/vulcanize/templates/munin/config/rubber/rubber-munin.yml +0 -8
  505. data/lib/generators/vulcanize/templates/munin/templates.yml +0 -1
  506. data/lib/generators/vulcanize/templates/mysql/config/rubber/common/database.yml +0 -12
  507. data/lib/generators/vulcanize/templates/mysql/config/rubber/role/db/apparmor-mysql.conf +0 -46
  508. data/lib/generators/vulcanize/templates/mysql/config/rubber/role/db/my.cnf +0 -163
  509. data/lib/generators/vulcanize/templates/mysql/config/rubber/role/mysql_slave/mysql_slave_munin_plugin +0 -51
  510. data/lib/generators/vulcanize/templates/mysql/config/rubber/rubber-mysql.yml +0 -47
  511. data/lib/generators/vulcanize/templates/mysql/templates.yml +0 -1
  512. data/lib/generators/vulcanize/templates/mysql_cluster/config/rubber/deploy-mysql_cluster.rb +0 -177
  513. data/lib/generators/vulcanize/templates/mysql_cluster/config/rubber/role/mysql_data/my.cnf +0 -15
  514. data/lib/generators/vulcanize/templates/mysql_cluster/config/rubber/role/mysql_mgm/ndb_mgmd.cnf +0 -39
  515. data/lib/generators/vulcanize/templates/mysql_cluster/config/rubber/role/mysql_sql/monit-mysql_cluster_sql.cnf +0 -10
  516. data/lib/generators/vulcanize/templates/mysql_cluster/config/rubber/role/mysql_sql/my.cnf +0 -23
  517. data/lib/generators/vulcanize/templates/mysql_cluster/templates.yml +0 -1
  518. data/lib/generators/vulcanize/templates/mysql_proxy/config/rubber/common/mysql-proxy +0 -154
  519. data/lib/generators/vulcanize/templates/mysql_proxy/config/rubber/common/mysql-proxy.conf +0 -10
  520. data/lib/generators/vulcanize/templates/mysql_proxy/config/rubber/common/mysql-proxy.lua +0 -5
  521. data/lib/generators/vulcanize/templates/mysql_proxy/config/rubber/deploy-mysql_proxy.rb +0 -52
  522. data/lib/generators/vulcanize/templates/mysql_proxy/config/rubber/rubber-mysql_proxy.yml +0 -11
  523. data/lib/generators/vulcanize/templates/mysql_proxy/templates.yml +0 -1
  524. data/lib/generators/vulcanize/templates/nginx/config/rubber/deploy-nginx.rb +0 -45
  525. data/lib/generators/vulcanize/templates/nginx/config/rubber/role/nginx/crontab +0 -9
  526. data/lib/generators/vulcanize/templates/nginx/config/rubber/role/nginx/monit-nginx.conf +0 -7
  527. data/lib/generators/vulcanize/templates/nginx/config/rubber/role/nginx/nginx.conf +0 -42
  528. data/lib/generators/vulcanize/templates/nginx/config/rubber/role/web_tools/tools-index.html +0 -30
  529. data/lib/generators/vulcanize/templates/nginx/config/rubber/role/web_tools/tools-nginx.auth +0 -7
  530. data/lib/generators/vulcanize/templates/nginx/config/rubber/rubber-nginx.yml +0 -10
  531. data/lib/generators/vulcanize/templates/nginx/templates.yml +0 -1
  532. data/lib/generators/vulcanize/templates/passenger/config/rubber/deploy-passenger.rb +0 -51
  533. data/lib/generators/vulcanize/templates/passenger/config/rubber/role/passenger/munin-passenger-memory.conf +0 -34
  534. data/lib/generators/vulcanize/templates/passenger/config/rubber/role/passenger/munin-passenger.conf +0 -47
  535. data/lib/generators/vulcanize/templates/passenger/config/rubber/role/passenger/passenger-apache-vhost.conf +0 -48
  536. data/lib/generators/vulcanize/templates/passenger/templates.yml +0 -3
  537. data/lib/generators/vulcanize/templates/passenger_nginx/config/rubber/role/passenger_nginx/crontab +0 -8
  538. data/lib/generators/vulcanize/templates/passenger_nginx/config/rubber/role/passenger_nginx/monit-nginx.conf +0 -7
  539. data/lib/generators/vulcanize/templates/passenger_nginx/config/rubber/role/passenger_nginx/munin-passenger-memory.conf +0 -34
  540. data/lib/generators/vulcanize/templates/passenger_nginx/config/rubber/role/passenger_nginx/munin-passenger-sudoers.conf +0 -8
  541. data/lib/generators/vulcanize/templates/passenger_nginx/config/rubber/role/passenger_nginx/munin-passenger.conf +0 -47
  542. data/lib/generators/vulcanize/templates/passenger_nginx/config/rubber/role/passenger_nginx/nginx +0 -101
  543. data/lib/generators/vulcanize/templates/passenger_nginx/config/rubber/role/passenger_nginx/passenger_nginx.conf +0 -30
  544. data/lib/generators/vulcanize/templates/passenger_nginx/config/rubber/role/web_tools/nginx-tools.conf +0 -55
  545. data/lib/generators/vulcanize/templates/passenger_nginx/config/rubber/role/web_tools/tools-nginx.auth +0 -7
  546. data/lib/generators/vulcanize/templates/passenger_nginx/templates.yml +0 -1
  547. data/lib/generators/vulcanize/templates/postgresql/config/rubber/role/db/crontab +0 -14
  548. data/lib/generators/vulcanize/templates/postgresql/config/rubber/role/db/munin-postgresql.conf +0 -7
  549. data/lib/generators/vulcanize/templates/postgresql/config/rubber/role/db/pg_hba.conf +0 -90
  550. data/lib/generators/vulcanize/templates/postgresql/config/rubber/role/db/postgresql-sysctl.conf +0 -6
  551. data/lib/generators/vulcanize/templates/postgresql/config/rubber/rubber-postgresql.yml +0 -45
  552. data/lib/generators/vulcanize/templates/postgresql/templates.yml +0 -1
  553. data/lib/generators/vulcanize/templates/redis/config/rubber/deploy-redis.rb +0 -88
  554. data/lib/generators/vulcanize/templates/redis/config/rubber/role/redis/monit-redis.conf +0 -8
  555. data/lib/generators/vulcanize/templates/redis/config/rubber/role/redis/redis-sysctl.conf +0 -7
  556. data/lib/generators/vulcanize/templates/redis/config/rubber/role/redis/redis.conf +0 -434
  557. data/lib/generators/vulcanize/templates/redis/config/rubber/rubber-redis.yml +0 -13
  558. data/lib/generators/vulcanize/templates/redis/templates.yml +0 -1
  559. data/lib/generators/vulcanize/templates/resque/config/initializers/resque.rb +0 -15
  560. data/lib/generators/vulcanize/templates/resque/config/rubber/common/resque.yml +0 -5
  561. data/lib/generators/vulcanize/templates/resque/config/rubber/deploy-resque.rb +0 -71
  562. data/lib/generators/vulcanize/templates/resque/config/rubber/role/resque_web/monit-resque_web.conf +0 -14
  563. data/lib/generators/vulcanize/templates/resque/config/rubber/role/resque_worker/monit-resque_worker.conf +0 -19
  564. data/lib/generators/vulcanize/templates/resque/config/rubber/rubber-resque.yml +0 -18
  565. data/lib/generators/vulcanize/templates/resque/script/resque_worker_management.rb +0 -144
  566. data/lib/generators/vulcanize/templates/resque/templates.rb +0 -1
  567. data/lib/generators/vulcanize/templates/resque/templates.yml +0 -3
  568. data/lib/generators/vulcanize/templates/sphinx/config/rubber/deploy-sphinx.rb +0 -112
  569. data/lib/generators/vulcanize/templates/sphinx/config/rubber/role/sphinx/crontab +0 -11
  570. data/lib/generators/vulcanize/templates/sphinx/config/rubber/role/sphinx/monit-sphinx.conf +0 -13
  571. data/lib/generators/vulcanize/templates/sphinx/config/rubber/rubber-sphinx.yml +0 -6
  572. data/lib/generators/vulcanize/templates/sphinx/templates.yml +0 -1
  573. data/lib/generators/vulcanize/vulcanize_generator.rb +0 -184
  574. data/lib/rubber/tasks/rubber.rb +0 -281
@@ -1,30 +0,0 @@
1
- <%
2
- @path = "/etc/nginx/rubber/application.conf"
3
- %>
4
-
5
- server_name <%= [ rubber_env.domain, rubber_env.web_aliases ].flatten.compact.join(" ") %>;
6
- passenger_enabled on;
7
-
8
- passenger_min_instances 1;
9
-
10
- root <%= RUBBER_ROOT + "/public" %>;
11
-
12
- # this rewrites all the requests to the maintenance.html
13
- # page if it exists in the doc root. This is for capistrano's
14
- # disable web task
15
- if (-f $document_root/system/maintenance.html)
16
- {
17
- rewrite ^(.*)$ /system/maintenance.html last;
18
- break;
19
- }
20
-
21
- error_page 500 502 503 504 /500.html;
22
- location = /500.html
23
- {
24
- root <%= RUBBER_ROOT + "/public" %>;
25
- }
26
- error_page 404 /404.html;
27
- location = /404.html
28
- {
29
- root <%= RUBBER_ROOT + "/public" %>;
30
- }
@@ -1,65 +0,0 @@
1
- <%
2
- @path = "/etc/nginx/nginx.conf"
3
- @post = "mkdir -p /mnt/nginx/logs"
4
- %>
5
-
6
- user <%= rubber_env.app_user %>;
7
- worker_processes 4;
8
- worker_rlimit_nofile 10240;
9
-
10
- pid /var/run/nginx.pid;
11
-
12
- events
13
- {
14
- worker_connections 8192;
15
- }
16
-
17
- http
18
- {
19
- include /etc/nginx/mime.types;
20
- default_type application/octet-stream;
21
-
22
- sendfile on;
23
- tcp_nopush on;
24
- tcp_nodelay off;
25
-
26
- gzip on;
27
- gzip_http_version 1.0;
28
- gzip_comp_level 2;
29
- gzip_proxied any;
30
-
31
- gzip_types text/plain text/css application/json application/x-javascript text/xml application/xml application/xml+rss text/javascript image/x-icon image/x-ms-bmp image/svg+xml application/x-font-ttf font/opentype application/vnd.ms-fontobject;
32
-
33
- # make sure gzip does not lose large gzipped js or css files
34
- # see http://blog.leetsoft.com/2007/7/25/nginx-gzip-ssl
35
- gzip_buffers 16 8k;
36
-
37
- # configure log format like to Apache's "combined" log format
38
- log_format main
39
- '$remote_addr - $remote_user [$time_local] '
40
- '"$request" $status $body_bytes_sent "$http_referer" '
41
- '"$http_user_agent" "$http_cookie"';
42
-
43
- # default log files
44
- error_log /mnt/nginx/logs/error.log notice;
45
- access_log /mnt/nginx/logs/access.log main;
46
-
47
- passenger_root <%= rubber_env.passenger_root %>;
48
- passenger_ruby <%= rubber_env.passenger_ruby %>;
49
-
50
- passenger_max_pool_size <%= rubber_env.max_app_connections %>;
51
- passenger_min_instances <%= rubber_env.max_app_connections %>;
52
- passenger_max_instances_per_app 0;
53
- passenger_pool_idle_time 0;
54
- rails_framework_spawner_idle_time 0;
55
- rails_app_spawner_idle_time 0;
56
- rails_env <%= RUBBER_ENV %>;
57
- passenger_friendly_error_pages <%= RUBBER_ENV == 'production' ? 'off' : 'on' %>;
58
-
59
- passenger_user <%= rubber_env.app_user %>;
60
-
61
- include /etc/nginx/rubber/passenger_nginx.conf;
62
- <% if rubber_instances.for_role('web_tools').first %>
63
- include /etc/nginx/rubber/tools.conf;
64
- <% end %>
65
- }
@@ -1,34 +0,0 @@
1
- <%
2
- @path = "/var/www/index.html"
3
- %>
4
- <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
5
- <html>
6
- <head>
7
- <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
8
- <title>Rubber Admin Tools</title>
9
- </head>
10
- <body>
11
- <h1>Rubber Admin Tools</h1>
12
- <ul>
13
-
14
- <li><a href="/munin/">Munin</a></li>
15
-
16
- <% if cruise_host = rubber_instances.for_role('cruise').first %>
17
- <li><a href="http://<%= cruise_host %>/cruise/">CruiseControl</a></li>
18
- <% end %>
19
-
20
- <% rubber_instances.for_role('haproxy').sort {|a,b| a.name <=> b.name }.each do |ic| %>
21
- <li><a href="/haproxy_<%= ic.name %>/">HAProxy <%= ic.name %></a></li>
22
- <% end %>
23
-
24
- <% rubber_instances.sort {|a,b| a.name <=> b.name }.each do |ic| %>
25
- <li><a href="/monit_<%= ic.name %>/">Monit <%= ic.name %></a></li>
26
- <% end %>
27
-
28
- <% if resque_host = rubber_instances.for_role('resque_web').first %>
29
- <li><a href="/resque/">Resque</a></li>
30
- <% end %>
31
-
32
- </ul>
33
- </body>
34
- </html>
@@ -1,20 +0,0 @@
1
- passenger_version: 3.0.7
2
- nginx_version: 1.0.0
3
- passenger_root: "#{rvm_gem_home}/gems/passenger-#{passenger_version}"
4
- passenger_ruby: "#{rvm_prefix}/wrappers/#{`bash -l -c 'rvm strings #{rvm_ruby}'`.strip}/ruby"
5
- passenger_lib: "#{passenger_root}/ext/nginx"
6
- passenger_listen_port: 7000
7
- passenger_listen_ssl_port: 7001
8
- max_app_connections: 20
9
-
10
- use_ssl_key: false
11
- #if you use an ssl key, put your cert and key
12
- # in
13
- # #{RUBBER_ROOT}/config/#{rubber_env.domain} .crt and .key
14
- #otherwise defaults to key included with linux
15
-
16
-
17
- roles:
18
- passenger_nginx:
19
- packages: [libcurl4-openssl-dev]
20
- gems: [[passenger, "#{passenger_version}"]]
@@ -1,12 +0,0 @@
1
- <%
2
- @path = "#{RUBBER_ROOT}/config/database.yml"
3
- %>
4
-
5
- <%= RUBBER_ENV %>:
6
- adapter: postgresql
7
- encoding: unicode
8
- database: <%= rubber_env.db_name %>
9
- username: <%= rubber_env.db_user %>
10
- password: <%= rubber_env.db_pass %>
11
- host: <%= rubber_instances.for_role('db', 'primary' => true).first.full_name %>
12
- pool: 5
@@ -1,160 +0,0 @@
1
-
2
- namespace :rubber do
3
-
4
- namespace :postgresql do
5
-
6
- rubber.allow_optional_tasks(self)
7
-
8
- before "rubber:install_packages", "rubber:postgresql:setup_apt_sources"
9
-
10
- task :setup_apt_sources do
11
- rsudo "add-apt-repository ppa:pitti/postgresql"
12
- end
13
-
14
- after "rubber:create", "rubber:postgresql:validate_db_roles"
15
-
16
- task :validate_db_roles do
17
- db_instances = rubber_instances.for_role("postgresql_slave")
18
- db_instances.each do |instance|
19
- if instance.role_names.find {|n| n == 'postgresql_master'}
20
- fatal "Cannot have a postgresql slave and master on the same instance, please remove slave role for #{instance.name}"
21
- end
22
- end
23
- end
24
-
25
- after "rubber:bootstrap", "rubber:postgresql:bootstrap"
26
-
27
-
28
- # Bootstrap the production database config. Db bootstrap is special - the
29
- # user could be requiring the rails env inside some of their config
30
- # templates, which creates a catch 22 situation with the db, so we try and
31
- # bootstrap the db separate from the rest of the config
32
- task :bootstrap, :roles => [:postgresql_master, :postgresql_slave] do
33
-
34
- # Conditionally bootstrap for each node/role only if that node has not
35
- # been boostrapped for that role before
36
- master_instances = rubber_instances.for_role("postgresql_master") & rubber_instances.filtered
37
- master_instances.each do |ic|
38
- task_name = "_bootstrap_postgresql_master_#{ic.full_name}".to_sym()
39
- task task_name, :hosts => ic.full_name do
40
- env = rubber_cfg.environment.bind("postgresql_master", ic.name)
41
- exists = capture("echo $(ls #{env.postgresql_data_dir}/ 2> /dev/null)")
42
- if exists.strip.size == 0
43
- common_bootstrap("postgresql_master")
44
- sudo "/usr/lib/postgresql/#{rubber_env.postgresql_ver}/bin/initdb -D #{rubber_env.postgresql_data_dir}", :as => 'postgres'
45
- sudo "#{rubber_env.postgresql_ctl} start"
46
- sleep 5
47
-
48
- create_user_cmd = "CREATE USER #{env.db_user} WITH NOSUPERUSER CREATEDB NOCREATEROLE"
49
- create_user_cmd << "PASSWORD '#{env.db_pass}'" if env.db_pass
50
- rubber.sudo_script "create_master_db", <<-ENDSCRIPT
51
- sudo -u postgres psql -c "#{create_user_cmd}"
52
- sudo -u postgres psql -c "CREATE DATABASE #{env.db_name} WITH OWNER #{env.db_user}"
53
- sudo -u postgres createlang plpythonu #{env.db_name}
54
- ENDSCRIPT
55
- end
56
- end
57
- send task_name
58
- end
59
-
60
- slave_instances = rubber_instances.for_role("postgresql_slave") & rubber_instances.filtered
61
- slave_instances.each do |ic|
62
- task_name = "_bootstrap_postgresql_slave_#{ic.full_name}".to_sym()
63
- task task_name, :hosts => ic.full_name do
64
- env = rubber_cfg.environment.bind("postgresql_slave", ic.name)
65
- exists = capture("echo $(ls #{env.postgresql_data_dir}/ 2> /dev/null)")
66
- if exists.strip.size == 0
67
- common_bootstrap("postgresql_slave")
68
-
69
- source = master = rubber_instances.for_role("postgresql_master").first
70
-
71
- slave_pub_key = capture("cat /root/.ssh/id_dsa.pub")
72
- sudo "echo \"#{slave_pub_key}\" >> /root/.ssh/authorized_keys", :hosts => [master.full_name]
73
-
74
- base_backup_script = <<-ENDSCRIPT
75
- sudo -u postgres psql -c "SELECT pg_start_backup('rubber_create_slave')";
76
- rsync -a #{env.postgresql_data_dir}/* #{ic.full_name}:#{env.postgresql_data_dir}/ --exclude postmaster.pid --exclude recovery.* --exclude trigger_file;
77
- sudo -u postgres psql -c "SELECT pg_stop_backup()"
78
- ENDSCRIPT
79
-
80
- sudo base_backup_script, :hosts => [master.full_name]
81
-
82
- # Gen just the slave-specific conf.
83
- rubber.run_config(:RUBBER_ENV => RUBBER_ENV, :FILE => "role/postgresql_slave/", :FORCE => true, :deploy_path => release_path)
84
-
85
- # Start up the server.
86
- sudo "#{rubber_env.postgresql_ctl} start"
87
- sleep 5
88
- end
89
- end
90
-
91
- send task_name
92
- end
93
- end
94
-
95
- after "rubber:munin:custom_install", "rubber:postgresql:install_munin_plugins"
96
- after "rubber:postgresql:install_munin_plugins", "rubber:munin:restart"
97
- task :install_munin_plugins, :roles => [:postgresql_master, :postgresql_slave] do
98
- regular_plugins = %w[bgwriter checkpoints connections_db users xlog]
99
- parameterized_plugins = %w[cache connections locks querylength scans transactions tuples]
100
-
101
- commands = ['rm -f /etc/munin/plugins/postgres_*']
102
-
103
- regular_plugins.each do |name|
104
- commands << "ln -s /usr/share/munin/plugins/postgres_#{name} /etc/munin/plugins/postgres_#{name}"
105
- end
106
-
107
- parameterized_plugins.each do |name|
108
- commands << "ln -s /usr/share/munin/plugins/postgres_#{name}_ /etc/munin/plugins/postgres_#{name}_#{rubber_env.db_name}"
109
- end
110
-
111
- rubber.sudo_script "install_postgresql_munin_plugins", <<-ENDSCRIPT
112
- #{commands.join(';')}
113
- ENDSCRIPT
114
- end
115
-
116
- # TODO: Make the setup/update happen just once per host
117
- def common_bootstrap(role)
118
- # postgresql package install starts postgresql, so stop it
119
- rsudo "#{rubber_env.postgresql_ctl} stop" rescue nil
120
-
121
- # After everything installed on machines, we need the source tree
122
- # on hosts in order to run rubber:config for bootstrapping the db
123
- rubber.update_code_for_bootstrap
124
-
125
- # Gen just the conf for the given postgresql role
126
- rubber.run_config(:RUBBER_ENV => RUBBER_ENV, :FILE => "role/#{role}|role/db/", :FORCE => true, :deploy_path => release_path)
127
-
128
- # reconfigure postgresql so that it sets up data dir in /mnt with correct files
129
- dirs = [rubber_env.postgresql_data_dir, rubber_env.postgresql_archive_dir]
130
- sudo_script 'reconfigure-postgresql', <<-ENDSCRIPT
131
- mkdir -p #{dirs.join(' ')}
132
- chown -R postgres:postgres #{dirs.join(' ')}
133
- chmod 700 #{rubber_env.postgresql_data_dir}
134
- ENDSCRIPT
135
- end
136
-
137
- desc <<-DESC
138
- Starts the postgresql daemons
139
- DESC
140
- task :start, :roles => [:postgresql_master, :postgresql_slave] do
141
- rsudo "#{rubber_env.postgresql_ctl} start"
142
- end
143
-
144
- desc <<-DESC
145
- Stops the postgresql daemons
146
- DESC
147
- task :stop, :roles => [:postgresql_master, :postgresql_slave] do
148
- rsudo "#{rubber_env.postgresql_ctl} stop"
149
- end
150
-
151
- desc <<-DESC
152
- Restarts the postgresql daemons
153
- DESC
154
- task :restart, :roles => [:postgresql_master, :postgresql_slave] do
155
- rsudo "#{rubber_env.postgresql_ctl} restart"
156
- end
157
-
158
- end
159
-
160
- end
@@ -1,10 +0,0 @@
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
@@ -1,90 +0,0 @@
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 replication postgres 10.0.0.1/8 <%= scheme %>
90
- host all <%= rubber_env.db_user %> 10.0.0.1/8 <%= scheme %>
@@ -1,544 +0,0 @@
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 = off # advertise server via Bonjour
76
- # (change requires restart)
77
- #bonjour_name = '' # defaults to the computer name
78
- # (change requires restart)
79
-
80
- # - Security and Authentication -
81
-
82
- #authentication_timeout = 1min # 1s-600s
83
- #ssl = off # (change requires restart)
84
- #ssl_ciphers = 'ALL:!ADH:!LOW:!EXP:!MD5:@STRENGTH' # allowed SSL ciphers
85
- # (change requires restart)
86
- #ssl_renegotiation_limit = 512MB # amount of data between renegotiations
87
- #password_encryption = on
88
- #db_user_namespace = off
89
-
90
- # Kerberos and GSSAPI
91
- #krb_server_keyfile = ''
92
- #krb_srvname = 'postgres' # (Kerberos only)
93
- #krb_caseins_users = off
94
-
95
- # - TCP Keepalives -
96
- # see "man 7 tcp" for details
97
-
98
- #tcp_keepalives_idle = 0 # TCP_KEEPIDLE, in seconds;
99
- # 0 selects the system default
100
- #tcp_keepalives_interval = 0 # TCP_KEEPINTVL, in seconds;
101
- # 0 selects the system default
102
- #tcp_keepalives_count = 0 # TCP_KEEPCNT;
103
- # 0 selects the system default
104
-
105
-
106
- #------------------------------------------------------------------------------
107
- # RESOURCE USAGE (except WAL)
108
- #------------------------------------------------------------------------------
109
-
110
- # - Memory -
111
-
112
- shared_buffers = 384MB # min 128kB
113
- # (change requires restart)
114
- #temp_buffers = 8MB # min 800kB
115
- #max_prepared_transactions = 0 # zero disables the feature
116
- # (change requires restart)
117
- # Note: Increasing max_prepared_transactions costs ~600 bytes of shared memory
118
- # per transaction slot, plus lock space (see max_locks_per_transaction).
119
- # It is not advisable to set max_prepared_transactions nonzero unless you
120
- # actively intend to use prepared transactions.
121
- #work_mem = 1MB # min 64kB
122
- #maintenance_work_mem = 16MB # min 1MB
123
- #max_stack_depth = 2MB # min 100kB
124
-
125
- # - Kernel Resource Usage -
126
-
127
- #max_files_per_process = 1000 # min 25
128
- # (change requires restart)
129
- #shared_preload_libraries = '' # (change requires restart)
130
-
131
- # - Cost-Based Vacuum Delay -
132
-
133
- #vacuum_cost_delay = 0ms # 0-100 milliseconds
134
- #vacuum_cost_page_hit = 1 # 0-10000 credits
135
- #vacuum_cost_page_miss = 10 # 0-10000 credits
136
- #vacuum_cost_page_dirty = 20 # 0-10000 credits
137
- #vacuum_cost_limit = 200 # 1-10000 credits
138
-
139
- # - Background Writer -
140
-
141
- #bgwriter_delay = 200ms # 10-10000ms between rounds
142
- #bgwriter_lru_maxpages = 100 # 0-1000 max buffers written/round
143
- #bgwriter_lru_multiplier = 2.0 # 0-10.0 multipler on buffers scanned/round
144
-
145
- # - Asynchronous Behavior -
146
-
147
- #effective_io_concurrency = 1 # 1-1000. 0 disables prefetching
148
-
149
-
150
- #------------------------------------------------------------------------------
151
- # WRITE AHEAD LOG
152
- #------------------------------------------------------------------------------
153
-
154
- # - Settings -
155
-
156
- wal_level = hot_standby # minimal, archive, or hot_standby
157
- # (change requires restart)
158
- #fsync = on # turns forced synchronization on or off
159
- #synchronous_commit = on # immediate fsync at commit
160
- #wal_sync_method = fsync # the default is the first option
161
- # supported by the operating system:
162
- # open_datasync
163
- # fdatasync
164
- # fsync
165
- # fsync_writethrough
166
- # open_sync
167
- #full_page_writes = on # recover from partial page writes
168
- #wal_buffers = 64kB # min 32kB
169
- # (change requires restart)
170
- #wal_writer_delay = 200ms # 1-10000 milliseconds
171
-
172
- #commit_delay = 0 # range 0-100000, in microseconds
173
- #commit_siblings = 5 # range 1-1000
174
-
175
- # - Checkpoints -
176
-
177
- #checkpoint_segments = 3 # in logfile segments, min 1, 16MB each
178
- #checkpoint_timeout = 5min # range 30s-1h
179
- #checkpoint_completion_target = 0.5 # checkpoint target duration, 0.0 - 1.0
180
- #checkpoint_warning = 30s # 0 disables
181
-
182
- # - Archiving -
183
-
184
- #archive_mode = off # allows archiving to be done
185
- # (change requires restart)
186
- #archive_command = '' # command to use to archive a logfile segment
187
- #archive_timeout = 0 # force a logfile segment switch after this
188
- # number of seconds; 0 disables
189
-
190
- <%- if rubber_instances[rubber_env.host].role_names.include?('postgresql_master') %>
191
- # - Streaming Replication -
192
-
193
- # Set the maximum number of concurrent connections from the standby servers.
194
- max_wal_senders = 5 # max number of walsender processes
195
- # (change requires restart)
196
- #wal_sender_delay = 200ms # walsender cycle time, 1-10000 milliseconds
197
-
198
- # To prevent the primary server from removing the WAL segments required for
199
- # the standby server before shipping them, set the minimum number of segments
200
- # retained in the pg_xlog directory. At least wal_keep_segments should be
201
- # larger than the number of segments generated between the beginning of
202
- # online-backup and the startup of streaming replication. If you enable WAL
203
- # archiving to an archive directory accessible from the standby, this may
204
- # not be necessary.
205
- wal_keep_segments = 128 # in logfile segments, 16MB each -- 128 = 2GB; 0 disables
206
- #vacuum_defer_cleanup_age = 0 # number of xacts by which cleanup is delayed
207
- <%- end %>
208
-
209
- <%- if rubber_instances[rubber_env.host].role_names.include?('postgresql_slave') %>
210
- # - Standby Servers -
211
-
212
- hot_standby = on # "on" allows queries during recovery
213
- # (change requires restart)
214
- #max_standby_archive_delay = 30s # max delay before canceling queries
215
- # when reading WAL from archive;
216
- # -1 allows indefinite delay
217
- max_standby_streaming_delay = 30min # max delay before canceling queries
218
- # when reading streaming WAL;
219
- # -1 allows indefinite delay
220
- <%- end %>
221
-
222
-
223
- #------------------------------------------------------------------------------
224
- # QUERY TUNING
225
- #------------------------------------------------------------------------------
226
-
227
- # - Planner Method Configuration -
228
-
229
- #enable_bitmapscan = on
230
- #enable_hashagg = on
231
- #enable_hashjoin = on
232
- #enable_indexscan = on
233
- #enable_material = on
234
- #enable_mergejoin = on
235
- #enable_nestloop = on
236
- #enable_seqscan = on
237
- #enable_sort = on
238
- #enable_tidscan = on
239
-
240
- # - Planner Cost Constants -
241
-
242
- #seq_page_cost = 1.0 # measured on an arbitrary scale
243
- #random_page_cost = 4.0 # same scale as above
244
- #cpu_tuple_cost = 0.01 # same scale as above
245
- #cpu_index_tuple_cost = 0.005 # same scale as above
246
- #cpu_operator_cost = 0.0025 # same scale as above
247
- #effective_cache_size = 128MB
248
-
249
- # - Genetic Query Optimizer -
250
-
251
- #geqo = on
252
- #geqo_threshold = 12
253
- #geqo_effort = 5 # range 1-10
254
- #geqo_pool_size = 0 # selects default based on effort
255
- #geqo_generations = 0 # selects default based on effort
256
- #geqo_selection_bias = 2.0 # range 1.5-2.0
257
- #geqo_seed = 0.0 # range 0.0-1.0
258
-
259
- # - Other Planner Options -
260
-
261
- #default_statistics_target = 100 # range 1-10000
262
- #constraint_exclusion = partition # on, off, or partition
263
- #cursor_tuple_fraction = 0.1 # range 0.0-1.0
264
- #from_collapse_limit = 8
265
- #join_collapse_limit = 8 # 1 disables collapsing of explicit
266
- # JOIN clauses
267
-
268
-
269
- #------------------------------------------------------------------------------
270
- # ERROR REPORTING AND LOGGING
271
- #------------------------------------------------------------------------------
272
-
273
- # - Where to Log -
274
-
275
- #log_destination = 'stderr' # Valid values are combinations of
276
- # stderr, csvlog, syslog, and eventlog,
277
- # depending on platform. csvlog
278
- # requires logging_collector to be on.
279
-
280
- # This is used when logging to stderr:
281
- #logging_collector = off # Enable capturing of stderr and csvlog
282
- # into log files. Required to be on for
283
- # csvlogs.
284
- # (change requires restart)
285
-
286
- # These are only used if logging_collector is on:
287
- #log_directory = 'pg_log' # directory where log files are written,
288
- # can be absolute or relative to PGDATA
289
- #log_filename = 'postgresql-%Y-%m-%d_%H%M%S.log' # log file name pattern,
290
- # can include strftime() escapes
291
- #log_truncate_on_rotation = off # If on, an existing log file of the
292
- # same name as the new log file will be
293
- # truncated rather than appended to.
294
- # But such truncation only occurs on
295
- # time-driven rotation, not on restarts
296
- # or size-driven rotation. Default is
297
- # off, meaning append to existing files
298
- # in all cases.
299
- #log_rotation_age = 1d # Automatic rotation of logfiles will
300
- # happen after that time. 0 disables.
301
- #log_rotation_size = 10MB # Automatic rotation of logfiles will
302
- # happen after that much log output.
303
- # 0 disables.
304
-
305
- # These are relevant when logging to syslog:
306
- #syslog_facility = 'LOCAL0'
307
- #syslog_ident = 'postgres'
308
-
309
- #silent_mode = off # Run server silently.
310
- # DO NOT USE without syslog or
311
- # logging_collector
312
- # (change requires restart)
313
-
314
-
315
- # - When to Log -
316
-
317
- #client_min_messages = notice # values in order of decreasing detail:
318
- # debug5
319
- # debug4
320
- # debug3
321
- # debug2
322
- # debug1
323
- # log
324
- # notice
325
- # warning
326
- # error
327
-
328
- #log_min_messages = warning # values in order of decreasing detail:
329
- # debug5
330
- # debug4
331
- # debug3
332
- # debug2
333
- # debug1
334
- # info
335
- # notice
336
- # warning
337
- # error
338
- # log
339
- # fatal
340
- # panic
341
-
342
- #log_min_error_statement = error # values in order of decreasing detail:
343
- # debug5
344
- # debug4
345
- # debug3
346
- # debug2
347
- # debug1
348
- # info
349
- # notice
350
- # warning
351
- # error
352
- # log
353
- # fatal
354
- # panic (effectively off)
355
-
356
- log_min_duration_statement = 200 # -1 is disabled, 0 logs all statements
357
- # and their durations, > 0 logs only
358
- # statements running at least this number
359
- # of milliseconds
360
-
361
-
362
- # - What to Log -
363
-
364
- #debug_print_parse = off
365
- #debug_print_rewritten = off
366
- #debug_print_plan = off
367
- #debug_pretty_print = on
368
- #log_checkpoints = off
369
- #log_connections = off
370
- #log_disconnections = off
371
- #log_duration = off
372
- #log_error_verbosity = default # terse, default, or verbose messages
373
- #log_hostname = off
374
- log_line_prefix = '%t' # special values:
375
- # %a = application name
376
- # %u = user name
377
- # %d = database name
378
- # %r = remote host and port
379
- # %h = remote host
380
- # %p = process ID
381
- # %t = timestamp without milliseconds
382
- # %m = timestamp with milliseconds
383
- # %i = command tag
384
- # %e = SQL state
385
- # %c = session ID
386
- # %l = session line number
387
- # %s = session start timestamp
388
- # %v = virtual transaction ID
389
- # %x = transaction ID (0 if none)
390
- # %q = stop here in non-session
391
- # processes
392
- # %% = '%'
393
- # e.g. '<%u%%%d> '
394
- #log_lock_waits = off # log lock waits >= deadlock_timeout
395
- #log_statement = 'none' # none, ddl, mod, all
396
- #log_temp_files = -1 # log temporary files equal or larger
397
- # than the specified size in kilobytes;
398
- # -1 disables, 0 logs all temp files
399
- #log_timezone = unknown # actually, defaults to TZ environment
400
- # setting
401
-
402
-
403
- #------------------------------------------------------------------------------
404
- # RUNTIME STATISTICS
405
- #------------------------------------------------------------------------------
406
-
407
- # - Query/Index Statistics Collector -
408
-
409
- #track_activities = on
410
- track_counts = on
411
- #track_functions = none # none, pl, all
412
- #track_activity_query_size = 1024 # (change requires restart)
413
- #update_process_title = on
414
- #stats_temp_directory = 'pg_stat_tmp'
415
-
416
-
417
- # - Statistics Monitoring -
418
-
419
- #log_parser_stats = off
420
- #log_planner_stats = off
421
- #log_executor_stats = off
422
- #log_statement_stats = off
423
-
424
-
425
- #------------------------------------------------------------------------------
426
- # AUTOVACUUM PARAMETERS
427
- #------------------------------------------------------------------------------
428
-
429
- autovacuum = on # Enable autovacuum subprocess? 'on'
430
- # requires track_counts to also be on.
431
- #log_autovacuum_min_duration = -1 # -1 disables, 0 logs all actions and
432
- # their durations, > 0 logs only
433
- # actions running at least this number
434
- # of milliseconds.
435
- #autovacuum_max_workers = 3 # max number of autovacuum subprocesses
436
- # (change requires restart)
437
- #autovacuum_naptime = 1min # time between autovacuum runs
438
- #autovacuum_vacuum_threshold = 50 # min number of row updates before
439
- # vacuum
440
- #autovacuum_analyze_threshold = 50 # min number of row updates before
441
- # analyze
442
- #autovacuum_vacuum_scale_factor = 0.2 # fraction of table size before vacuum
443
- #autovacuum_analyze_scale_factor = 0.1 # fraction of table size before analyze
444
- #autovacuum_freeze_max_age = 200000000 # maximum XID age before forced vacuum
445
- # (change requires restart)
446
- #autovacuum_vacuum_cost_delay = 20ms # default vacuum cost delay for
447
- # autovacuum, in milliseconds;
448
- # -1 means use vacuum_cost_delay
449
- #autovacuum_vacuum_cost_limit = -1 # default vacuum cost limit for
450
- # autovacuum, -1 means use
451
- # vacuum_cost_limit
452
-
453
-
454
- #------------------------------------------------------------------------------
455
- # CLIENT CONNECTION DEFAULTS
456
- #------------------------------------------------------------------------------
457
-
458
- # - Statement Behavior -
459
-
460
- #search_path = '"$user",public' # schema names
461
- #default_tablespace = '' # a tablespace name, '' uses the default
462
- #temp_tablespaces = '' # a list of tablespace names, '' uses
463
- # only default tablespace
464
- #check_function_bodies = on
465
- #default_transaction_isolation = 'read committed'
466
- #default_transaction_read_only = off
467
- #session_replication_role = 'origin'
468
- #statement_timeout = 0 # in milliseconds, 0 is disabled
469
- #vacuum_freeze_min_age = 50000000
470
- #vacuum_freeze_table_age = 150000000
471
- #bytea_output = 'hex' # hex, escape
472
- #xmlbinary = 'base64'
473
- #xmloption = 'content'
474
-
475
- # - Locale and Formatting -
476
-
477
- datestyle = 'iso, mdy'
478
- #intervalstyle = 'postgres'
479
- #timezone = unknown # actually, defaults to TZ environment
480
- # setting
481
- #timezone_abbreviations = 'Default' # Select the set of available time zone
482
- # abbreviations. Currently, there are
483
- # Default
484
- # Australia
485
- # India
486
- # You can create your own file in
487
- # share/timezonesets/.
488
- #extra_float_digits = 0 # min -15, max 3
489
- #client_encoding = sql_ascii # actually, defaults to database
490
- # encoding
491
-
492
- # These settings are initialized by initdb, but they can be changed.
493
- lc_messages = 'en_US.UTF-8' # locale for system error message
494
- # strings
495
- lc_monetary = 'en_US.UTF-8' # locale for monetary formatting
496
- lc_numeric = 'en_US.UTF-8' # locale for number formatting
497
- lc_time = 'en_US.UTF-8' # locale for time formatting
498
-
499
- # default configuration for text search
500
- default_text_search_config = 'pg_catalog.english'
501
-
502
- # - Other Defaults -
503
-
504
- #dynamic_library_path = '$libdir'
505
- #local_preload_libraries = ''
506
-
507
-
508
- #------------------------------------------------------------------------------
509
- # LOCK MANAGEMENT
510
- #------------------------------------------------------------------------------
511
-
512
- #deadlock_timeout = 1s
513
- #max_locks_per_transaction = 64 # min 10
514
- # (change requires restart)
515
- # Note: Each lock table slot uses ~270 bytes of shared memory, and there are
516
- # max_locks_per_transaction * (max_connections + max_prepared_transactions)
517
- # lock table slots.
518
-
519
-
520
- #------------------------------------------------------------------------------
521
- # VERSION/PLATFORM COMPATIBILITY
522
- #------------------------------------------------------------------------------
523
-
524
- # - Previous PostgreSQL Versions -
525
-
526
- #array_nulls = on
527
- #backslash_quote = safe_encoding # on, off, or safe_encoding
528
- #default_with_oids = off
529
- #escape_string_warning = on
530
- #lo_compat_privileges = off
531
- #sql_inheritance = on
532
- #standard_conforming_strings = off
533
- #synchronize_seqscans = on
534
-
535
- # - Other Platforms and Clients -
536
-
537
- #transform_null_equals = off
538
-
539
-
540
- #------------------------------------------------------------------------------
541
- # CUSTOMIZED OPTIONS
542
- #------------------------------------------------------------------------------
543
-
544
- #custom_variable_classes = '' # list of custom variable class names