nirvdrum-rubber 1.1.7 → 2.0.0.rails3.beta6

Sign up to get free protection for your applications and to get access to all the features.
Files changed (291) hide show
  1. data/CHANGELOG +82 -0
  2. data/VERSION +1 -1
  3. data/bin/vulcanize +10 -33
  4. data/generators/vulcanize/templates/apache/config/rubber/deploy-apache.rb +6 -6
  5. data/generators/vulcanize/templates/apache/config/rubber/role/apache/monit-apache.conf +2 -2
  6. data/generators/vulcanize/templates/apache/config/rubber/role/apache/ports.conf +3 -0
  7. data/generators/vulcanize/templates/apache/config/rubber/role/web_tools/tools-apache-vhost.conf +29 -16
  8. data/generators/vulcanize/templates/apache/config/rubber/role/web_tools/tools-index.html +1 -1
  9. data/generators/vulcanize/templates/base/Rakefile +19 -0
  10. data/generators/vulcanize/templates/base/config/rubber/common/crontab +6 -1
  11. data/generators/vulcanize/templates/base/config/rubber/common/monit-postfix.conf +2 -2
  12. data/generators/vulcanize/templates/base/config/rubber/common/rubber.profile +3 -4
  13. data/generators/vulcanize/templates/base/config/rubber/deploy-setup.rb +28 -49
  14. data/generators/vulcanize/templates/base/config/rubber/deploy-util.rb +97 -0
  15. data/generators/vulcanize/templates/base/config/rubber/rubber-dns.yml +0 -1
  16. data/generators/vulcanize/templates/base/config/rubber/rubber-rvm.yml +25 -0
  17. data/generators/vulcanize/templates/base/config/rubber/rubber.yml +21 -13
  18. data/generators/vulcanize/templates/base/script/cron-runner +1 -1
  19. data/generators/vulcanize/templates/base/templates.rb +1 -0
  20. data/generators/vulcanize/templates/base/templates.yml +5 -0
  21. data/generators/vulcanize/templates/cassandra/config/rubber/deploy-cassandra.rb +88 -0
  22. data/generators/vulcanize/templates/cassandra/config/rubber/role/cassandra/cassandra.in.sh +58 -0
  23. data/generators/vulcanize/templates/cassandra/config/rubber/role/cassandra/cassandra.yaml +210 -0
  24. data/generators/vulcanize/templates/cassandra/config/rubber/role/cassandra/log4j-server.properties +45 -0
  25. data/generators/vulcanize/templates/cassandra/config/rubber/role/cassandra/monit-cassandra.conf +8 -0
  26. data/generators/vulcanize/templates/cassandra/config/rubber/rubber-cassandra.yml +18 -0
  27. data/generators/vulcanize/templates/cassandra/templates.yml +1 -0
  28. data/generators/vulcanize/templates/complete_mongrel_mysql/config/rubber/role/haproxy/haproxy-mongrel.conf +2 -2
  29. data/generators/vulcanize/templates/{complete_passenger_mysql → complete_passenger}/config/rubber/role/haproxy/haproxy-passenger.conf +2 -2
  30. data/generators/vulcanize/templates/complete_passenger/templates.rb +9 -0
  31. data/generators/vulcanize/templates/complete_passenger/templates.yml +9 -0
  32. data/generators/vulcanize/templates/complete_passenger_mysql/templates.yml +1 -7
  33. data/generators/vulcanize/templates/complete_passenger_postgresql/templates.yml +4 -0
  34. data/generators/vulcanize/templates/cruise/config/rubber/deploy-cruise.rb +3 -3
  35. data/generators/vulcanize/templates/cruise/config/rubber/role/cruise/my.cnf +1 -1
  36. data/generators/vulcanize/templates/haproxy/config/rubber/deploy-haproxy.rb +5 -5
  37. data/generators/vulcanize/templates/haproxy/config/rubber/role/haproxy/monit-haproxy.conf +2 -2
  38. data/generators/vulcanize/templates/haproxy/config/rubber/role/haproxy/syslog-haproxy.conf +8 -3
  39. data/generators/vulcanize/templates/haproxy/config/rubber/role/haproxy/syslogd-default.conf +4 -0
  40. data/generators/vulcanize/templates/jetty/config/rubber/deploy-jetty.rb +5 -5
  41. data/generators/vulcanize/templates/memcached/config/rubber/role/memcached/memcached.conf +1 -1
  42. data/generators/vulcanize/templates/mongrel/config/rubber/deploy-mongrel.rb +4 -4
  43. data/generators/vulcanize/templates/monit/config/rubber/common/monit.conf +2 -1
  44. data/generators/vulcanize/templates/monit/config/rubber/deploy-monit.rb +5 -4
  45. data/generators/vulcanize/templates/munin/config/rubber/common/monit-munin.conf +2 -2
  46. data/generators/vulcanize/templates/munin/config/rubber/common/munin-node.conf +1 -1
  47. data/generators/vulcanize/templates/munin/config/rubber/common/munin-plugins.conf +4 -2
  48. data/generators/vulcanize/templates/munin/config/rubber/deploy-munin.rb +5 -5
  49. data/generators/vulcanize/templates/munin/config/rubber/role/web_tools/munin-plugins.conf +1 -1
  50. data/generators/vulcanize/templates/munin/config/rubber/role/web_tools/munin.conf +1 -0
  51. data/generators/vulcanize/templates/munin/config/rubber/rubber-munin.yml +1 -1
  52. data/generators/vulcanize/templates/munin/script/munin/example_mysql_query.rb +6 -8
  53. data/generators/vulcanize/templates/mysql/config/rubber/common/database.yml +1 -0
  54. data/generators/vulcanize/templates/mysql/config/rubber/deploy-mysql.rb +40 -27
  55. data/generators/vulcanize/templates/mysql/config/rubber/role/db/apparmor-mysql.conf +46 -0
  56. data/generators/vulcanize/templates/mysql/config/rubber/role/db/monit-mysql.cnf +2 -2
  57. data/generators/vulcanize/templates/mysql/config/rubber/role/db/my.cnf +2 -6
  58. data/generators/vulcanize/templates/mysql/config/rubber/rubber-mysql.yml +2 -1
  59. data/generators/vulcanize/templates/mysql_cluster/config/rubber/deploy-mysql_cluster.rb +19 -15
  60. data/generators/vulcanize/templates/mysql_cluster/config/rubber/role/mysql_sql/monit-mysql_cluster_sql.cnf +2 -2
  61. data/generators/vulcanize/templates/mysql_proxy/config/rubber/common/monit-mysql_proxy.cnf +2 -2
  62. data/generators/vulcanize/templates/mysql_proxy/config/rubber/deploy-mysql_proxy.rb +3 -3
  63. data/generators/vulcanize/templates/nginx/config/rubber/deploy-nginx.rb +5 -5
  64. data/generators/vulcanize/templates/nginx/config/rubber/role/nginx/monit-nginx.conf +2 -2
  65. data/generators/vulcanize/templates/passenger/config/rubber/deploy-passenger.rb +10 -1
  66. data/generators/vulcanize/templates/passenger/config/rubber/role/passenger/munin-passenger-memory.conf +1 -1
  67. data/generators/vulcanize/templates/passenger/config/rubber/role/passenger/munin-passenger-sudoers.conf +2 -2
  68. data/generators/vulcanize/templates/passenger/config/rubber/role/passenger/munin-passenger.conf +1 -1
  69. data/generators/vulcanize/templates/passenger/config/rubber/role/passenger/passenger.conf +28 -3
  70. data/generators/vulcanize/templates/passenger/config/rubber/rubber-passenger.yml +3 -3
  71. data/generators/vulcanize/templates/postgresql/config/rubber/common/database.yml +12 -0
  72. data/generators/vulcanize/templates/postgresql/config/rubber/deploy-postgresql.rb +131 -0
  73. data/generators/vulcanize/templates/postgresql/config/rubber/role/db/crontab +14 -0
  74. data/generators/vulcanize/templates/postgresql/config/rubber/role/db/monit-postgresql.conf +10 -0
  75. data/generators/vulcanize/templates/postgresql/config/rubber/role/db/pg_hba.conf +89 -0
  76. data/generators/vulcanize/templates/postgresql/config/rubber/role/db/postgresql-sysctl.conf +6 -0
  77. data/generators/vulcanize/templates/postgresql/config/rubber/role/db/postgresql.conf +504 -0
  78. data/generators/vulcanize/templates/postgresql/config/rubber/rubber-postgresql.yml +45 -0
  79. data/generators/vulcanize/templates/postgresql/templates.yml +1 -0
  80. data/generators/vulcanize/templates/redis/config/rubber/deploy-redis.rb +8 -7
  81. data/generators/vulcanize/templates/resque/config/initializers/resque.rb +15 -0
  82. data/generators/vulcanize/templates/resque/config/rubber/common/resque.yml +5 -0
  83. data/generators/vulcanize/templates/resque/config/rubber/deploy-resque.rb +46 -27
  84. data/generators/vulcanize/templates/resque/config/rubber/role/resque_web/monit-resque_web.conf +14 -0
  85. data/generators/vulcanize/templates/resque/config/rubber/role/resque_worker/monit-resque_worker.conf +19 -0
  86. data/generators/vulcanize/templates/resque/config/rubber/rubber-resque.yml +14 -6
  87. data/generators/vulcanize/templates/resque/script/resque_worker_management.rb +112 -0
  88. data/generators/vulcanize/templates/resque/templates.rb +1 -0
  89. data/generators/vulcanize/templates/sphinx/config/rubber/deploy-sphinx.rb +8 -8
  90. data/generators/vulcanize/templates/sphinx/config/rubber/role/sphinx/monit-sphinx.conf +7 -4
  91. data/generators/vulcanize/vulcanize_generator.rb +139 -49
  92. data/lib/generators/vulcanize/USAGE +6 -0
  93. data/lib/generators/vulcanize/templates/apache/config/rubber/deploy-apache.rb +51 -0
  94. data/lib/generators/vulcanize/templates/apache/config/rubber/role/apache/deflate.conf +10 -0
  95. data/lib/generators/vulcanize/templates/apache/config/rubber/role/apache/expires.conf +9 -0
  96. data/lib/generators/vulcanize/templates/apache/config/rubber/role/apache/headers.conf +6 -0
  97. data/lib/generators/vulcanize/templates/apache/config/rubber/role/apache/monit-apache.conf +8 -0
  98. data/lib/generators/vulcanize/templates/apache/config/rubber/role/apache/ports.conf +8 -0
  99. data/lib/generators/vulcanize/templates/apache/config/rubber/role/apache/setenvif.conf +52 -0
  100. data/lib/generators/vulcanize/templates/apache/config/rubber/role/web_tools/tools-apache-vhost.conf +79 -0
  101. data/lib/generators/vulcanize/templates/apache/config/rubber/role/web_tools/tools-apache.auth +7 -0
  102. data/lib/generators/vulcanize/templates/apache/config/rubber/role/web_tools/tools-index.html +34 -0
  103. data/lib/generators/vulcanize/templates/apache/config/rubber/rubber-apache.yml +6 -0
  104. data/lib/generators/vulcanize/templates/apache/templates.yml +1 -0
  105. data/lib/generators/vulcanize/templates/base/Capfile +14 -0
  106. data/lib/generators/vulcanize/templates/base/Rakefile +19 -0
  107. data/lib/generators/vulcanize/templates/base/config/deploy.rb +55 -0
  108. data/lib/generators/vulcanize/templates/base/config/rubber/common/crontab +22 -0
  109. data/lib/generators/vulcanize/templates/base/config/rubber/common/monit-postfix.conf +8 -0
  110. data/lib/generators/vulcanize/templates/base/config/rubber/common/rubber.profile +13 -0
  111. data/lib/generators/vulcanize/templates/base/config/rubber/deploy-setup.rb +63 -0
  112. data/lib/generators/vulcanize/templates/base/config/rubber/deploy-util.rb +97 -0
  113. data/lib/generators/vulcanize/templates/base/config/rubber/rubber-dns.yml +78 -0
  114. data/lib/generators/vulcanize/templates/base/config/rubber/rubber-rvm.yml +25 -0
  115. data/lib/generators/vulcanize/templates/base/config/rubber/rubber.yml +235 -0
  116. data/lib/generators/vulcanize/templates/base/lib/tasks/rubber.rake +15 -0
  117. data/lib/generators/vulcanize/templates/base/script/cron-rake +18 -0
  118. data/lib/generators/vulcanize/templates/base/script/cron-runner +18 -0
  119. data/lib/generators/vulcanize/templates/base/script/cron-sh +67 -0
  120. data/lib/generators/vulcanize/templates/base/templates.rb +1 -0
  121. data/lib/generators/vulcanize/templates/base/templates.yml +6 -0
  122. data/lib/generators/vulcanize/templates/cassandra/config/rubber/deploy-cassandra.rb +88 -0
  123. data/lib/generators/vulcanize/templates/cassandra/config/rubber/role/cassandra/cassandra.in.sh +58 -0
  124. data/lib/generators/vulcanize/templates/cassandra/config/rubber/role/cassandra/cassandra.yaml +210 -0
  125. data/lib/generators/vulcanize/templates/cassandra/config/rubber/role/cassandra/log4j-server.properties +45 -0
  126. data/lib/generators/vulcanize/templates/cassandra/config/rubber/role/cassandra/monit-cassandra.conf +8 -0
  127. data/lib/generators/vulcanize/templates/cassandra/config/rubber/rubber-cassandra.yml +18 -0
  128. data/lib/generators/vulcanize/templates/cassandra/templates.yml +1 -0
  129. data/lib/generators/vulcanize/templates/complete_mongrel_mysql/config/rubber/role/haproxy/haproxy-mongrel.conf +23 -0
  130. data/lib/generators/vulcanize/templates/complete_mongrel_mysql/config/rubber/role/nginx/nginx-mongrel.conf +113 -0
  131. data/lib/generators/vulcanize/templates/complete_mongrel_mysql/config/rubber/rubber-complete.yml +41 -0
  132. data/lib/generators/vulcanize/templates/complete_mongrel_mysql/templates.yml +6 -0
  133. data/lib/generators/vulcanize/templates/complete_passenger/config/rubber/role/haproxy/haproxy-passenger.conf +21 -0
  134. data/lib/generators/vulcanize/templates/complete_passenger/config/rubber/rubber-complete.yml +40 -0
  135. data/lib/generators/vulcanize/templates/complete_passenger/templates.rb +9 -0
  136. data/lib/generators/vulcanize/templates/complete_passenger/templates.yml +9 -0
  137. data/lib/generators/vulcanize/templates/complete_passenger_mysql/templates.yml +4 -0
  138. data/lib/generators/vulcanize/templates/complete_passenger_postgresql/templates.yml +4 -0
  139. data/lib/generators/vulcanize/templates/cruise/config/rubber/deploy-cruise.rb +72 -0
  140. data/lib/generators/vulcanize/templates/cruise/config/rubber/role/cruise/cruise +40 -0
  141. data/lib/generators/vulcanize/templates/cruise/config/rubber/role/cruise/my.cnf +165 -0
  142. data/lib/generators/vulcanize/templates/cruise/config/rubber/role/cruise/production.rb +8 -0
  143. data/lib/generators/vulcanize/templates/cruise/config/rubber/role/cruise/site_config.rb +76 -0
  144. data/lib/generators/vulcanize/templates/cruise/config/rubber/role/web_tools/cruise-nginx.conf +11 -0
  145. data/lib/generators/vulcanize/templates/cruise/config/rubber/rubber-cruise.yml +18 -0
  146. data/lib/generators/vulcanize/templates/cruise/templates.yml +1 -0
  147. data/lib/generators/vulcanize/templates/haproxy/config/rubber/deploy-haproxy.rb +45 -0
  148. data/lib/generators/vulcanize/templates/haproxy/config/rubber/role/haproxy/haproxy-base.conf +26 -0
  149. data/lib/generators/vulcanize/templates/haproxy/config/rubber/role/haproxy/haproxy-default.conf +8 -0
  150. data/lib/generators/vulcanize/templates/haproxy/config/rubber/role/haproxy/monit-haproxy.conf +9 -0
  151. data/lib/generators/vulcanize/templates/haproxy/config/rubber/role/haproxy/syslog-haproxy.conf +11 -0
  152. data/lib/generators/vulcanize/templates/haproxy/config/rubber/role/haproxy/syslogd-default.conf +21 -0
  153. data/lib/generators/vulcanize/templates/haproxy/config/rubber/role/web_tools/haproxy-nginx.conf +10 -0
  154. data/lib/generators/vulcanize/templates/haproxy/config/rubber/rubber-haproxy.yml +7 -0
  155. data/lib/generators/vulcanize/templates/haproxy/templates.yml +1 -0
  156. data/lib/generators/vulcanize/templates/jetty/config/rubber/deploy-jetty.rb +59 -0
  157. data/lib/generators/vulcanize/templates/jetty/config/rubber/role/jetty/jetty.sh +589 -0
  158. data/lib/generators/vulcanize/templates/jetty/config/rubber/role/jetty/jetty.xml +199 -0
  159. data/lib/generators/vulcanize/templates/jetty/config/rubber/role/jetty/monit-jetty.conf +9 -0
  160. data/lib/generators/vulcanize/templates/jetty/config/rubber/rubber-jetty.yml +10 -0
  161. data/lib/generators/vulcanize/templates/jetty/templates.yml +1 -0
  162. data/lib/generators/vulcanize/templates/memcached/config/memcached.yml +28 -0
  163. data/lib/generators/vulcanize/templates/memcached/config/rubber/common/memcached.yml +14 -0
  164. data/lib/generators/vulcanize/templates/memcached/config/rubber/role/memcached/memcached.conf +52 -0
  165. data/lib/generators/vulcanize/templates/memcached/config/rubber/role/memcached/memcached_munin_plugin +249 -0
  166. data/lib/generators/vulcanize/templates/memcached/config/rubber/rubber-memcached.yml +7 -0
  167. data/lib/generators/vulcanize/templates/memcached/templates.yml +1 -0
  168. data/lib/generators/vulcanize/templates/minimal_mysql/templates.yml +7 -0
  169. data/lib/generators/vulcanize/templates/minimal_nodb/templates.yml +6 -0
  170. data/lib/generators/vulcanize/templates/mongrel/config/rubber/deploy-mongrel.rb +75 -0
  171. data/lib/generators/vulcanize/templates/mongrel/config/rubber/role/mongrel/mongrel_cluster.yml +12 -0
  172. data/lib/generators/vulcanize/templates/mongrel/config/rubber/role/mongrel/monit-mongrel.conf +20 -0
  173. data/lib/generators/vulcanize/templates/mongrel/config/rubber/rubber-mongrel.yml +9 -0
  174. data/lib/generators/vulcanize/templates/mongrel/templates.yml +1 -0
  175. data/lib/generators/vulcanize/templates/monit/config/rubber/common/monit-default.conf +15 -0
  176. data/lib/generators/vulcanize/templates/monit/config/rubber/common/monit.conf +252 -0
  177. data/lib/generators/vulcanize/templates/monit/config/rubber/deploy-monit.rb +33 -0
  178. data/lib/generators/vulcanize/templates/monit/config/rubber/role/web_tools/monit-admin-nginx.conf +10 -0
  179. data/lib/generators/vulcanize/templates/monit/config/rubber/rubber-monit.yml +6 -0
  180. data/lib/generators/vulcanize/templates/monit/templates.yml +1 -0
  181. data/lib/generators/vulcanize/templates/munin/config/rubber/common/monit-munin.conf +8 -0
  182. data/lib/generators/vulcanize/templates/munin/config/rubber/common/munin-node.conf +48 -0
  183. data/lib/generators/vulcanize/templates/munin/config/rubber/common/munin-plugins.conf +11 -0
  184. data/lib/generators/vulcanize/templates/munin/config/rubber/deploy-munin.rb +46 -0
  185. data/lib/generators/vulcanize/templates/munin/config/rubber/role/web_tools/munin-nginx.conf +8 -0
  186. data/lib/generators/vulcanize/templates/munin/config/rubber/role/web_tools/munin-plugins.conf +31 -0
  187. data/lib/generators/vulcanize/templates/munin/config/rubber/role/web_tools/munin.conf +81 -0
  188. data/lib/generators/vulcanize/templates/munin/config/rubber/rubber-munin.yml +8 -0
  189. data/lib/generators/vulcanize/templates/munin/script/munin/example_mysql_query.rb +55 -0
  190. data/lib/generators/vulcanize/templates/munin/script/munin/example_simple.rb +24 -0
  191. data/lib/generators/vulcanize/templates/munin/templates.yml +1 -0
  192. data/lib/generators/vulcanize/templates/mysql/config/rubber/common/database.yml +12 -0
  193. data/lib/generators/vulcanize/templates/mysql/config/rubber/deploy-mysql.rb +169 -0
  194. data/lib/generators/vulcanize/templates/mysql/config/rubber/role/db/apparmor-mysql.conf +46 -0
  195. data/lib/generators/vulcanize/templates/mysql/config/rubber/role/db/crontab +14 -0
  196. data/lib/generators/vulcanize/templates/mysql/config/rubber/role/db/monit-mysql.cnf +10 -0
  197. data/lib/generators/vulcanize/templates/mysql/config/rubber/role/db/my.cnf +163 -0
  198. data/lib/generators/vulcanize/templates/mysql/config/rubber/role/mysql_slave/mysql_slave_munin_plugin +51 -0
  199. data/lib/generators/vulcanize/templates/mysql/config/rubber/rubber-mysql.yml +47 -0
  200. data/lib/generators/vulcanize/templates/mysql/templates.yml +1 -0
  201. data/lib/generators/vulcanize/templates/mysql_cluster/config/rubber/common/mysql_cluster_migrations.rb +13 -0
  202. data/lib/generators/vulcanize/templates/mysql_cluster/config/rubber/deploy-mysql_cluster.rb +177 -0
  203. data/lib/generators/vulcanize/templates/mysql_cluster/config/rubber/role/mysql_data/my.cnf +15 -0
  204. data/lib/generators/vulcanize/templates/mysql_cluster/config/rubber/role/mysql_mgm/ndb_mgmd.cnf +39 -0
  205. data/lib/generators/vulcanize/templates/mysql_cluster/config/rubber/role/mysql_sql/monit-mysql_cluster_sql.cnf +10 -0
  206. data/lib/generators/vulcanize/templates/mysql_cluster/config/rubber/role/mysql_sql/my.cnf +23 -0
  207. data/lib/generators/vulcanize/templates/mysql_cluster/config/rubber/rubber-mysql_cluster.yml +32 -0
  208. data/lib/generators/vulcanize/templates/mysql_cluster/templates.yml +1 -0
  209. data/lib/generators/vulcanize/templates/mysql_proxy/config/rubber/common/database.yml +16 -0
  210. data/lib/generators/vulcanize/templates/mysql_proxy/config/rubber/common/monit-mysql_proxy.cnf +10 -0
  211. data/lib/generators/vulcanize/templates/mysql_proxy/config/rubber/common/mysql-proxy +153 -0
  212. data/lib/generators/vulcanize/templates/mysql_proxy/config/rubber/common/mysql-proxy.conf +10 -0
  213. data/lib/generators/vulcanize/templates/mysql_proxy/config/rubber/common/mysql-proxy.lua +5 -0
  214. data/lib/generators/vulcanize/templates/mysql_proxy/config/rubber/deploy-mysql_proxy.rb +52 -0
  215. data/lib/generators/vulcanize/templates/mysql_proxy/config/rubber/rubber-mysql_proxy.yml +11 -0
  216. data/lib/generators/vulcanize/templates/mysql_proxy/templates.yml +1 -0
  217. data/lib/generators/vulcanize/templates/nginx/config/rubber/deploy-nginx.rb +45 -0
  218. data/lib/generators/vulcanize/templates/nginx/config/rubber/role/nginx/crontab +9 -0
  219. data/lib/generators/vulcanize/templates/nginx/config/rubber/role/nginx/monit-nginx.conf +8 -0
  220. data/lib/generators/vulcanize/templates/nginx/config/rubber/role/nginx/nginx.conf +42 -0
  221. data/lib/generators/vulcanize/templates/nginx/config/rubber/role/web_tools/nginx-tools.conf +55 -0
  222. data/lib/generators/vulcanize/templates/nginx/config/rubber/role/web_tools/tools-index.html +30 -0
  223. data/lib/generators/vulcanize/templates/nginx/config/rubber/role/web_tools/tools-nginx.auth +7 -0
  224. data/lib/generators/vulcanize/templates/nginx/config/rubber/rubber-nginx.yml +10 -0
  225. data/lib/generators/vulcanize/templates/nginx/templates.yml +1 -0
  226. data/lib/generators/vulcanize/templates/passenger/config/rubber/deploy-passenger.rb +46 -0
  227. data/lib/generators/vulcanize/templates/passenger/config/rubber/role/passenger/munin-passenger-memory.conf +34 -0
  228. data/lib/generators/vulcanize/templates/passenger/config/rubber/role/passenger/munin-passenger-sudoers.conf +7 -0
  229. data/lib/generators/vulcanize/templates/passenger/config/rubber/role/passenger/munin-passenger.conf +47 -0
  230. data/lib/generators/vulcanize/templates/passenger/config/rubber/role/passenger/passenger-apache-vhost.conf +46 -0
  231. data/lib/generators/vulcanize/templates/passenger/config/rubber/role/passenger/passenger.conf +35 -0
  232. data/lib/generators/vulcanize/templates/passenger/config/rubber/rubber-passenger.yml +15 -0
  233. data/lib/generators/vulcanize/templates/passenger/templates.yml +3 -0
  234. data/lib/generators/vulcanize/templates/postgresql/config/rubber/common/database.yml +12 -0
  235. data/lib/generators/vulcanize/templates/postgresql/config/rubber/deploy-postgresql.rb +131 -0
  236. data/lib/generators/vulcanize/templates/postgresql/config/rubber/role/db/crontab +14 -0
  237. data/lib/generators/vulcanize/templates/postgresql/config/rubber/role/db/monit-postgresql.conf +10 -0
  238. data/lib/generators/vulcanize/templates/postgresql/config/rubber/role/db/pg_hba.conf +89 -0
  239. data/lib/generators/vulcanize/templates/postgresql/config/rubber/role/db/postgresql-sysctl.conf +6 -0
  240. data/lib/generators/vulcanize/templates/postgresql/config/rubber/role/db/postgresql.conf +504 -0
  241. data/lib/generators/vulcanize/templates/postgresql/config/rubber/rubber-postgresql.yml +45 -0
  242. data/lib/generators/vulcanize/templates/postgresql/templates.yml +1 -0
  243. data/lib/generators/vulcanize/templates/redis/config/rubber/deploy-redis.rb +37 -0
  244. data/lib/generators/vulcanize/templates/redis/config/rubber/role/redis/crontab +8 -0
  245. data/lib/generators/vulcanize/templates/redis/config/rubber/role/redis/monit-redis.conf +9 -0
  246. data/lib/generators/vulcanize/templates/redis/config/rubber/role/redis/redis.conf +141 -0
  247. data/lib/generators/vulcanize/templates/redis/config/rubber/rubber-redis.yml +4 -0
  248. data/lib/generators/vulcanize/templates/redis/templates.yml +1 -0
  249. data/lib/generators/vulcanize/templates/resque/config/initializers/resque.rb +15 -0
  250. data/lib/generators/vulcanize/templates/resque/config/rubber/common/resque.yml +5 -0
  251. data/lib/generators/vulcanize/templates/resque/config/rubber/deploy-resque.rb +58 -0
  252. data/lib/generators/vulcanize/templates/resque/config/rubber/role/resque_web/monit-resque_web.conf +14 -0
  253. data/lib/generators/vulcanize/templates/resque/config/rubber/role/resque_worker/monit-resque_worker.conf +19 -0
  254. data/lib/generators/vulcanize/templates/resque/config/rubber/rubber-resque.yml +18 -0
  255. data/lib/generators/vulcanize/templates/resque/script/resque_worker_management.rb +112 -0
  256. data/lib/generators/vulcanize/templates/resque/templates.rb +1 -0
  257. data/lib/generators/vulcanize/templates/resque/templates.yml +3 -0
  258. data/lib/generators/vulcanize/templates/sphinx/config/rubber/common/sphinx.yml +46 -0
  259. data/lib/generators/vulcanize/templates/sphinx/config/rubber/deploy-sphinx.rb +112 -0
  260. data/lib/generators/vulcanize/templates/sphinx/config/rubber/role/sphinx/crontab +11 -0
  261. data/lib/generators/vulcanize/templates/sphinx/config/rubber/role/sphinx/monit-sphinx.conf +13 -0
  262. data/lib/generators/vulcanize/templates/sphinx/config/rubber/rubber-sphinx.yml +6 -0
  263. data/lib/generators/vulcanize/templates/sphinx/templates.yml +1 -0
  264. data/lib/generators/vulcanize/vulcanize_generator.rb +157 -0
  265. data/lib/rubber/cloud/aws.rb +7 -2
  266. data/lib/rubber/dns/zerigo.rb +60 -125
  267. data/lib/rubber/environment.rb +6 -6
  268. data/lib/rubber/generator.rb +33 -25
  269. data/lib/rubber/instance.rb +11 -1
  270. data/lib/rubber/railtie.rb +14 -0
  271. data/lib/rubber/recipes/rubber/deploy.rb +3 -3
  272. data/lib/rubber/recipes/rubber/instances.rb +12 -1
  273. data/lib/rubber/recipes/rubber/setup.rb +96 -55
  274. data/lib/rubber/recipes/rubber/spot_requests.rb +6 -0
  275. data/lib/rubber/recipes/rubber/static_ips.rb +83 -0
  276. data/lib/rubber/recipes/rubber/utils.rb +39 -16
  277. data/lib/rubber/recipes/rubber/volumes.rb +4 -4
  278. data/lib/rubber/recipes/rubber.rb +16 -9
  279. data/lib/rubber/util.rb +28 -1
  280. data/lib/rubber.rb +47 -7
  281. data/rails/init.rb +1 -4
  282. data/test/environment_test.rb +3 -0
  283. data/test/generator_test.rb +47 -0
  284. data/test/instance_test.rb +3 -0
  285. data/test/test_helper.rb +6 -0
  286. data/test/util_test.rb +3 -0
  287. data/test/zerigo_test.rb +87 -0
  288. metadata +275 -50
  289. data/generators/vulcanize/templates/resque/config/rubber/deploy-resque-worker-default.rb +0 -38
  290. data/generators/vulcanize/templates/resque/config/rubber/role/resque_worker_default/monit-resque_worker_default.conf +0 -19
  291. /data/generators/vulcanize/templates/{complete_passenger_mysql → complete_passenger}/config/rubber/rubber-complete.yml +0 -0
@@ -1,3 +1,6 @@
1
+ require 'rubygems'
2
+ gem 'test-unit'
3
+
1
4
  require 'test/unit'
2
5
  require 'tempfile'
3
6
  require 'test_helper'
@@ -90,6 +93,14 @@ class GeneratorTest < Test::Unit::TestCase
90
93
  assert ! File.exists?(post_file), "post should not have been executed as dest file unchanged"
91
94
  assert_equal "hello", File.read(out_file.path).strip, "transformed contents are incorrect"
92
95
 
96
+ FileUtils.rm_f(post_file)
97
+ gen = Generator.new(nil, nil, nil)
98
+ gen.force = true
99
+ gen.transform(src)
100
+ assert File.exists?(out_file.path), "transform did not generate an output file"
101
+ assert File.exists?(post_file), "forced transform did not execute post"
102
+ assert_equal "hello", File.read(out_file.path).strip, "transformed contents are incorrect"
103
+
93
104
  FileUtils.rm_f(post_file)
94
105
  gen = Generator.new(nil, nil, nil)
95
106
  gen.no_post = true
@@ -320,4 +331,40 @@ def test_file_pattern
320
331
  Generator.new(nil, nil, nil).transform(src)
321
332
  assert ! File.exists?(out_file.path), "transform didn't skip generation of an output file"
322
333
  end
334
+
335
+ def test_backup
336
+ out_file = Tempfile.new('testbak')
337
+ assert ! File.exists?("#{out_file.path}.bak")
338
+ File.open(out_file.path, 'w') {|f| f.write("howdy")}
339
+
340
+ src = <<-SRC
341
+ <%
342
+ @path = '#{out_file.path}'
343
+ %>
344
+ hello <%= Time.now.to_f %>
345
+ SRC
346
+
347
+ Generator.new(nil, nil, nil).transform(src)
348
+
349
+ assert File.exists?("#{out_file.path}.bak"), "transform didn't generate backup"
350
+ assert_match /howdy/, File.read("#{out_file.path}.bak"), "transform backup has wrong contents"
351
+ end
352
+
353
+ def test_no_backup
354
+ out_file = Tempfile.new('testnobak')
355
+ assert ! File.exists?("#{out_file.path}.bak")
356
+ File.open(out_file.path, 'w') {|f| f.write("howdy")}
357
+ src = <<-SRC
358
+ <%
359
+ @path = '#{out_file.path}'
360
+ @backup = false
361
+ %>
362
+ hello <%= Time.now.to_f %>
363
+ SRC
364
+
365
+ Generator.new(nil, nil, nil).transform(src)
366
+
367
+ assert ! File.exists?("#{out_file.path}.bak"), "transform shouldn't generate backup"
368
+ end
369
+
323
370
  end
@@ -1,3 +1,6 @@
1
+ require 'rubygems'
2
+ gem 'test-unit'
3
+
1
4
  require 'test/unit'
2
5
  require 'tempfile'
3
6
  require 'test_helper'
data/test/test_helper.rb CHANGED
@@ -6,3 +6,9 @@ Rubber::initialize(File.dirname(__FILE__), 'test')
6
6
  require 'rubygems'
7
7
  require 'mocha'
8
8
  require 'pp'
9
+ require 'fakeweb'
10
+ FakeWeb.allow_net_connect = false
11
+
12
+ def fakeweb_fixture(name)
13
+ return File.read("#{File.dirname(__FILE__)}/fixtures/fakeweb/#{name}")
14
+ end
data/test/util_test.rb CHANGED
@@ -1,3 +1,6 @@
1
+ require 'rubygems'
2
+ gem 'test-unit'
3
+
1
4
  require 'test/unit'
2
5
  require 'test_helper'
3
6
 
@@ -0,0 +1,87 @@
1
+ require 'rubygems'
2
+ gem 'test-unit'
3
+
4
+ require 'test/unit'
5
+ require 'test_helper'
6
+ require 'rubber/dns'
7
+ require 'rubber/dns/zerigo'
8
+ require 'rexml/document'
9
+
10
+ class ZerigoTest < Test::Unit::TestCase
11
+
12
+ def setup
13
+ env = Rubber::Configuration::Environment::BoundEnv.new({'dns_providers' => {'zerigo' => {'email' => 'foo@bar.com', 'token' => 'testtoken'}}}, nil, nil)
14
+ @dns = Rubber::Dns::Zerigo.new(env)
15
+ FakeWeb.register_uri(:get,
16
+ "http://foo%40bar.com:testtoken@ns.zerigo.com/api/1.1/zones.xml",
17
+ :body => fakeweb_fixture('zerigo/get_zones.xml'))
18
+ @domain = "example1.com"
19
+ @zone = ::Zerigo::DNS::Zone.find_or_create(@domain)
20
+ end
21
+
22
+ def test_find_records
23
+ hosts_xml = fakeweb_fixture('zerigo/get_hosts.xml')
24
+ FakeWeb.register_uri(:get,
25
+ "http://foo%40bar.com:testtoken@ns.zerigo.com/api/1.1/hosts.xml?zone_id=1",
26
+ :body => hosts_xml)
27
+ records = @dns.find_host_records(:host => '*', :domain => 'example1.com')
28
+ assert_equal 2, records.size
29
+ assert_equal({:type=>"A", :host=>"host1", :domain=>"example1.com", :id=>1, :data=>"172.16.16.1"}, records.first)
30
+
31
+ doc = REXML::Document.new(hosts_xml)
32
+ doc.root.elements.delete(1)
33
+ hosts_xml_single = doc.to_s
34
+ FakeWeb.register_uri(:get,
35
+ "http://foo%40bar.com:testtoken@ns.zerigo.com/api/1.1/hosts.xml?fqdn=example1.com&zone_id=1",
36
+ :body => hosts_xml_single)
37
+ records = @dns.find_host_records(:host => '', :domain => 'example1.com')
38
+ assert_equal 1, records.size
39
+ assert_equal '', records.first[:host]
40
+
41
+ doc = REXML::Document.new(hosts_xml)
42
+ doc.root.elements.delete(2)
43
+ hosts_xml_single = doc.to_s
44
+ FakeWeb.register_uri(:get,
45
+ "http://foo%40bar.com:testtoken@ns.zerigo.com/api/1.1/hosts.xml?fqdn=host1.example1.com&zone_id=1",
46
+ :body => hosts_xml_single)
47
+ records = @dns.find_host_records(:host => 'host1', :domain => 'example1.com')
48
+ assert_equal 1, records.size
49
+ assert_equal 'host1', records.first[:host]
50
+ end
51
+
52
+ def test_create_record
53
+ params = {:host => 'newhost', :domain => 'example1.com', :data => '1.1.1.1', :type => 'A', :ttl => '333'}
54
+ dest_params = {'hostname' => 'newhost', 'data' => '1.1.1.1', 'host_type' => 'A', 'ttl' => '333', :zone_id => @zone.id}
55
+
56
+ ::Zerigo::DNS::Host.expects(:create).with(dest_params)
57
+
58
+ @dns.create_host_record(params)
59
+ end
60
+
61
+ def test_destroy_record
62
+ params = {:host => 'host1', :domain => 'example1.com'}
63
+
64
+ FakeWeb.register_uri(:get,
65
+ "http://foo%40bar.com:testtoken@ns.zerigo.com/api/1.1/hosts.xml?fqdn=host1.example1.com&zone_id=1",
66
+ :body => fakeweb_fixture('zerigo/host1.xml'))
67
+ FakeWeb.register_uri(:delete,
68
+ "http://foo%40bar.com:testtoken@ns.zerigo.com/api/1.1/hosts/1.xml",
69
+ :body => "")
70
+
71
+ @dns.destroy_host_record(params)
72
+ end
73
+
74
+ def test_update_record
75
+ params = {:host => 'host1', :domain => 'example1.com', :data => "1.1.1.1"}
76
+
77
+ FakeWeb.register_uri(:get,
78
+ "http://foo%40bar.com:testtoken@ns.zerigo.com/api/1.1/hosts.xml?fqdn=host1.example1.com&zone_id=1",
79
+ :body => fakeweb_fixture('zerigo/host1.xml'))
80
+ FakeWeb.register_uri(:post,
81
+ "http://foo%40bar.com:testtoken@ns.zerigo.com/api/1.1/hosts/1.xml",
82
+ :body => "")
83
+
84
+ @dns.update_host_record(params)
85
+ end
86
+
87
+ end
metadata CHANGED
@@ -1,7 +1,15 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: nirvdrum-rubber
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.7
4
+ hash: 1562579323
5
+ prerelease: true
6
+ segments:
7
+ - 2
8
+ - 0
9
+ - 0
10
+ - rails3
11
+ - beta6
12
+ version: 2.0.0.rails3.beta6
5
13
  platform: ruby
6
14
  authors:
7
15
  - Matt Conway
@@ -9,70 +17,70 @@ autorequire:
9
17
  bindir: bin
10
18
  cert_chain: []
11
19
 
12
- date: 2010-01-10 00:00:00 -05:00
20
+ date: 2010-05-15 00:00:00 -04:00
13
21
  default_executable: vulcanize
14
22
  dependencies:
15
23
  - !ruby/object:Gem::Dependency
16
24
  name: capistrano
17
- type: :runtime
18
- version_requirement:
19
- version_requirements: !ruby/object:Gem::Requirement
25
+ prerelease: false
26
+ requirement: &id001 !ruby/object:Gem::Requirement
27
+ none: false
20
28
  requirements:
21
29
  - - ">="
22
30
  - !ruby/object:Gem::Version
23
- version: "0"
24
- version:
25
- - !ruby/object:Gem::Dependency
26
- name: nirvdrum-amazon-ec2
31
+ hash: 31
32
+ segments:
33
+ - 2
34
+ - 4
35
+ - 0
36
+ version: 2.4.0
27
37
  type: :runtime
28
- version_requirement:
29
- version_requirements: !ruby/object:Gem::Requirement
38
+ version_requirements: *id001
39
+ - !ruby/object:Gem::Dependency
40
+ name: amazon-ec2
41
+ prerelease: false
42
+ requirement: &id002 !ruby/object:Gem::Requirement
43
+ none: false
30
44
  requirements:
31
45
  - - ">="
32
46
  - !ruby/object:Gem::Version
33
- version: 0.7.9
34
- version:
47
+ hash: 59
48
+ segments:
49
+ - 0
50
+ - 9
51
+ - 0
52
+ version: 0.9.0
53
+ type: :runtime
54
+ version_requirements: *id002
35
55
  - !ruby/object:Gem::Dependency
36
56
  name: aws-s3
37
- type: :runtime
38
- version_requirement:
39
- version_requirements: !ruby/object:Gem::Requirement
57
+ prerelease: false
58
+ requirement: &id003 !ruby/object:Gem::Requirement
59
+ none: false
40
60
  requirements:
41
61
  - - ">="
42
62
  - !ruby/object:Gem::Version
63
+ hash: 3
64
+ segments:
65
+ - 0
43
66
  version: "0"
44
- version:
45
- - !ruby/object:Gem::Dependency
46
- name: nettica
47
67
  type: :runtime
48
- version_requirement:
49
- version_requirements: !ruby/object:Gem::Requirement
50
- requirements:
51
- - - ">="
52
- - !ruby/object:Gem::Version
53
- version: "0"
54
- version:
68
+ version_requirements: *id003
55
69
  - !ruby/object:Gem::Dependency
56
- name: httparty
57
- type: :runtime
58
- version_requirement:
59
- version_requirements: !ruby/object:Gem::Requirement
70
+ name: nettica
71
+ prerelease: false
72
+ requirement: &id004 !ruby/object:Gem::Requirement
73
+ none: false
60
74
  requirements:
61
75
  - - ">="
62
76
  - !ruby/object:Gem::Version
77
+ hash: 3
78
+ segments:
79
+ - 0
63
80
  version: "0"
64
- version:
65
- - !ruby/object:Gem::Dependency
66
- name: rails
67
81
  type: :runtime
68
- version_requirement:
69
- version_requirements: !ruby/object:Gem::Requirement
70
- requirements:
71
- - - ">="
72
- - !ruby/object:Gem::Version
73
- version: "0"
74
- version:
75
- description: The rubber plugin enables relatively complex multi-instance deployments of RubyOnRails applications to Amazon's Elastic Compute Cloud (EC2). Like capistrano, rubber is role based, so you can define a set of configuration files for a role and then assign that role to as many concrete instances as needed. One can also assign multiple roles to a single instance. This lets one start out with a single ec2 instance (belonging to all roles), and add new instances into the mix as needed to scale specific facets of your deployment, e.g. adding in instances that serve only as an 'app' role to handle increased app server load.
82
+ version_requirements: *id004
83
+ description: " The rubber plugin enables relatively complex multi-instance deployments of RubyOnRails applications to\n Amazon's Elastic Compute Cloud (EC2). Like capistrano, rubber is role based, so you can define a set\n of configuration files for a role and then assign that role to as many concrete instances as needed. One\n can also assign multiple roles to a single instance. This lets one start out with a single ec2 instance\n (belonging to all roles), and add new instances into the mix as needed to scale specific facets of your\n deployment, e.g. adding in instances that serve only as an 'app' role to handle increased app server load.\n"
76
84
  email: matt@conwaysplace.com
77
85
  executables:
78
86
  - vulcanize
@@ -102,25 +110,39 @@ files:
102
110
  - generators/vulcanize/templates/apache/config/rubber/rubber-apache.yml
103
111
  - generators/vulcanize/templates/apache/templates.yml
104
112
  - generators/vulcanize/templates/base/Capfile
113
+ - generators/vulcanize/templates/base/Rakefile
105
114
  - generators/vulcanize/templates/base/config/deploy.rb
106
115
  - generators/vulcanize/templates/base/config/rubber/common/crontab
107
116
  - generators/vulcanize/templates/base/config/rubber/common/monit-postfix.conf
108
117
  - generators/vulcanize/templates/base/config/rubber/common/rubber.profile
109
118
  - generators/vulcanize/templates/base/config/rubber/deploy-setup.rb
119
+ - generators/vulcanize/templates/base/config/rubber/deploy-util.rb
110
120
  - generators/vulcanize/templates/base/config/rubber/rubber-dns.yml
121
+ - generators/vulcanize/templates/base/config/rubber/rubber-rvm.yml
111
122
  - generators/vulcanize/templates/base/config/rubber/rubber.yml
112
123
  - generators/vulcanize/templates/base/lib/tasks/rubber.rake
113
124
  - generators/vulcanize/templates/base/script/cron-rake
114
125
  - generators/vulcanize/templates/base/script/cron-runner
115
126
  - generators/vulcanize/templates/base/script/cron-sh
127
+ - generators/vulcanize/templates/base/templates.rb
116
128
  - generators/vulcanize/templates/base/templates.yml
129
+ - generators/vulcanize/templates/cassandra/config/rubber/deploy-cassandra.rb
130
+ - generators/vulcanize/templates/cassandra/config/rubber/role/cassandra/cassandra.in.sh
131
+ - generators/vulcanize/templates/cassandra/config/rubber/role/cassandra/cassandra.yaml
132
+ - generators/vulcanize/templates/cassandra/config/rubber/role/cassandra/log4j-server.properties
133
+ - generators/vulcanize/templates/cassandra/config/rubber/role/cassandra/monit-cassandra.conf
134
+ - generators/vulcanize/templates/cassandra/config/rubber/rubber-cassandra.yml
135
+ - generators/vulcanize/templates/cassandra/templates.yml
117
136
  - generators/vulcanize/templates/complete_mongrel_mysql/config/rubber/role/haproxy/haproxy-mongrel.conf
118
137
  - generators/vulcanize/templates/complete_mongrel_mysql/config/rubber/role/nginx/nginx-mongrel.conf
119
138
  - generators/vulcanize/templates/complete_mongrel_mysql/config/rubber/rubber-complete.yml
120
139
  - generators/vulcanize/templates/complete_mongrel_mysql/templates.yml
121
- - generators/vulcanize/templates/complete_passenger_mysql/config/rubber/role/haproxy/haproxy-passenger.conf
122
- - generators/vulcanize/templates/complete_passenger_mysql/config/rubber/rubber-complete.yml
140
+ - generators/vulcanize/templates/complete_passenger/config/rubber/role/haproxy/haproxy-passenger.conf
141
+ - generators/vulcanize/templates/complete_passenger/config/rubber/rubber-complete.yml
142
+ - generators/vulcanize/templates/complete_passenger/templates.rb
143
+ - generators/vulcanize/templates/complete_passenger/templates.yml
123
144
  - generators/vulcanize/templates/complete_passenger_mysql/templates.yml
145
+ - generators/vulcanize/templates/complete_passenger_postgresql/templates.yml
124
146
  - generators/vulcanize/templates/cruise/config/rubber/deploy-cruise.rb
125
147
  - generators/vulcanize/templates/cruise/config/rubber/role/cruise/cruise
126
148
  - generators/vulcanize/templates/cruise/config/rubber/role/cruise/my.cnf
@@ -176,6 +198,7 @@ files:
176
198
  - generators/vulcanize/templates/munin/templates.yml
177
199
  - generators/vulcanize/templates/mysql/config/rubber/common/database.yml
178
200
  - generators/vulcanize/templates/mysql/config/rubber/deploy-mysql.rb
201
+ - generators/vulcanize/templates/mysql/config/rubber/role/db/apparmor-mysql.conf
179
202
  - generators/vulcanize/templates/mysql/config/rubber/role/db/crontab
180
203
  - generators/vulcanize/templates/mysql/config/rubber/role/db/monit-mysql.cnf
181
204
  - generators/vulcanize/templates/mysql/config/rubber/role/db/my.cnf
@@ -215,16 +238,29 @@ files:
215
238
  - generators/vulcanize/templates/passenger/config/rubber/role/passenger/passenger.conf
216
239
  - generators/vulcanize/templates/passenger/config/rubber/rubber-passenger.yml
217
240
  - generators/vulcanize/templates/passenger/templates.yml
241
+ - generators/vulcanize/templates/postgresql/config/rubber/common/database.yml
242
+ - generators/vulcanize/templates/postgresql/config/rubber/deploy-postgresql.rb
243
+ - generators/vulcanize/templates/postgresql/config/rubber/role/db/crontab
244
+ - generators/vulcanize/templates/postgresql/config/rubber/role/db/monit-postgresql.conf
245
+ - generators/vulcanize/templates/postgresql/config/rubber/role/db/pg_hba.conf
246
+ - generators/vulcanize/templates/postgresql/config/rubber/role/db/postgresql-sysctl.conf
247
+ - generators/vulcanize/templates/postgresql/config/rubber/role/db/postgresql.conf
248
+ - generators/vulcanize/templates/postgresql/config/rubber/rubber-postgresql.yml
249
+ - generators/vulcanize/templates/postgresql/templates.yml
218
250
  - generators/vulcanize/templates/redis/config/rubber/deploy-redis.rb
219
251
  - generators/vulcanize/templates/redis/config/rubber/role/redis/crontab
220
252
  - generators/vulcanize/templates/redis/config/rubber/role/redis/monit-redis.conf
221
253
  - generators/vulcanize/templates/redis/config/rubber/role/redis/redis.conf
222
254
  - generators/vulcanize/templates/redis/config/rubber/rubber-redis.yml
223
255
  - generators/vulcanize/templates/redis/templates.yml
224
- - generators/vulcanize/templates/resque/config/rubber/deploy-resque-worker-default.rb
256
+ - generators/vulcanize/templates/resque/config/initializers/resque.rb
257
+ - generators/vulcanize/templates/resque/config/rubber/common/resque.yml
225
258
  - generators/vulcanize/templates/resque/config/rubber/deploy-resque.rb
226
- - generators/vulcanize/templates/resque/config/rubber/role/resque_worker_default/monit-resque_worker_default.conf
259
+ - generators/vulcanize/templates/resque/config/rubber/role/resque_web/monit-resque_web.conf
260
+ - generators/vulcanize/templates/resque/config/rubber/role/resque_worker/monit-resque_worker.conf
227
261
  - generators/vulcanize/templates/resque/config/rubber/rubber-resque.yml
262
+ - generators/vulcanize/templates/resque/script/resque_worker_management.rb
263
+ - generators/vulcanize/templates/resque/templates.rb
228
264
  - generators/vulcanize/templates/resque/templates.yml
229
265
  - generators/vulcanize/templates/sphinx/config/rubber/common/sphinx.yml
230
266
  - generators/vulcanize/templates/sphinx/config/rubber/deploy-sphinx.rb
@@ -234,6 +270,179 @@ files:
234
270
  - generators/vulcanize/templates/sphinx/templates.yml
235
271
  - generators/vulcanize/vulcanize_generator.rb
236
272
  - lib/capistrano/hostcmd.rb
273
+ - lib/generators/vulcanize/USAGE
274
+ - lib/generators/vulcanize/templates/apache/config/rubber/deploy-apache.rb
275
+ - lib/generators/vulcanize/templates/apache/config/rubber/role/apache/deflate.conf
276
+ - lib/generators/vulcanize/templates/apache/config/rubber/role/apache/expires.conf
277
+ - lib/generators/vulcanize/templates/apache/config/rubber/role/apache/headers.conf
278
+ - lib/generators/vulcanize/templates/apache/config/rubber/role/apache/monit-apache.conf
279
+ - lib/generators/vulcanize/templates/apache/config/rubber/role/apache/ports.conf
280
+ - lib/generators/vulcanize/templates/apache/config/rubber/role/apache/setenvif.conf
281
+ - lib/generators/vulcanize/templates/apache/config/rubber/role/web_tools/tools-apache-vhost.conf
282
+ - lib/generators/vulcanize/templates/apache/config/rubber/role/web_tools/tools-apache.auth
283
+ - lib/generators/vulcanize/templates/apache/config/rubber/role/web_tools/tools-index.html
284
+ - lib/generators/vulcanize/templates/apache/config/rubber/rubber-apache.yml
285
+ - lib/generators/vulcanize/templates/apache/templates.yml
286
+ - lib/generators/vulcanize/templates/base/Capfile
287
+ - lib/generators/vulcanize/templates/base/Rakefile
288
+ - lib/generators/vulcanize/templates/base/config/deploy.rb
289
+ - lib/generators/vulcanize/templates/base/config/rubber/common/crontab
290
+ - lib/generators/vulcanize/templates/base/config/rubber/common/monit-postfix.conf
291
+ - lib/generators/vulcanize/templates/base/config/rubber/common/rubber.profile
292
+ - lib/generators/vulcanize/templates/base/config/rubber/deploy-setup.rb
293
+ - lib/generators/vulcanize/templates/base/config/rubber/deploy-util.rb
294
+ - lib/generators/vulcanize/templates/base/config/rubber/rubber-dns.yml
295
+ - lib/generators/vulcanize/templates/base/config/rubber/rubber-rvm.yml
296
+ - lib/generators/vulcanize/templates/base/config/rubber/rubber.yml
297
+ - lib/generators/vulcanize/templates/base/lib/tasks/rubber.rake
298
+ - lib/generators/vulcanize/templates/base/script/cron-rake
299
+ - lib/generators/vulcanize/templates/base/script/cron-runner
300
+ - lib/generators/vulcanize/templates/base/script/cron-sh
301
+ - lib/generators/vulcanize/templates/base/templates.rb
302
+ - lib/generators/vulcanize/templates/base/templates.yml
303
+ - lib/generators/vulcanize/templates/cassandra/config/rubber/deploy-cassandra.rb
304
+ - lib/generators/vulcanize/templates/cassandra/config/rubber/role/cassandra/cassandra.in.sh
305
+ - lib/generators/vulcanize/templates/cassandra/config/rubber/role/cassandra/cassandra.yaml
306
+ - lib/generators/vulcanize/templates/cassandra/config/rubber/role/cassandra/log4j-server.properties
307
+ - lib/generators/vulcanize/templates/cassandra/config/rubber/role/cassandra/monit-cassandra.conf
308
+ - lib/generators/vulcanize/templates/cassandra/config/rubber/rubber-cassandra.yml
309
+ - lib/generators/vulcanize/templates/cassandra/templates.yml
310
+ - lib/generators/vulcanize/templates/complete_mongrel_mysql/config/rubber/role/haproxy/haproxy-mongrel.conf
311
+ - lib/generators/vulcanize/templates/complete_mongrel_mysql/config/rubber/role/nginx/nginx-mongrel.conf
312
+ - lib/generators/vulcanize/templates/complete_mongrel_mysql/config/rubber/rubber-complete.yml
313
+ - lib/generators/vulcanize/templates/complete_mongrel_mysql/templates.yml
314
+ - lib/generators/vulcanize/templates/complete_passenger/config/rubber/role/haproxy/haproxy-passenger.conf
315
+ - lib/generators/vulcanize/templates/complete_passenger/config/rubber/rubber-complete.yml
316
+ - lib/generators/vulcanize/templates/complete_passenger/templates.rb
317
+ - lib/generators/vulcanize/templates/complete_passenger/templates.yml
318
+ - lib/generators/vulcanize/templates/complete_passenger_mysql/templates.yml
319
+ - lib/generators/vulcanize/templates/complete_passenger_postgresql/templates.yml
320
+ - lib/generators/vulcanize/templates/cruise/config/rubber/deploy-cruise.rb
321
+ - lib/generators/vulcanize/templates/cruise/config/rubber/role/cruise/cruise
322
+ - lib/generators/vulcanize/templates/cruise/config/rubber/role/cruise/my.cnf
323
+ - lib/generators/vulcanize/templates/cruise/config/rubber/role/cruise/production.rb
324
+ - lib/generators/vulcanize/templates/cruise/config/rubber/role/cruise/site_config.rb
325
+ - lib/generators/vulcanize/templates/cruise/config/rubber/role/web_tools/cruise-nginx.conf
326
+ - lib/generators/vulcanize/templates/cruise/config/rubber/rubber-cruise.yml
327
+ - lib/generators/vulcanize/templates/cruise/templates.yml
328
+ - lib/generators/vulcanize/templates/haproxy/config/rubber/deploy-haproxy.rb
329
+ - lib/generators/vulcanize/templates/haproxy/config/rubber/role/haproxy/haproxy-base.conf
330
+ - lib/generators/vulcanize/templates/haproxy/config/rubber/role/haproxy/haproxy-default.conf
331
+ - lib/generators/vulcanize/templates/haproxy/config/rubber/role/haproxy/monit-haproxy.conf
332
+ - lib/generators/vulcanize/templates/haproxy/config/rubber/role/haproxy/syslog-haproxy.conf
333
+ - lib/generators/vulcanize/templates/haproxy/config/rubber/role/haproxy/syslogd-default.conf
334
+ - lib/generators/vulcanize/templates/haproxy/config/rubber/role/web_tools/haproxy-nginx.conf
335
+ - lib/generators/vulcanize/templates/haproxy/config/rubber/rubber-haproxy.yml
336
+ - lib/generators/vulcanize/templates/haproxy/templates.yml
337
+ - lib/generators/vulcanize/templates/jetty/config/rubber/deploy-jetty.rb
338
+ - lib/generators/vulcanize/templates/jetty/config/rubber/role/jetty/jetty.sh
339
+ - lib/generators/vulcanize/templates/jetty/config/rubber/role/jetty/jetty.xml
340
+ - lib/generators/vulcanize/templates/jetty/config/rubber/role/jetty/monit-jetty.conf
341
+ - lib/generators/vulcanize/templates/jetty/config/rubber/rubber-jetty.yml
342
+ - lib/generators/vulcanize/templates/jetty/templates.yml
343
+ - lib/generators/vulcanize/templates/memcached/config/memcached.yml
344
+ - lib/generators/vulcanize/templates/memcached/config/rubber/common/memcached.yml
345
+ - lib/generators/vulcanize/templates/memcached/config/rubber/role/memcached/memcached.conf
346
+ - lib/generators/vulcanize/templates/memcached/config/rubber/role/memcached/memcached_munin_plugin
347
+ - lib/generators/vulcanize/templates/memcached/config/rubber/rubber-memcached.yml
348
+ - lib/generators/vulcanize/templates/memcached/templates.yml
349
+ - lib/generators/vulcanize/templates/minimal_mysql/templates.yml
350
+ - lib/generators/vulcanize/templates/minimal_nodb/templates.yml
351
+ - lib/generators/vulcanize/templates/mongrel/config/rubber/deploy-mongrel.rb
352
+ - lib/generators/vulcanize/templates/mongrel/config/rubber/role/mongrel/mongrel_cluster.yml
353
+ - lib/generators/vulcanize/templates/mongrel/config/rubber/role/mongrel/monit-mongrel.conf
354
+ - lib/generators/vulcanize/templates/mongrel/config/rubber/rubber-mongrel.yml
355
+ - lib/generators/vulcanize/templates/mongrel/templates.yml
356
+ - lib/generators/vulcanize/templates/monit/config/rubber/common/monit-default.conf
357
+ - lib/generators/vulcanize/templates/monit/config/rubber/common/monit.conf
358
+ - lib/generators/vulcanize/templates/monit/config/rubber/deploy-monit.rb
359
+ - lib/generators/vulcanize/templates/monit/config/rubber/role/web_tools/monit-admin-nginx.conf
360
+ - lib/generators/vulcanize/templates/monit/config/rubber/rubber-monit.yml
361
+ - lib/generators/vulcanize/templates/monit/templates.yml
362
+ - lib/generators/vulcanize/templates/munin/config/rubber/common/monit-munin.conf
363
+ - lib/generators/vulcanize/templates/munin/config/rubber/common/munin-node.conf
364
+ - lib/generators/vulcanize/templates/munin/config/rubber/common/munin-plugins.conf
365
+ - lib/generators/vulcanize/templates/munin/config/rubber/deploy-munin.rb
366
+ - lib/generators/vulcanize/templates/munin/config/rubber/role/web_tools/munin-nginx.conf
367
+ - lib/generators/vulcanize/templates/munin/config/rubber/role/web_tools/munin-plugins.conf
368
+ - lib/generators/vulcanize/templates/munin/config/rubber/role/web_tools/munin.conf
369
+ - lib/generators/vulcanize/templates/munin/config/rubber/rubber-munin.yml
370
+ - lib/generators/vulcanize/templates/munin/script/munin/example_mysql_query.rb
371
+ - lib/generators/vulcanize/templates/munin/script/munin/example_simple.rb
372
+ - lib/generators/vulcanize/templates/munin/templates.yml
373
+ - lib/generators/vulcanize/templates/mysql/config/rubber/common/database.yml
374
+ - lib/generators/vulcanize/templates/mysql/config/rubber/deploy-mysql.rb
375
+ - lib/generators/vulcanize/templates/mysql/config/rubber/role/db/apparmor-mysql.conf
376
+ - lib/generators/vulcanize/templates/mysql/config/rubber/role/db/crontab
377
+ - lib/generators/vulcanize/templates/mysql/config/rubber/role/db/monit-mysql.cnf
378
+ - lib/generators/vulcanize/templates/mysql/config/rubber/role/db/my.cnf
379
+ - lib/generators/vulcanize/templates/mysql/config/rubber/role/mysql_slave/mysql_slave_munin_plugin
380
+ - lib/generators/vulcanize/templates/mysql/config/rubber/rubber-mysql.yml
381
+ - lib/generators/vulcanize/templates/mysql/templates.yml
382
+ - lib/generators/vulcanize/templates/mysql_cluster/config/rubber/common/mysql_cluster_migrations.rb
383
+ - lib/generators/vulcanize/templates/mysql_cluster/config/rubber/deploy-mysql_cluster.rb
384
+ - lib/generators/vulcanize/templates/mysql_cluster/config/rubber/role/mysql_data/my.cnf
385
+ - lib/generators/vulcanize/templates/mysql_cluster/config/rubber/role/mysql_mgm/ndb_mgmd.cnf
386
+ - lib/generators/vulcanize/templates/mysql_cluster/config/rubber/role/mysql_sql/monit-mysql_cluster_sql.cnf
387
+ - lib/generators/vulcanize/templates/mysql_cluster/config/rubber/role/mysql_sql/my.cnf
388
+ - lib/generators/vulcanize/templates/mysql_cluster/config/rubber/rubber-mysql_cluster.yml
389
+ - lib/generators/vulcanize/templates/mysql_cluster/templates.yml
390
+ - lib/generators/vulcanize/templates/mysql_proxy/config/rubber/common/database.yml
391
+ - lib/generators/vulcanize/templates/mysql_proxy/config/rubber/common/monit-mysql_proxy.cnf
392
+ - lib/generators/vulcanize/templates/mysql_proxy/config/rubber/common/mysql-proxy
393
+ - lib/generators/vulcanize/templates/mysql_proxy/config/rubber/common/mysql-proxy.conf
394
+ - lib/generators/vulcanize/templates/mysql_proxy/config/rubber/common/mysql-proxy.lua
395
+ - lib/generators/vulcanize/templates/mysql_proxy/config/rubber/deploy-mysql_proxy.rb
396
+ - lib/generators/vulcanize/templates/mysql_proxy/config/rubber/rubber-mysql_proxy.yml
397
+ - lib/generators/vulcanize/templates/mysql_proxy/templates.yml
398
+ - lib/generators/vulcanize/templates/nginx/config/rubber/deploy-nginx.rb
399
+ - lib/generators/vulcanize/templates/nginx/config/rubber/role/nginx/crontab
400
+ - lib/generators/vulcanize/templates/nginx/config/rubber/role/nginx/monit-nginx.conf
401
+ - lib/generators/vulcanize/templates/nginx/config/rubber/role/nginx/nginx.conf
402
+ - lib/generators/vulcanize/templates/nginx/config/rubber/role/web_tools/nginx-tools.conf
403
+ - lib/generators/vulcanize/templates/nginx/config/rubber/role/web_tools/tools-index.html
404
+ - lib/generators/vulcanize/templates/nginx/config/rubber/role/web_tools/tools-nginx.auth
405
+ - lib/generators/vulcanize/templates/nginx/config/rubber/rubber-nginx.yml
406
+ - lib/generators/vulcanize/templates/nginx/templates.yml
407
+ - lib/generators/vulcanize/templates/passenger/config/rubber/deploy-passenger.rb
408
+ - lib/generators/vulcanize/templates/passenger/config/rubber/role/passenger/munin-passenger-memory.conf
409
+ - lib/generators/vulcanize/templates/passenger/config/rubber/role/passenger/munin-passenger-sudoers.conf
410
+ - lib/generators/vulcanize/templates/passenger/config/rubber/role/passenger/munin-passenger.conf
411
+ - lib/generators/vulcanize/templates/passenger/config/rubber/role/passenger/passenger-apache-vhost.conf
412
+ - lib/generators/vulcanize/templates/passenger/config/rubber/role/passenger/passenger.conf
413
+ - lib/generators/vulcanize/templates/passenger/config/rubber/rubber-passenger.yml
414
+ - lib/generators/vulcanize/templates/passenger/templates.yml
415
+ - lib/generators/vulcanize/templates/postgresql/config/rubber/common/database.yml
416
+ - lib/generators/vulcanize/templates/postgresql/config/rubber/deploy-postgresql.rb
417
+ - lib/generators/vulcanize/templates/postgresql/config/rubber/role/db/crontab
418
+ - lib/generators/vulcanize/templates/postgresql/config/rubber/role/db/monit-postgresql.conf
419
+ - lib/generators/vulcanize/templates/postgresql/config/rubber/role/db/pg_hba.conf
420
+ - lib/generators/vulcanize/templates/postgresql/config/rubber/role/db/postgresql-sysctl.conf
421
+ - lib/generators/vulcanize/templates/postgresql/config/rubber/role/db/postgresql.conf
422
+ - lib/generators/vulcanize/templates/postgresql/config/rubber/rubber-postgresql.yml
423
+ - lib/generators/vulcanize/templates/postgresql/templates.yml
424
+ - lib/generators/vulcanize/templates/redis/config/rubber/deploy-redis.rb
425
+ - lib/generators/vulcanize/templates/redis/config/rubber/role/redis/crontab
426
+ - lib/generators/vulcanize/templates/redis/config/rubber/role/redis/monit-redis.conf
427
+ - lib/generators/vulcanize/templates/redis/config/rubber/role/redis/redis.conf
428
+ - lib/generators/vulcanize/templates/redis/config/rubber/rubber-redis.yml
429
+ - lib/generators/vulcanize/templates/redis/templates.yml
430
+ - lib/generators/vulcanize/templates/resque/config/initializers/resque.rb
431
+ - lib/generators/vulcanize/templates/resque/config/rubber/common/resque.yml
432
+ - lib/generators/vulcanize/templates/resque/config/rubber/deploy-resque.rb
433
+ - lib/generators/vulcanize/templates/resque/config/rubber/role/resque_web/monit-resque_web.conf
434
+ - lib/generators/vulcanize/templates/resque/config/rubber/role/resque_worker/monit-resque_worker.conf
435
+ - lib/generators/vulcanize/templates/resque/config/rubber/rubber-resque.yml
436
+ - lib/generators/vulcanize/templates/resque/script/resque_worker_management.rb
437
+ - lib/generators/vulcanize/templates/resque/templates.rb
438
+ - lib/generators/vulcanize/templates/resque/templates.yml
439
+ - lib/generators/vulcanize/templates/sphinx/config/rubber/common/sphinx.yml
440
+ - lib/generators/vulcanize/templates/sphinx/config/rubber/deploy-sphinx.rb
441
+ - lib/generators/vulcanize/templates/sphinx/config/rubber/role/sphinx/crontab
442
+ - lib/generators/vulcanize/templates/sphinx/config/rubber/role/sphinx/monit-sphinx.conf
443
+ - lib/generators/vulcanize/templates/sphinx/config/rubber/rubber-sphinx.yml
444
+ - lib/generators/vulcanize/templates/sphinx/templates.yml
445
+ - lib/generators/vulcanize/vulcanize_generator.rb
237
446
  - lib/rubber.rb
238
447
  - lib/rubber/capistrano.rb
239
448
  - lib/rubber/cloud.rb
@@ -248,6 +457,7 @@ files:
248
457
  - lib/rubber/environment.rb
249
458
  - lib/rubber/generator.rb
250
459
  - lib/rubber/instance.rb
460
+ - lib/rubber/railtie.rb
251
461
  - lib/rubber/recipes/rubber.rb
252
462
  - lib/rubber/recipes/rubber/bundles.rb
253
463
  - lib/rubber/recipes/rubber/deploy.rb
@@ -262,6 +472,12 @@ files:
262
472
  - lib/rubber/tasks/rubber.rb
263
473
  - lib/rubber/util.rb
264
474
  - rails/init.rb
475
+ - test/environment_test.rb
476
+ - test/generator_test.rb
477
+ - test/instance_test.rb
478
+ - test/test_helper.rb
479
+ - test/util_test.rb
480
+ - test/zerigo_test.rb
265
481
  has_rdoc: true
266
482
  homepage: http://github.com/wr0ngway/rubber
267
483
  licenses: []
@@ -272,21 +488,29 @@ rdoc_options:
272
488
  require_paths:
273
489
  - lib
274
490
  required_ruby_version: !ruby/object:Gem::Requirement
491
+ none: false
275
492
  requirements:
276
493
  - - ">="
277
494
  - !ruby/object:Gem::Version
495
+ hash: 3
496
+ segments:
497
+ - 0
278
498
  version: "0"
279
- version:
280
499
  required_rubygems_version: !ruby/object:Gem::Requirement
500
+ none: false
281
501
  requirements:
282
- - - ">="
502
+ - - ">"
283
503
  - !ruby/object:Gem::Version
284
- version: "0"
285
- version:
504
+ hash: 25
505
+ segments:
506
+ - 1
507
+ - 3
508
+ - 1
509
+ version: 1.3.1
286
510
  requirements: []
287
511
 
288
512
  rubyforge_project: rubber
289
- rubygems_version: 1.3.5
513
+ rubygems_version: 1.3.7
290
514
  signing_key:
291
515
  specification_version: 3
292
516
  summary: A capistrano plugin for managing multi-instance deployments to the cloud (ec2)
@@ -296,3 +520,4 @@ test_files:
296
520
  - test/instance_test.rb
297
521
  - test/test_helper.rb
298
522
  - test/util_test.rb
523
+ - test/zerigo_test.rb